.cfcdc-access-modal,
.cfcdc-access-modal * {
  box-sizing: border-box;
}
.cfcdc-access-modal {
  position: fixed;
  z-index: 100100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
}
.cfcdc-access-modal.is-open {
  display: grid;
}
.cfcdc-access-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 39, 27, 0.68);
  backdrop-filter: blur(4px);
}
.cfcdc-access-modal__dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  overflow: hidden;
  border: 1px solid #cbd8b0;
  border-radius: 24px;
  background: var(--cfcdc-color-surface);
  box-shadow: 0 24px 70px rgba(13, 49, 31, 0.28);
  color: #244f31;
}
.cfcdc-access-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #dfe6cf;
}
.cfcdc-access-modal__header span {
  display: block;
  margin-bottom: 4px;
  color: #708064;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cfcdc-access-modal__header h2 {
  margin: 0;
  color: #275c36;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
}
.cfcdc-access-modal__header p {
  margin: 7px 0 0;
  color: #53684e;
  font-size: 14px;
}
.cfcdc-access-modal__close {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #91b646;
  border-radius: 50%;
  background: var(--cfcdc-color-surface);
  color: var(--cfcdc-color-brand);
  font: 700 24px/1 sans-serif;
  box-shadow: none;
  cursor: pointer;
}
.cfcdc-access-modal__body {
  min-height: 0;
  overflow: auto;
  padding: 22px 26px;
  overscroll-behavior: contain;
}
.cfcdc-access-modal__terms {
  color: #334c38;
  font-size: 15px;
  line-height: 1.65;
}
.cfcdc-access-modal__terms > :first-child {
  margin-top: 0;
}
.cfcdc-access-modal__terms > :last-child {
  margin-bottom: 0;
}
.cfcdc-access-modal__policy {
  display: inline-flex;
  margin-top: 16px;
  color: var(--cfcdc-color-brand);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
}
.cfcdc-access-modal__footer {
  display: grid;
  gap: 12px;
  padding: 18px 26px 24px;
  border-top: 1px solid #dfe6cf;
  background: #f9faef;
}
.cfcdc-access-modal__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  color: #304635;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.cfcdc-access-modal__consent input {
  width: 18px !important;
  min-width: 18px;
  height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  accent-color: var(--cfcdc-color-brand);
}
.cfcdc-access-modal__notice {
  min-height: 0;
  margin: 0;
  color: #a43e27;
  font-size: 13px;
  font-weight: 750;
}
.cfcdc-access-modal__notice:empty {
  display: none;
}
.cfcdc-access-modal__notice-action {
  display: inline;
  color: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cfcdc-access-modal__submit {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 22px;
  border: 2px solid var(--cfcdc-color-brand);
  border-radius: 999px;
  background: var(--cfcdc-color-brand);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 3px 0 #173c26;
  cursor: pointer;
}
.cfcdc-access-modal__submit:hover {
  background: #244d2c;
}
.cfcdc-access-modal__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cfcdc-access-spin 0.7s linear infinite;
}
.cfcdc-access-modal.is-loading .cfcdc-access-modal__spinner {
  display: inline-block;
}
.cfcdc-access-modal.is-loading .cfcdc-access-modal__submit,
.cfcdc-access-modal.is-loading .cfcdc-access-modal__close {
  cursor: wait;
  opacity: 0.72;
}
body.cfcdc-access-modal-open {
  overflow: hidden;
}
.cfcdc-access-trigger__note {
  margin: 10px 0 0;
  color: #687263;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.cfcdc-order-terms {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid #cbd8b0;
  border-radius: 18px;
  background: #fbfced;
  color: #294333;
}
.cfcdc-order-success {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--cfcdc-color-success-border, #8dbb88);
  border-radius: 18px;
  background: var(--cfcdc-color-success-bg, #f4faed);
  color: var(--cfcdc-color-success, #294333);
}
.cfcdc-order-success__intro { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.cfcdc-order-success__icon { flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--cfcdc-color-success-border, #8dbb88); border-radius: 50%; color: var(--cfcdc-color-brand, #2f6a38); font-size: 20px; font-weight: 700; }
.cfcdc-order-success h2 { margin: 0 0 6px; color: var(--cfcdc-color-brand, #275c36); font-size: clamp(20px, 2.2vw, 28px); }
.cfcdc-order-success p { margin: 0; line-height: 1.55; }
.cfcdc-order-success__courses { display: grid; gap: 12px; }
.cfcdc-order-success__course { display: grid; grid-template-columns: minmax(100px, 150px) minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border: 1px solid #d9e2c8; border-radius: 14px; background: #fff; }
.cfcdc-order-success__course img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.cfcdc-order-success__course h3 { margin: 0 0 4px; color: var(--cfcdc-color-brand, #275c36); font-size: 18px; }
.cfcdc-order-success__status { color: var(--cfcdc-color-brand, #2f7c44); font-size: 14px; font-weight: 600; }
.cfcdc-order-success__schedule { display: grid; gap: 3px; margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--cfcdc-color-accent, #91b646); background: #f8fbf1; font-size: 14px; }
.cfcdc-order-success__schedule strong { color: var(--cfcdc-color-brand, #275c36); }
.cfcdc-order-success__schedule-note { margin-top: 10px !important; color: #687263; font-size: 14px; }
.cfcdc-order-success__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cfcdc-order-success__actions a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; }
.cfcdc-order-success__primary { background: var(--cfcdc-color-brand, #2f6a38); color: #fff !important; }
.cfcdc-order-success__secondary { border: 1px solid var(--cfcdc-color-brand, #2f6a38); color: var(--cfcdc-color-brand, #2f6a38) !important; background: transparent; }
.cfcdc-order-terms > h2 {
  margin: 0 0 8px;
  color: #275c36;
}
.cfcdc-order-terms > p {
  margin: 0 0 18px;
}
.cfcdc-order-terms__list {
  display: grid;
  gap: 10px;
}
.cfcdc-order-terms__item {
  border: 1px solid #d9e2c8;
  border-radius: 12px;
  background: #fff;
}
.cfcdc-order-terms__item summary {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
}
.cfcdc-order-terms__item summary > span {
  grid-row: 1 / 3;
  color: #2f7c44;
  font-weight: 900;
}
.cfcdc-order-terms__item summary small {
  color: #708064;
}
.cfcdc-order-terms__content {
  padding: 0 16px 16px 48px;
  font-size: 14px;
  line-height: 1.55;
}
.cfcdc-order-terms__action {
  margin: 18px 0 0;
}
.cfcdc-order-terms .cfcdc-order-terms__open-course {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 2px solid var(--cfcdc-color-brand);
  border-radius: 999px;
  background: var(--cfcdc-color-brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 0 #173c26;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.cfcdc-order-terms .cfcdc-order-terms__open-course:hover {
  background: #244d2c;
  color: #fff;
  transform: translateY(-1px);
}
.cfcdc-order-terms .cfcdc-order-terms__open-course:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #173c26;
}
.cfcdc-order-terms .cfcdc-order-terms__open-course:focus-visible {
  outline: 3px solid rgba(145, 182, 70, 0.45);
  outline-offset: 3px;
}
.cfcdc-enrollment-terms {
  margin: 16px 0 24px;
  border: 1px solid #d6dfc5;
  border-radius: 12px;
  background: #f9faef;
  color: #304635;
}
.cfcdc-enrollment-terms summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cfcdc-enrollment-terms__content {
  padding: 0 14px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.cfcdc-enrollment-terms__content > :last-child {
  margin-bottom: 0;
}
.cfcdc-enrollment-terms__status {
  color: #53684e;
  font-weight: 600;
}
.cfcdc-course-order-state {
  --cfcdc-order-state-bg: var(--cfcdc-color-info-bg);
  --cfcdc-order-state-border: var(--cfcdc-color-info-border);
  --cfcdc-order-state-color: var(--cfcdc-color-info);
  background: var(--cfcdc-order-state-bg);
  border: 1px solid var(--cfcdc-order-state-border);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 16px;
}
.cfcdc-course-order-state--payment-required,
.cfcdc-course-order-state--bank-transfer-waiting {
  --cfcdc-order-state-bg: var(--cfcdc-color-warning-bg);
  --cfcdc-order-state-border: var(--cfcdc-color-sale);
  --cfcdc-order-state-color: #8a5200;
}
.cfcdc-course-order-state--payment-failed,
.cfcdc-course-order-state--payment-exception,
.cfcdc-course-order-state--access-support {
  --cfcdc-order-state-bg: var(--cfcdc-color-danger-bg);
  --cfcdc-order-state-border: var(--cfcdc-color-danger);
  --cfcdc-order-state-color: #942d24;
}
.cfcdc-course-order-state > strong {
  color: var(--cfcdc-order-state-color);
  font-size: 1.15rem;
}
.cfcdc-course-order-state > p {
  margin: 0;
  line-height: 1.55;
}
@keyframes cfcdc-access-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 850px) {
  .cfcdc-access-modal {
    align-items: end;
    padding: 0;
  }
  .cfcdc-access-modal__dialog {
    width: 100%;
    max-height: 90vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }
  .cfcdc-access-modal__header {
    padding: 20px 20px 15px;
  }
  .cfcdc-access-modal__body {
    padding: 18px 20px;
  }
  .cfcdc-access-modal__footer {
    padding: 15px 20px calc(20px + env(safe-area-inset-bottom));
  }
  .cfcdc-order-terms {
    padding: 18px;
    border-radius: 14px;
  }
  .cfcdc-order-success { padding: 18px; border-radius: 14px; }
  .cfcdc-order-success__course { grid-template-columns: 1fr; gap: 12px; }
  .cfcdc-order-success__course img { max-height: 190px; }
  .cfcdc-order-success__actions { display: grid; }
  .cfcdc-order-success__actions a { width: 100%; }
  .cfcdc-order-terms__content {
    padding: 0 14px 14px;
  }
  .cfcdc-order-terms .cfcdc-order-terms__open-course {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cfcdc-access-modal__spinner {
    animation-duration: 1.5s;
  }
}
