/* ── Gladiator Delivery Frontend — CSS Variables ─────────────────────── */

.gdl-app {
    --gdl-accent:       #f97316;
    --gdl-accent-hover: #ea580c;
    --gdl-bg:           #f8fafc;
    --gdl-card-bg:      #ffffff;
    --gdl-border:       #e2e8f0;
    --gdl-text:         #0f172a;
    --gdl-btn-radius:   12px;
    --gdl-card-radius:  18px;
    --gdl-field-radius: 13px;
    --gdl-form-width:   560px;
    --gdl-title-size:   20px;
    position: relative;
}

.gdl-app *,
.gdl-app *::before,
.gdl-app *::after {
    box-sizing: border-box;
}

/* ── Google Maps error suppression ────────────────────────────────────── */
/* Hide the "can't load Google Maps" modal only */
.gm-err-container,
.gm-err-autocomplete,
.dismissButton {
    display: none !important;
}

/* Style Google autocomplete dropdown */
.pac-container {
    direction: rtl;
    font-family: "Rubik", sans-serif !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
    margin-top: 4px !important;
    z-index: 10000 !important;
}

.pac-container .pac-item {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    cursor: pointer;
}

.pac-container .pac-item:hover {
    background: #f8f8f8 !important;
}

.pac-container .pac-item-query {
    font-weight: 600 !important;
    color: #0f172a !important;
}

/* If API key is broken, pac-container shows error circles — hide them */
.pac-container .pac-icon-marker {
    background-image: none !important;
}

/* Hide Google logo/credit in autocomplete */
.pac-container::after,
.pac-container .pac-logo::after,
.pac-container .hdpi::after {
    display: none !important;
    content: none !important;
}

.pac-container .pac-item .pac-icon {
    display: none !important;
}

/* ── Success check animation ─────────────────────────────────────────── */
.gdl-success-check {
    animation: gdl-check-pop .5s cubic-bezier(.34,1.56,.64,1);
}

.gdl-success-check svg {
    animation: none !important;
}

@keyframes gdl-check-pop {
    from { opacity: 0; transform: scale(.3); }
    to   { opacity: 1; transform: scale(1); }
}

.gdl-sum-loading {
    color: var(--gdl-accent);
    animation: gdl-sum-pulse 1s ease-in-out infinite;
}

@keyframes gdl-sum-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .4; }
}

/* ── CRITICAL: Prevent Google Autocomplete from hiding our inputs ───── */
/* Google sometimes sets display:none or visibility:hidden on inputs */
.gdl-app input.pac-target-input,
.gdl-app input[style*="display: none"],
.gdl-app input[style*="visibility: hidden"],
#gdl-pickup-address,
#gdl-delivery-address {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    width: 100% !important;
}

/* ── Theme override resets ───────────────────────────────────────────── */
.gdl-app *:focus,
.gdl-app *:focus-visible,
.gdl-app *:active,
.gdl-app button:focus,
.gdl-app button:focus-visible,
.gdl-app button:active,
.gdl-app input:focus,
.gdl-app input:focus-visible {
    outline: none !important;
}

.gdl-app button,
.gdl-app button:focus,
.gdl-app button:active,
.gdl-app button:hover {
    -webkit-tap-highlight-color: transparent;
}

.gdl-app input[type=text],
.gdl-app input[type=tel],
.gdl-app input[type=time],
.gdl-app input[type=number],
.gdl-app input[type=email],
.gdl-app select,
.gdl-app textarea {
    border: 2px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 18px 16px !important;
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--gdl-text);
    background: var(--gdl-card-bg);
    box-sizing: border-box;
    transition: border-color .25s, box-shadow .25s;
    -webkit-appearance: none;
    appearance: none;
}

.gdl-app input[type=text]:focus,
.gdl-app input[type=tel]:focus,
.gdl-app input[type=time]:focus,
.gdl-app input[type=number]:focus,
.gdl-app input[type=email]:focus,
.gdl-app select:focus,
.gdl-app textarea:focus {
    border-color: var(--gdl-accent) !important;
    box-shadow: none !important;
}

.gdl-app input::placeholder {
    color: #b0b8c4;
    font-size: 15px;
}

.gdl-app input[type=tel] {
    text-align: right !important;
    direction: rtl !important;
}

.gdl-app .gdl-input-icon .gdl-input {
    padding-right: 62px !important;
}

/* ── Main Container ──────────────────────────────────────────────────── */
.gdl-app {
    font-family: "Rubik", "Segoe UI", Tahoma, sans-serif;
    direction: rtl;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 16px 40px;
    color: var(--gdl-text);
    background: transparent;
}

/* ── Two-Column Layout ───────────────────────────────────────────────── */
.gdl-layout {
    display: grid;
    grid-template-columns: var(--gdl-layout-main, 60fr) var(--gdl-layout-side, 40fr);
    gap: 24px;
    align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.gdl-sidebar {
    position: sticky;
    top: 20px;
    background: var(--gdl-card-bg);
    border-radius: var(--gdl-card-radius);
    padding: 20px;
}

.gdl-sidebar-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.gdl-sidebar-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gdl-sidebar-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0;
    margin-bottom: 0;
}

.gdl-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.gdl-sidebar-sublabel {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

/* Sidebar package cards — 3-column with icon box */
.gdl-size-cards-sidebar {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}

.gdl-size-cards-sidebar .gdl-size-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 6px 12px;
    text-align: center;
    border-radius: 14px;
    gap: 0;
}

.gdl-size-cards-sidebar .gdl-size-icon {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    transition: background .25s, transform .2s, color .2s;
    color: #334155;
    transform: scale(0.8);
}

.gdl-size-cards-sidebar .gdl-size-card.selected .gdl-size-icon {
    background: var(--gdl-accent);
    color: #fff;
    transform: scale(0.8);
}

.gdl-size-cards-sidebar .gdl-size-icon svg,
.gdl-size-cards-sidebar .gdl-size-icon img {
    width: 32px !important;
    height: 32px !important;
}

.gdl-size-cards-sidebar .gdl-size-label {
    font-size: 13px;
    font-weight: 700;
}

.gdl-size-cards-sidebar .gdl-size-desc {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
}

.gdl-size-cards-sidebar .gdl-size-price {
    font-size: 11px;
    margin-top: 4px;
}

/* Sidebar speed cards */
.gdl-sidebar .gdl-speed-card {
    padding: 12px 14px;
    gap: 10px;
}

.gdl-sidebar .gdl-speed-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.gdl-sidebar .gdl-speed-name {
    font-size: 13px;
}

.gdl-sidebar .gdl-speed-sub {
    font-size: 11px;
}

.gdl-sidebar .gdl-speed-badge {
    font-size: 11px;
    padding: 4px 10px;
}

/* Sidebar addon cards — compact */
.gdl-sidebar .gdl-addon-card {
    padding: 12px 12px;
}

.gdl-sidebar .gdl-addon-info {
    font-size: 12px;
}

.gdl-sidebar .gdl-addon-price {
    font-size: 11px;
}

/* Live price box */
.gdl-sidebar-price {
    text-align: right;
    padding: 24px 22px;
    background: var(--gdl-price-bg, linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%));
    border: none;
    border-radius: 18px;
    margin-top: 16px;
    color: #fff;
}

.gdl-sidebar-price-label {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 6px;
}

.gdl-sidebar-price-amount {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    transition: all .3s ease;
    direction: ltr;
    text-align: right;
    margin: -15px 0;
}

.gdl-price-loading {
    display: inline-block;
    font-size: 24px;
    letter-spacing: 4px;
    animation: gdl-dots-pulse 1s ease-in-out infinite;
}

@keyframes gdl-dots-pulse {
    0%, 100% { opacity: .3; }
    50%      { opacity: 1; }
}

.gdl-sidebar-price-note {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    margin-top: 8px;
}

.gdl-price-available {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 12px;
    background: rgba(16,185,129,.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #6ee7b7;
}

.gdl-price-available-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: gdl-avail-pulse 1.5s ease-in-out infinite;
}

@keyframes gdl-avail-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .3; }
}

.gdl-price-breakdown {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.gdl-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    padding: 0;
}

.gdl-price-row-val {
    font-weight: 600;
    color: rgba(255,255,255,.85);
    direction: ltr;
}

/* VAT breakdown rows (inside the dark price box) */
.gdl-price-row-divider {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,.2);
}
.gdl-price-row-vat span {
    color: rgba(255,255,255,.55);
}
.gdl-price-row-km span {
    color: rgba(255,255,255,.55);
}

/* ── Split price display: total | breakdown (side by side, mobile+desktop) ── */
.gdl-price-split {
    display: flex;
    align-items: stretch;
    gap: 14px;
}
.gdl-price-split .gdl-price-box {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* divider between the two boxes (RTL: details box is on the left) */
.gdl-price-split .gdl-price-box-details {
    padding-right: 14px;
    border-right: 1px solid rgba(255,255,255,.16);
}
/* breakdown now lives in its own box — drop its standalone top divider */
.gdl-price-split .gdl-price-breakdown,
.gdl-price-split .gdl-sum-price-breakdown {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.gdl-price-split .gdl-price-row {
    font-size: 12px;
}
/* shrink the big total so it fits in half width */
.gdl-price-split .gdl-sidebar-price-amount {
    font-size: 32px;
    margin: 0;
}
.gdl-price-split .gdl-sum-price-amount {
    font-size: 28px;
}

/* Main content area */
.gdl-main {
    min-width: 0;
    order: -1;
}

/* ── Hide whole sidebar on the summary step ──────────────────────────── */
.gdl-app.gdl-summary-active .gdl-sidebar {
    display: none !important;
}

/* ── Package, speed & price only on step 1 (addresses) ───────────────── */
.gdl-app:not([data-step="1"]) #gdl-pkg-section,
.gdl-app:not([data-step="1"]) #gdl-speed-section,
.gdl-app:not([data-step="1"]) #gdl-addons-section,
.gdl-app:not([data-step="1"]) .gdl-sidebar-price {
    display: none !important;
}

/* Reveal package & speed only after the delivery address is filled in —
   unless the admin chose to show them upfront (gdl-selection-upfront). */
.gdl-app:not(.gdl-selection-upfront):not(.gdl-addr-ready) #gdl-pkg-section,
.gdl-app:not(.gdl-selection-upfront):not(.gdl-addr-ready) #gdl-speed-section {
    display: none !important;
}

/* Add-ons appear only once a delivery address was actually picked —
   regardless of the "show selection upfront" toggle. */
.gdl-app:not(.gdl-delivery-picked) #gdl-addons-section {
    display: none !important;
}

/* No step numbers on the very first step */
.gdl-app[data-step="1"] .gdl-progress {
    display: none !important;
}

/* ── Step-1 continue button sits last — after the price box ──────────── */
.gdl-layout > #gdl-next-1 {
    order: 5;
    width: 100%;
    margin-top: 4px;
}
.gdl-app:not([data-step="1"]) .gdl-layout > #gdl-next-1 {
    display: none !important;
}
@media (min-width: 769px) {
    .gdl-app:not(.gdl-single-col) .gdl-layout > #gdl-next-1 {
        grid-column: 1 / -1;
    }
}

/* ── Optionally hide the sidebar selection headers (admin toggle) ─────── */
.gdl-app.gdl-hide-headers .gdl-sidebar-header,
.gdl-app.gdl-hide-headers .gdl-sidebar-label {
    display: none !important;
}

/* ── Optionally hide the per-step meta labels ("שלב 02 · איסוף") ──────── */
.gdl-app.gdl-hide-step-meta .gdl-step-meta {
    display: none !important;
}

/* ── Single-column mode (admin toggle) — stacked layout at all widths ── */
.gdl-app.gdl-single-col .gdl-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.gdl-app.gdl-single-col .gdl-sidebar {
    position: static;
    order: 1;
    padding: 0;
    display: contents;
}
.gdl-app.gdl-single-col .gdl-main {
    order: 1;
    width: 100%;
}
.gdl-app.gdl-single-col .gdl-sidebar-section {
    order: 2;
    width: 100%;
}
.gdl-app.gdl-single-col .gdl-sidebar-price {
    order: 3;
    position: static;
    margin-top: 0;
    width: 100%;
}

/* ── Mobile: stack sidebar on top ────────────────────────────────────── */
@media (max-width: 768px) {
    .gdl-layout {
        display: flex;
        flex-direction: column;
        /* override desktop `align-items: start` — in flex-column mode that
           shrinks items to content width instead of stretching to 100%. */
        align-items: stretch;
    }

    .gdl-sidebar {
        position: static;
        order: 1;
        padding: 0;
        display: contents;
    }

    /* Addresses/steps first, then the package+speed selection below */
    .gdl-main {
        order: 1;
        width: 100%;
    }

    /* Sidebar sections appear as normal blocks via display:contents */
    .gdl-sidebar-section {
        order: 2;
        padding: 0;
        margin-bottom: 12px;
        width: 100%;
    }

    /* Price box goes LAST — below main (below the button) */
    .gdl-sidebar-price {
        order: 3;
        position: static;
        border-radius: 18px;
        padding: 20px 16px;
        margin-top: 0;
        width: 100%;
    }

    .gdl-sidebar-price-amount { font-size: 32px; }

    /* keep the two price boxes side by side but tighter on mobile */
    .gdl-price-split { gap: 10px; }
    .gdl-price-split .gdl-price-box-details { padding-right: 10px; }
    .gdl-price-split .gdl-sidebar-price-amount,
    .gdl-price-split .gdl-sum-price-amount { font-size: 22px; }
    .gdl-price-split .gdl-price-row { font-size: 11px; }

    /* Hide progress steps on mobile */
    .gdl-progress {
        display: none;
    }

    /* …unless the admin opted to show them on mobile */
    .gdl-app.gdl-show-progress-mobile .gdl-progress {
        display: block;
    }

    /* Stats bar — compact */
    .gdl-route-stats {
        padding: 10px 6px;
        gap: 4px;
    }

    .gdl-stat {
        gap: 6px;
    }

    .gdl-stat svg {
        display: none;
    }

    .gdl-stat-label {
        font-size: 9px;
    }

    .gdl-stat-value {
        font-size: 12px;
        margin-top: -3px;
    }

    .gdl-stat-divider {
        height: 24px;
    }

    /* Step header */
    .gdl-step-title {
        font-size: 22px;
    }

    .gdl-size-cards-sidebar {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .gdl-size-cards-sidebar .gdl-size-card {
        flex-direction: column;
        text-align: center;
        padding: 10px 6px;
    }

    /* Prevent iOS auto-zoom on input focus */
    .gdl-app input[type=text],
    .gdl-app input[type=tel],
    .gdl-app input[type=number],
    .gdl-app input[type=email],
    .gdl-app select,
    .gdl-app textarea {
        font-size: 16px !important;
    }
}

/* ── Progress Bar ────────────────────────────────────────────────────── */
.gdl-progress {
    margin-bottom: 40px;
}

.gdl-progress-track {
    display: none;
}

.gdl-progress-steps {
    display: flex;
    align-items: center;
}

.gdl-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.gdl-progress-step:not(:last-child) {
    flex: 1;
}

.gdl-progress-step:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 14px;
    border-radius: 1px;
    transition: background .3s;
}

.gdl-progress-step.done::after {
    background: #cbd5e1;
}

.gdl-progress-step span {
    font-size: 13px;
    color: #b0b8c4;
    font-weight: 500;
    white-space: nowrap;
    transition: color .3s;
}

.gdl-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b8c4;
    flex-shrink: 0;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.gdl-step-dot svg {
    width: 18px;
    height: 18px;
}

.gdl-progress-step.active .gdl-step-dot {
    width: 40px;
    height: 40px;
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 4px 16px rgba(15,23,42,.2);
}

.gdl-progress-step.active span {
    color: #0f172a;
    font-weight: 700;
}

.gdl-progress-step.done .gdl-step-dot {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.gdl-progress-step.done span {
    color: #94a3b8;
}

/* ── Route Stats Bar ─────────────────────────────────────────────────── */
.gdl-route-stats {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gdl-border);
    border-radius: 16px;
    padding: 14px 8px;
    margin-top: 14px;
    background: #f8fafc;
    animation: gdl-fade-in .4s ease;
}

.gdl-stat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gdl-stat svg {
    width: 22px;
    height: 22px;
    color: var(--gdl-accent);
    flex-shrink: 0;
}

.gdl-stat-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.gdl-stat-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.gdl-stat-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--gdl-text);
    margin-top: -3px;
}

.gdl-stat-divider {
    width: 1px;
    height: 36px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* (old hero animation removed) */

/* ── Calendar Strip ──────────────────────────────────────────────────── */
.gdl-calendar {
    background: var(--gdl-card-bg);
    border: 1px solid var(--gdl-border);
    border-radius: 16px;
    padding: 16px;
}

.gdl-cal-header {
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gdl-cal-month {
    font-size: 15px;
    font-weight: 700;
    color: var(--gdl-text);
    direction: rtl;
}

.gdl-cal-nav {
    background: transparent;
    border: 1px solid var(--gdl-border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gdl-accent);
    padding: 0;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}

.gdl-cal-nav:hover:not(:disabled) {
    border-color: var(--gdl-accent);
    background: #f1f5f9;
}

.gdl-cal-nav:disabled { opacity: .3; cursor: not-allowed; }

.gdl-cal-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gdl-cal-card {
    width: calc((100% - 30px) / 7);
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    min-width: 0;
}

.gdl-cal-card:hover:not(.disabled):not(.selected) {
    background: #f1f5f9;
}

.gdl-cal-card.disabled {
    opacity: .3;
    cursor: not-allowed;
}

.gdl-cal-card.shabbat {
    opacity: .3;
    cursor: not-allowed;
}

.gdl-cal-card.today:not(.selected) .gdl-cal-num {
    color: var(--gdl-accent);
}

.gdl-cal-card.selected {
    background: var(--gdl-accent);
    box-shadow: none;
}

.gdl-cal-day {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.gdl-cal-card.selected .gdl-cal-day { color: rgba(255,255,255,.75); }

.gdl-cal-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--gdl-text);
    line-height: 1;
}

.gdl-cal-card.selected .gdl-cal-num { color: #fff; }

.gdl-cal-sub {
    font-size: 9px;
    font-weight: 600;
    color: var(--gdl-accent);
    margin-top: -1px;
}

.gdl-cal-card.selected .gdl-cal-sub { color: rgba(255,255,255,.8); }

.gdl-cal-selected {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(249,115,22,.08);
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 10px;
    font-size: 13px;
    color: var(--gdl-text);
}

.gdl-cal-selected svg { flex-shrink: 0; color: var(--gdl-accent); }

/* ── Time Chips (horizontal scroller like TestGo) ────────────────────── */
.gdl-time-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
}

.gdl-time-scroller::-webkit-scrollbar { height: 5px; }
.gdl-time-scroller::-webkit-scrollbar-track { background: transparent; }
.gdl-time-scroller::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.gdl-time-chip {
    flex: 0 0 auto;
    scroll-snap-align: center;
    min-width: 88px;
    padding: 12px 16px;
    background: var(--gdl-card-bg);
    border: 1px solid var(--gdl-border);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: "Rubik", sans-serif;
    color: var(--gdl-text);
    transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s;
}

.gdl-time-chip-time {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .3px;
    direction: ltr;
}

.gdl-time-chip-range {
    font-size: 10.5px;
    opacity: .6;
    font-weight: 500;
    direction: ltr;
}

.gdl-time-chip:hover {
    border-color: var(--gdl-accent);
    background: #f8fafc;
}

.gdl-time-chip.selected {
    border-color: var(--gdl-accent);
    background: var(--gdl-accent);
    color: #fff;
    box-shadow: none;
    transform: translateY(-1px);
}

.gdl-time-chip.selected .gdl-time-chip-range { opacity: .85; }

.gdl-time-chip.disabled {
    opacity: .3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Package card uploaded icon */
.gdl-size-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ── Steps / Wizard ──────────────────────────────────────────────────── */
.gdl-step {
    display: none;
    animation: gdl-step-enter .35s cubic-bezier(.4,0,.2,1);
}

.gdl-step.active {
    display: block;
}

@keyframes gdl-step-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Section Cards ───────────────────────────────────────────────────── */
.gdl-section {
    background: var(--gdl-card-bg);
    border: 1px solid var(--gdl-border);
    border-radius: var(--gdl-card-radius);
    padding: 22px 20px;
    margin-bottom: 14px;
    position: relative;
}

/* ── Step Header ─────────────────────────────────────────────────────── */
.gdl-step-header {
    text-align: right;
    margin-bottom: 20px;
}

.gdl-step-meta {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 6px;
}

.gdl-step-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--gdl-text);
    margin: 0 0 8px;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
}

.gdl-step-title strong {
    font-weight: 900;
}

.gdl-step-subtitle {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
    margin: 0;
}

/* ── Fields ──────────────────────────────────────────────────────────── */
.gdl-field {
    margin-bottom: 14px;
}

.gdl-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.gdl-input-icon {
    position: relative;
}

.gdl-input-icon::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: var(--gdl-accent);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
}

.gdl-input-icon svg {
    position: absolute;
    right: 23px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.gdl-input-icon svg,
.gdl-input-icon svg path,
.gdl-input-icon svg circle,
.gdl-input-icon svg polyline,
.gdl-input-icon svg line,
.gdl-input-icon svg rect {
    stroke: #fff !important;
    fill: none !important;
}

.gdl-input-icon .gdl-input {
    padding-right: 64px;
}

.gdl-app .gdl-input {
    width: 100%;
    padding: 18px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--gdl-text);
    background: var(--gdl-card-bg);
    transition: border-color .25s, box-shadow .25s;
}

.gdl-app .gdl-input:focus {
    border-color: var(--gdl-accent);
    box-shadow: none;
}

.gdl-app .gdl-input::placeholder {
    color: #cbd5e1;
}

/* Textarea (notes) */
.gdl-app textarea.gdl-input {
    min-height: 64px;
    padding: 14px 16px;
    line-height: 1.5;
    resize: vertical;
}

/* Optional-field hint next to a label */
.gdl-field-optional {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}

/* ── Time range (from / to) ──────────────────────────────────────────── */
.gdl-time-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.gdl-time-range-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.gdl-time-range-cap {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
}
.gdl-time-range-sep {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
}
.gdl-app .gdl-time-range select.gdl-input {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    text-align: center;
}

/* ── Progress bar — numbered variant ─────────────────────────────────── */
.gdl-progress-numbers .gdl-step-dot {
    font-size: 15px;
    font-weight: 800;
}
.gdl-progress-numbers .gdl-progress-step.active .gdl-step-dot {
    background: var(--gdl-accent);
    border-color: var(--gdl-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.gdl-progress-numbers .gdl-progress-step.done .gdl-step-dot {
    background: var(--gdl-accent);
    border-color: var(--gdl-accent);
    color: #fff;
    opacity: .55;
}
.gdl-progress-numbers .gdl-progress-step.done::after {
    background: var(--gdl-accent);
}

.gdl-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Package Size Cards ──────────────────────────────────────────────── */
.gdl-size-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.gdl-size-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    border: 1px solid var(--gdl-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
    text-align: center;
    background: var(--gdl-card-bg);
}

.gdl-size-card input[type="radio"] {
    display: none;
}

.gdl-size-card:hover {
    border-color: var(--gdl-accent);
}

.gdl-size-card.selected {
    border: 2px solid var(--gdl-accent);
    box-shadow: none;
}

.gdl-size-icon {
    color: var(--gdl-accent);
    margin-bottom: 8px;
    transition: transform .2s;
}

.gdl-size-card.selected .gdl-size-icon {
    transform: scale(1.1);
}

.gdl-size-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gdl-text);
}

.gdl-size-desc {
    font-size: 11px;
    color: #313131;
    margin-top: 0px;
}

.gdl-size-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--gdl-accent);
    margin-top: 6px;
}

/* ── Speed Cards ─────────────────────────────────────────────────────── */
.gdl-speed-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.gdl-speed-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--gdl-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    background: #f8fafc;
}

.gdl-speed-card input[type="radio"] {
    display: none;
}

.gdl-speed-card:hover {
    border-color: var(--gdl-accent);
    background: #f8fafc;
}

.gdl-speed-card.selected {
    border: 2px solid var(--gdl-accent);
    background: var(--gdl-card-bg);
}

.gdl-speed-icon {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
    transition: background .2s, color .2s;
}

.gdl-speed-card.selected .gdl-speed-icon {
    background: var(--gdl-accent);
    color: #fff;
}

.gdl-speed-info {
    flex: 1;
}

.gdl-speed-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gdl-text);
}

.gdl-speed-sub {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 1px;
}

.gdl-speed-badge {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.gdl-speed-badge.free {
    color: #fff;
    background: var(--gdl-accent);
}

/* Uploaded custom speed icon */
.gdl-speed-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.gdl-speed-cards-grid .gdl-speed-icon .gdl-speed-icon-img {
    width: 28px;
    height: 28px;
}

/* ── Speed cards as grid (admin toggle) — mirror the package size cards ── */
.gdl-sidebar .gdl-speed-cards.gdl-speed-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 10px;
}
.gdl-sidebar .gdl-speed-cards-grid .gdl-speed-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 6px 12px;
    gap: 0;
}
.gdl-sidebar .gdl-speed-cards-grid .gdl-speed-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 10px;
    transform: scale(0.8);
}
.gdl-sidebar .gdl-speed-cards-grid .gdl-speed-icon svg {
    width: 28px !important;
    height: 28px !important;
}
.gdl-sidebar .gdl-speed-cards-grid .gdl-speed-info {
    flex: none;
}
.gdl-sidebar .gdl-speed-cards-grid .gdl-speed-name {
    font-size: 13px;
}
.gdl-sidebar .gdl-speed-cards-grid .gdl-speed-sub {
    font-size: 10px;
    margin-top: 2px;
}
.gdl-sidebar .gdl-speed-cards-grid .gdl-speed-badge {
    font-size: 11px;
    margin-top: 6px;
    padding: 0;
    background: transparent;
    color: #64748b;
}
.gdl-sidebar .gdl-speed-cards-grid .gdl-speed-badge.free {
    background: transparent;
    color: var(--gdl-accent);
}

/* ── Addon Cards ─────────────────────────────────────────────────────── */
.gdl-addon-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.gdl-addon-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--gdl-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: var(--gdl-card-bg);
}

.gdl-addon-card input[type="checkbox"] {
    display: none;
}

.gdl-addon-card:hover {
    border-color: var(--gdl-accent);
}

.gdl-addon-card.selected {
    border: 2px solid var(--gdl-accent);
}

.gdl-addon-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
    color: transparent;
}

.gdl-addon-card.selected .gdl-addon-check {
    background: var(--gdl-accent);
    border-color: var(--gdl-accent);
    color: #fff;
}

.gdl-addon-info {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--gdl-text);
}

.gdl-addon-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--gdl-accent);
    white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.gdl-btn-next,
.gdl-btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--gdl-accent) !important;
    color: #fff !important;
    border: none;
    border-radius: var(--gdl-btn-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .2s;
}

.gdl-btn-next:hover,
.gdl-btn-checkout:hover {
    background: var(--gdl-accent-hover) !important;
    box-shadow: none;
}

.gdl-btn-next:active:not(:disabled),
.gdl-btn-checkout:active:not(:disabled) {
    transform: scale(.98);
}

.gdl-btn-next:disabled {
    background: #cbd5e1 !important;
    cursor: not-allowed;
    transform: none;
}

.gdl-btn-next:disabled:hover {
    background: #cbd5e1 !important;
    box-shadow: none;
}

.gdl-btn-prev {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: none;
    border-radius: var(--gdl-btn-radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}

.gdl-btn-prev:hover {
    background: #e2e8f0 !important;
}

.gdl-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.gdl-btn-row .gdl-btn-next,
.gdl-btn-row .gdl-btn-checkout {
    flex: 1;
}

/* Loading state */
.gdl-btn-next.gdl-loading,
.gdl-btn-checkout.gdl-loading {
    pointer-events: none;
    opacity: .7;
}

.gdl-btn-next.gdl-loading::after,
.gdl-btn-checkout.gdl-loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gdl-spin .7s linear infinite;
    margin-right: 6px;
}

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

/* ── Summary ─────────────────────────────────────────────────────────── */
.gdl-summary-route {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 16px 0;
}

.gdl-route-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.gdl-route-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    animation: gdl-route-dot-pop .4s cubic-bezier(.34,1.56,.64,1);
}

@keyframes gdl-route-dot-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.gdl-route-info {
    display: flex;
    flex-direction: column;
}

.gdl-route-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
}

.gdl-route-address {
    font-size: 14px;
    font-weight: 500;
    color: var(--gdl-text);
}

.gdl-route-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 0 6px;
    margin-right: 6px;
}

.gdl-route-line-inner {
    width: 2px;
    height: 28px;
    background: repeating-linear-gradient(
        to bottom,
        var(--gdl-accent) 0px,
        var(--gdl-accent) 4px,
        transparent 4px,
        transparent 8px
    );
    animation: gdl-line-grow .5s ease-out;
}

@keyframes gdl-line-grow {
    from { height: 0; }
    to   { height: 28px; }
}

.gdl-route-distance {
    font-size: 12px;
    font-weight: 700;
    color: var(--gdl-accent);
    background: #f8f8f8;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #fed7aa;
    animation: gdl-fade-in .4s .2s both;
}

@keyframes gdl-fade-in {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Summary 2-column grid */
.gdl-summary-grid {
    display: grid;
    /* single column — price card stacks below the details, not beside them */
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

/* Summary Details */
.gdl-summary-details {
    border: 1px solid var(--gdl-border);
    border-radius: 12px;
    overflow: hidden;
    align-self: start;
}

.gdl-sum-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    animation: gdl-sum-row-enter .3s ease-out both;
}

.gdl-sum-row:last-child { border-bottom: none; }

.gdl-sum-row:nth-child(1) { animation-delay: .05s; }
.gdl-sum-row:nth-child(2) { animation-delay: .1s; }
.gdl-sum-row:nth-child(3) { animation-delay: .15s; }
.gdl-sum-row:nth-child(4) { animation-delay: .2s; }
.gdl-sum-row:nth-child(5) { animation-delay: .25s; }

@keyframes gdl-sum-row-enter {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.gdl-sum-key {
    font-size: 13px;
    color: #64748b;
}

.gdl-sum-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--gdl-text);
}

/* Schedule Message */
.gdl-schedule-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #166534;
    animation: gdl-fade-in .4s ease;
}

.gdl-schedule-msg svg {
    flex-shrink: 0;
    color: #10b981;
    margin-top: 2px;
}

.gdl-schedule-msg strong {
    color: #0f172a;
}

/* Summary Price Card (dark) */
.gdl-sum-price-card {
    background: var(--gdl-price-bg, linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%));
    border-radius: 18px;
    padding: 24px 22px;
    text-align: right;
    color: #fff;
    align-self: start;
    animation: gdl-price-pop .4s .3s cubic-bezier(.34,1.56,.64,1) both;
}

.gdl-sum-price-label {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 6px;
}

.gdl-sum-price-amount {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    margin: -10px 0 12px;
    direction: ltr;
    text-align: right;
}

.gdl-sum-price-breakdown {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 12px;
}

.gdl-sum-price-breakdown .gdl-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    padding: 3px 0;
}

.gdl-sum-price-breakdown .gdl-price-row-val {
    font-weight: 600;
    color: rgba(255,255,255,.85);
    direction: ltr;
}

/* Old price box — hidden, kept for backwards compat */
.gdl-price-box { display: none; }

@keyframes gdl-price-pop {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}

.gdl-price-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.gdl-price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--gdl-accent);
    letter-spacing: -.02em;
}

/* ── Loading Overlay ─────────────────────────────────────────────────── */
.gdl-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--gdl-card-radius);
}

.gdl-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gdl-loader svg {
    animation: gdl-loader-bounce 1s ease-in-out infinite;
}

@keyframes gdl-loader-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.gdl-loader span {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

/* ── Field validation ────────────────────────────────────────────────── */
.gdl-input.gdl-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
    animation: gdl-shake .4s ease;
}

@keyframes gdl-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

.gdl-input.gdl-valid {
    border-color: #10b981 !important;
}

/* ── Multi-Stop ──────────────────────────────────────────────────────── */
.gdl-multistop-toggle {
    margin-top: 10px;
    padding-top: 10px;
    margin-bottom: 10px;
    border-top: 1px solid var(--gdl-border);
}

.gdl-multistop-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gdl-text);
}

.gdl-multistop-check input {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--gdl-accent);
}

.gdl-extra-stops {
    margin-top: 12px;
}

.gdl-extra-stop-card {
    border: 1px solid var(--gdl-border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    background: var(--gdl-card-bg);
}

.gdl-extra-stop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gdl-extra-stop-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gdl-text);
}

.gdl-extra-stop-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    opacity: .6;
    transition: opacity .15s;
}

.gdl-extra-stop-remove:hover { opacity: 1; }

.gdl-extra-stop-type {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.gdl-extra-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--gdl-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.gdl-extra-type-btn input { display: none; }
.gdl-extra-type-btn:hover { border-color: var(--gdl-accent); }

.gdl-extra-type-btn.selected {
    border-color: var(--gdl-accent);
    background: #f8f8f8;
    color: var(--gdl-text);
    font-weight: 600;
}

.gdl-add-more-stop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: none;
    font-family: inherit;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    margin-top: 6px;
}

.gdl-add-more-stop {
    margin-bottom: 10px;
}

.gdl-add-more-stop:hover {
    border-color: var(--gdl-accent);
    color: var(--gdl-accent);
    background: #f8f8f8;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .gdl-size-cards {
        grid-template-columns: 1fr;
    }

    .gdl-field-row {
        grid-template-columns: 1fr;
    }

    .gdl-progress-step span {
        font-size: 10px;
    }

    .gdl-step-dot {
        width: 36px;
        height: 36px;
    }

    .gdl-progress-step.active .gdl-step-dot {
        width: 40px;
        height: 40px;
    }

    .gdl-step-dot svg {
        width: 16px;
        height: 16px;
    }

    .gdl-progress-step span {
        font-size: 11px;
    }

    .gdl-progress-step:not(:last-child)::after {
        margin: 0 8px;
    }

    .gdl-step-title {
        font-size: 24px;
    }
}

/* ── Zone notices (surcharge / blocked) — main form ──────────────── */
.gdl-zone-notice {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gdl-zone-notice:empty { display: none; }

.gdl-zone-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: color-mix(in srgb, var(--zc, #f97316) 10%, #fff);
    border: 1.5px solid color-mix(in srgb, var(--zc, #f97316) 35%, #fff);
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.35;
    width: 100%;
}

.gdl-zone-badge .gdl-zone-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--zc, #f97316);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--zc, #f97316) 20%, #fff);
    flex-shrink: 0;
    margin-top: 6px;
}

.gdl-zone-content { flex: 1; min-width: 0; }

.gdl-zone-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #0f172a;
}

.gdl-zone-msg {
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    line-height: 1.5;
}

.gdl-zone-badge .gdl-zone-amt {
    margin-right: auto;
    color: var(--zc, #9a3412);
    font-weight: 800;
    font-size: 13.5px;
}

.gdl-zone-blocked {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 14px;
    font-size: 14px;
    color: #991b1b;
    font-weight: 600;
    line-height: 1.4;
}

.gdl-zone-blocked svg {
    width: 20px;
    height: 20px;
    color: #dc2626;
    flex-shrink: 0;
}

.gdl-btn-checkout.is-blocked,
.gdl-btn-checkout:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════
   Step Transition Overlay (icon + label, blurred backdrop)
   ════════════════════════════════════════════════════════════════════════ */
.gdl-step-transition {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .22s ease, visibility 0s linear .22s;
}

.gdl-step-transition.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .22s ease, visibility 0s linear 0s;
}

.gdl-step-transition-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 52px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: scale(.6) rotate(-6deg);
    opacity: 0;
    min-width: 260px;
    max-width: calc(100vw - 40px);
}

.gdl-step-transition.show .gdl-step-transition-card {
    animation: gdlTransPop .5s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

@keyframes gdlTransPop {
    0%   { transform: scale(.4) rotate(-8deg); opacity: 0; }
    60%  { transform: scale(1.06) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.gdl-trans-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gdl-accent) 12%, #fff);
    color: var(--gdl-accent);
    display: grid;
    place-items: center;
    animation: gdlTransIconBounce 1s cubic-bezier(.34, 1.56, .64, 1) infinite alternate;
}

.gdl-trans-icon svg {
    width: 42px;
    height: 42px;
}

@keyframes gdlTransIconBounce {
    from { transform: translateY(0) scale(1); }
    to   { transform: translateY(-10px) scale(1.06); }
}

.gdl-trans-label {
    font-size: 26px;
    font-weight: 900;
    color: var(--gdl-text);
    letter-spacing: -.02em;
    margin-bottom: 4px;
}

.gdl-trans-sub {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 520px) {
    .gdl-step-transition-card {
        padding: 28px 32px;
        min-width: 220px;
        border-radius: 20px;
    }
    .gdl-trans-icon  { width: 70px; height: 70px; margin-bottom: 10px; }
    .gdl-trans-icon svg { width: 34px; height: 34px; }
    .gdl-trans-label { font-size: 22px; }
    .gdl-trans-sub   { font-size: 13px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Mobile: hide sidebar top sections (package / speed / addons) on steps 2+
   The price box stays visible, sidebar reappears in full on step 1.
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .gdl-app:not([data-step="1"]) .gdl-sidebar-section { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   Mobile: cleaner step layout
   - hide the "שלב 03 · מסירה" meta line
   - remove the outer card border / padding around .gdl-section so fields
     reach edge-to-edge and match the price-box width
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .gdl-step-meta { display: none !important; }

    .gdl-step-header {
        margin-bottom: 14px;
    }

    .gdl-section {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-bottom: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Force the price box and the form section to render at the exact
       same outer width — both fill the column with no extra inset. */
    .gdl-sidebar-price {
        width: 100%;
        box-sizing: border-box;
        margin-top: 6px;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   Mobile: keep calendar + date/time UI inside viewport
   (prevents horizontal page scroll when picking a date)
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .gdl-app          { overflow-x: hidden; }
    .gdl-main,
    .gdl-step,
    .gdl-section     { min-width: 0; max-width: 100%; }
    #gdl-date-field,
    #gdl-time-field  { max-width: 100%; min-width: 0; }
    .gdl-calendar    {
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px;
        overflow: hidden;
    }
    .gdl-cal-strip   { gap: 4px; }
    .gdl-cal-card    {
        width: calc((100% - 24px) / 7);
        padding: 8px 2px;
    }
    .gdl-cal-num     { font-size: 15px; }
    .gdl-cal-day     { font-size: 10px; }
    .gdl-cal-sub     { font-size: 8px; }
    .gdl-time-scroller {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   Price skeleton — shown while the server prices the route/speed, so the
   total never flashes a partial amount before the surcharge lands.
   ════════════════════════════════════════════════════════════════════════ */
.gdl-sidebar-price-amount.gdl-price-skeleton,
.gdl-sum-price-amount.gdl-price-skeleton {
    display: inline-block;
    min-width: 3.4em;
    color: transparent !important;
    border-radius: 12px;
    background: linear-gradient(100deg,
        rgba(255,255,255,.08) 20%,
        rgba(255,255,255,.26) 50%,
        rgba(255,255,255,.08) 80%);
    background-size: 220% 100%;
    animation: gdl-price-shimmer 1.1s ease-in-out infinite;
    transition: none;
    user-select: none;
}
/* Replays each time the skeleton is removed (animation-name switches back) */
.gdl-sidebar-price-amount,
.gdl-sum-price-amount {
    animation: gdl-price-reveal .32s ease-out;
}
.gdl-breakdown-pending .gdl-price-row-val {
    color: transparent !important;
    border-radius: 6px;
    background: linear-gradient(100deg,
        rgba(255,255,255,.08) 20%,
        rgba(255,255,255,.22) 50%,
        rgba(255,255,255,.08) 80%);
    background-size: 220% 100%;
    animation: gdl-price-shimmer 1.1s ease-in-out infinite;
}

@keyframes gdl-price-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@keyframes gdl-price-reveal {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gdl-price-skeleton, .gdl-breakdown-pending .gdl-price-row-val { animation: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   Shipment add-ons — checkboxes on the "הוסף עצירה נוספת" row
   ════════════════════════════════════════════════════════════════════════ */
.gdl-multistop-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
}
.gdl-ship-addons {
    display: contents;
}
.gdl-ship-addon-price {
    color: var(--gdl-accent);
    font-weight: 700;
    font-size: 13px;
}

/* ════════════════════════════════════════════════════════════════════════
   Selected package / speed card — filled with the main colour, white text,
   white icon tile (icon itself in the main colour)
   ════════════════════════════════════════════════════════════════════════ */
.gdl-app .gdl-size-card.selected,
.gdl-app .gdl-speed-card.selected {
    background: var(--gdl-accent) !important;
    border-color: var(--gdl-accent) !important;
}
.gdl-app .gdl-size-card.selected *,
.gdl-app .gdl-speed-card.selected * {
    color: #fff !important;
}
.gdl-app .gdl-size-card.selected .gdl-size-icon,
.gdl-app .gdl-speed-card.selected .gdl-speed-icon {
    background: #fff !important;
    border-radius: 14px;
}
.gdl-app .gdl-size-card.selected .gdl-size-icon,
.gdl-app .gdl-size-card.selected .gdl-size-icon *,
.gdl-app .gdl-speed-card.selected .gdl-speed-icon,
.gdl-app .gdl-speed-card.selected .gdl-speed-icon * {
    color: var(--gdl-accent) !important;
}
.gdl-app .gdl-speed-card.selected .gdl-speed-badge {
    background: rgba(255,255,255,.2) !important;
}
.gdl-app .gdl-speed-cards-grid .gdl-speed-card.selected .gdl-speed-badge {
    background: transparent !important;
}

/* ════════════════════════════════════════════════════════════════════════
   Card icons — +35% and ONE consistent background tile for every icon
   (built-in SVG or uploaded image alike). Old sizes: tile 56×0.8≈45px,
   glyph 32×0.8≈26px (package) / 28×0.8≈22px (speed grid) / 38px tile list.
   ════════════════════════════════════════════════════════════════════════ */
.gdl-app .gdl-size-icon,
.gdl-app .gdl-speed-icon {
    background: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.gdl-app .gdl-size-cards-sidebar .gdl-size-icon,
.gdl-app .gdl-sidebar .gdl-speed-cards-grid .gdl-speed-icon {
    width: 60px;
    height: 60px;
    transform: none;
    margin-bottom: 10px;
}
.gdl-app .gdl-size-cards-sidebar .gdl-size-icon svg,
.gdl-app .gdl-size-cards-sidebar .gdl-size-icon img {
    width: 35px !important;
    height: 35px !important;
    object-fit: contain;
}
.gdl-app .gdl-sidebar .gdl-speed-cards-grid .gdl-speed-icon svg,
.gdl-app .gdl-sidebar .gdl-speed-cards-grid .gdl-speed-icon img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
}
/* list-style speed cards (grid toggle off) */
.gdl-app .gdl-sidebar .gdl-speed-cards:not(.gdl-speed-cards-grid) .gdl-speed-icon {
    width: 51px;
    height: 51px;
}
.gdl-app .gdl-speed-cards:not(.gdl-speed-cards-grid) .gdl-speed-icon svg {
    width: 24px !important;
    height: 24px !important;
}
.gdl-app .gdl-speed-cards:not(.gdl-speed-cards-grid) .gdl-speed-icon img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
}

/* ════════════════════════════════════════════════════════════════════════
   Step 2 — pickup + delivery details: fields in clear pairs
   ════════════════════════════════════════════════════════════════════════ */
.gdl-field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}
.gdl-field-pair > .gdl-field {
    min-width: 0;
}
@media (max-width: 480px) {
    .gdl-field-pair { grid-template-columns: 1fr; }
}
.gdl-app select.gdl-slot-select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    direction: ltr;
    text-align: right;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px !important;
}
.gdl-app select.gdl-slot-select option:disabled {
    color: #cbd5e1;
}

/* ════════════════════════════════════════════════════════════════════════
   WooCommerce coupon — summary step
   ════════════════════════════════════════════════════════════════════════ */
.gdl-coupon [hidden] { display: none !important; }
.gdl-coupon {
    border: 1.5px dashed var(--gdl-border);
    border-radius: 14px;
    padding: 12px;
    background: var(--gdl-card-bg);
}
.gdl-coupon-form {
    display: flex;
    gap: 8px;
}
.gdl-app .gdl-coupon-input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--gdl-border);
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--gdl-text);
    direction: ltr;
    text-align: right;
    text-transform: uppercase;
}
.gdl-app .gdl-coupon-input::placeholder { text-transform: none; color: #94a3b8; }
.gdl-app .gdl-coupon-input:focus {
    outline: none;
    border-color: var(--gdl-accent);
}
.gdl-app .gdl-coupon-apply {
    flex-shrink: 0;
    height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: var(--gdl-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
}
.gdl-app .gdl-coupon-apply:disabled { opacity: .6; cursor: wait; }
.gdl-coupon-applied {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #047857;
}
.gdl-coupon-applied svg { flex-shrink: 0; }
.gdl-app .gdl-coupon-remove {
    margin-inline-start: auto;
    background: none;
    border: none;
    padding: 4px 6px;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}
.gdl-coupon-msg {
    font-size: 13px;
    margin-top: 8px;
}
.gdl-coupon-msg:empty { display: none; }
.gdl-coupon-msg.is-ok    { color: #047857; }
.gdl-coupon-msg.is-error { color: #dc2626; }
.gdl-price-row-coupon .gdl-price-row-val { color: #6ee7b7; font-weight: 700; }

/* ════════════════════════════════════════════════════════════════════════
   Orderer step — company (ח.פ) invoice details
   ════════════════════════════════════════════════════════════════════════ */
.gdl-company-toggle {
    margin: 4px 0 14px;
}
.gdl-company-fields[hidden] { display: none !important; }
.gdl-company-fields {
    padding: 14px 14px 2px;
    margin-bottom: 8px;
    border: 1.5px solid var(--gdl-border);
    border-radius: 14px;
    background: #f8fafc;
}

/* ════════════════════════════════════════════════════════════════════════
   Orderer step — private / business customer switch
   ════════════════════════════════════════════════════════════════════════ */
.gdl-ctype-panel[hidden] { display: none !important; }
.gdl-ctype {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.gdl-app .gdl-ctype-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1.5px solid var(--gdl-border);
    border-radius: 14px;
    background: var(--gdl-card-bg);
    color: var(--gdl-text);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.gdl-app .gdl-ctype-btn svg { flex-shrink: 0; }
.gdl-app .gdl-ctype-btn:hover { border-color: var(--gdl-accent); }
.gdl-app .gdl-ctype-btn.is-active {
    background: var(--gdl-accent);
    border-color: var(--gdl-accent);
    color: #fff;
}

/* Time select — shown when no window is left for today */
.gdl-slot-note {
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
}
