@charset "UTF-8";

.checkout-page {
  width: 100%;
  padding: 30px 25px 45px;
  box-sizing: border-box;
}

.checkout-heading {
  margin-bottom: 22px;
}

.checkout-heading h2 {
  margin: 0 0 8px;
  color: #1f1f1f;
  font-size: 32px;
  font-weight: 700;
}

.checkout-subtitle {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 26px;
  align-items: start;
}

.checkout-card {
  margin-bottom: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.checkout-card h3,
.checkout-card h4 {
  margin: 0 0 16px;
  color: #2a0d32;
}

.plan-summary-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.summary-label {
  display: block;
  margin-bottom: 4px;
  color: #777;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-summary-header h3 {
  margin: 0;
  font-size: 26px;
}

.summary-price {
  color: #3B1344;
  font-size: 27px;
  font-weight: 800;
  white-space: nowrap;
}

.summary-price span {
  font-size: 14px;
  font-weight: 600;
}

.plan-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-summary-item {
  padding: 13px;
  background: #f7f7f7;
  border-radius: 7px;
}

.plan-summary-item strong,
.plan-summary-item span {
  display: block;
}

.plan-summary-item strong {
  margin-bottom: 4px;
  color: #333;
  font-size: 13px;
}

.plan-summary-item span {
  color: #555;
}

.features-modal-button {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 14px;
  color: #3B1344;
  background: #fff;
  border: 1px solid #3B1344;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.features-modal-button:hover {
  color: #fff;
  background: #3B1344;
}

/* Plan features modal */
.features-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 14, 22, 0.62);
  box-sizing: border-box;
}

.features-modal.is-open {
  display: flex;
}

.features-modal-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.features-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid #e5e5e5;
}

.features-modal-header h3 {
  margin: 0 0 4px;
  color: #2a0d32;
  font-size: 25px;
}

.features-modal-header p {
  margin: 0;
  color: #666;
}

.features-modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #fff;
  color: #3B1344;
  border: 1px solid #d8c9dc;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.features-modal-close:hover {
  color: #fff;
  background: #3B1344;
  border-color: #3B1344;
}

.features-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.modal-plan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.modal-plan-summary div {
  padding: 12px;
  background: #f7f7f7;
  border-radius: 7px;
}

.modal-plan-summary strong,
.modal-plan-summary span {
  display: block;
}

.modal-plan-summary strong {
  margin-bottom: 3px;
  color: #333;
  font-size: 13px;
}

.modal-plan-summary span {
  color: #555;
}

.feature-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.feature-group {
  min-width: 0;
  height: auto !important;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-sizing: border-box;
}

.feature-group h4 {
  margin: 0 0 12px;
  color: #3B1344;
  font-size: 17px;
  line-height: 1.35;
  text-transform: capitalize;
}

.feature-list {
  display: grid;
  width: 100%;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: static;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  -moz-column-gap: 7px;
       column-gap: 7px;
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  margin: 0;
  padding: 0;
  float: none !important;
  clear: both;
  color: #444;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.feature-list li::before {
  position: static;
  display: block;
  color: #3B1344;
  content: "✓";
  font-weight: 800;
  line-height: 1.45;
}

.features-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 20px 24px 32px;
  border-top: 1px solid #e5e5e5;
  background: #fff;
  flex-shrink: 0;
}

.footer-message {
  flex: 1;
  color: #555;
  font-size: 15px;
  line-height: 1.4;
}

.ltr .footer-message {
  text-align: left;
}

.rtl .footer-message {
  text-align: right;
}

.continue-checkout-button {
  padding: 11px 18px;
  background: #3B1344;
  color: #fff;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
}

.continue-checkout-button:hover {
  background: #2a0d32;
}

body.features-modal-open {
  overflow: hidden;
}

.domain-options {
  display: grid;
  gap: 12px;
}

.domain-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.domain-option:hover {
  border-color: #8B5FA9;
}

.domain-option {
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ltr .domain-option {
  padding-right: 54px;
}

.rtl .domain-option {
  padding-left: 54px;
}

.domain-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.domain-option:has(input:checked) {
  background: var(--echelon-purple-soft);
  border-color: var(--echelon-purple);
  box-shadow: 0 0 0 2px rgba(59, 19, 68, 0.12);
}

.domain-option:has(input:checked)::after {
  position: absolute;
  top: 50%;
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  background: var(--echelon-purple);
  border-radius: 50%;
  color: var(--echelon-surface);
  content: "✓";
  font-size: 15px;
  font-weight: 800;
  transform: translateY(-50%);
}

.ltr .domain-option:has(input:checked)::after {
  right: 18px;
}

.rtl .domain-option:has(input:checked)::after {
  left: 18px;
}

.domain-option:has(input:focus-visible) {
  outline: 3px solid rgba(181, 148, 16, 0.38);
  outline-offset: 3px;
}

.domain-option:hover {
  background: #fcf9fd;
  border-color: var(--echelon-purple);
  transform: translateY(-1px);
}

.domain-option strong,
.domain-option small {
  display: block;
}

.domain-option strong {
  color: #333;
}

.domain-option small {
  margin-top: 3px;
  color: #666;
  line-height: 1.45;
}

.domain-option__action {
  display: inline-block;
  margin-top: 9px;
  color: var(--echelon-purple);
  font-size: 13px;
  font-weight: 800;
}

.domain-option:hover .domain-option__action {
  text-decoration: underline;
}

.domain-option:has(input:checked) .domain-option__action {
  color: var(--echelon-purple-dark);
}

.domain-option:has(input:checked) .domain-option__action {
  font-size: 0;
  text-decoration: none;
}

.domain-option:has(input:checked) .domain-option__action::after {
  content: "Selected ✓";
  font-size: 13px;
}

.domain-fields {
  margin-top: 16px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  color: #333;
  font-weight: 700;
}

.form-control,
.input-area {
  width: 100%;
  box-sizing: border-box;
}

.form-control {
  min-height: 46px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.input-area {
  padding: 14px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.card-field-label {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 8px;
}

.card-field-label .form-label {
  margin: 0;
}

.card-field-label__secure {
  color: var(--echelon-muted);
  font-size: 13px;
  font-weight: 600;
}

#card-element {
  width: 100%;
  min-height: 54px;
  padding: 16px 15px;
  background: var(--echelon-surface);
  border: 1px solid var(--echelon-border);
  border-radius: 8px;
  cursor: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#card-element.StripeElement--focus {
  border-color: var(--echelon-purple);
  box-shadow: 0 0 0 0.2rem rgba(59, 19, 68, 0.14);
}

#card-element.StripeElement--invalid {
  border-color: var(--echelon-danger);
}

#card-element iframe {
  width: 100% !important;
  min-height: 22px !important;
}

#card-errors {
  min-height: 22px;
  margin-top: 8px;
  color: var(--echelon-danger) !important;
  font-size: 14px;
  line-height: 1.5;
}

.payment-methods {
  margin-top: 12px;
}

.payment-methods__label {
  margin: 0 0 8px;
  color: var(--echelon-muted);
  font-size: 13px;
  font-weight: 600;
}

.payment-methods__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.payment-method-badge {
  display: inline-flex;
  min-width: 66px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: var(--echelon-surface);
  border: 1px solid var(--echelon-border);
  border-radius: 7px;
  color: var(--echelon-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.payment-method-badge--visa {
  color: var(--echelon-navy);
}

.payment-method-badge--amex {
  color: #1f6fa8;
}

.payment-method-badge--discover {
  color: #7a4a00;
}

.payment-security-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  background: var(--echelon-purple-soft);
  border: 1px solid rgba(59, 19, 68, 0.13);
  border-radius: 10px;
}

.payment-security-item {
  min-width: 0;
  text-align: center;
}

.payment-security-item__icon {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 7px;
  background: var(--echelon-surface);
  border: 1px solid var(--echelon-border);
  border-radius: 50%;
  color: var(--echelon-purple);
  font-size: 16px;
  font-weight: 800;
}

.payment-security-item strong {
  display: block;
  color: var(--echelon-text);
  font-size: 13px;
  line-height: 1.3;
}

.payment-security-item span {
  display: block;
  margin-top: 3px;
  color: var(--echelon-muted);
  font-size: 11px;
  line-height: 1.4;
}

.field-help {
  margin: 7px 0 0;
  color: #666;
  font-size: 13px;
}

.integration-notice {
  margin-top: 12px;
  padding: 12px;
  background: #fff8e8;
  border: 1px solid #ead59a;
  border-radius: 6px;
  color: #6b5519;
  font-size: 14px;
  line-height: 1.5;
}

.secure-note {
  margin: 14px 0 9px;
  color: #555;
  font-size: 14px;
}

.order-summary {
  position: sticky;
  top: 90px;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.summary-line {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.summary-line span {
  color: #555;
}

.summary-total {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 2px solid #3B1344;
  color: #222;
  font-size: 18px;
  font-weight: 800;
}

.renewal-note {
  margin: 12px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.checkout-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 0;
  background: #3B1344 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.checkout-btn:hover {
  background: #2a0d32 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.checkout-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.text-danger {
  margin-top: 8px;
  color: #b42318;
}

@media (max-width: 992px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .checkout-page {
    padding: 22px 16px 35px;
  }

  .checkout-heading h2 {
    font-size: 26px;
  }

  .plan-summary-header {
    flex-direction: column;
  }

  .plan-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-security-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .payment-security-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    -moz-column-gap: 10px;
         column-gap: 10px;
  }

  .ltr .payment-security-item {
    text-align: left;
  }

  .rtl .payment-security-item {
    text-align: right;
  }

  .payment-security-item__icon {
    grid-row: 1/span 2;
    margin: 0;
  }

  .payment-security-item strong,
  .payment-security-item span {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .plan-summary-grid {
    grid-template-columns: 1fr;
  }

  .modal-plan-summary,
  .feature-groups {
    grid-template-columns: 1fr;
  }

  .features-modal {
    padding: 10px;
  }

  .features-modal-body {
    padding: 16px;
  }

  .card-field-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .payment-method-badge {
    min-width: 60px;
  }
}

.is-hidden {
  display: none !important;
}

.form-label--spaced {
  margin-top: 14px;
}

.epp-code-input {
  -webkit-text-security: disc;
}

.checkout-spinner {
  color: #fff;
}

.ltr .checkout-spinner {
  border-right-color: transparent;
}

.rtl .checkout-spinner {
  border-left-color: transparent;
}