/* ==========================================================================
   Thynk Different — Checkout & Order Status Styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 50%, #fffbeb 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 18px 48px;
  flex: 1;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.brand-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #18181b;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: #ea580c;
}

.back-link {
  color: #b45309;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(254, 243, 199, 0.6);
  border-radius: 999px;
  transition: all 0.2s;
}

.back-link:hover {
  background: #fde68a;
  color: #92400e;
}

.card {
  background: #ffffff;
  border: 2px solid rgba(251, 191, 36, 0.5);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.12);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #ea580c, #ef4444);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.product-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  margin: 6px 0 8px;
  color: #111827;
}

.product-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 20px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f3f4f6;
}

.price {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.price-interval {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.price-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 999px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #374151;
}

.input-wrap {
  position: relative;
}

input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #f9fafb;
  transition: all 0.2s;
}

input[type="email"]:focus {
  outline: none;
  border-color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.helper-text {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.btn-pay {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 17px;
  background: linear-gradient(90deg, #f59e0b, #ea580c, #dc2626);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-pay:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.4);
}

.btn-pay:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e5e7eb;
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Status Banners */
.alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* Result Views */
.result-card {
  text-align: center;
  padding: 16px 0;
}

.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 32px;
}

.result-icon-success {
  background: #dcfce7;
  color: #16a34a;
}

.result-icon-pending {
  background: #fef3c7;
  color: #d97706;
}

.result-icon-failed {
  background: #fee2e2;
  color: #dc2626;
}

.result-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #111827;
  margin: 0 0 8px;
}

.result-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 24px;
}

.order-details-table {
  width: 100%;
  border-collapse: collapse;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin: 20px 0;
  font-size: 13px;
  text-align: left;
}

.order-details-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.order-details-table tr:last-child td {
  border-bottom: none;
}

.order-details-table .label {
  color: #6b7280;
  width: 40%;
}

.order-details-table .value {
  color: #111827;
  font-weight: 600;
  text-align: right;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

.footer-note {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 24px;
}

/* Local Development Demo Box & Button */
.demo-testing-box {
  margin-top: 24px;
  background: #faf5ff;
  border: 2px dashed #c084fc;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.demo-badge-wrap {
  margin-bottom: 8px;
}

.demo-badge {
  display: inline-block;
  background: #7e22ce;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
}

.demo-desc {
  font-size: 13px;
  color: #581c87;
  line-height: 1.5;
  margin: 0 0 14px;
}

.btn-demo {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(90deg, #9333ea, #7c3aed, #6366f1);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-demo:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.38);
}

.btn-demo:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-demo:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.demo-spinner {
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
}

.demo-disclaimer {
  font-size: 11.5px;
  color: #7e22ce;
  margin: 10px 0 0;
  font-weight: 600;
}

.demo-banner {
  background: #fef2f2;
  border: 2px dashed #ef4444;
  color: #991b1b;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

