/* Premium checkout UI */
:root {
  --hse-radius: 12px;
  --hse-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --hse-primary: #0f172a;
  --hse-accent: #c9a227;
  --hse-success: #059669;
  --hse-error: #dc2626;
  --hse-muted: #64748b;
  --hse-space: 1rem;
}

.checkout-area .billing-details,
.checkout-area .order-details {
  background: #fff;
  border-radius: var(--hse-radius);
  box-shadow: var(--hse-shadow);
  padding: 1.5rem;
  margin-bottom: var(--hse-space);
}

.checkout-area .title {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.default-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.default-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.default-btn--outline {
  background: transparent;
  border: 1px solid var(--hse-primary);
  color: var(--hse-primary);
  margin-left: 0.5rem;
}

.checkout-loading {
  text-align: center;
  padding: 3rem 1rem;
}

.checkout-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid #e2e8f0;
  border-top-color: var(--hse-accent);
  border-radius: 50%;
  animation: hse-spin 0.8s linear infinite;
}

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

.checkout-success img {
  max-width: 72px;
  margin-bottom: 1rem;
}

.checkout-alert {
  padding: 1.5rem;
  border-radius: var(--hse-radius);
  text-align: center;
}

.checkout-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--hse-error);
}

.iyzico-form-wrapper {
  min-height: 420px;
}

#orderForm.is-submitting {
  opacity: 0.7;
  pointer-events: none;
}

.hse-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.hse-toast {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: var(--hse-primary);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--hse-shadow);
  animation: hse-toast-in 0.25s ease;
}

.hse-toast--error { background: var(--hse-error); }
.hse-toast--success { background: var(--hse-success); }

@keyframes hse-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .checkout-area .order-details { margin-top: 1rem; }
}
