/* ==========================================================================
   ATELIER // EXPRESS 1-CLICK CHECKOUT MODAL
   Matches reference design: Clean Delivery Details Card + Payment Method Cards
   ========================================================================== */

.express-checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.express-checkout-overlay.active {
  display: flex;
}

.express-checkout-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  margin: auto;
  overflow-y: auto;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  animation: express-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

@keyframes express-pop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.express-checkout-container {
  background: #ffffff;
  color: #0f172a;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-family: var(--font-body, 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif);
  position: relative;
}

[data-theme="dark"] .express-checkout-container {
  background: #111827;
  color: #f8fafc;
}

/* Modal Close Button */
.express-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

[data-theme="dark"] .express-close-btn {
  background: #1f2937;
  border-color: #374151;
  color: #94a3b8;
}

.express-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

[data-theme="dark"] .express-close-btn:hover {
  background: #374151;
  color: #ffffff;
}

/* Order Quick Summary Header Strip */
.express-order-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

[data-theme="dark"] .express-order-banner {
  background: #1e293b;
  border-color: #334155;
}

.express-order-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.express-order-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

[data-theme="dark"] .express-order-thumb {
  border-color: #334155;
}

.express-order-text {
  min-width: 0;
}

.express-order-title {
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
}

[data-theme="dark"] .express-order-title {
  color: #f8fafc;
}

.express-order-meta {
  font-size: 0.74rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}

[data-theme="dark"] .express-order-meta {
  color: #94a3b8;
}

.express-order-total-box {
  text-align: right;
  flex-shrink: 0;
}

.express-order-total-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.express-order-total-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: #059669;
}

/* Card Section Boxes (Delivery Details & Payment Method) */
.express-card-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .express-card-box {
  background: #182234;
  border-color: #2e3c52;
}

.express-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.express-header-icon {
  width: 20px;
  height: 20px;
  color: #059669;
  flex-shrink: 0;
}

.express-header-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
}

[data-theme="dark"] .express-header-title {
  color: #f8fafc;
}

/* Form Controls */
.express-form-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.express-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 500px) {
  .express-row-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.express-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.express-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-theme="dark"] .express-label {
  color: #94a3b8;
}

.express-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

[data-theme="dark"] .express-input {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.express-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.express-input.error {
  border-color: #ef4444;
  background: #fff5f5;
}

[data-theme="dark"] .express-input.error {
  background: #2d1515;
}

/* WhatsApp Phone Input Group with +91 Prefix */
.express-phone-box {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

[data-theme="dark"] .express-phone-box {
  background: #0f172a;
  border-color: #334155;
}

.express-phone-box:focus-within {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.express-phone-prefix {
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  font-size: 0.88rem;
  font-family: var(--font-mono, monospace);
  padding: 0.7rem 0.85rem;
  border-right: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  flex-shrink: 0;
}

[data-theme="dark"] .express-phone-prefix {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

.express-phone-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  width: 100%;
}

[data-theme="dark"] .express-phone-input {
  color: #f8fafc;
}

/* Save Info Checkbox */
.express-save-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
  cursor: pointer;
  user-select: none;
}

.express-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #059669;
  cursor: pointer;
}

.express-save-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
}

[data-theme="dark"] .express-save-text {
  color: #cbd5e1;
}

/* Payment Method Cards */
.express-payment-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.express-pay-option {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .express-pay-option {
  background: #0f172a;
  border-color: #334155;
}

.express-pay-option.selected {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px #059669;
}

[data-theme="dark"] .express-pay-option.selected {
  background: rgba(5, 150, 105, 0.12);
  border-color: #10b981;
  box-shadow: 0 0 0 1px #10b981;
}

.express-pay-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.express-radio {
  width: 18px;
  height: 18px;
  accent-color: #059669;
  cursor: pointer;
  flex-shrink: 0;
}

.express-pay-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.express-pay-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

[data-theme="dark"] .express-pay-title {
  color: #f8fafc;
}

.express-pay-sub {
  font-size: 0.73rem;
  color: #64748b;
  line-height: 1.3;
}

[data-theme="dark"] .express-pay-sub {
  color: #94a3b8;
}

/* Badges */
.express-badge-amber {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .express-badge-amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.express-badge-green {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .express-badge-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Primary WhatsApp Order CTA */
.express-submit-btn {
  width: 100%;
  background: #25D366;
  color: #032d12;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  font-family: inherit;
}

.express-submit-btn:hover {
  background: #20ba59;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.express-submit-btn:active {
  transform: translateY(0);
}

.express-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.74rem;
  color: #64748b;
  text-align: center;
}

[data-theme="dark"] .express-trust-footer {
  color: #94a3b8;
}

.express-trust-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
