.agreement {
  text-align: left;
}

.agreement h2 {
  line-height: 1.2;
}

.agreement__checkbox {
  width: 20px !important;
  height: 20px !important;
  margin-right: 5px;
  margin-top: 0;
}

.agreement__label {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin-bottom: 0.75em;
}

.agreement__label:last-child {
  margin-bottom: 0;
}

.agreement__label span {
  line-height: 20px;
}
.agreement__break {
  display: block;
  white-space: nowrap;
}

.agreement__label:hover {
  text-decoration: none !important;
}

.agreement__label_error {
  color: red !important;
}

.agreement__overlay {
  position: fixed;
  z-index: 99998;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.agreement__modal {
  width: 75%;
  max-width: 800px;
  border: 1px solid #e8e8e8;
  box-shadow: none;
  background: var(--color-bg);
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 99999;
  overflow: auto;
  transition: opacity 0.3s;
  text-align: left;
  line-height: 1.6 !important;
  top: 50%;
  transform: translate(0, -50%);
  max-height: 90vh;
  font-size: var(--text-md);
  padding: 20px !important;
}

.agreement__modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.agreement__content {
  width: 100%;
}

.agreement__content .static-container {
  font-size: inherit;
  padding: 0;
  margin: 0;
}

.agreement__content .static-container h1,
.agreement__content .static-container h2,
.agreement__content .static-container h3,
.agreement__content .static-container p,
.agreement__content .static-container ul,
.agreement__content .static-container ol {
  margin-top: 0;
}

.agreement__modal_hidden {
  visibility: hidden;
  opacity: 0;
  z-index: -1;
}

@media (max-width: 767px) {
  .agreement__modal {
    width: calc(100% - 20px);
    bottom: 0;
    height: auto;
    padding-bottom: 70px;
    top: -70px;
    transform: translateY(70px);
    -webkit-overflow-scrolling: touch;
  }
}

.agreement__btn {
  text-align: left;
  -webkit-appearance: none;
  cursor: pointer;
}

.agreement__btn_close {
  float: right;
  cursor: pointer;
  display: inline-block;
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  text-decoration: none;
  border: none;
  background: none;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
}

.agreement__btn_close::before,
.agreement__btn_close::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 18px;
  background: var(--main-text-color, #000);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

.agreement__btn_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.agreement__btn_close:hover::before,
.agreement__btn_close:hover::after {
  background: var(--accent-color, #ef8b2e);
}

.agreement__btn_open {
  text-decoration: underline;
}

.agreement__btn_open:hover {
  text-decoration: none;
}



