/* ── Slider arrows ───────────────────────────────────────────────────────── */
.bx-newslide .slick-prev,
.bx-newslide .slick-next {
    display: block !important;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    z-index: 10;
}
.bx-newslide .slick-prev { left: 10px; }
.bx-newslide .slick-next { right: 10px; }
.bx-newslide .slick-prev:before,
.bx-newslide .slick-next:before {
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 40px;
    color: #fff;
    opacity: 1;
}
.bx-newslide .slick-prev:before { content: '\2039'; }
.bx-newslide .slick-next:before { content: '\203A'; }

/* ── Form spinner ────────────────────────────────────────────────────────── */
.spinner_kk {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 9px solid !important;
    border-color: #dbdcef !important;
    border-right-color: #000000 !important;
    animation: spinner-d3wgkg 1s infinite linear;
}

@keyframes spinner-d3wgkg {
    to { transform: rotate(1turn); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INVENTORY FILTER BAR
   ═══════════════════════════════════════════════════════════════════════════ */

/* Layout: filter on top, grid below */
.blocks-filter {
    display: flex;
    flex-direction: column-reverse;
}

/* ── Filter container ───────────────────────────────────────────────────── */
.filter {
    background: #fff;
    border-bottom: 2px solid #ebebeb;
    margin-bottom: 20px;
}

.filter-top-wrap {
    padding: 0;
}

/* ── Filter top row ─────────────────────────────────────────────────────── */
.filter-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0;
}

/* ── "Filter By" label ──────────────────────────────────────────────────── */
.filter-by-text:not(.mobile) {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-right: 14px;
    border-right: 1px solid #ddd;
    margin-right: 4px;
    white-space: nowrap;
    flex-shrink: 0;
min-width: 110px;
}

.filter-by-text.mobile {
    display: none;
}

/* ── Filter groups row ──────────────────────────────────────────────────── */
.filter-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: 20px;
}

/* ── Close button (mobile only) ─────────────────────────────────────────── */
.close-btn {
    display: none;
}

/* ── Individual filter dropdown ─────────────────────────────────────────── */
.filter-wrap {
    position: relative;
}

.filter-wrap h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 100px;
    padding: 9px 18px !important;
    margin: 0;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    user-select: none;
    line-height: 1.2;
    min-width: 130px !important;
    text-align: center;
    justify-content: center;
   min-height: 40px;
}

.filter-wrap h3:hover {
    background: #ececec;
    border-color: #bbb;
}

/* Chevron via CSS pseudo-element */
.filter-wrap h3::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

/* Active / open state */
.filter-wrap h3.arrow {
    background: #c4161c;
    color: #fff;
    border-color: #c4161c;
}

.filter-wrap h3.arrow::after {
    opacity: 1;
    transform: rotate(-135deg) translateY(1px);
}

/* Filter applied state */
.filter-wrap.count-visible h3 {
    background: #c4161c;
    color: #fff;
    border-color: #c4161c;
}

.filter-wrap.count-visible h3::after {
    opacity: 1;
}

/* Count badge inside h3 */
.filter-wrap h3 .model-count {
    font-weight: 700;
    font-size: 12px;
    border-radius: 100px;
    padding: 0 !important;
    margin-left: 0 !important;
}

/* ── Dropdown panel ──────────────────────────────────────────────────────── */
.filter-inner-wrap {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.06);
    padding: 8px;
    min-width: 260px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 500;
    /* Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.filter-inner-wrap::-webkit-scrollbar {
    width: 4px;
}
.filter-inner-wrap::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* ── Checkbox labels ─────────────────────────────────────────────────────── */
.filter-inner-wrap label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s ease;
    font-size: 14px;
    color: #222;
    font-weight: 400;
}

.filter-inner-wrap label:hover {
    background: #f5f5f5;
}

/* ── Custom checkbox ─────────────────────────────────────────────────────── */
.filter-inner-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid #686e77;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.filter-inner-wrap input[type="checkbox"]:checked {
    background: #c4161c;
    border-color: #c4161c;
}

.filter-inner-wrap input[type="checkbox"]:checked::after {
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(45deg);
    content: "";
}

/* ── Clear Filters button (sits inline at right of filter-top row) ───────── */
.clear-filter {
    margin-left: auto;
    flex-shrink: 0;
    cursor: pointer;
    color: #c0392b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.18s ease;
    white-space: nowrap;
}

.clear-filter:hover {
    opacity: 0.7;
}

.filter {
    display: flex !important;
    margin: 0 0 20px 0 !important;
    align-items: center;
    width: 100%;
    flex-direction: row;
    padding: 0px 30px;
    border-radius: 4px;
}

.filter .div-count {
    display: block;
    margin-top: 0;
    flex-basis: 30%;text-align: right;
}


.wpinventory_item .wpinventory_listing_inner p.inventory_price.strike,
.wpinventory_item .wpinventory_listing_inner p.inventory_price.strike a,
.wpinventory_item .wpinventory_listing_inner p.inventory_price.strike a span {
    text-decoration: line-through !important;
    opacity: 1;
}

.wpinventory_item .wpinventory_listing_inner p.inventory_status a.available-now {
    background: #107200;
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px 0px 0px 0px;
    font-size: 14px;
    line-height: 18px;
}

.wpinventory_item .wpinventory_listing_inner p.inventory_status {
    position: absolute;
    top: 2px;
    left: 0px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    padding-left: 0px !important;
    padding-top: 0px !important;
    line-height: 0;
}
.wpinventory_item .wpinventory_listing_inner p.inventory_status a.coming-soon {
    background: #777;
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px 0px 0px 0px;
    font-size: 14px;
    line-height: 18px;
}

.wpinventory_item .wpinventory_listing_inner p.inventory_status a.sale-pending {
    background: #e68a00;
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px 0px 0px 0px;
    font-size: 14px;
    line-height: 18px;
}
.wpinventory_item .slick-list {overflow: hidden;border-radius: 8px;}
.inventory-form .wpinventory_item .disclaimer {margin-top: 50px;}
.gravity-form.inventory-form h3.gsection_title {font-size: 15px;}

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
	.filter {padding: 0px 14px;}
	.filter-left {gap: 10px;}
    .filter-wrap h3 {padding: 9px 8px !important;min-width: 120px !important;}
}
@media (max-width: 768px) {

    /* Hide desktop filter bar content — but not .filter itself (filter-left lives inside it) */
    .filter-top-wrap,
    .div-count {
        display: none !important;
    }

    /* ── Sticky footer bar ── */
    .inv-mobile-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        gap: 12px;
        padding: 12px 16px 12px;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        z-index: 1000;
    }

    .inv-mobile-filters-btn {
		padding: 9px 16px;
		background: #c4161c;
		color: #fff;
		border: none;
		border-radius: 100px;
		font-size: 15px;
		font-weight: 600;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		width: 190px;
		margin: 0 auto;
	}

    /* Add bottom padding to inventory list so items don't hide behind footer */
    .blocks-filter {
        padding-bottom: 80px;
    }

    /* ── Filter drawer ── */
    .filter-left {
        display: flex !important;
        flex-direction: column;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #fff;
        z-index: 99999 !important;
        border-radius: 0 !important;
        transform: translateX(100%);
        transition: transform 0.3s ease, visibility 0.3s;
        visibility: hidden;
        padding: 0 !important;
        overflow: hidden;
        gap: 0;
        align-items: stretch;
        margin: 0 !important;
    }

    .filter-left.menu-open {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* Hide sticky footer when drawer is open */
    body.inv-drawer-open .inv-mobile-footer {
        display: none !important;
    }

    /* Backdrop */
    .inv-drawer-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 9998;
    }

    .inv-drawer-backdrop.active {
        display: block;
    }

    /* Hide original close-btn — replaced by drawer header */
    .close-btn {
        display: none !important;
    }

    /* ── Drawer header ── */
    .inv-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #ebebeb;
        flex-shrink: 0;
    }

    .inv-drawer-header h3 {
        font-size: 17px;
        font-weight: 700;
        color: #111;
        margin: 0;
    }

    .inv-drawer-close {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #c4161c;
        color: #fff;
        border: none;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ── Drawer scrollable body ── */
    .inv-drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
    }

    /* Each filter group */
    .filter-wrap {
        width: 100%;
        border-bottom: 1px solid #ebebeb;
        position: relative;
    }

    .filter-wrap h3 {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 13px !important;
        font-size: 15px;
        font-weight: 600;
        color: #222;
        width: 100%;
        min-width: unset !important;
        cursor: pointer;
        border-radius: 8px;
    }
.filter-wrap.count-visible h3:after {
    border-color: #fff;
}

    .filter-wrap h3::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #555;
        border-bottom: 2px solid #555;
        transform: rotate(-135deg) translateY(2px);
        transition: transform 0.2s ease;
        opacity: 1;
        position: static;
        flex-shrink: 0;
               right: 20px;
        position: absolute;
    }

    .filter-wrap h3.arrow::after {
        transform: rotate(45deg) translateY(-2px);
    }

    .filter-wrap h3:hover {
        color: #fff;
    }

    .filter-wrap h3 .model-count {
        margin-right: 12px;
    }
.filter-wrap h3.arrow:after {
    border-color: #fff;
}
    .filter-inner-wrap {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 16px;
        max-height: none;
       padding: 0 5px;
    }
    

    .filter-inner-wrap.open {
        display: block;
    }

    .filter-inner-wrap label {
        padding: 10px 0;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .filter-inner-wrap input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    /* ── Drawer footer ── */
    .inv-drawer-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px 35px;
    border-top: 1px solid #ebebeb;
    flex-shrink: 0;
    width: 300px;
    margin: 0 auto;
}
.inv-drawer-footer button {
    width: 130px;height: auto;
}

    .inv-drawer-clear {
        flex: 1;
        padding: 6px 12px;
        background: #fff;
        color: #111;
        border: 1.5px solid #ddd;
        border-radius: 100px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: opacity 0.2s, color 0.2s;
        height: 50px;
    }

    .inv-drawer-clear.is-disabled,
    .inv-drawer-clear:disabled {
        color: #aaa;
        cursor: default;
        pointer-events: none;
        border: 1px solid #ccc;
        opacity: 1;
    }

    .inv-drawer-results {
        flex: 1.4;
        padding: 8px 12px;
        background: #c4161c;
        color: #fff;
        border: none;
        border-radius: 100px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }

    body.inv-drawer-open {
        overflow: hidden;
    }
}


/* ── Featured Inventory Shortcode ─────────────────────────────────────────── */
.bowlus-featured-inventory {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;min-height: 340px;
}

.bfi-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.bfi-image-wrap {
    display: block;
    position: relative;
}

.bfi-image-wrap img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.bfi-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.75) 100%);
}

.bfi-content {position: absolute;bottom: 0;width: 100%;background-color: transparent;z-index: 2;}
.bfi-content {
    padding: 20px 24px 24px;
    color: #fff;
    text-align: center;position: absolute;bottom: 0;width: 100%;background-color: transparent;z-index: 2;
}

.bfi-title {font-size: 22px;font-weight: 400;margin: 0 0 10px;color: #fff;line-height: 29px;}

.bfi-description {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0 0 14px;
    line-height: 1.5;
}

.bfi-learn-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
}

.bfi-learn-more:hover {
    opacity: 0.75;
    color: #fff;
    text-decoration: underline;
}
.bfi-description a {color: #fff;}
a.bfi-learn-more {color: var(--global-palette8);text-align: center;font-size: 16px;text-transform: capitalize;font-weight: 400;border-bottom: 1px solid var(--global-palette8);}
.bfi-item:before {background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), linear-gradient(180deg, rgba(0, 0, 0, 0) 61.57%, #000000 100%);position: absolute;content: "";left: 0;right: 0;width: 100%;height: 100%;border-radius: 8px;z-index: 1;}
.bfi-description {display: none;}

@media (max-width: 767px) {
    .bowlus-featured-inventory {
        grid-template-columns: 1fr;
    }
}

/* ── Inventory detail page: Gravity Form checkbox/radio styling ───────────── */

/* Remove letter badges — match forms.css specificity exactly */
body.wpinventory-single .gfield.gfield--type-checkbox div.ginput_container.ginput_container_checkbox .gchoice::before,
body.wpinventory-single .gfield.gfield--type-radio div.ginput_container.ginput_container_radio .gchoice::before {
    display: none !important;
    content: none !important;
}

/* Choice row */
body.wpinventory-single .gfield.gfield--type-checkbox div.ginput_container.ginput_container_checkbox .gfield_checkbox .gchoice,
body.wpinventory-single .gfield.gfield--type-radio div.ginput_container.ginput_container_radio .gfield_radio .gchoice {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
}

/* Reset label — no border, no background, no card style */
body.wpinventory-single .gfield.gfield--type-checkbox div.ginput_container.ginput_container_checkbox .gfield_checkbox .gchoice label,
body.wpinventory-single .gfield.gfield--type-radio div.ginput_container.ginput_container_radio .gfield_radio .gchoice label {
    display: inline !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    color: #111 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: none !important;
    margin-left: 0 !important;
}
body.wpinventory-single .detail-vin{
    display: none !important;
}
body.wpinventory-single .gfield.gfield--type-checkbox div.ginput_container.ginput_container_checkbox .gfield_checkbox input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 1px solid #aaa !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.wpinventory-single .gfield.gfield--type-checkbox div.ginput_container.ginput_container_checkbox .gfield_checkbox input[type="checkbox"]:checked {
    background: #c4161c !important;
    border-color: #c4161c !important;
}

body.wpinventory-single .gfield.gfield--type-checkbox div.ginput_container.ginput_container_checkbox .gfield_checkbox input[type="checkbox"]:checked::after {
    content: "" !important;
    display: block !important;
    width: 5px !important;
    height: 9px !important;
    border: 2px solid #fff !important;
    border-top: none !important;
    border-left: none !important;
    transform: rotate(45deg) translate(0px, 0px) !important;
}

body.wpinventory-single .gfield.gfield--type-checkbox div.ginput_container.ginput_container_checkbox .gfield_checkbox input[type="checkbox"]::before,
body.wpinventory-single .gfield.gfield--type-checkbox div.ginput_container.ginput_container_checkbox .gfield_checkbox input[type="checkbox"]:checked::before {
    display: none !important;
    content: none !important;
}

/* Restore radio input */
body.wpinventory-single .gfield.gfield--type-radio div.ginput_container.ginput_container_radio .gfield_radio input[type="radio"] {
    position: static !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 2px solid #aaa !important;
    border-radius: 50% !important;
    background: #fff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}

body.wpinventory-single .gfield.gfield--type-radio div.ginput_container.ginput_container_radio .gfield_radio input[type="radio"]:checked {
    background: #fff !important;
    border-color: #c4161c !important;
    box-shadow: inset 0 0 0 4px #c4161c !important;
}

/* Checked label state — subtle highlight */
body.wpinventory-single .gfield.gfield--type-checkbox div.ginput_container.ginput_container_checkbox .gfield_checkbox input[type="checkbox"]:checked + label,
body.wpinventory-single .gfield.gfield--type-radio div.ginput_container.ginput_container_radio .gfield_radio input[type="radio"]:checked + label {
    color: #c4161c !important;
    font-weight: 500 !important;
}

body.wpinventory-single .ginput_container.ginput_container_radio,
body.wpinventory-single .ginput_container.ginput_container_checkbox {
    width: auto !important;
}
