/* Stripe Embedded Checkout Modal */

#checkout-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
}

#checkout-modal.checkout-modal-open {
  display: block;
}

.checkout-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.checkout-modal-dialog {
  position: relative;
  max-width: 560px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

@media (max-width: 600px) {
  .checkout-modal-dialog {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }
}

.checkout-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  z-index: 10;
}

.checkout-modal-close:hover {
  color: #000;
}

.checkout-modal-body {
  padding: 32px 28px;
}

.checkout-modal-title {
  font-size: 22px;
  margin: 0 0 4px;
  color: #1a1a1a;
}

.checkout-modal-price {
  font-size: 18px;
  color: #bc8529;
  font-weight: bold;
  margin: 0 0 24px;
}

.checkout-section-title {
  font-size: 14px;
  color: #555;
  margin: 24px 0 12px;
  font-weight: 600;
}

.checkout-currency-options,
.checkout-payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-option {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkout-option:hover {
  border-color: #bc8529;
  background: #fef9f0;
}

.checkout-option input[type="radio"] {
  margin-right: 12px;
  accent-color: #bc8529;
}

.checkout-option input[type="radio"]:checked + .checkout-option-label {
  color: #1a1a1a;
}

.checkout-option:has(input:checked) {
  border-color: #bc8529;
  background: #fef9f0;
}

.checkout-option-label {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.checkout-option-label strong {
  font-size: 15px;
  color: #1a1a1a;
}

.checkout-option-label small {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.checkout-discount {
  background: #d63384;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  margin-left: 6px;
}

.checkout-proceed-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #bc8529;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s;
}

.checkout-proceed-btn:hover {
  background: #a0701f;
}

.checkout-secure-note {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 12px;
}

.checkout-secure-note i {
  color: #28a745;
  margin-right: 4px;
}

#checkout-stripe-container {
  min-height: 400px;
}

#checkout-loading {
  text-align: center;
  padding: 60px 20px;
}

.checkout-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top-color: #bc8529;
  border-radius: 50%;
  animation: checkout-spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}

.checkout-error {
  padding: 24px;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 8px;
  text-align: center;
}
