:root {
  --oz-green: #0F4C29;
  --oz-dark: #0b0f0d;
  --oz-light: #f1f1f1;
}

/* === OVERLAY === */
#oz-stripe-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: ozFadeIn 0.25s ease forwards;
}

/* === MODAL === */
#oz-stripe-modal,
#oz-email-modal,
#oz-loading-modal {
  background: var(--oz-dark);
  color: var(--oz-light);
  width: 100%;
  max-width: 50%;
  max-height: 80%;
  border-radius: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 2rem 1.5rem 3rem;
  position: relative;
  overflow-y: auto;
  animation: ozSlideUp 0.3s ease forwards;
  scrollbar-width: thin;
  scrollbar-color: #555 #000;
}

/* Scrollbar */
#oz-stripe-modal::-webkit-scrollbar { width: 8px; }
#oz-stripe-modal::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 8px;
}
#oz-stripe-modal::-webkit-scrollbar-thumb:hover { background: #777; }
#oz-stripe-modal::-webkit-scrollbar-track { background: #000; }

/* === CLOSE BUTTON === */
#oz-close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}
#oz-close-modal:hover { color: var(--oz-green); }

/* === HEADER === */
.oz-brand-logo {
  text-align: center;
  margin-bottom: 0.5rem;
}
.oz-product-info {
  text-align: center;
  margin-bottom: 1.5rem;
}
.oz-product-info h2 {
  font-size: 1.5rem;
  color: #e6e6e6;
}
.oz-price {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.oz-desc {
  font-size: 0.95rem;
  color: #bdbdbd;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* === FORM === */
#oz-stripe-form,
#oz-email-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
  margin: 0 auto;
}
#oz-stripe-form button,
.oz-continue-btn {
  background: var(--oz-green) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.9rem 1.2rem !important;
  border-radius: 0.6rem !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: 0.2s ease !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}
#oz-stripe-form button:hover,
.oz-continue-btn:hover {
  background: #146938 !important;
}
#oz-stripe-form button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* === FEEDBACK === */
#payment-message {
  color: #df1b41;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}
.hidden { display: none; }

/* === SPINNER === */
.oz-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
.oz-spinner-large {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(15, 76, 41, 0.2);
  border-top: 4px solid #0F4C29;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* === LOADING MODAL === */
#oz-loading-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  min-height: 220px;
}
#oz-loading-modal p {
  color: var(--oz-light);
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
}

/* === ANIMATIONS === */
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes ozFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ozSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #oz-stripe-modal,
  #oz-email-modal {
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    width: 100%;
    border-radius: 0;
    padding: 1.5rem 1rem 2.5rem;
  }
  .oz-product-info h2 { font-size: 1.2rem; }
  .oz-price { font-size: 24px; }
  .oz-desc { font-size: 0.9rem; }
  #oz-stripe-form button { font-size: 0.95rem; }
}
#express-checkout-element {
  max-width: 480px;
  margin-bottom: 1em !important;
  margin: 0 auto;
}
