/* ============================================================
   Skip Booking System - Frontend Styles
   Matches the original UI mockup exactly
   All classes .sbs- prefixed to avoid Avada conflicts
   ============================================================ */

[x-cloak] { display: none !important; }

.sbs-wizard {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Default: contained inside the parent column (safe on every viewport). */
/*.sbs-wizard {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.5;
    color: #1a1a2e;
    /* Safety: never allow any descendant to bust the viewport horizontally. */
    overflow-x: clip;
}*/

/* Desktop only: if the theme's parent column is narrower than 1280px, pull
   the wizard outward using the centered-breakout trick. Gated by a media
   query so it never runs on tablet/phone where parents are often full-width
   and the transform would clip the layout. */
/*@media (min-width: 1024px) {
    .sbs-wizard {
        width: min(1280px, calc(100vw - 40px));
        margin-left: 50%;
        margin-right: 0;
        transform: translateX(-50%);
        padding: 0 20px;
    }
}*/

.sbs-wizard *, .sbs-wizard *::before, .sbs-wizard *::after {
    box-sizing: border-box;
} 

/* ==================== WIZARD LAYOUT ==================== */
.sbs-wizard-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sbs-main {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}

/* ==================== STEPPER SIDEBAR ==================== */
.sbs-stepper {
    width: 220px;
    flex-shrink: 0;
}

.sbs-stepper-step {
    position: relative;
}

/* Each step renders as its own bordered card. An active step gets a thick
   navy left accent and a faint lavender fill; completed steps keep the plain
   card look so the active one stands out. */
.sbs-stepper-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    position: relative;
    z-index: 1;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sbs-stepper-item::before {
    /* Reserved for the active-state accent bar. */
    content: '';
    position: absolute;
    left: -1px;
    top: -1px;
    bottom: -1px;
    width: 5px;
    border-radius: 10px 0 0 10px;
    background: transparent;
    transition: background 0.2s ease;
}

.sbs-stepper-item:hover {
    border-color: #d1d5db;
    background: #fafbfc;
}

.sbs-stepper-item.is-active {
    background: #F2F2F9;
    /*border-color: #d8dcee;*/
    /*box-shadow: 0 1px 3px rgba(26,26,110,0.06);*/
    border-left-width: 5px;
    border-left-color: #00007F;
}

/*.sbs-stepper-item.is-active::before {
    background: #1a1a6e;
}*/

.sbs-stepper-item.is-completed {
    cursor: pointer;
}

/* Thin connector between cards, centered on the step circle column. */
.sbs-stepper-line {
    width: 1px;
    height: 10px;
    background: #d1d5db;
    margin: 0 0 0 32px;
    position: relative;
    z-index: 0;
}

.sbs-stepper-circle {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.sbs-stepper-item.is-active .sbs-stepper-circle,
.sbs-stepper-item.is-completed .sbs-stepper-circle {
    background: #1a1a6e;
    color: #fff;
    border-color: #1a1a6e;
}

.sbs-stepper-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.sbs-stepper-item.is-active .sbs-stepper-label {
    color: #1a1a2e;
    font-weight: 600;
}

/* ==================== SELECTIONS SUMMARY ==================== */
.sbs-selections {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.sbs-selection-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    border: 1px solid #e2e4e9;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sbs-selection-pill:hover {
    border-color: #1a1a6e;
    background: #f0f1ff;
}

.sbs-selection-pill .sbs-selection-label {
    color: #9ca3af;
    font-weight: 400;
}

.sbs-selection-pill strong {
    color: #1a1a2e;
    font-weight: 600;
    font-size: 11px;
}

/* ==================== STEP CONTENT BOX ==================== */
.sbs-step-content {
    border: 2px dashed #c7cbd4;
    border-radius: 12px;
    padding: 28px 20px;
    min-height: 280px;
    position: relative;
    background: #fff;
    /* width:100% and min-width:0 stop content with wide intrinsic size
       (eg the RoRo tonnage controls on Step 3) from shrinking this box
       below its flex-allocated width. */
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sbs-step-inner {
    animation: sbsFadeIn 0.25s ease-out;
}

@keyframes sbsFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* !important beats Avada's fusion-responsive-typography-calculated which
   injects an inline --fontSize custom property on every heading. */
.sbs-step-title {
    text-align: center;
    font-size: 24px !important;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    line-height: 1.25;
}

/* ==================== STEP 1: POSTCODE + DATE ==================== */
.sbs-form-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    max-width: 640px;
    margin: 0 auto;
}

.sbs-form-group {
    flex: 1;
}

.sbs-postcode-input {
    display: flex;
    align-items: stretch;
    height: 48px;
    position: relative;
    gap: 0;
}

/* Select2 override — match wizard's dark-navy prefix pill */
.sbs-postcode-input .select2-container {
    width: 150px !important;
    flex: 0 0 150px;
    height: 48px;
    display: block;
    vertical-align: top;
}

.sbs-postcode-input .select2-selection--single {
    background: #1a1a2e !important;
    border: 1px solid #1a1a2e !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    height: 48px !important;
    display: flex;
    align-items: center;
    padding: 0 34px 0 16px;
    box-sizing: border-box;
}

.sbs-postcode-input .select2-selection__rendered {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    line-height: 46px !important;
    padding: 0 !important;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sbs-postcode-input .select2-selection__placeholder {
    color: #cbd5e1 !important;
    font-weight: 500;
}

.sbs-postcode-input .select2-selection__arrow {
    height: 48px !important;
    width: 28px !important;
    right: 4px !important;
    top: 0 !important;
    background: transparent !important;
    border: none !important;
}

.sbs-postcode-input .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin-left: -5px !important;
    margin-top: -3px !important;
}

.sbs-postcode-input .select2-container--default .select2-selection--single {
    outline: none !important;
    box-shadow: none !important;
}

.sbs-postcode-input .select2-container--default.select2-container--focus .select2-selection--single,
.sbs-postcode-input .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #1a1a2e !important;
    box-shadow: none !important;
    outline: none !important;
}

.sbs-postcode-input .select2-selection__clear {
    color: #fff !important;
    margin-right: 4px !important;
    font-size: 16px;
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
}

.select2-dropdown {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    outline: none !important;
}

.select2-results__option--highlighted[aria-selected] {
    background: #1a1a2e !important;
    color: #fff !important;
}

.sbs-prefix-select {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 84px;
    appearance: auto;
    -webkit-appearance: auto;
    outline: none;
}

.sbs-postcode-full {
    border: 1px solid #d1d5db !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    height: 48px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    color: #374151;
    background: #fff;
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
}

.sbs-postcode-full::placeholder {
    text-transform: none;
}

.sbs-postcode-full::placeholder {
    color: #9ca3af;
}

.sbs-date-input {
    position: relative;
}

.sbs-date-field {
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 42px 0 14px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    width: 100%;
    outline: none;
}

.sbs-date-field::placeholder {
    color: #9ca3af;
}

.sbs-date-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
}

.sbs-zone-info {
    text-align: center;
    margin-top: 20px;
}

.sbs-zone-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Flatpickr alt input override */
.sbs-wizard .flatpickr-input[readonly] + input.form-control,
.sbs-wizard input.flatpickr-input + input {
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 42px 0 14px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    width: 100%;
    outline: none;
}

/* ==================== CARD GRID (Steps 2 & 3) ==================== */
.sbs-card-grid {
    display: grid;
    /* Default (narrow viewports): reflow with auto-fit so the grid still
       looks sensible on tablets / phones. Desktop override below caps at
       4 columns so each card gets enough width for the title + price +
       tonnage control without wrapping. */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    /*margin-bottom: 22px;*/
}

@media (min-width: 900px) {
    .sbs-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sbs-card {
    border: 2px solid #e8eaed;
    border-radius: 10px;
    padding: 18px 12px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    /* min-width:0 lets the card shrink below its intrinsic content width
       (eg the RoRo "- 02 + Tonnes" control ≈ 180px). Without this the
       tonnage row would force every card — and therefore every column —
       to be at least that wide. */
    min-width: 0;
}

.sbs-card:hover {
    border-color: #b0b5bd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.sbs-card--selected {
    border-color: #1a1a6e !important;
    /*border-top: 3px solid #1a1a6e;*/
    box-shadow: 0 2px 12px rgba(26,26,110,0.1);
    background: #fafafe;
}

.sbs-card-icon {
    margin-bottom: 10px;
}

.sbs-card-icon img,
.sbs-card-icon-placeholder {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    color: #dc2626;
}
.sbs-card-icon img {
    object-fit: contain;
    /*padding: 10px;*/
}
.sbs-card-icon-placeholder svg{
    padding: 10px;
}
.sbs-card-icon-placeholder svg {
    width: 32px;
    height: 32px;
}

.sbs-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    line-height: 1.25;
}

/*.sbs-card-price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #dc2626;
    margin: 0 0 8px;
}*/

.sbs-card-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #dc2626;
    margin: 0 0 8px;
    justify-content: center;
}

.sbs-card-tonnage {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 12px;
    padding: 0;
    background: transparent;
    font-size: 12px;
    color: #374151;
    /* flex-wrap lets "Tonnes" drop below the pill on narrow cards. */
    max-width: 100%;
}

/* Skip-size tonnage uses the shared .sbs-qty-btn / .sbs-qty-value rules above —
   no context-specific overrides needed. */

.sbs-card-tonnage-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.sbs-card-price-icon {
    display: none;
}

.sbs-card-price-vat {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.sbs-more-info {
    background: none;
    border: none;
    color: #1a1a6e;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sbs-more-info:hover {
    color: #12124e;
    text-decoration: underline;
}

/* ==================== ROAD TOGGLE (Step 2) ==================== */
.sbs-road-toggle {
    margin-top: 24px;
}

.sbs-road-question {
    background: #f1f2f4;
    border-radius: 8px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
}

.sbs-radio-group {
    display: flex;
    gap: 20px;
}

.sbs-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.sbs-radio input[type="radio"] {
    accent-color: #dc2626;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

/* ==================== EXTRAS LIST (Step 4) ==================== */
/* Rendered as a 2-column grid of bordered cards on desktop so the list
   takes half the vertical space. Drops to 1 column on tablet/phone. */
.sbs-extras-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sbs-extras-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s ease;
    gap: 12px;
}

.sbs-extras-row:hover {
    border-color: #c7cbd4;
}

.sbs-extras-info {
    display: flex;
    align-items: center;
    gap: 5px 10px;
    flex-wrap: wrap;
}

.sbs-extras-name {
    font-weight: 600;
    color: #1a1a2e;
    min-width: 0;
    font-size: 16px;
}

.sbs-extras-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.sbs-extras-price strong {
    color: #dc2626;
    font-size: 16px;
    font-weight: 800;
}

.sbs-extras-vat {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}

/* Unified +/- quantity control (segmented pill) used across:
   - Step 3 skip-size cards
   - Step 3 gate-fees cards
   - Step 4 extras list
   Single bordered group: [  −  | value |  +  ]. No individual button borders —
   internal vertical dividers come from the value's left/right border. */
.sbs-qty-control {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.sbs-qty-btn {
    width: 34px;
    height: 100%;
    padding: 0;
    border: none;
    background: #f9fafb;
    color: #374151;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.sbs-qty-btn:hover:not(:disabled) {
    background: #e5e7eb;
    color: #1a1a2e;
}

.sbs-qty-btn:active:not(:disabled) {
    background: #d1d5db;
}

.sbs-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Value cell — works for a static span (.sbs-qty-value) and an editable input
   (.sbs-gf-tonnage-input) alike. The flush left/right borders become the
   internal dividers of the pill. */
.sbs-qty-control .sbs-qty-value,
.sbs-qty-control .sbs-gf-tonnage-input {
    min-width: 40px;
    padding: 0 10px;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-radius: 0;
    background: #fff;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    height: 100%;
    line-height: 1;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sbs-qty-control .sbs-gf-tonnage-input:focus {
    outline: none;
    background: #f4f5fc;
    box-shadow: none;
}

/* ==================== CART (Step 5) ==================== */
.sbs-cart {
    max-width: 620px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.sbs-cart-header {
    background: #1a1a6e;
    color: #fff;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
        flex-wrap: wrap;
}

.sbs-cart-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sbs-cart-header-info {
    flex: 1;
}

.sbs-cart-skip-name {
    font-size: 16px;
    font-weight: 700;
}

.sbs-cart-header-price {
    font-size: 22px;
    font-weight: 800;
}

.sbs-cart-body {
    background: #fff;
}

.sbs-cart-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 13px 28px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 14px;
    align-items: center;
}

.sbs-cart-head {
    display: flex;
    justify-content: space-between;
    padding: 12px 28px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: #1a1a6e;
    background-image: linear-gradient(135deg, #1a1a6e 0%, #2e2ea3 100%);
    font-weight: 700;
    border-bottom: none;
}

.sbs-cart-line {
    padding: 14px 28px;
    border-bottom: 1px solid #f0f1f3;
}

.sbs-cart-line-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
}

.sbs-cart-line-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sbs-vat-pill {
    display: inline-block;
    padding: 2px 9px;
    background: #eef0ff;
    color: #4b4f8a;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 999px;
    line-height: 1.6;
}

.sbs-cart-line--extra {
    background: #fef7ee;
    border-left: 3px solid #f59e0b;
}

.sbs-cart-line--extra .sbs-cart-label { color: #92400e; }
.sbs-cart-line--extra .sbs-cart-amount { color: #b45309; }

.sbs-cart-summary {
    padding: 16px 28px 20px;
    background: #f8f9fb;
    border-top: 1px solid #e5e7eb;
}

.sbs-cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 14px;
    color: #374151;
    align-items: center;
}

.sbs-cart-summary-row--total {
    margin: 14px -14px 0;
    padding: 16px 20px;
    background: #1a1a6e;
    background-image: linear-gradient(135deg, #1a1a6e 0%, #2e2ea3 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    border-top: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(26,26,110,0.25);
}
.sbs-cart-summary-row--total span:last-child {
    font-size: 22px;
    font-weight: 800;
}

.sbs-cart-label {
    color: #374151;
    font-weight: 500;
}

.sbs-cart-calc {
    color: #6b7280;
    font-size: 13px;
    text-align: right;
    min-width: 90px;
}

.sbs-cart-amount {
    text-align: right;
    font-weight: 600;
    color: #1a1a2e;
    min-width: 70px;
}

.sbs-cart-row--extra {
    background: #fef7ee;
    border-left: 3px solid #f59e0b;
}

.sbs-cart-row--extra .sbs-cart-label {
    color: #92400e;
}

.sbs-cart-row--extra .sbs-cart-amount {
    color: #b45309;
}

.sbs-cart-row--vat {
    background: #f4f5f7;
    border-bottom: 1px solid #e5e7eb;
}

.sbs-cart-row--vat .sbs-cart-label,
.sbs-cart-row--vat .sbs-cart-amount {
    font-weight: 700;
}

.sbs-cart-row--total {
    background: #f0f2f5;
    font-size: 16px;
    padding: 16px 28px;
    border-bottom: none;
}

.sbs-cart-row--total .sbs-cart-label {
    font-weight: 800;
    color: #1a1a2e;
}

.sbs-cart-row--total .sbs-cart-amount {
    font-weight: 800;
    font-size: 18px;
    color: #1a1a2e;
}

.sbs-cart-actions {
    text-align: center;
    padding: 22px 15px 24px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

/* ==================== NAV BUTTONS ==================== */
.sbs-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.sbs-btn {
    padding: 14px 36px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /*line-height: 1;*/
}

.sbs-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sbs-btn-prev {
    background: #1a1a2e;
    color: #fff;
}

.sbs-btn-prev:hover:not(:disabled) {
    background: #0d0d1a;
}

.sbs-btn-next {
    background: #dc2626;
    color: #fff;

    font-family: var(--body_typography-font-family);
    font-weight: 600;
    letter-spacing: var(--body_typography-letter-spacing);
    font-style: var(--body_typography-font-style, normal);
}

.sbs-wizard button{
        font-family: var(--body_typography-font-family);
    font-weight: 600;
    /*letter-spacing: var(--body_typography-letter-spacing);*/
    font-style: var(--body_typography-font-style, normal);

}

.sbs-btn-next:hover:not(:disabled) {
    background: #b91c1c;
}

.sbs-btn-checkout {
    background: #dc2626;
    background-image: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    padding: 16px 52px;
    font-size: 14px;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(220,38,38,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sbs-btn-checkout:hover:not(:disabled) {
    background-image: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220,38,38,0.4);
}

.sbs-btn-checkout:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}

.sbs-btn-checkout .sbs-btn-icon {
    display: inline-flex;
    align-items: center;
}

.sbs-cart-secure-note {
    margin: 12px 0 0 !important;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.sbs-cart-secure-note span {
    font-size: 13px;
}

/* ==================== LOADING ==================== */
.sbs-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

/* While an AJAX transition is in flight, freeze every interactive element in
   the wizard so the customer can't queue up duplicate/conflicting clicks
   (prev+next, jumping between steps via the stepper, re-selecting a card, etc.). */
.sbs-wizard.is-loading {
    cursor: wait;
}
.sbs-wizard.is-loading .sbs-stepper-item,
.sbs-wizard.is-loading .sbs-nav-buttons button,
.sbs-wizard.is-loading .sbs-card,
.sbs-wizard.is-loading .sbs-qty-btn,
.sbs-wizard.is-loading .sbs-more-info,
.sbs-wizard.is-loading .sbs-selection-pill,
.sbs-wizard.is-loading .sbs-btn-checkout,
.sbs-wizard.is-loading .sbs-gf-tonnage-input,
.sbs-wizard.is-loading input,
.sbs-wizard.is-loading select,
.sbs-wizard.is-loading textarea,
.sbs-wizard.is-loading .sbs-road-toggle label {
    pointer-events: none !important;
    cursor: wait !important;
}
.sbs-wizard.is-loading .sbs-stepper-item,
.sbs-wizard.is-loading .sbs-nav-buttons button,
.sbs-wizard.is-loading .sbs-btn-checkout,
.sbs-wizard.is-loading .sbs-selection-pill {
    opacity: 0.55;
}
/* The spinner itself must still show through — it sits above the content box. */
.sbs-wizard.is-loading .sbs-loading {
    pointer-events: auto;
}

.sbs-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e5e7eb;
    border-top-color: #1a1a6e;
    border-radius: 50%;
    animation: sbsSpin 0.75s linear infinite;
}

@keyframes sbsSpin {
    to { transform: rotate(360deg); }
}

/* ==================== ERROR ==================== */
.sbs-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #fecaca;
    text-align: center;
}

.sbs-no-sizes, .sbs-no-extras, .sbs-calculating {
    text-align: center;
    color: #6b7280;
    padding: 48px 20px;
    font-size: 15px;
}

/* ==================== MODAL ==================== */
.sbs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.sbs-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.sbs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid #e5e7eb;
}

.sbs-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.sbs-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.sbs-modal-close:hover {
    color: #374151;
}

.sbs-modal-body {
    padding: 28px;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.sbs-modal-footer {
    padding: 18px 28px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .sbs-wizard-layout {
        flex-direction: column;
        gap: 20px;
    }

    .sbs-stepper {
        width: 100%;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 0;
        padding-bottom: 6px;
        justify-content: center;
    }

    .sbs-stepper-step {
        display: flex;
        align-items: center;
    }

    .sbs-stepper-line {
        width: 20px;
        height: 2px;
        margin: 0;
    }

    .sbs-stepper-item {
        flex-direction: column;
        gap: 4px;
        padding: 10px 14px;
        min-width: auto;
        border-radius: 8px;
    }

    /* Horizontal layout: move the accent bar from the left edge to the bottom. */
    /*.sbs-stepper-item::before {
        left: -1px;
        right: -1px;
        top: auto;
        bottom: -1px;
        width: auto;
        height: 3px;
        border-radius: 0 0 8px 8px;
    }*/

    /*.sbs-stepper-item.is-active {
        border-radius: 8px 8px 0 0;
    }*/
}

@media (max-width: 768px) {
    .sbs-wizard {
        padding: 0 0px;
        /*margin: 20px auto;*/
    }

    .sbs-step-content {
        padding: 22px 14px;
        border-radius: 10px;
    }

    .sbs-step-title {
        font-size: 20px !important;
        margin-bottom: 18px;
    }

    /* Let auto-fit handle it — just tighten the gap further. */
    .sbs-card-grid {
        gap: 10px;
    }

    .sbs-card {
        padding: 14px 10px 12px;
    }

    .sbs-card-icon img,
    .sbs-card-icon-placeholder {
        width: 60px;
        height: 60px;
    }
    .sbs-card-icon-placeholder svg {
        width: 26px;
        height: 26px;
    }

    .sbs-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .sbs-form-group {
        max-width: 100%;
    }

    /* Stack the 2-col grid down to 1 col on narrow screens. */
    .sbs-extras-list {
        grid-template-columns: 1fr;
    }

    .sbs-extras-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
    }

    .sbs-extras-info {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
    .sbs-extras-name {
        min-width: auto;
        width: 100%;
    }

    .sbs-qty-control {
        align-self: center;
    }

    .sbs-cart-row {
        padding: 12px 18px;
    }

    .sbs-cart-calc {
        display: none;
    }

    .sbs-cart-row {
        grid-template-columns: 1fr auto;
    }

    .sbs-road-question {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .sbs-nav-buttons {
        margin-top: 20px;
    }

    .sbs-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

@media(max-width: 720px){
    .sbs-stepper-label {
        display: none;
    }
    .sbs-stepper-item.is-active{
        border-left-width: 1px;
        border-left-color: #e5e7eb;
    }
}

@media(max-width: 545px){
    /*.sbs-stepper{
        justify-content: flex-start;
    }*/

    .sbs-stepper-line{
        width: 7px;
        height: 0px;
    }

}

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

    /*.sbs-stepper-label {
        display: none;
    }*/

    .sbs-stepper-item {
        padding: 8px 10px;
    }
}

@media (max-width: 432px) {
    .sbs-stepper-circle{
        width: 25px;
        height: 25px;
        min-width: 25px;
    }
}

@media (max-width: 402px) {
    .sbs-stepper-circle{
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
}

/* ==================== GATE FEES (Step 3 alternate flow) ==================== */
.sbs-gf-intro {
    /* !important beats Avada paragraph styles that default-justify content. */
    text-align: center !important;
    color: #4b5563;
    max-width: 680px;
    margin: 0 auto 20px !important;
    font-size: 13px;
    line-height: 1.5;
}

/* Match the skip-size grid (4 columns on desktop, auto-fit below). The
   desktop-900 override on .sbs-card-grid already applies here because
   .sbs-gf-grid sits alongside it. */
.sbs-gf-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* Uniform-height cards so rows don't jitter when some materials have
   notes and others don't. */
.sbs-gf-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 14px 14px 16px;
    gap: 10px;
}

/* Icon + title row */
.sbs-gf-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.sbs-gf-head-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef0ff;
    color: #1a1a6e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sbs-gf-name {
    margin: 0 !important;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Per-tonne rate */
.sbs-gf-rate {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 2px 0 4px;
}
.sbs-gf-rate-amount {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a6e;
    letter-spacing: -0.01em;
}
.sbs-gf-rate-unit {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.sbs-gf-rate-vat {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

/* Combined min-quantity + min-charge + optional note, stacked in one pill
   so cards keep a consistent structural layout whether a note exists or not. */
.sbs-gf-min {
    background: #f8f9fb;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}
.sbs-gf-min-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.sbs-gf-min strong {
    color: #374151;
    font-weight: 600;
}
.sbs-gf-min-sep {
    color: #d1d5db;
}
.sbs-gf-note {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
    line-height: 1.35;
    padding-top: 2px;
    border-top: 1px dashed #e5e7eb;
}
.sbs-gf-min > .sbs-gf-note:first-child {
    border-top: none;
    padding-top: 0;
}

/* Tonnes control — label on top, [−] input [+] on the row below.
   Keeps the control self-contained without an orphan "t" unit. */
.sbs-gf-tonnage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 2px 0;
    padding: 8px;
    background: #f8f9fb;
    border-radius: 6px;
}
.sbs-gf-tonnage-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
}
.sbs-gf-tonnage-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* Gate-fees tonnage input — shared pill styles handle layout + borders.
   Only the browser spinner suppression is gate-fee specific. */
.sbs-gf-tonnage-input::-webkit-outer-spin-button,
.sbs-gf-tonnage-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sbs-gf-tonnage-input { -moz-appearance: textfield; }
/* Gate-fees tonnage inherits from the shared .sbs-qty-btn rules — no overrides. */

/* Estimated total — the headline number per card */
.sbs-gf-estimate {
    margin-top: auto;
    padding: 10px 12px;
    background: #1a1a6e;
    background-image: linear-gradient(135deg, #1a1a6e 0%, #2e2ea3 100%);
    color: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.sbs-gf-estimate-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.8;
}
.sbs-gf-estimate-amount {
    font-size: 16px;
    font-weight: 800;
    margin-left: auto;
}
.sbs-gf-estimate-vat {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* Stronger selected state so it reads clearly on the detailed card. */
.sbs-gf-card.sbs-card--selected {
    border-color: #1a1a6e !important;
    border-top-width: 2px;
    box-shadow: 0 4px 14px rgba(26,26,110,0.18);
}
.sbs-gf-card.sbs-card--selected .sbs-gf-head-icon {
    background: #1a1a6e;
    color: #ffffff;
}

.sbs-cart-note {
    font-size: 12px;
    color: #b45309;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 6px;
    display: inline-block;
}

.sbs-gf-hint {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /*max-width: 680px;*/
    width: 100%;
    margin: 20px auto 0;
    padding: 14px 18px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-left: 4px solid #1a1a6e;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #1e3a8a;
}
.sbs-gf-hint strong { color: #1a1a6e; }

.sbs-permit-hint {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}
.sbs-permit-hint-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.sbs-permit-hint-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
    margin-top: 1px;
}
.sbs-permit-hint strong { color: #78350f; }
