/**
 * ExploreGN Checkout Styles v2.0
 * World-class checkout UI — Airbnb/Booking/Stripe inspired
 */

/* === Design Tokens === */
:root {
  /* Primary palette */
  --checkout-primary: #059669;
  --checkout-primary-dark: #047857;
  --checkout-primary-darker: #065f46;
  --checkout-primary-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
  --checkout-primary-light: #d1fae5;
  --checkout-primary-lighter: #ecfdf5;
  
  /* Neutral palette */
  --checkout-gray-50: #f9fafb;
  --checkout-gray-100: #f3f4f6;
  --checkout-gray-200: #e5e7eb;
  --checkout-gray-300: #d1d5db;
  --checkout-gray-400: #9ca3af;
  --checkout-gray-500: #6b7280;
  --checkout-gray-600: #4b5563;
  --checkout-gray-700: #374151;
  --checkout-gray-800: #1f2937;
  --checkout-gray-900: #111827;
  
  /* Semantic colors */
  --checkout-success: #10b981;
  --checkout-success-light: #d1fae5;
  --checkout-error: #ef4444;
  --checkout-error-light: #fee2e2;
  --checkout-warning: #f59e0b;
  --checkout-warning-light: #fef3c7;
  --checkout-info: #3b82f6;
  --checkout-info-light: #dbeafe;
  
  /* Layout */
  --checkout-bg: #f9fafb;
  --checkout-card-bg: #ffffff;
  --checkout-border: #e5e7eb;
  --checkout-border-light: #f3f4f6;
  
  /* Radii */
  --checkout-radius-xl: 20px;
  --checkout-radius-lg: 16px;
  --checkout-radius-md: 12px;
  --checkout-radius-sm: 8px;
  --checkout-radius-xs: 6px;
  
  /* Shadows */
  --checkout-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --checkout-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --checkout-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --checkout-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --checkout-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --checkout-shadow-focus: 0 0 0 3px rgba(5, 150, 105, 0.15);
  
  /* Typography */
  --checkout-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --checkout-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --checkout-transition-fast: 0.15s ease;
}

/* === Base Reset === */
.checkout-page * {
  box-sizing: border-box;
}

/* === Page Layout === */
.checkout-page {
  min-height: 100vh;
  background: var(--checkout-bg);
  padding: 1rem;
  font-family: var(--checkout-font);
  overflow-x: hidden;
}

@media (min-width: 640px) {
  .checkout-page {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .checkout-page {
    padding: 2.5rem 2rem;
  }
}

.checkout-container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.checkout-container--narrow {
  max-width: 640px;
}

/* === Grid Layout === */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    align-items: start;
  }
}

/* Mobile: summary first */
@media (max-width: 1023px) {
  .checkout-grid {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .checkout-grid--summary-first {
    flex-direction: column;
  }
}

/* === Progress Steps (Premium) === */
.checkout-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.checkout-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-progress__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--checkout-transition);
  border: 2px solid transparent;
}

.checkout-progress__circle--completed {
  background: var(--checkout-primary);
  color: white;
}

.checkout-progress__circle--active {
  background: var(--checkout-primary);
  color: white;
  box-shadow: 0 0 0 4px var(--checkout-primary-light);
}

.checkout-progress__circle--pending {
  background: var(--checkout-gray-100);
  color: var(--checkout-gray-400);
  border-color: var(--checkout-gray-200);
}

.checkout-progress__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--checkout-gray-500);
  transition: var(--checkout-transition);
}

.checkout-progress__step--active .checkout-progress__label {
  color: var(--checkout-gray-800);
  font-weight: 600;
}

.checkout-progress__step--completed .checkout-progress__label {
  color: var(--checkout-primary);
}

.checkout-progress__line {
  width: 48px;
  height: 2px;
  background: var(--checkout-gray-200);
  margin: 0 8px;
  border-radius: 1px;
  flex-shrink: 0;
  transition: var(--checkout-transition);
}

.checkout-progress__line--completed {
  background: var(--checkout-primary);
}

@media (max-width: 540px) {
  .checkout-progress__label {
    display: none;
  }
  .checkout-progress__line {
    width: 32px;
    margin: 0 4px;
  }
  .checkout-progress__circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* === Cards (Premium) === */
.checkout-card {
  background: var(--checkout-card-bg);
  border-radius: var(--checkout-radius-lg);
  box-shadow: var(--checkout-shadow-sm);
  border: 1px solid var(--checkout-border-light);
  overflow: hidden;
}

.checkout-card--elevated {
  box-shadow: var(--checkout-shadow-md);
}

.checkout-card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--checkout-border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-card__header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--checkout-radius-sm);
  background: var(--checkout-primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--checkout-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.checkout-card__header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--checkout-gray-800);
  margin: 0;
}

.checkout-card__header p {
  font-size: 0.875rem;
  color: var(--checkout-gray-500);
  margin: 0.125rem 0 0 0;
}

.checkout-card__body {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .checkout-card__body {
    padding: 2rem;
  }
}

/* === Sections === */
.checkout-section {
  margin-bottom: 2rem;
}

.checkout-section:last-child {
  margin-bottom: 0;
}

.checkout-section__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--checkout-gray-800);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-section__title-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--checkout-gray-400);
}

.checkout-section__divider {
  height: 1px;
  background: var(--checkout-border-light);
  margin: 1.5rem 0;
}

/* === Form Elements (Premium) === */
.checkout-form__group {
  margin-bottom: 1.25rem;
}

.checkout-form__group:last-child {
  margin-bottom: 0;
}

.checkout-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--checkout-gray-700);
  margin-bottom: 0.5rem;
}

.checkout-form__label--required::after {
  content: ' *';
  color: var(--checkout-error);
}

.checkout-form__input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--checkout-gray-300);
  border-radius: var(--checkout-radius-sm);
  font-size: 1rem;
  color: var(--checkout-gray-800);
  background: white;
  outline: none;
  transition: var(--checkout-transition);
}

.checkout-form__input::placeholder {
  color: var(--checkout-gray-400);
}

.checkout-form__input:hover {
  border-color: var(--checkout-gray-400);
}

.checkout-form__input:focus {
  border-color: var(--checkout-primary);
  box-shadow: var(--checkout-shadow-focus);
}

.checkout-form__input--error {
  border-color: var(--checkout-error);
}

.checkout-form__input--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.checkout-form__hint {
  font-size: 0.8125rem;
  color: var(--checkout-gray-500);
  margin-top: 0.375rem;
}

.checkout-form__error {
  font-size: 0.8125rem;
  color: var(--checkout-error);
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Phone Input Group */
.checkout-phone-group {
  display: flex;
  height: 48px;
  border: 1px solid var(--checkout-gray-300);
  border-radius: var(--checkout-radius-sm);
  overflow: hidden;
  transition: var(--checkout-transition);
  background: white;
}

.checkout-phone-group:hover {
  border-color: var(--checkout-gray-400);
}

.checkout-phone-group:focus-within {
  border-color: var(--checkout-primary);
  box-shadow: var(--checkout-shadow-focus);
}

.checkout-phone-group__prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--checkout-gray-50);
  border-right: 1px solid var(--checkout-gray-200);
  font-weight: 500;
  color: var(--checkout-gray-600);
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.checkout-phone-group__input {
  flex: 1;
  height: 100%;
  padding: 0 1rem;
  border: none;
  font-size: 1rem;
  color: var(--checkout-gray-800);
  outline: none;
  min-width: 0;
  background: transparent;
}

.checkout-phone-group__input::placeholder {
  color: var(--checkout-gray-400);
}

/* Identity Grid */
.checkout-identity-grid {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .checkout-identity-grid {
    grid-template-columns: 1fr;
  }
  .checkout-identity-grid select,
  .checkout-identity-grid input {
    width: 100%;
  }
}

/* Select Styling */
.checkout-form__select {
  width: 100%;
  height: 48px;
  padding: 0 2.5rem 0 1rem;
  border: 1px solid var(--checkout-gray-300);
  border-radius: var(--checkout-radius-sm);
  font-size: 1rem;
  color: var(--checkout-gray-800);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: var(--checkout-transition);
}

.checkout-form__select:hover {
  border-color: var(--checkout-gray-400);
}

.checkout-form__select:focus {
  border-color: var(--checkout-primary);
  box-shadow: var(--checkout-shadow-focus);
}

/* Quantity Selector (Premium) */
.checkout-qty {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--checkout-gray-300);
  border-radius: var(--checkout-radius-sm);
  overflow: hidden;
  background: white;
}

.checkout-qty__btn {
  width: 48px;
  height: 100%;
  background: var(--checkout-gray-50);
  border: none;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--checkout-gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--checkout-transition-fast);
  -webkit-user-select: none;
  user-select: none;
}

.checkout-qty__btn:hover {
  background: var(--checkout-gray-100);
  color: var(--checkout-gray-800);
}

.checkout-qty__btn:active {
  background: var(--checkout-gray-200);
}

.checkout-qty__input {
  width: 64px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 1px solid var(--checkout-gray-200);
  border-right: 1px solid var(--checkout-gray-200);
  font-weight: 600;
  font-size: 1rem;
  color: var(--checkout-gray-800);
  background: white;
}

.checkout-qty__input::-webkit-inner-spin-button,
.checkout-qty__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* === Buttons (Unified System) === */
.checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: var(--checkout-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--checkout-transition);
  text-decoration: none;
  white-space: nowrap;
}

.checkout-btn--full {
  width: 100%;
}

/* Primary Button - Single consistent style */
.checkout-btn--primary {
  background-color: var(--checkout-primary);
  background: var(--checkout-primary);
  color: white;
}

.checkout-btn--primary:hover {
  background: var(--checkout-primary-dark);
}

.checkout-btn--primary:active {
  background: var(--checkout-primary-darker);
  transform: scale(0.99);
}

.checkout-btn--primary:disabled {
  background: var(--checkout-gray-300);
  color: var(--checkout-gray-500);
  cursor: not-allowed;
}

/* Secondary Button */
.checkout-btn--secondary {
  background: var(--checkout-gray-100);
  color: var(--checkout-gray-700);
}

.checkout-btn--secondary:hover {
  background: var(--checkout-gray-200);
}

.checkout-btn--secondary:active {
  background: var(--checkout-gray-300);
}

/* Ghost Button */
.checkout-btn--ghost {
  background: transparent;
  color: var(--checkout-gray-600);
}

.checkout-btn--ghost:hover {
  background: var(--checkout-gray-100);
  color: var(--checkout-gray-800);
}

/* Size variants */
.checkout-btn--sm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.checkout-btn--lg {
  height: 56px;
  padding: 0 32px;
  font-size: 1.0625rem;
}

/* Remove deprecated orange variant in favor of unified design */
.checkout-btn--orange {
  background: var(--checkout-primary);
  color: white;
}

.checkout-btn--orange:hover {
  background: var(--checkout-primary-dark);
}

/* === Summary Card (Premium Booking Card) === */
.checkout-summary {
  background: var(--checkout-card-bg);
  border-radius: var(--checkout-radius-lg);
  box-shadow: var(--checkout-shadow-md);
  border: 1px solid var(--checkout-border-light);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .checkout-summary--sticky {
    position: sticky;
    top: 2rem;
  }
}

.checkout-summary__header {
  padding: 1.25rem 1.5rem;
  background: var(--checkout-gray-50);
  border-bottom: 1px solid var(--checkout-border-light);
}

.checkout-summary__header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--checkout-gray-800);
  margin: 0;
}

.checkout-summary__header p {
  font-size: 0.8125rem;
  color: var(--checkout-gray-500);
  margin: 0.25rem 0 0 0;
}

.checkout-summary__body {
  padding: 1.5rem;
}

/* Item Preview */
.checkout-summary__item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--checkout-border-light);
}

.checkout-summary__item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--checkout-radius-sm);
  flex-shrink: 0;
  background: var(--checkout-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
}

.checkout-summary__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-summary__brand-logo {
  width: 78%;
  height: 78%;
  object-fit: contain !important;
}

.checkout-summary__item-info {
  flex: 1;
  min-width: 0;
}

.checkout-summary__item-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--checkout-gray-800);
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.checkout-summary__item-info p {
  font-size: 0.875rem;
  color: var(--checkout-gray-500);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Price Rows */
.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
}

.checkout-summary__row-label {
  color: var(--checkout-gray-600);
}

.checkout-summary__row-value {
  font-weight: 500;
  color: var(--checkout-gray-800);
  text-align: right;
}

.checkout-summary__row-value--mono {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.75rem;
  background: var(--checkout-gray-100);
  padding: 4px 8px;
  border-radius: var(--checkout-radius-xs);
  word-break: break-all;
  line-height: 1.35;
}

/* Total Row */
.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0 0 0;
  margin-top: 1rem;
  border-top: 1px solid var(--checkout-gray-200);
}

.checkout-summary__total-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--checkout-gray-800);
}

.checkout-summary__total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--checkout-gray-900);
}

.checkout-summary__total-value small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--checkout-gray-500);
}

/* === Payment Badges (Refined) === */
.checkout-payment-methods {
  background: var(--checkout-gray-50);
  border: 1px solid var(--checkout-border-light);
  border-radius: var(--checkout-radius-sm);
  padding: 1rem;
}

.checkout-payment-methods__title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--checkout-gray-600);
  margin: 0 0 0.75rem 0;
}

.checkout-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkout-payment-badge {
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid var(--checkout-border);
  color: var(--checkout-gray-600);
}

/* Payment Method Logos */
.checkout-payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.checkout-payment-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: white;
  border: 1px solid var(--checkout-border);
  border-radius: 8px;
  padding: 8px 10px 6px;
  min-width: 70px;
  transition: all 0.15s ease;
}

.checkout-payment-logo:hover {
  border-color: var(--checkout-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.checkout-payment-logo svg {
  display: block;
  height: 24px;
  width: auto;
  flex-shrink: 0;
}

.checkout-payment-logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.checkout-payment-logo__name {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--checkout-gray-600);
  white-space: nowrap;
  text-align: center;
}

/* === Security / Trust (Subtle) === */
.checkout-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.checkout-trust__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--checkout-gray-500);
}

.checkout-trust__badge svg,
.checkout-trust__badge i {
  color: var(--checkout-primary);
  font-size: 14px;
}

.checkout-trust--inline {
  justify-content: flex-start;
  padding: 0.75rem 0 0 0;
  gap: 1rem;
}

/* Provider Note */
.checkout-provider {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--checkout-border-light);
  margin-top: 1rem;
}

.checkout-provider p {
  font-size: 0.75rem;
  color: var(--checkout-gray-400);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* === Waiting Page (Elegant) === */
.checkout-waiting {
  text-align: center;
  padding: 3rem 2rem;
}

.checkout-waiting__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--checkout-primary-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.checkout-waiting__spinner {
  width: 80px;
  height: 80px;
  border: 3px solid var(--checkout-primary-light);
  border-top-color: var(--checkout-primary);
  border-radius: 50%;
  animation: checkout-spin 1s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
}

.checkout-waiting__icon-inner {
  font-size: 32px;
}

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

.checkout-waiting__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--checkout-gray-800);
  margin: 0 0 0.5rem 0;
}

.checkout-waiting__text {
  font-size: 1rem;
  color: var(--checkout-gray-500);
  margin: 0 0 2rem 0;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.checkout-waiting__phone {
  font-weight: 600;
  color: var(--checkout-gray-800);
}

.checkout-waiting__progress {
  height: 4px;
  background: var(--checkout-gray-200);
  border-radius: 2px;
  overflow: hidden;
  max-width: 280px;
  margin: 0 auto 1.5rem;
}

.checkout-waiting__progress-bar {
  height: 100%;
  background: var(--checkout-primary);
  border-radius: 2px;
  animation: checkout-progress-pulse 2s ease-in-out infinite;
}

@keyframes checkout-progress-pulse {
  0% { width: 20%; opacity: 1; }
  50% { width: 80%; opacity: 0.7; }
  100% { width: 20%; opacity: 1; }
}

.checkout-waiting__note {
  font-size: 0.875rem;
  color: var(--checkout-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.checkout-waiting__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* === Help Section === */
.checkout-help {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
}

.checkout-help__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--checkout-gray-600);
  margin: 0 0 0.375rem 0;
}

.checkout-help__text {
  font-size: 0.8125rem;
  color: var(--checkout-gray-500);
  margin: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* === Confirmation / Ticket (Premium Success) === */
.checkout-ticket {
  background: var(--checkout-card-bg);
  border-radius: var(--checkout-radius-lg);
  box-shadow: var(--checkout-shadow-lg);
  border: 1px solid var(--checkout-border-light);
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
}

.checkout-ticket__header {
  background: var(--checkout-primary);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

.checkout-ticket__header-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 28px;
}

.checkout-ticket__header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.checkout-ticket__header p {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin: 0;
}

.checkout-ticket__body {
  padding: 1.5rem;
}

@media (min-width: 480px) {
  .checkout-ticket__body {
    padding: 2rem;
  }
}

/* Confirmation Alert */
.checkout-ticket__alert {
  padding: 1rem;
  border-radius: var(--checkout-radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.checkout-ticket__alert--success {
  background: var(--checkout-success-light);
  color: #065f46;
}

.checkout-ticket__alert--warning {
  background: var(--checkout-warning-light);
  color: #92400e;
}

.checkout-ticket__alert--error {
  background: var(--checkout-error-light);
  color: #991b1b;
}

.checkout-ticket__alert strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Details Grid */
.checkout-ticket__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 400px) {
  .checkout-ticket__details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.checkout-ticket__detail {
  padding: 0.75rem;
  background: var(--checkout-gray-50);
  border-radius: var(--checkout-radius-sm);
}

.checkout-ticket__detail--full {
  grid-column: span 2;
}

@media (max-width: 400px) {
  .checkout-ticket__detail--full {
    grid-column: span 1;
  }
}

.checkout-ticket__detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--checkout-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.checkout-ticket__detail-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--checkout-gray-800);
  word-break: break-all;
}

/* QR Code */
.checkout-ticket__qr {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  margin: 1.5rem 0;
  border-top: 1px dashed var(--checkout-gray-200);
  border-bottom: 1px dashed var(--checkout-gray-200);
  position: relative;
}

.checkout-ticket__qr::before,
.checkout-ticket__qr::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--checkout-bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.checkout-ticket__qr::before {
  left: -10px;
}

.checkout-ticket__qr::after {
  right: -10px;
}

.checkout-ticket__qr img {
  width: 140px;
  height: 140px;
  padding: 0.75rem;
  background: white;
  border-radius: var(--checkout-radius-sm);
  border: 1px solid var(--checkout-border);
}

/* Ticket Actions */
.checkout-ticket__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 400px) {
  .checkout-ticket__actions {
    flex-direction: row;
  }
  
  .checkout-ticket__actions .checkout-btn {
    flex: 1;
  }
}

/* Ticket Footer */
.checkout-ticket__footer {
  background: var(--checkout-gray-50);
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--checkout-border-light);
}

.checkout-ticket__footer p {
  font-size: 0.875rem;
  color: var(--checkout-gray-600);
  margin: 0 0 1rem 0;
}

.checkout-ticket__footer strong {
  color: var(--checkout-primary);
}

/* Ticket highlight box */
.checkout-ticket__highlight {
  background: var(--checkout-primary-lighter);
  border: 1px solid var(--checkout-primary-light);
  border-radius: var(--checkout-radius-sm);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.checkout-ticket__highlight p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--checkout-primary-dark);
  margin: 0;
}

/* === Alerts === */
.checkout-alert {
  padding: 1rem;
  border-radius: var(--checkout-radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkout-alert__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.checkout-alert--info {
  background: var(--checkout-info-light);
  color: #1e40af;
}

.checkout-alert--success {
  background: var(--checkout-success-light);
  color: #065f46;
}

.checkout-alert--warning {
  background: var(--checkout-warning-light);
  color: #92400e;
}

.checkout-alert--error {
  background: var(--checkout-error-light);
  color: #991b1b;
}

/* === Info Box === */
.checkout-info-box {
  background: var(--checkout-gray-50);
  border: 1px solid var(--checkout-border-light);
  border-radius: var(--checkout-radius-sm);
  padding: 1rem 1.25rem;
}

.checkout-info-box--highlight {
  background: var(--checkout-primary-lighter);
  border-color: var(--checkout-primary-light);
}

.checkout-info-box__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.checkout-info-box__row:first-child {
  padding-top: 0;
}

.checkout-info-box__row:last-child {
  padding-bottom: 0;
}

.checkout-info-box__label {
  font-size: 0.875rem;
  color: var(--checkout-gray-600);
}

.checkout-info-box__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--checkout-gray-800);
}

.checkout-info-box__value--large {
  font-size: 1.25rem;
  color: var(--checkout-primary-dark);
}

/* === Back Link === */
.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--checkout-gray-600);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: var(--checkout-transition-fast);
}

.checkout-back:hover {
  color: var(--checkout-gray-800);
}

.checkout-back svg {
  width: 16px;
  height: 16px;
}

/* === Item Title & Location === */
.checkout-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--checkout-gray-900);
  margin: 0 0 0.375rem 0;
  line-height: 1.3;
}

.checkout-item-location {
  font-size: 0.9375rem;
  color: var(--checkout-gray-500);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-item-location svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* === Dates Grid === */
.checkout-dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 400px) {
  .checkout-dates-grid {
    grid-template-columns: 1fr;
  }
}

/* === Short Input === */
.checkout-form__input--short {
  max-width: 140px;
}

/* === Actions === */
.checkout-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--checkout-border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* === Recap Card (Payment Page) === */
.checkout-recap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--checkout-gray-50);
  border: 1px solid var(--checkout-border-light);
  border-radius: var(--checkout-radius-sm);
  margin-bottom: 1.5rem;
}

.checkout-recap__media {
  width: 48px;
  height: 48px;
  border-radius: var(--checkout-radius-sm);
  background: white;
  border: 1px solid var(--checkout-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-recap__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-recap__brand-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.checkout-recap__content {
  flex: 1;
  min-width: 0;
}

.checkout-recap__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--checkout-gray-800);
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.checkout-recap__details {
  font-size: 0.875rem;
  color: var(--checkout-gray-500);
  margin: 0;
}

/* === Total Bar === */
.checkout-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--checkout-primary-lighter);
  border: 1px solid var(--checkout-primary-light);
  border-radius: var(--checkout-radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.checkout-total-bar__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--checkout-gray-700);
}

.checkout-total-bar__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--checkout-primary-dark);
}

.checkout-total-bar__value small {
  font-size: 0.875rem;
  font-weight: 500;
}

/* === Free Badge === */
.checkout-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--checkout-primary-lighter);
  color: var(--checkout-primary-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--checkout-radius-xs);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* === Divider === */
.checkout-divider {
  height: 1px;
  background: var(--checkout-border-light);
  margin: 1.5rem 0;
}

/* === Status Badge === */
.checkout-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.checkout-status--pending {
  background: var(--checkout-warning-light);
  color: #92400e;
}

.checkout-status--confirmed {
  background: var(--checkout-success-light);
  color: #065f46;
}

.checkout-status--cancelled {
  background: var(--checkout-error-light);
  color: #991b1b;
}

/* === Mobile Optimizations === */
@media (max-width: 640px) {
  .checkout-card__body {
    padding: 1rem;
  }
  
  .checkout-summary__body {
    padding: 1rem;
  }
  
  .checkout-btn {
    height: 48px;
  }
  
  .checkout-btn--lg {
    height: 52px;
  }
  
  .checkout-ticket__header {
    padding: 1.5rem 1rem;
  }
  
  .checkout-ticket__header h1 {
    font-size: 1.25rem;
  }
  
  .checkout-waiting {
    padding: 2rem 1rem;
  }

  .checkout-card__header {
    flex-wrap: wrap;
  }

  .checkout-card__header h2 {
    font-size: 1rem;
  }

  .checkout-info-box {
    padding: 0.75rem;
  }

  .checkout-recap {
    flex-direction: column;
  }

  .checkout-recap__image,
  .checkout-recap__brand-logo {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: var(--checkout-radius-sm);
  }

  .checkout-dates-grid {
    grid-template-columns: 1fr;
  }

  .checkout-progress__label {
    font-size: 0.7rem;
  }

  .checkout-total-bar {
    padding: 0.75rem;
  }
}

/* === Print Styles === */
@media print {
  .checkout-page {
    background: white;
    padding: 0;
  }
  
  .checkout-btn,
  .checkout-back,
  .checkout-progress {
    display: none !important;
  }
  
  .checkout-ticket {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* === Legacy compatibility (keeping for backward compat) === */
.checkout-security {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--checkout-border-light);
}

.checkout-security__badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--checkout-gray-400);
}

.checkout-security__badge i {
  color: var(--checkout-primary);
}

/* Old info-box compat */
.checkout-info-box--blue {
  background: var(--checkout-gray-50);
  border-color: var(--checkout-border);
}

.checkout-info-box__title {
  font-weight: 600;
  color: var(--checkout-gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.checkout-form__input:focus {
  border-color: var(--checkout-primary);
}

.checkout-form__input--error {
  border-color: var(--checkout-error);
}

/* Phone Input Group */
.checkout-phone-group {
  display: flex;
  border-radius: var(--checkout-radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.checkout-phone-group:focus-within {
  box-shadow: 0 0 0 2px var(--checkout-primary);
}

.checkout-phone-group__prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #f9fafb;
  border: 2px solid var(--checkout-border);
  border-right: none;
  font-weight: 500;
  color: #4b5563;
  font-size: 14px;
  flex-shrink: 0;
}

.checkout-phone-group__input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid var(--checkout-border);
  border-left: none;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.checkout-phone-group__input:focus {
  border-color: var(--checkout-primary);
}

.checkout-phone-group:focus-within .checkout-phone-group__prefix {
  border-color: var(--checkout-primary);
}

/* Identity Grid */
.checkout-identity-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .checkout-identity-grid {
    grid-template-columns: 1fr;
  }
  .checkout-identity-grid select,
  .checkout-identity-grid input {
    width: 100%;
  }
}

/* Quantity Selector */
.checkout-qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--checkout-border);
  border-radius: var(--checkout-radius-sm);
  overflow: hidden;
}

.checkout-qty__btn {
  width: 2.5rem;
  height: 2.5rem;
  background: #f8fafc;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-user-select: none;
  user-select: none;
}

.checkout-qty__btn:hover {
  background: var(--checkout-primary-light);
}

.checkout-qty__input {
  width: 4rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--checkout-border);
  border-right: 1px solid var(--checkout-border);
  padding: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.checkout-qty__input::-webkit-inner-spin-button,
.checkout-qty__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* === Buttons === */
.checkout-btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: var(--checkout-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.checkout-btn--primary {
  background-color: var(--checkout-primary);
  background: var(--checkout-primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.checkout-btn--primary svg,
.checkout-btn--primary span,
.checkout-btn--primary {
  z-index: 1;
}

.checkout-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.checkout-btn--primary:active {
  transform: translateY(0);
}

.checkout-btn--primary:disabled {
  background: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

#pay-btn {
  background-color: var(--checkout-primary);
  background: var(--checkout-primary-gradient);
  color: #ffffff !important;
}

#pay-btn svg {
  color: #ffffff;
  stroke: currentColor;
  flex-shrink: 0;
}

.checkout-btn--secondary {
  background: #f3f4f6;
  color: #374151;
}

.checkout-btn--secondary:hover {
  background: #e5e7eb;
}

.checkout-btn--orange {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.checkout-btn--orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

/* === Summary Card === */
.checkout-summary {
  background: var(--checkout-card-bg);
  border-radius: var(--checkout-radius);
  box-shadow: var(--checkout-shadow-lg);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .checkout-summary--sticky {
    position: sticky;
    top: 1rem;
  }
}

.checkout-summary__header {
  background: var(--checkout-primary-gradient);
  padding: 1.25rem 1.5rem;
  color: white;
}

.checkout-summary__header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.checkout-summary__header p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.checkout-summary__body {
  padding: 1.25rem;
}

.checkout-summary__item {
  display: flex;
  gap: 12px;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0.875rem;
}

.checkout-summary__item-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--checkout-primary-light), #a7f3d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  object-fit: cover;
}

.checkout-summary__item-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 3px 0;
  line-height: 1.3;
}

.checkout-summary__item-info p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 13px;
  gap: 8px;
}

.checkout-summary__row-label {
  color: #6b7280;
  flex-shrink: 0;
}

.checkout-summary__row-value {
  font-weight: 500;
  color: #1f2937;
  text-align: right;
  word-break: break-all;
}

.checkout-summary__row-value--mono {
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 11px;
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 5px;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-top: 0.5rem;
  border-top: 2px dashed var(--checkout-border);
}

.checkout-summary__total-label {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.checkout-summary__total-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--checkout-primary);
}

.checkout-summary__total-value small {
  font-size: 13px;
  font-weight: 500;
}

/* === Payment Badges === */
.checkout-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkout-payment-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.checkout-payment-badge--om {
  background: #fff7ed;
  color: #c2410c;
}

.checkout-payment-badge--momo {
  background: #fefce8;
  color: #a16207;
}

.checkout-payment-badge--visa {
  background: #eff6ff;
  color: #1d4ed8;
}

.checkout-payment-badge--mc {
  background: #fef2f2;
  color: #b91c1c;
}

/* Payment Method Logos (v2) */
.checkout-payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkout-payment-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: white;
  border: 1px solid var(--checkout-border);
  border-radius: 8px;
  padding: 8px 10px 6px;
  min-width: 70px;
  transition: all 0.15s ease;
}

.checkout-payment-logo:hover {
  border-color: var(--checkout-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.checkout-payment-logo svg {
  display: block;
  height: 24px;
  width: auto;
  flex-shrink: 0;
}

.checkout-payment-logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.checkout-payment-logo__name {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--checkout-gray-600);
  white-space: nowrap;
  text-align: center;
}

/* === Security Badges === */
.checkout-security {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.checkout-security__badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9ca3af;
}

.checkout-security__badge i {
  color: var(--checkout-primary);
}

/* === Waiting / Polling === */
.checkout-waiting {
  text-align: center;
  padding: 2rem;
}

.checkout-waiting__spinner {
  width: 64px;
  height: 64px;
  border: 4px solid var(--checkout-primary-light);
  border-top-color: var(--checkout-primary);
  border-radius: 50%;
  animation: checkout-spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

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

.checkout-waiting__progress {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.checkout-waiting__progress-bar {
  height: 100%;
  background: var(--checkout-primary-gradient);
  animation: checkout-pulse 1.5s ease-in-out infinite;
}

@keyframes checkout-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* === Confirmation / Ticket === */
.checkout-ticket {
  background: linear-gradient(145deg, #ffffff, #f9fafb);
  box-shadow: var(--checkout-shadow-lg);
  border-radius: var(--checkout-radius);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}

.checkout-ticket__header {
  background: var(--checkout-primary-gradient);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.checkout-ticket__header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
}

.checkout-ticket__header p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
}

.checkout-ticket__body {
  padding: 1.5rem;
}

.checkout-ticket__cut-line {
  border-top: 2px dashed var(--checkout-border);
  margin: 1.5rem 0;
  position: relative;
}

.checkout-ticket__cut-line::before,
.checkout-ticket__cut-line::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--checkout-bg);
  border-radius: 50%;
  top: -9px;
}

.checkout-ticket__cut-line::before {
  left: -9px;
}

.checkout-ticket__cut-line::after {
  right: -9px;
}

.checkout-ticket__qr {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.checkout-ticket__qr img {
  width: 128px;
  height: 128px;
  padding: 0.75rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--checkout-border);
}

.checkout-ticket__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .checkout-ticket__details {
    grid-template-columns: 1fr;
  }
}

.checkout-ticket__detail {
  text-align: center;
}

.checkout-ticket__detail-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.checkout-ticket__detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  word-break: break-all;
}

.checkout-ticket__footer {
  background: #f9fafb;
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid #f3f4f6;
}

.checkout-ticket__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
}

@media (min-width: 480px) {
  .checkout-ticket__actions {
    flex-direction: row;
  }
}

/* === Alerts === */
.checkout-alert {
  padding: 1rem;
  border-radius: var(--checkout-radius-xs);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

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

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

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

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

/* === Status Badges === */
.checkout-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.checkout-status--pending {
  background: #fef3c7;
  color: #92400e;
}

.checkout-status--confirmed {
  background: #d1fae5;
  color: #065f46;
}

.checkout-status--cancelled {
  background: #fee2e2;
  color: #991b1b;
}

/* === Info Box === */
.checkout-info-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--checkout-radius-xs);
  padding: 0.875rem 1rem;
}

.checkout-info-box--blue {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.checkout-info-box p {
  margin: 0;
  font-size: 0.875rem;
}

.checkout-info-box__title {
  font-weight: 600;
  color: #047857;
  margin-bottom: 0.25rem;
}

.checkout-info-box--blue .checkout-info-box__title {
  color: #1e40af;
}

/* === Mobile Optimizations === */
@media (max-width: 640px) {
  .checkout-page {
    padding: 0.75rem;
  }
  
  .checkout-card__body {
    padding: 1rem;
  }
  
  .checkout-summary__body {
    padding: 1rem;
  }
  
  .checkout-btn {
    padding: 14px 16px;
  }
  
  .checkout-ticket__body {
    padding: 1rem;
  }
}

/* Mobile: summary above form */
@media (max-width: 1023px) {
  .checkout-grid {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .checkout-grid--summary-first {
    flex-direction: column;
  }
}

/* === Provider Badge === */
.checkout-provider {
  text-align: center;
  margin-top: 1.25rem;
}

.checkout-provider p {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.checkout-provider__logo {
  height: 28px;
  opacity: 0.7;
}

/* === Back Link === */
.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.checkout-back:hover {
  color: #1f2937;
}

/* === Total Bar === */
.checkout-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--checkout-primary-light);
  border: 1px solid #bbf7d0;
  border-radius: var(--checkout-radius-xs);
  padding: 0.875rem 1rem;
  margin-top: 0.75rem;
}

.checkout-total-bar p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--checkout-primary-dark);
  margin: 0;
}

/* === Divider === */
.checkout-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 1.25rem 0;
}

/* === Free Badge === */
.checkout-free-badge {
  background: var(--checkout-primary-light);
  color: var(--checkout-primary-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--checkout-radius-xs);
  font-weight: 600;
  text-align: center;
}
