:root {
      /* Clean Black and White Theme */
      --primary-gold: #000000;
      --primary-gold-dark: #333333;
      --primary-gold-light: #666666;
      --primary-gold-rgb: 0, 0, 0;
      
      --background-primary: #ffffff;
      --background-secondary: #fafafa;
      --background-tertiary: #f5f5f5;
      
      --surface-clean: #ffffff;
      --surface-subtle: #f8f9fa;
      --surface-elevated: #ffffff;
      
      --text-primary: #000000;
      --text-secondary: #1a1a1a;
      --text-tertiary: #333333;
      --text-muted: #666666;
      
      --border-light: #e1e5e9;
      --border-medium: #d1d5db;
      --border-focus: #000000;
      
      --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.05);
      --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
      --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.1);
      
      --success: #059669;
      --warning: #d97706;
      --error: #dc2626;
      
      /* Clean Typography System */
      --font-system: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --font-display: 'CASTELAR', 'Montserrat', sans-serif;
      --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
      
      /* Smooth Transitions */
      --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
      --transition-fast: 200ms var(--transition-smooth);
      --transition-normal: 300ms var(--transition-smooth);
      --transition-slow: 500ms var(--transition-smooth);
      
      /* Spacing & Layout */
      --container-max: 1400px;
      --section-padding: clamp(2rem, 4vw, 3rem);
      --border-radius: 12px;
      --border-radius-lg: 16px;
      --border-radius-xl: 20px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--font-system);
      background: var(--background-secondary);
      color: var(--text-primary);
      line-height: 1.6;
      min-height: 100vh;
      overflow-x: hidden;
      font-size: 16px;
      font-weight: 400;
    }
    /* Use CASTELAR for headings as an example */
    h1, h2, h3, .checkout-header h1 {
      font-family: 'CASTELAR', var(--font-system);
    }
    /* Use CASTELAR for display font */
    .brand-display, .checkout-header h1.brand {
      font-family: 'CASTELAR', var(--font-system);
    }

    /* Premium Glass Container */
    .glass-container {
      background: var(--surface-elevated);
      border: 1px solid var(--border-light);
      border-radius: var(--border-radius-lg);
      box-shadow: var(--shadow-subtle);
      position: relative;
      transition: all var(--transition-fast);
      backdrop-filter: blur(10px);
    }

    .glass-container:hover {
      border-color: var(--border-medium);
      box-shadow: var(--shadow-medium);
      transform: translateY(-2px);
    }

    /* Enhanced Main Layout */
    #main-content {
      padding: var(--section-padding);
      padding-top: calc(80px + var(--section-padding));
      max-width: var(--container-max);
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    @media (max-width: 768px) {
      #main-content {
        padding: 1.5rem;
        padding-top: calc(70px + 1.5rem);
      }
    }

    /* Premium Checkout Header */
    .checkout-header {
      text-align: center;
      margin-bottom: 3rem;
      position: relative;
    }

    .checkout-header h1 {
      font-family: var(--font-display);
      font-size: clamp(3rem, 6vw, 4rem);
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 0.5rem;
      letter-spacing: -0.01em;
    }

    .checkout-header p {
      font-family: var(--font-body);
      font-size: 1rem;
      color: var(--text-secondary);
      font-weight: 400;
      max-width: 600px;
      margin: 0 auto;
    }

    /* Responsive Grid Layout */
    .checkout-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      align-items: start;
    }

    @media (min-width: 1024px) {
      .checkout-layout {
        grid-template-columns: 1.3fr 0.7fr;
        gap: 3rem;
      }
    }

    /* Form Section Order */
    .checkout-form-section {
      order: 2;
    }

    @media (min-width: 1024px) {
      .checkout-form-section {
        order: 1;
      }
    }

    .checkout-summary-section {
      order: 1;
    }

    @media (min-width: 1024px) {
      .checkout-summary-section {
        order: 2;
        position: sticky;
        top: 2rem;
      }
    }    /* Responsive grid layout */
    .checkout-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
      align-items: start;
    }

    @media (min-width: 1024px) {
      .checkout-layout {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2rem;
      }
    }

    /* Enhanced Form Sections */
    .form-section {
      margin-bottom: 2rem;
      padding: 2rem;
      border-radius: var(--border-radius-lg);
      position: relative;
      background: var(--surface-elevated);
    }

    /* Premium Section Headers */
    .section-header {
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      position: relative;
    }

    .section-header h2 {
      font-family: var(--font-system);
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.5rem;
    }

    .section-header h2 i {
      color: var(--text-primary);
      font-size: 1.2rem;
    }

    .section-description {
      font-family: var(--font-body);
      font-size: 0.9rem;
      color: var(--text-tertiary);
      line-height: 1.5;
      font-weight: 400;
      padding: 0.75rem 1rem;
      background: rgba(0, 0, 0, 0.05);
      border-radius: var(--border-radius);
      border-left: 3px solid var(--text-primary);
      margin-top: 0.5rem;
    }    /* Premium Form Controls */
    .form-group {
      margin-bottom: 1.5rem;
      position: relative;
    }

    .form-group label {
      display: block;
      font-family: var(--font-system);
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .form-group label i {
      color: var(--text-primary);
      font-size: 0.8rem;
      opacity: 0.9;
    }

    .required {
      color: var(--error);
      font-size: 0.75rem;
      font-weight: 700;
    }

    input, select {
      width: 100%;
      padding: 0.875rem 1rem;
      background: var(--surface-clean);
      border: 2px solid var(--border-light);
      border-radius: var(--border-radius);
      color: var(--text-primary);
      font-size: 0.95rem;
      font-family: var(--font-system);
      font-weight: 400;
      transition: all var(--transition-fast);
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    input:focus, select:focus {
      outline: none;
      border-color: var(--text-primary);
      background: var(--surface-elevated);
      box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 4px rgba(0, 0, 0, 0.1);
      transform: translateY(-1px);
    }

    input::placeholder {
      color: var(--text-muted);
      font-style: italic;
    }

    .field-hint {
      font-family: var(--font-body);
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.4rem;
      display: block;
      font-weight: 400;
      line-height: 1.4;
      padding: 0.5rem 0.75rem;
      background: var(--surface-subtle);
      border-radius: var(--border-radius);
      border-left: 3px solid var(--border-medium);
      transition: all var(--transition-fast);
    }

    .field-hint:hover {
      background: rgba(0, 0, 0, 0.06);
      border-left-color: var(--text-primary);
    }

    /* Form Row Layout */
    .form-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    @media (min-width: 640px) {
      .form-row {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* Modern Stripe Payment Element Styling */
    .payment-element {
      padding: 1rem;
      background: var(--surface-clean);
      border: 2px solid var(--border-light);
      border-radius: var(--border-radius);
      transition: all var(--transition-fast);
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
      min-height: 200px; /* Ensure adequate space for payment methods */
    }

    .payment-element:focus-within {
      border-color: var(--text-primary);
      box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 4px rgba(0, 0, 0, 0.1);
    }

    /* Payment Method Info Display */
    .payment-method-info-display {
      margin-top: 1rem;
      padding: 0.75rem;
      background: var(--surface-subtle);
      border-radius: var(--border-radius);
      border: 1px solid var(--border-light);
    }

    .payment-method-selected {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .method-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 600;
      color: var(--text-primary);
    }

    .method-icon {
      font-size: 1.25rem;
    }

    .method-name {
      font-size: 1rem;
      font-weight: 600;
    }

    .method-description {
      color: var(--text-muted);
      font-size: 0.875rem;
      margin-left: 2rem;
    }

    .redirect-notice {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--primary-gold);
      font-size: 0.875rem;
      margin-left: 2rem;
      margin-top: 0.25rem;
    }

    .redirect-notice i {
      font-size: 0.75rem;
    }

    /* Legacy card element styles for backwards compatibility */
    .card-element {
      padding: 1rem;
      background: var(--surface-clean);
      border: 2px solid var(--border-light);
      border-radius: var(--border-radius);
      transition: all var(--transition-fast);
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .card-element:focus-within {
      border-color: var(--text-primary);
      box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 4px rgba(0, 0, 0, 0.1);
    }/* Form row layout */
    .form-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }

    @media (min-width: 640px) {
      .form-row {
        grid-template-columns: 1fr 1fr;
      }    }    /* Stripe Elements styling - cleaner */
    .card-element {
      padding: 0.75rem;
      background: #ffffff;
      border: 1px solid var(--border-light);
      border-radius: var(--border-radius);
      transition: all var(--transition-fast);
    }

    .card-element:focus-within {
      border-color: var(--border-focus);
      box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }

    /* Ensure card element never shows error state by default */
    .card-element.StripeElement--invalid {
      border-color: var(--border-light) !important;
    }

    .card-element.StripeElement--empty {
      border-color: var(--border-light) !important;
    }    /* Payment logos - modern payment methods */
    .payment-logos {
      display: flex;
      gap: 0.75rem;
      justify-content: center;
      align-items: center;
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--border-light);
      flex-wrap: wrap;
    }

    .payment-logos i {
      transition: all var(--transition-fast);
      opacity: 0.8;
      font-size: 1.5rem;
    }

    .payment-logos i:hover {
      opacity: 1;
      transform: scale(1.1);
    }

    .payment-method-badge {
      background: var(--surface-subtle);
      color: var(--text-muted);
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 500;
      border: 1px solid var(--border-light);
    }

    /* Empty cart notice styling */
    .empty-cart-notice {
      text-align: center;
      padding: 3rem 2rem;
      background: var(--surface-clean);
      border-radius: var(--border-radius);
      border: 2px dashed var(--border-light);
    }

    .empty-cart-notice .notice-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
      opacity: 0.7;
    }

    .empty-cart-notice .notice-content h3 {
      color: var(--text-primary);
      margin-bottom: 0.5rem;
      font-size: 1.25rem;
    }

    .empty-cart-notice .notice-content p {
      color: var(--text-muted);
      margin-bottom: 1.5rem;
    }

    .empty-cart-notice .btn {
      padding: 0.75rem 1.5rem;
      background: var(--primary-gold);
      color: white;
      text-decoration: none;
      border-radius: var(--border-radius);
      font-weight: 600;
      transition: all var(--transition-fast);
      display: inline-block;
    }

    .empty-cart-notice .btn:hover {
      background: var(--primary-gold-dark);
      transform: translateY(-2px);
    }

    /* Empty cart notice styling */
    .empty-cart-notice {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 3rem 1.5rem;
      text-align: center;
      background: var(--surface-clean);
      border-radius: var(--border-radius);
      border: 1px solid var(--border-light);
    }

    .empty-cart-notice .notice-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
      opacity: 0.6;
    }

    .empty-cart-notice .notice-content h3 {
      color: var(--text-primary);
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .empty-cart-notice .notice-content p {
      color: var(--text-muted);
      margin-bottom: 1.5rem;
      line-height: 1.5;
    }

    .empty-cart-notice .btn {
      padding: 0.75rem 1.5rem;
      background: var(--primary-gold);
      color: white;
      text-decoration: none;
      border-radius: var(--border-radius);
      font-weight: 500;
      transition: all var(--transition-fast);
    }

    .empty-cart-notice .btn:hover {
      background: var(--primary-gold-dark);
      transform: translateY(-2px);
      box-shadow: var(--shadow-medium);
    }

    .payment-logos i:hover {
      opacity: 1;
      transform: scale(1.1);
    }

    /* Individual card brand colors */
    .payment-logos .fa-cc-visa {
      color: #1A1F71;
    }

    .payment-logos .fa-cc-mastercard {
      color: #EB001B;
    }

    .payment-logos .fa-cc-amex {
      color: #006FCF;
    }

    .payment-logos .fa-cc-discover {
      color: #FF6000;
    }

    .payment-logos .fa-cc-diners-club {
      color: #0079BE;
    }

    .payment-logos .fa-cc-jcb {
      color: #006EBC;
    }    /* Premium Submit Button */
    .checkout-button {
      width: 100%;
      padding: 1.25rem 2rem;
      background: var(--text-primary);
      border: 2px solid var(--text-primary);
      border-radius: var(--border-radius);
      color: #ffffff;
      font-size: 1rem;
      font-weight: 600;
      font-family: var(--font-system);
      cursor: pointer;
      transition: all var(--transition-normal);
      margin-top: 2rem;
      box-shadow: var(--shadow-medium);
      position: relative;
      overflow: hidden;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .checkout-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
      );
      transition: left var(--transition-slow);
    }

    .checkout-button:hover::before {
      left: 100%;
    }

    .checkout-button:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-elevated);
      background: var(--text-secondary);
    }

    .checkout-button:active {
      transform: translateY(-1px);
    }/* Security badges */
    .security-badges {
      display: flex;
      gap: 0.75rem;
      justify-content: center;
      margin-top: 1rem;
    }    /* Security badges - cleaner */
    .security-badge {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.8rem;
      color: var(--text-muted);
      font-family: var(--font-system);
      font-weight: 500;
      background: var(--surface-clean);
      padding: 0.5rem 0.75rem;
      border-radius: var(--border-radius);
      border: 1px solid var(--border-light);
    }

    .security-badge i {
      color: var(--text-primary);
    }    /* Premium Order Summary */
    .order-summary {
      padding: 2rem;
      border-radius: var(--border-radius-lg);
      background: var(--surface-elevated);
      border: 1px solid var(--border-light);
      box-shadow: var(--shadow-medium);
      position: relative;
    }

    .order-summary h3 {
      font-family: var(--font-system);
      font-size: 1.3rem;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 2rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding-bottom: 1rem;
      border-bottom: 2px solid var(--border-light);
      position: relative;
    }

    .order-summary h3 i {
      color: var(--text-primary);
      font-size: 1.3rem;
    }/* Shipping options */
    .shipping-options {
      margin: 1rem 0;
    }

    .shipping-option {
      margin-bottom: 0.5rem;
    }

    .shipping-option input[type="radio"] {
      display: none;
    }    /* Shipping options - cleaner styling */
    .shipping-option label {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem;
      background: var(--surface-clean);
      border: 1px solid var(--border-light);
      border-radius: var(--border-radius);
      cursor: pointer;
      transition: all var(--transition-fast);
      min-height: 50px;
    }

    .shipping-option label:hover {
      border-color: var(--border-medium);
      background: var(--surface-subtle);
    }

    .shipping-option input:checked + label {
      background: rgba(0, 0, 0, 0.05);
      border-color: var(--text-primary);
    }/* Shipping icons */
    .shipping-icon {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.1);
      border-radius: 6px;
      margin-right: 0.3rem;
      flex-shrink: 0;
      transition: all var(--transition-fast);
    }

    .shipping-icon i {
      color: var(--text-primary);
      font-size: 0.9rem;
      transition: all var(--transition-fast);
    }

    .shipping-option input:checked + label .shipping-icon {
      background: rgba(0, 0, 0, 0.2);
      box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
    }

    .shipping-option input:checked + label .shipping-icon i {
      color: var(--text-primary);
      transform: scale(1.1);
    }    .option-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }.option-name {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 0.9rem;
      line-height: 1.3;
      font-family: var(--font-system);
    }

    .option-time {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.3;
      font-family: var(--font-system);
    }

    .option-price {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 0.9rem;
      margin-left: auto;
      flex-shrink: 0;
    }    /* Promo section - simplified */
    .promo-section {
      margin: 1.5rem 0;
      padding-top: 1rem;
      border-top: 1px solid var(--border-light);
    }

    .promo-input {
      display: flex;
      gap: 0.5rem;
      margin-top: 0.75rem;
    }

    .promo-input input {
      flex: 1;
      margin-bottom: 0;
      padding: 0.75rem;
      font-size: 0.9rem;
    }

    .promo-input button {
      padding: 0.75rem 1rem;
      background: var(--surface-clean);
      border: 1px solid var(--border-medium);
      border-radius: var(--border-radius);
      color: var(--text-primary);
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition-fast);
      white-space: nowrap;
      min-height: 44px;
    }

    .promo-input button:hover {
      background: var(--text-primary);
      color: white;
      border-color: var(--text-primary);
    }    /* Promo message styling - simplified */
    .promo-message {
      margin-top: 0.5rem;
      padding: 0.5rem 0.75rem;
      border-radius: var(--border-radius);
      font-size: 0.8rem;
      font-weight: 500;
      min-height: 18px;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--surface-subtle);
      border: 1px solid var(--border-light);
      transition: all var(--transition-fast);
    }

    .promo-message.success {
      color: var(--success);
      background: rgba(52, 199, 89, 0.05);
      border-color: var(--success);
    }.promo-message.success::before {
      content: '✓';
      font-weight: 600;
      font-size: 0.9rem;
    }    .promo-message.error {
      color: var(--error);
      background: rgba(255, 59, 48, 0.05);
      border-color: var(--error);
    }

    .promo-message.error::before {
      content: '⚠';
      font-weight: 600;
      font-size: 0.9rem;
    }    /* Order totals - cleaner */
    .order-totals {
      margin-top: 1.5rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-light);
    }

    .total-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.75rem;
      font-size: 0.95rem;
      font-weight: 500;
      font-family: var(--font-system);
      color: var(--text-primary);
    }

    .total-row.total {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text-primary);
      padding-top: 0.75rem;
      border-top: 2px solid var(--border-medium);
      margin-top: 0.75rem;
      font-family: var(--font-system);
    }

    .total-row.total span:last-child {
      color: var(--text-primary);
      font-size: 1.2rem;
    }

    .total-row.discount {
      color: var(--success);
      font-weight: 600;
      background: rgba(52, 199, 89, 0.05);
      border: 1px solid rgba(52, 199, 89, 0.2);
      border-radius: var(--border-radius);
      padding: 0.5rem 0.75rem;
      margin: 0.4rem 0;
    }

    .total-row.discount span:first-child::before {
      content: '🎉 ';
      font-size: 0.9rem;
    }

    .total-row.discount.hidden {
      display: none;
    }    /* Product cards - simplified */
    .product-card {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem;
      margin-bottom: 1rem;
      background: var(--surface-clean);
      border-radius: var(--border-radius);
      border: 1px solid var(--border-light);
      transition: all var(--transition-fast);
    }

    .product-card:hover {
      border-color: var(--border-medium);
      box-shadow: 0 2px 8px var(--shadow-subtle);
    }    .product-image {
      width: 70px;
      height: 85px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      overflow: hidden;
      background: var(--surface-subtle);
      border: 1px solid var(--border-light);
      flex-shrink: 0;
    }

    .product-image img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .product-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }    .product-details h3 {
      margin: 0;
      color: var(--text-primary);
      font-size: 0.95rem;
      font-weight: 600;
      line-height: 1.3;
      font-family: var(--font-system);
    }    .product-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
      margin-top: 0.4rem;
    }

    .product-price {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 0.9rem;
    }    .product-quantity {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--success);
      background: rgba(52, 199, 89, 0.08);
      border: 1.5px solid var(--success);
      padding: 0.25rem 0.5rem;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 28px;
      height: 24px;
      box-shadow: 
        0 2px 8px rgba(52, 199, 89, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
      transition: all var(--transition-fast);
      letter-spacing: 0.025em;
    }

    .product-quantity:hover {
      background: rgba(52, 199, 89, 0.12);
      border-color: color(display-p3 0.25 0.82 0.4);
      transform: scale(1.05);
      box-shadow: 
        0 4px 12px rgba(52, 199, 89, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    }    /* Trust badges - simplified */
    .trust-badges {
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-light);
    }

    .trust-badge {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      font-size: 0.8rem;
      color: var(--text-muted);
      font-family: var(--font-system);
      font-weight: 500;
      gap: 0.5rem;
      padding: 0.75rem 0.4rem;
      background: var(--surface-clean);
      border-radius: var(--border-radius);
      border: 1px solid var(--border-light);
      transition: all var(--transition-fast);
    }

    .trust-badge:hover {
      border-color: var(--border-medium);
      background: var(--surface-subtle);
    }.trust-badge i {
      color: var(--text-primary);
      font-size: 1.1rem;
    }

    /* Loading states */
    .loading-spinner {
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255, 255, 255, 0.2);
      border-top: 2px solid var(--text-primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      display: inline-block;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .hidden {
      display: none !important;
    }

    /* Error states */
    .error-message {
      color: var(--error);
      font-size: 0.875rem;
      margin-top: 0.5rem;
      font-weight: 500;
      display: none; /* Hidden by default */
      padding: 0.5rem;
      background: rgba(220, 38, 38, 0.05);
      border: 1px solid rgba(220, 38, 38, 0.2);
      border-radius: var(--border-radius);
    }

    /* Show error message when it has content */
    .error-message:not(:empty) {
      display: block;
    }

    /* Responsive adjustments */
    @media (max-width: 640px) {
      :root {
        --section-padding: 1.5rem;
        --border-radius: 16px;
        --border-radius-lg: 20px;
      }

      .form-section,
      .order-summary {
        padding: 1.5rem;
      }

      .checkout-header h1 {
        font-size: 2.5rem;
      }

      .payment-method-tabs {
        flex-direction: column;
      }

      .trust-badges {
        flex-direction: column;
        gap: 0.75rem;
      }

      .checkout-container {
        max-width: 100%;
        margin: 0 1rem;
      }

      .form-group {
        margin-bottom: 1rem;
      }

      .form-control {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevent zoom on iOS */
      }

      .place-order-button {
        padding: 1rem 2rem;
        font-size: 1.125rem;
      }
      
      /* Prevent mobile zoom on inputs */
      input, select, textarea {
        font-size: 16px !important;
        transform-origin: left top;
        transform: scale(1);
      }
      
      /* Mobile-specific header logo override */
      #site-header .logo {
        max-width: 80px;
        max-height: 40px;
        height: auto;
        width: auto;
      }
      
      /* Ensure checkout page content doesn't cause horizontal scroll */
      #main-content {
        overflow-x: hidden;
        max-width: 100vw;
      }
      
      .checkout-layout {
        overflow-x: hidden;
      }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
      :root {
        --surface-glass: rgba(255, 255, 255, 0.1);
        --border-glass: rgba(255, 255, 255, 0.2);
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
      }
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }    /* Enhanced focus visibility - simplified */
    .payment-tab:focus-visible,
    input:focus-visible,
    select:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--border-focus);
      outline-offset: 2px;
    }

    /* Header font-weight override to prevent bold text */
    #site-header .nav-links a {
      font-weight: 500 !important;
      font-family: 'Montserrat', sans-serif !important;
    }

    #site-header .hamburger strong {
      font-weight: 600 !important;
      font-family: 'Montserrat', sans-serif !important;
    }

    /* 🌍 Country Selector Specific Styling */
    #country {
      position: relative;
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
      background-position: right 0.75rem center;
      background-repeat: no-repeat;
      background-size: 1.5em 1.5em;
      padding-right: 3rem;
    }

    #country:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      background-color: var(--background-tertiary);
    }

    #country option {
      padding: 0.5rem;
      background: var(--surface-clean);
      color: var(--text-primary);
    }

    /* Loading state for country selector */
    #country.loading {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 2v4m0 12v4m10-10h-4m-12 0H2m15.364-6.364l-2.828 2.828M6.464 6.464L3.636 9.292m0 5.416l2.828-2.828m9.9 2.828l2.828 2.828'/%3e%3c/svg%3e");
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      from { background-position: right 0.75rem center; }
      to { background-position: right 0.75rem center; }
    }

    /* Field animation for smooth transitions */
    .form-group label,
    .form-group input,
    .form-group select {
      transition: all var(--transition-normal);
    }

    /* Highlight changed fields briefly */
    .field-updated {
      animation: fieldUpdate 0.6s ease-out;
    }

    @keyframes fieldUpdate {
      0% { 
        background-color: rgba(0, 0, 0, 0.1);
        transform: scale(1.02);
      }
      100% { 
        background-color: transparent;
        transform: scale(1);
      }
    }