/* Main Page Wrapper */
.payment-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
}

/* Main Content Area — outer white card (matches buynow-content) */
.payment-page-content {
  flex: 1;
  display: flex;
  gap: 20px;
  max-width: 2000px;
  margin: 16px 16px 16px 16px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  /* box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); */
  padding: 24px;
  position: relative;
}

/* Unlimited Access Card - Left Side (matches buynow-pricing-card) */
.unlimited-access-card {
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 40px 36px;
  /* width: 340px; */
  flex-shrink: 0;
  /* border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); */
  min-height: 520px;
}

.access-title {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  margin: 0 0 28px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Price box — purple gradient (matches buynow-pricing-price) */
.access-price {
  margin-bottom: 32px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  border: none;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.price-amount {
  font-size: 30px;
  font-weight: 700;
  color: white;
}

.access-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.access-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.access-features li:last-child {
  margin-bottom: 0;
}

.check-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Stripe Payment Card - Right Side (matches buynow-right) */
.stripe-payment-card {
  flex: 1;
  background: #ffffff;
  /* border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); */
  padding: 42px 56px;
  min-height: 520px;
}

.payment-header {
  text-align: center;
  margin-bottom: 32px;
}

.payment-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.payment-description {
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* Footer Section */
.payment-page-footer {
  background: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  /* box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); */
  position: sticky;
  bottom: 0;
  z-index: 9999;
}

.footer-secure-notice {
  font-size: 13px;
  color: #666;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Cancel button — kept neutral */
.footer-clear-btn {
  padding: 12px 32px;
  border: 2px solid #ccc;
  background: white;
  color: #666;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* Submit button — header colour #35659E */
.footer-submit-btn {
  padding: 12px 48px;
  border: none;
  background: #35659E;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* box-shadow: 0 4px 12px rgba(53, 101, 158, 0.3); */
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 48px 20px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #35659E;
  border-radius: 50%;
  animation: spp-spin 0.9s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  color: #777;
  font-size: 15px;
  margin: 0;
}

/* ── Inline Init-Error State (matches cf-modal design) ── */
.init-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  text-align: center;
  /* padding: 60px 40px; */
  height: 100%;
  min-height: 400px;
  animation: cf-modal-in 0.25s ease-out;
}

.init-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #e53935;
  color: #e53935;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.init-error-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  letter-spacing: 0.3px;
}

.init-error-description {
  font-size: 14px;
  /* font-style: italic; */
  color: #666;
  /* line-height: 1.7; */
  margin: 0 0 16px;
  max-width: 380px;
}

.init-error-btn {
  padding: 13px 40px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #35659E;
  color: #fff;
  transition: background 0.2s ease, transform 0.1s ease;
}

.init-error-btn:active {
  transform: translateY(0);
}

.subscription-active-logo {
  top: 110px;
  left: 653px;
  width: 150px;
  height: 150px;
  background: transparent;
  opacity: 0.8;
  margin: 0px 0px 10px 0px;
}

@keyframes cf-modal-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Hide Stripe "Powered by Stripe" external badge injected outside the iframe */
.stripe-payment-card a[href*="stripe.com"][target="_blank"],
.payment-element-container ~ a[href*="stripe.com"],
.__PrivateStripeElement + a[href*="stripe.com"] {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .payment-page-content {
    flex-direction: column;
    padding: 16px;
  }

  .unlimited-access-card {
    width: 100%;
    position: relative;
    top: 0;
    min-height: unset;
  }
}

@media (max-width: 768px) {
  .payment-page-content {
    margin: 16px auto;
    width: calc(100% - 32px);
    padding: 12px;
  }

  .stripe-payment-card {
    padding: 28px 24px;
  }

  .payment-header h1 {
    font-size: 20px;
  }

  .payment-page-footer {
    padding: 16px 20px;
  }

  .footer-clear-btn,
  .footer-submit-btn {
    padding: 10px 24px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .payment-page-content {
    margin: 12px auto;
    width: calc(100% - 24px);
    padding: 10px;
  }

  .stripe-payment-card {
    padding: 20px 16px;
  }

  .payment-page-footer {
    justify-content: space-between;
  }

  .footer-clear-btn,
  .footer-submit-btn {
    flex: 1;
    padding: 12px 16px;
  }
}
