/* ==========================================================================
   EXPRESS CHECKOUT SYSTEM - FI-FY
   ========================================================================== */

.express-checkout-wrapper {
  width: 100%;
  margin: 16px 0 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.express-checkout-title {
  font-size: 12px;
  font-weight: 700;
  color: #4B5563;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.express-checkout-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Base Express Button */
.express-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.express-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  filter: brightness(0.96);
}

.express-btn:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

/* 1. Google Pay Button */
.express-btn-gpay {
  background-color: #000000;
  color: #FFFFFF;
}

/* 2. Link Button */
.express-btn-link {
  background-color: #00D97E;
  color: #000000;
  font-weight: 700;
}

/* 3. Amazon Pay Button */
.express-btn-amazon {
  background-color: #FFC439;
  color: #111111;
  font-weight: 700;
}

/* 4. Apple Pay Button */
.express-btn-apple {
  background-color: #000000;
  color: #FFFFFF;
}

/* Grid Layout for Pill Payment Buttons */
.express-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.express-pill-btn {
  height: 44px;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.express-pill-btn:hover {
  border-color: #9CA3AF;
  background-color: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.express-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #FFF;
}

.express-pill-icon.cashapp {
  background-color: #00D632;
}

.express-pill-icon.affirm {
  background-color: #4A4AF4;
}

.express-pill-icon.klarna {
  background-color: #FFB3C7;
  color: #0B0B0B;
}

.express-pill-icon.afterpay {
  background-color: #B2FCE4;
  color: #000000;
}

/* Divider */
.express-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #9CA3AF;
  font-size: 13px;
  font-weight: 500;
}

.express-divider::before,
.express-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E5E7EB;
}

.express-divider span {
  padding: 0 10px;
}

/* QR Code Modal for Apple Pay Desktop Flow */
.apple-qr-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.apple-qr-modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.apple-qr-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.apple-qr-modal-overlay.active .apple-qr-modal-card {
  transform: scale(1);
}

.apple-qr-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F3F4F6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  transition: background 0.2s ease;
}

.apple-qr-close-btn:hover {
  background: #E5E7EB;
  color: #111827;
}

.apple-qr-header {
  margin-bottom: 20px;
}

.apple-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.apple-qr-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px 0;
}

.apple-qr-subtitle {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
}

.apple-qr-box {
  background: #F9FAFB;
  border: 2px dashed #D1D5DB;
  border-radius: 16px;
  padding: 20px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.apple-qr-canvas-wrapper {
  background: #FFFFFF;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.apple-qr-status {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 6px;
}

.apple-qr-pulse {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  animation: qrPulse 1.5s infinite;
}

@keyframes qrPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.apple-qr-fallback-btn {
  width: 100%;
  height: 42px;
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 6px;
}

.apple-qr-fallback-btn:hover {
  background: #E5E7EB;
  color: #111827;
}
