/*
 * Wright Courier Calculator - Brand System & Design Tokens
 * Professional courier booking experience with accessible design
 * Brand palette: Navy primary, Gold accents, Ivory surfaces
 */

/* CSS Custom Properties (Design Tokens) */
:root {
    /* Brand Colors */
    --brand-navy: #1e3a8a;
    --brand-ivory: #fefce8;
    --accent-gold: #f59e0b;
    
    /* Neutral Palette */
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-200: #e2e8f0;
    --slate-50: #f8fafc;
    
    /* Typography */
    --font-h1: 32px;
    --font-section: 20px;
    --font-body: 16px;
    --font-caption: 13px;
    --line-height-tight: 1.35;
    --line-height-normal: 1.6;
    
    /* Spacing & Layout */
    --radius-card: 16px;
    --radius-input: 14px;
    --radius-pill: 24px;
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-raised: 0 4px 12px rgba(0,0,0,0.1);
    
    /* Focus & Interaction */
    --focus-ring: 0 0 0 2px var(--accent-gold);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* CSS Reset and Isolation for Calculator Container */
.wwc-calculator-container,
.wwc-calculator-container * {
    box-sizing: border-box !important;
}

.wwc-calculator-container {
    /* Complete isolation */
    isolation: isolate !important;
    position: relative !important;
    z-index: 1 !important;
    
    /* Reset all possible inherited styles */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    font-size: var(--font-body) !important;
    line-height: var(--line-height-normal) !important;
    color: var(--slate-900) !important;
    background: transparent !important;
    margin: 40px 0 !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
    clear: both !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
}

/* Reset for all nested elements */
.wwc-calculator-container * {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: inherit !important;
    font-family: inherit !important;
    vertical-align: baseline !important;
    text-decoration: none !important;
    list-style: none !important;
    outline: none !important;
}

/* Specific background resets - exclude input fields */
.wwc-calculator-container *:not(input):not(button):not(.wwc-form-section):not(.wwc-address-input):not(.wwc-calculate-button):not(.wwc-sticky-cta):not(.wwc-retry-button):not(.pill-toggle) {
    background: transparent !important;
}

/* Error Message Styling */
.wwc-calculator-container .wwc-error-message {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #7f1d1d !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    font-weight: 500 !important;
}

/* Test Mode Notice */
.wwc-calculator-container .wwc-test-mode-notice {
    background: linear-gradient(135deg, var(--brand-ivory) 0%, #fde047 100%) !important;
    border: 1px solid var(--accent-gold) !important;
    border-left: 4px solid var(--accent-gold) !important;
    color: var(--slate-700) !important;
    padding: 16px 20px !important;
    border-radius: var(--radius-card) !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: var(--shadow-soft) !important;
    font-size: var(--font-body) !important;
}

.wwc-calculator-container .wwc-test-mode-notice strong {
    font-weight: 700 !important;
    color: #78350f !important;
}

.wwc-calculator-container .wwc-test-mode-notice::before {
    content: '⚠️' !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

/* Main Calculator Container with Trust Bar */
.wwc-calculator-container .wwc-courier-calculator {
    max-width: 100% !important;
}

/* Trust & Service Info Bar */
.wwc-calculator-container .wwc-trust-bar {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--radius-card) !important;
    padding: 12px 20px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
    font-size: var(--font-caption) !important;
    color: var(--slate-700) !important;
}

.wwc-calculator-container .wwc-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 500 !important;
}

/* Form Section */
.wwc-calculator-container .wwc-form-section {
    background: #ffffff !important;
    border-radius: var(--radius-card) !important;
    padding: 40px !important;
    box-shadow: var(--shadow-soft) !important;
    border: 1px solid var(--slate-200) !important;
    position: relative !important;
    overflow: hidden !important;
}

.wwc-calculator-container .wwc-form-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--brand-navy) 0%, var(--accent-gold) 50%, var(--brand-navy) 100%) !important;
}

.wwc-calculator-container .wwc-form-section h3 {
    margin: 0 0 8px 0 !important;
    color: var(--slate-900) !important;
    font-size: var(--font-h1) !important;
    font-weight: 800 !important;
    text-align: center !important;
    line-height: var(--line-height-tight) !important;
    letter-spacing: -0.025em !important;
}

.wwc-calculator-container .wwc-form-section .subtitle {
    margin: 0 0 35px 0 !important;
    color: var(--slate-700) !important;
    font-size: var(--font-body) !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: var(--line-height-normal) !important;
}

/* Removed h3::after as we now have subtitle instead */

/* Address Section - Clean 2-column layout with swap button */
.wwc-calculator-container .wwc-addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
    position: relative !important;
    align-items: start !important;
}

/* Swap Button */
.wwc-calculator-container .wwc-swap-button {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: var(--brand-navy) !important;
    border: 3px solid white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    box-shadow: var(--shadow-raised) !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.wwc-calculator-container .wwc-swap-button:hover {
    background: var(--accent-gold) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

.wwc-calculator-container .wwc-swap-button:active {
    transform: translate(-50%, -50%) scale(0.95) !important;
}

/* Field Groups */
.wwc-calculator-container .wwc-field-group {
    margin-bottom: 35px !important;
}

.wwc-calculator-container .wwc-field-group label {
    display: block !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
    color: var(--slate-900) !important;
    font-size: var(--font-body) !important;
    letter-spacing: -0.01em !important;
}

.wwc-calculator-container .required {
    color: #ef4444 !important;
    font-weight: 900 !important;
    margin-left: 2px !important;
}

/* Address Inputs */
.wwc-calculator-container .wwc-pickup,
.wwc-calculator-container .wwc-dropoff {
    position: relative !important;
}

.wwc-calculator-container .wwc-address-input {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid var(--slate-200) !important;
    border-radius: var(--radius-input) !important;
    font-size: var(--font-body) !important;
    font-weight: 500 !important;
    transition: var(--transition-smooth) !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    box-shadow: var(--shadow-soft) !important;
    color: var(--slate-900) !important;
    font-family: inherit !important;
    caret-color: var(--slate-900) !important;
}

/* Defensive fix: if a theme/page builder duplicates the address
   inputs inside the same field group, hide all but the first one. */
.wwc-calculator-container .wwc-pickup input.wwc-address-input ~ input.wwc-address-input,
.wwc-calculator-container .wwc-dropoff input.wwc-address-input ~ input.wwc-address-input {
    display: none !important;
}

/* Extra guard: ensure only the intended pickup/dropoff inputs are visible */
.wwc-calculator-container input[name="pickup"]:not(#wwc_pickup),
.wwc-calculator-container input[name="dropoff"]:not(#wwc_dropoff) {
    display: none !important;
}

/* Ensure address input background is always white */
.wwc-calculator-container input.wwc-address-input,
.wwc-calculator-container .wwc-pickup .wwc-address-input,
.wwc-calculator-container .wwc-dropoff .wwc-address-input {
    background: #ffffff !important;
    color: var(--slate-900) !important;
}

/* Text visibility fixes for autocomplete inputs */
.wwc-calculator-container .wwc-address-input {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important; /* Chrome autofill */
}

.wwc-calculator-container input.wwc-address-input::placeholder { 
    opacity: 0.6 !important; 
}

.wwc-calculator-container input.wwc-address-input:-webkit-autofill {
    -webkit-text-fill-color: #0f172a !important;
    box-shadow: 0 0 0px 1000px #fff inset !important; /* keep white bg but readable text */
}

/* Ensure dark themes never invert input colors */
.wwc-calculator-container input.wwc-address-input:focus,
.wwc-calculator-container input.wwc-address-input:active,
.wwc-calculator-container input.wwc-address-input:not(:placeholder-shown) {
    background: #ffffff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

@media (prefers-color-scheme: dark) {
  .wwc-calculator-container input.wwc-address-input,
  .wwc-calculator-container input.wwc-address-input:focus,
  .wwc-calculator-container input.wwc-address-input:active {
      background: #ffffff !important;
      color: #0f172a !important;
      -webkit-text-fill-color: #0f172a !important;
  }
}

.wwc-calculator-container .wwc-address-input:focus {
    border-color: var(--brand-navy) !important;
    outline: var(--focus-ring) !important;
    outline-offset: 2px !important;
    box-shadow: var(--shadow-raised) !important;
    transform: translateY(-1px) !important;
}

.wwc-calculator-container .wwc-address-input::placeholder {
    color: var(--slate-700) !important;
    font-weight: 400 !important;
    opacity: 0.7 !important;
}

/* Address validation states */
.wwc-calculator-container .wwc-address-hint {
    font-size: var(--font-caption) !important;
    color: var(--slate-700) !important;
    margin-top: 6px !important;
    opacity: 0 !important;
    transition: var(--transition-smooth) !important;
}

.wwc-calculator-container .wwc-address-input:focus + .wwc-address-hint {
    opacity: 1 !important;
}

.wwc-calculator-container .wwc-address-invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.wwc-calculator-container .wwc-address-valid {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

/* Clean labels without emojis for professional look */
.wwc-calculator-container .wwc-pickup label::before {
    content: '' !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background: #10b981 !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

.wwc-calculator-container .wwc-dropoff label::before {
    content: '' !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background: var(--accent-gold) !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

/* Service Tiers - Segmented Control */
.wwc-calculator-container .wwc-service-tiers {
    margin-bottom: 35px !important;
}

.wwc-calculator-container .section-title {
    font-size: var(--font-section) !important;
    margin-bottom: 16px !important;
    display: block !important;
    color: var(--slate-900) !important;
    font-weight: 700 !important;
    line-height: var(--line-height-tight) !important;
}

.wwc-calculator-container .wwc-tier-segmented {
    display: grid !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.wwc-calculator-container .wwc-tier-segment {
    position: relative !important;
}

.wwc-calculator-container .wwc-tier-segment input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.wwc-calculator-container .tier-button {
    display: block !important;
    padding: 16px 20px !important;
    background: var(--slate-50) !important;
    border: 2px solid var(--slate-200) !important;
    border-radius: var(--radius-card) !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    position: relative !important;
    text-align: left !important;
}

.wwc-calculator-container .tier-button:hover {
    background: var(--brand-ivory) !important;
    border-color: var(--accent-gold) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-raised) !important;
}

.wwc-calculator-container .tier-button:focus {
    outline: var(--focus-ring) !important;
    outline-offset: 2px !important;
}

.wwc-calculator-container .wwc-tier-segment input[type="radio"]:checked + .tier-button {
    background: linear-gradient(135deg, var(--brand-ivory) 0%, #fef3c7 100%) !important;
    border-color: var(--brand-navy) !important;
    box-shadow: var(--shadow-raised) !important;
}

.wwc-calculator-container .tier-name {
    display: block !important;
    font-weight: 700 !important;
    color: var(--slate-900) !important;
    font-size: var(--font-body) !important;
    margin-bottom: 4px !important;
    line-height: var(--line-height-tight) !important;
}

.wwc-calculator-container .tier-time {
    display: inline-block !important;
    background: var(--accent-gold) !important;
    color: white !important;
    font-size: var(--font-caption) !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: var(--radius-pill) !important;
    margin-bottom: 6px !important;
}

.wwc-calculator-container .tier-pricing {
    display: block !important;
    color: var(--slate-700) !important;
    font-size: var(--font-caption) !important;
    font-weight: 500 !important;
}

/* Brief tier description always visible */
.wwc-calculator-container .tier-brief {
    display: block !important;
    color: var(--slate-700) !important;
    font-size: 12px !important;
    margin-top: 6px !important;
}

.wwc-calculator-container .tier-expanded {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--slate-200) !important;
    font-size: var(--font-caption) !important;
    color: var(--slate-700) !important;
    line-height: var(--line-height-normal) !important;
}

/* Pricing Info Toggle */
.wwc-calculator-container .wwc-pricing-info {
    background: transparent !important;
    border: none !important;
    color: var(--brand-navy) !important;
    font-size: var(--font-caption) !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-bottom: 8px !important;
    transition: var(--transition-smooth) !important;
}

.wwc-calculator-container .wwc-pricing-info:hover {
    color: var(--accent-gold) !important;
}

.wwc-calculator-container .wwc-pricing-breakdown {
    background: var(--slate-50) !important;
    padding: 12px 16px !important;
    border-radius: var(--radius-input) !important;
    border-left: 3px solid var(--brand-navy) !important;
    font-size: var(--font-caption) !important;
    color: var(--slate-700) !important;
    line-height: var(--line-height-normal) !important;
}

/* Add-ons - Pill Toggles */
.wwc-calculator-container .wwc-addons {
    margin-bottom: 40px !important;
}

/* Multiple stops UI */
.wwc-calculator-container .wwc-stops {
    margin-top: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.wwc-calculator-container .wwc-stop {
    position: relative !important;
}

.wwc-calculator-container .wwc-stop .wwc-remove-stop {
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    background: transparent !important;
    border: none !important;
    color: var(--slate-700) !important;
    font-size: 16px !important;
    cursor: pointer !important;
}

.wwc-calculator-container .wwc-add-stop-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    background: var(--slate-50) !important;
    border: 2px dashed var(--slate-200) !important;
    border-radius: var(--radius-pill) !important;
    color: var(--brand-navy) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: var(--transition-spring) !important;
}

.wwc-calculator-container .wwc-add-stop-btn:hover {
    background: var(--brand-ivory) !important;
    border-color: var(--accent-gold) !important;
    transform: translateY(-1px) !important;
}

.wwc-calculator-container .wwc-addon-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.wwc-calculator-container .wwc-addon-pill {
    position: relative !important;
}

.wwc-calculator-container .wwc-addon-pill input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.wwc-calculator-container .pill-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: var(--slate-50) !important;
    border: 2px solid var(--slate-200) !important;
    border-radius: var(--radius-pill) !important;
    cursor: pointer !important;
    transition: var(--transition-spring) !important;
    font-size: var(--font-body) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.wwc-calculator-container .pill-toggle:hover {
    background: var(--brand-ivory) !important;
    border-color: var(--accent-gold) !important;
    transform: translateY(-1px) scale(1.02) !important;
}

.wwc-calculator-container .pill-toggle:focus {
    outline: var(--focus-ring) !important;
    outline-offset: 2px !important;
}

.wwc-calculator-container .wwc-addon-pill input[type="checkbox"]:checked + .pill-toggle {
    background: var(--brand-navy) !important;
    border-color: var(--brand-navy) !important;
    color: white !important;
    transform: scale(1.02) !important;
}

.wwc-calculator-container .wwc-addon-pill input[type="checkbox"]:checked + .pill-toggle .addon-price {
    background: var(--accent-gold) !important;
    color: var(--slate-900) !important;
}

.wwc-calculator-container .addon-name {
    font-weight: 600 !important;
    color: inherit !important;
    font-size: inherit !important;
}

.wwc-calculator-container .addon-price {
    background: var(--slate-200) !important;
    color: var(--slate-700) !important;
    font-size: var(--font-caption) !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: var(--radius-pill) !important;
    transition: var(--transition-spring) !important;
}

/* Addon Tooltips */
.wwc-calculator-container .addon-tooltip {
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: var(--slate-900) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: var(--radius-input) !important;
    font-size: var(--font-caption) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: var(--transition-smooth) !important;
    z-index: 1000 !important;
    margin-bottom: 8px !important;
}

.wwc-calculator-container .addon-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 5px solid transparent !important;
    border-top-color: var(--slate-900) !important;
}

.wwc-calculator-container .wwc-addon-pill:hover .addon-tooltip {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(-4px) !important;
}

/* Primary CTA */
.wwc-calculator-container .wwc-actions {
    text-align: center !important;
    margin: 40px 0 30px !important;
    position: relative !important;
}

.wwc-calculator-container .wwc-calculate-button {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--accent-gold) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 18px 40px !important;
    border-radius: var(--radius-pill) !important;
    font-size: var(--font-body) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    min-width: 240px !important;
    position: relative !important;
    overflow: hidden !important;
    letter-spacing: 0.25px !important;
    box-shadow: var(--shadow-raised) !important;
    font-family: inherit !important;
}

.wwc-calculator-container .wwc-calculate-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent) !important;
    transition: left 0.6s ease !important;
}

.wwc-calculator-container .wwc-calculate-button::after {
    content: '💫' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

.wwc-calculator-container .wwc-calculate-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--brand-navy) 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4) !important;
}

.wwc-calculator-container .wwc-calculate-button:hover:not(:disabled)::before {
    left: 100% !important;
}

.wwc-calculator-container .wwc-calculate-button:hover:not(:disabled)::after {
    opacity: 1 !important;
    right: 15px !important;
}

.wwc-calculator-container .wwc-calculate-button:active:not(:disabled) {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
}

.wwc-calculator-container .wwc-calculate-button:disabled {
    background: var(--slate-200) !important;
    color: var(--slate-700) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
}

.wwc-calculator-container .wwc-calculate-button:disabled::before,
.wwc-calculator-container .wwc-calculate-button:disabled::after {
    display: none !important;
}

.wwc-calculator-container .button-loading::after {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin-left: 12px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    border-top-color: #ffffff !important;
    animation: wwc-spin 1s linear infinite !important;
}

@keyframes wwc-spin {
    to { transform: rotate(360deg) !important; }
}

/* Results Section */
.wwc-calculator-container .wwc-results {
    margin-top: 40px !important;
    padding: 30px !important;
    background: linear-gradient(135deg, var(--brand-ivory) 0%, #f0fdf4 100%) !important;
    border-radius: var(--radius-card) !important;
    border: 1px solid var(--slate-200) !important;
    box-shadow: var(--shadow-soft) !important;
    position: relative !important;
}

.wwc-calculator-container .wwc-results::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--brand-navy) 0%, var(--accent-gold) 50%, var(--brand-navy) 100%) !important;
    border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
}

/* Removed emoji decoration */

.wwc-calculator-container .wwc-price-display {
    text-align: center !important;
    margin-bottom: 24px !important;
    padding: 24px !important;
    background: white !important;
    border-radius: var(--radius-card) !important;
    box-shadow: var(--shadow-soft) !important;
    border: 1px solid var(--slate-200) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Removed emoji decoration */

.wwc-calculator-container .price-label {
    display: block !important;
    font-size: var(--font-section) !important;
    color: var(--slate-700) !important;
    font-weight: 600 !important;
    letter-spacing: 0.25px !important;
    margin: 0 !important;
}

.wwc-calculator-container .price-amount {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--brand-navy) !important;
    line-height: var(--line-height-tight) !important;
    margin: 0 !important;
}

.wwc-calculator-container .wwc-route-info {
    display: flex !important;
    justify-content: center !important;
    gap: 24px !important;
    font-size: var(--font-body) !important;
    color: var(--slate-700) !important;
    font-weight: 500 !important;
}

.wwc-calculator-container .route-distance,
.wwc-calculator-container .route-eta {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.wwc-calculator-container .route-distance::before {
    content: '📍' !important;
}

.wwc-calculator-container .route-eta::before {
    content: '⏱️' !important;
}

/* Collapsible Breakdown */
.wwc-calculator-container .wwc-breakdown-details {
    margin-bottom: 20px !important;
}

.wwc-calculator-container .wwc-breakdown-toggle {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--radius-input) !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    font-size: var(--font-body) !important;
    font-weight: 600 !important;
    color: var(--slate-700) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: var(--transition-smooth) !important;
    list-style: none !important;
}

.wwc-calculator-container .wwc-breakdown-toggle:hover {
    background: var(--brand-ivory) !important;
    border-color: var(--accent-gold) !important;
}

.wwc-calculator-container .wwc-breakdown-toggle::after {
    content: '▼' !important;
    font-size: var(--font-caption) !important;
    transition: var(--transition-smooth) !important;
}

.wwc-calculator-container .wwc-breakdown-details[open] .wwc-breakdown-toggle::after {
    transform: rotate(-180deg) !important;
}

.wwc-calculator-container .wwc-breakdown {
    background: white !important;
    padding: 16px !important;
    border-radius: var(--radius-input) !important;
    border: 1px solid var(--slate-200) !important;
    margin-top: 8px !important;
}

/* Removed price-breakdown h4 styling */

.wwc-calculator-container .wwc-breakdown-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wwc-calculator-container .wwc-breakdown-list li {
    padding: 6px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid var(--slate-200) !important;
    color: var(--slate-700) !important;
    font-size: var(--font-body) !important;
}

.wwc-calculator-container .wwc-breakdown-list li:last-child {
    border-bottom: none !important;
}

.wwc-calculator-container .wwc-breakdown-list li.wwc-total {
    margin-top: 8px !important;
    padding-top: 12px !important;
    border-top: 2px solid var(--slate-200) !important;
    font-size: var(--font-section) !important;
    color: var(--brand-navy) !important;
    font-weight: 700 !important;
}

.wwc-calculator-container .wwc-after-hours-notice {
    margin-top: 16px !important;
    padding: 12px 16px !important;
    background: var(--brand-ivory) !important;
    color: var(--slate-700) !important;
    border-radius: var(--radius-input) !important;
    font-size: var(--font-caption) !important;
    border-left: 3px solid var(--accent-gold) !important;
    text-align: center !important;
}

/* Sticky Summary Bar */
.wwc-calculator-container .wwc-sticky-summary {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-top: 1px solid var(--slate-200) !important;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.12) !important;
    z-index: 999 !important;
    padding: 16px 20px !important;
    transform: translateY(100%) !important;
    transition: var(--transition-smooth) !important;
}

.wwc-calculator-container .wwc-sticky-summary.visible {
    transform: translateY(0) !important;
}

.wwc-calculator-container .summary-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.wwc-calculator-container .summary-info {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    font-size: var(--font-caption) !important;
    color: var(--slate-700) !important;
    font-weight: 500 !important;
}

.wwc-calculator-container .summary-total {
    font-size: var(--font-section) !important;
    font-weight: 800 !important;
    color: var(--brand-navy) !important;
}

.wwc-calculator-container .wwc-sticky-cta {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--accent-gold) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: var(--radius-pill) !important;
    font-size: var(--font-body) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 160px !important;
    justify-content: center !important;
    font-family: inherit !important;
}

.wwc-calculator-container .wwc-sticky-cta:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--brand-navy) 100%) !important;
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: var(--shadow-raised) !important;
}

.wwc-calculator-container .cta-price {
    background: rgba(255,255,255,0.2) !important;
    padding: 2px 8px !important;
    border-radius: var(--radius-pill) !important;
    font-size: var(--font-caption) !important;
    font-weight: 600 !important;
}

/* Error Display */
.wwc-calculator-container .wwc-error {
    margin-top: 25px !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    color: #7f1d1d !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    border-left: 5px solid #ef4444 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1) !important;
}

.wwc-calculator-container .error-message {
    margin: 0 0 15px 0 !important;
    font-weight: 500 !important;
}

.wwc-calculator-container .wwc-retry-button {
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

.wwc-calculator-container .wwc-retry-button:hover {
    background: #dc2626 !important;
    transform: translateY(-1px) !important;
}

/* Mini Map Preview */
.wwc-calculator-container .wwc-map-preview {
    margin: 20px 0 30px !important;
    padding: 16px !important;
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--radius-card) !important;
    text-align: center !important;
}

.wwc-calculator-container .wwc-map-preview img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-input) !important;
}

.wwc-calculator-container .wwc-route-line {
    height: 4px !important;
    background: linear-gradient(90deg, #10b981 0%, var(--accent-gold) 50%, var(--accent-gold) 100%) !important;
    border-radius: 2px !important;
    margin: 12px auto !important;
    width: 80% !important;
    position: relative !important;
}

.wwc-calculator-container .wwc-route-line::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: #10b981 !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    box-shadow: var(--shadow-raised) !important;
}

.wwc-calculator-container .wwc-route-line::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: var(--accent-gold) !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    box-shadow: var(--shadow-raised) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wwc-calculator-container .wwc-form-section {
        padding: 24px 16px !important;
        margin: 0 8px !important;
        border-radius: var(--radius-card) !important;
    }
    
    .wwc-calculator-container .wwc-form-section h3 {
        font-size: 24px !important;
        margin-bottom: 6px !important;
    }
    
    .wwc-calculator-container .subtitle {
        margin-bottom: 30px !important;
        font-size: var(--font-body) !important;
    }
    
    .wwc-calculator-container .wwc-addresses {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 35px !important;
    }
    
    .wwc-calculator-container .wwc-swap-button {
        top: auto !important;
        bottom: -10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .wwc-calculator-container .wwc-swap-button::after {
        content: '↓' !important;
    }
    
    .wwc-calculator-container .wwc-tier-segmented {
        /* Convert to horizontal scroll on mobile */
        display: flex !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding-bottom: 8px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .wwc-calculator-container .wwc-tier-segmented::-webkit-scrollbar {
        display: none !important;
    }
    
    .wwc-calculator-container .wwc-tier-segment {
        flex-shrink: 0 !important;
        min-width: 200px !important;
    }
    
    .wwc-calculator-container .tier-button {
        padding: 12px 16px !important;
    }
    
    .wwc-calculator-container .wwc-addon-pills {
        justify-content: center !important;
    }
    
    .wwc-calculator-container .wwc-calculate-button {
        width: 100% !important;
        min-width: auto !important;
        padding: 16px 24px !important;
        font-size: var(--font-body) !important;
    }
    
    .wwc-calculator-container .price-amount {
        font-size: 2rem !important;
    }
    
    .wwc-calculator-container .wwc-results {
        padding: 20px 16px !important;
        margin-top: 30px !important;
    }
    
    .wwc-calculator-container .wwc-price-display {
        padding: 20px 16px !important;
    }
    
    .wwc-calculator-container .summary-content {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 16px !important;
    }
    
    .wwc-calculator-container .wwc-sticky-cta {
        width: 100% !important;
        max-width: 300px !important;
    }
    
    .wwc-calculator-container .wwc-sticky-summary {
        padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 480px) {
    .wwc-calculator-container .wwc-form-section {
        padding: 25px 15px !important;
        margin: 0 5px !important;
        border-radius: 12px !important;
    }
    
    .wwc-calculator-container .wwc-form-section h3 {
        font-size: 1.3rem !important;
        margin-bottom: 25px !important;
    }
    
    .wwc-calculator-container .wwc-addresses {
        gap: 20px !important;
        margin-bottom: 30px !important;
    }
    
    .wwc-calculator-container .wwc-addresses::after {
        width: 45px !important;
        height: 45px !important;
    }
    
    .wwc-calculator-container .wwc-addresses::before {
        font-size: 18px !important;
    }
    
    .wwc-calculator-container .wwc-address-input {
        padding: 16px 18px !important;
        border-radius: 12px !important;
    }
    
    .wwc-calculator-container .wwc-tier-option label,
    .wwc-calculator-container .wwc-addon-option label {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    
    .wwc-calculator-container .tier-name {
        font-size: 1.05rem !important;
        margin-bottom: 6px !important;
    }
    
    .wwc-calculator-container .tier-details {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .wwc-calculator-container .addon-name {
        font-size: 0.95rem !important;
    }
    
    .wwc-calculator-container .addon-price {
        font-size: 0.9rem !important;
        padding: 4px 10px !important;
    }
    
    .wwc-calculator-container .wwc-calculate-button {
        padding: 16px 25px !important;
        font-size: 15px !important;
        border-radius: 30px !important;
        letter-spacing: 0.3px !important;
    }
    
    .wwc-calculator-container .wwc-calculate-button::after {
        font-size: 14px !important;
    }
    
    .wwc-calculator-container .price-amount {
        font-size: 2rem !important;
    }
    
    .wwc-calculator-container .price-label {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .wwc-calculator-container .wwc-results {
        padding: 20px 15px !important;
        border-radius: 16px !important;
    }
    
    .wwc-calculator-container .wwc-price-display {
        padding: 20px 15px !important;
        border-radius: 16px !important;
    }
    
    .wwc-calculator-container .wwc-breakdown-list li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        padding: 6px 0 !important;
    }
    
    .wwc-calculator-container .wwc-add-to-cart-button {
        padding: 14px 25px !important;
        font-size: 15px !important;
        border-radius: 30px !important;
    }
}

/* Animation Classes */
.wwc-calculator-container .wwc-fade-in {
    animation: wwc-fade-in 0.5s ease-in-out !important;
}

.wwc-calculator-container .wwc-slide-up {
    animation: wwc-slide-up 0.4s ease-out !important;
}

@keyframes wwc-fade-in {
    from {
        opacity: 0 !important;
    }
    to {
        opacity: 1 !important;
    }
}

@keyframes wwc-slide-up {
    from {
        opacity: 0 !important;
        transform: translateY(20px) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}
