/*! KHA WIS Frontend CSS v2.4.25
 * CSS consolidation / cascade map.
 *
 * No visual redesign is intended in this release. The existing selector order
 * and declaration order are intentionally preserved, because this stylesheet
 * contains theme-compatibility and Enfold/header-specific overrides where
 * cascade position is part of the fix.
 *
 * Sections:
 * 01. Core shell, input bar and base dropdown panel
 * 02. Product grid/list base, pricing, CTA, chips and view-all
 * 03. Tablet/mobile base responsive rules
 * 04. WooCommerce/state normalization and legacy compact refinements
 * 05. Desktop/mobile density, recommended products and active-result layouts
 * 06. Suggestions, stock, fallback, skeleton and analytics-safe UI states
 * 07. Shortcode launchers, submit-only mode, icon mode and portal positioning
 * 08. Image sizing, clear-button state, equal heights and final compatibility fixes
 */

/* ==========================================================================
   01. Core shell, input bar and base dropdown panel
   ========================================================================== */

.kha-wis-root,
.kha-wis-root * {
    box-sizing: border-box;
}

.kha-wis-root {
    position: relative;
    width: 100%;
    font-family: inherit;
    --kha-wis-bg: #ffffff;
    --kha-wis-text: #111111;
    --kha-wis-muted: #747474;
    --kha-wis-line: rgba(17, 17, 17, .10);
    --kha-wis-soft: #f6f6f7;
    --kha-wis-soft-2: #fafafa;
    --kha-wis-danger: #e11919;
    --kha-wis-radius: 22px;
    --kha-wis-shadow: 0 24px 70px rgba(15, 15, 15, .18);
    color: var(--kha-wis-text);
}

.kha-wis-root a {
    outline: none;
}

.kha-wis-popup-trigger {
    appearance: none;
    border: 1px solid rgba(17,17,17,.12);
    background: var(--kha-wis-accent, #111111);
    color: #fff;
    font-weight: 800;
    padding: 13px 18px;
    border-radius: 14px;
    cursor: pointer;
}

.kha-wis-popup-mode .kha-wis-shell[aria-hidden="true"] {
    display: none;
}

.kha-wis-popup-mode.is-open .kha-wis-shell {
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(12, 12, 14, .62);
    padding: 34px;
}

.kha-wis-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, .12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17,17,17,.08);
}

.kha-wis-popup-mode .kha-wis-bar {
    max-width: var(--kha-wis-panel-width, 1150px);
    margin: 0 auto;
}

.kha-wis-input {
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 0 106px 0 20px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--kha-wis-text);
    font-size: 16px;
    line-height: 54px;
}

.kha-wis-input::-webkit-search-decoration,
.kha-wis-input::-webkit-search-cancel-button,
.kha-wis-input::-webkit-search-results-button,
.kha-wis-input::-webkit-search-results-decoration {
    display: none;
}

.kha-wis-submit,
.kha-wis-clear,
.kha-wis-back {
    appearance: none;
    border: 0;
    outline: 0;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kha-wis-submit {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--kha-wis-accent, #111111);
    color: #fff;
    font-size: 0;
    font-weight: 800;
}

.kha-wis-submit span {
    display: none;
}

.kha-wis-submit::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-2px, -2px);
}

.kha-wis-submit::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 2px;
    background: currentColor;
    transform: translate(7px, 8px) rotate(45deg);
    border-radius: 2px;
}

.kha-wis-clear {
    position: absolute;
    right: 55px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border-radius: 12px;
    background: #f1f1f2;
    color: #111;
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
}

.kha-wis-root.has-value .kha-wis-clear {
    opacity: 1;
    pointer-events: auto;
}

.kha-wis-back {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: 4px;
    border-radius: 13px;
    background: #f1f1f2;
    color: #111;
    font-size: 34px;
    font-weight: 300;
}

.kha-wis-panel {
    position: absolute;
    z-index: 99999;
    left: 50%;
    top: calc(100% + 14px);
    width: min(var(--kha-wis-panel-width, 1150px), calc(100vw - 30px));
    transform: translateX(-50%);
    background: var(--kha-wis-bg);
    border: 1px solid rgba(17,17,17,.10);
    border-radius: var(--kha-wis-radius);
    box-shadow: var(--kha-wis-shadow);
    overflow: hidden;
    color: var(--kha-wis-text);
}

.kha-wis-panel::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--kha-wis-accent, #111111), rgba(17,17,17,.08));
}

.kha-wis-popup-mode .kha-wis-panel {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: var(--kha-wis-panel-width, 1150px);
    width: 100%;
    margin: 14px auto 0;
}

.kha-wis-content {
    padding: 24px;
    max-height: min(74vh, 650px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
}

.kha-wis-content h3 {
    margin: 0 0 16px;
    color: #111;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: -.02em;
}

.kha-wis-loading,
.kha-wis-empty {
    margin: 0;
    padding: 22px;
    border-radius: 16px;
    background: var(--kha-wis-soft);
    color: #111;
    font-size: 15px;
}

/* ==========================================================================
   02. Product grid/list base, pricing, CTA, chips and view-all
   ========================================================================== */

.kha-wis-results {
    display: grid;
    grid-template-columns: minmax(210px, 255px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.kha-wis-side {
    padding: 18px;
    border: 1px solid rgba(17,17,17,.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #fafafa, #f5f5f6);
}

.kha-wis-suggestions {
    display: grid;
    gap: 8px;
}

.kha-wis-suggestion {
    display: block;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    color: #111 !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kha-wis-suggestion:hover {
    background: #fff;
}

.kha-wis-suggestion-query {
    background: #fff;
    border: 1px solid rgba(17,17,17,.08);
}

.kha-wis-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.kha-wis-main-full .kha-wis-products {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kha-wis-product {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: #111;
    padding: 13px;
    border: 1px solid rgba(17,17,17,.09);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.kha-wis-product:hover {
    border-color: rgba(17,17,17,.20);
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(17,17,17,.08);
}

.kha-wis-product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--kha-wis-soft-2);
    text-decoration: none !important;
    overflow: hidden;
}

.kha-wis-product-img img {
    max-width: calc(100% - 14px);
    max-height: 98px;
    object-fit: contain;
    display: block;
}

.kha-wis-product-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.kha-wis-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    color: #111 !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.28;
    font-weight: 850;
}

.kha-wis-regular {
    margin-top: 12px;
    color: #7b7b7b;
    font-size: 13px;
    text-decoration: line-through;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.kha-wis-price {
    margin-top: 5px;
    color: #111;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 900;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.kha-wis-price .amount,
.kha-wis-regular .amount,
.kha-wis-savings .amount {
    white-space: nowrap;
}

.kha-wis-savings {
    margin-top: 7px;
    color: var(--kha-wis-danger);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.kha-wis-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    width: 100%;
    margin-top: 12px;
    padding: 8px 11px;
    border-radius: 13px;
    background: var(--kha-wis-accent, #111111);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.kha-wis-cart:hover {
    filter: brightness(.96);
}

.kha-wis-cart-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.kha-wis-cart-text {
    display: inline-block;
}

.kha-wis-maybe {
    margin: -2px 0 15px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(17,17,17,.045);
    color: #222;
    font-size: 14px;
}

.kha-wis-maybe a {
    color: #111 !important;
    font-weight: 900;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.kha-wis-separator {
    height: 1px;
    margin: 24px 0 22px;
    background: var(--kha-wis-line);
}

.kha-wis-popular-title {
    margin-top: 26px !important;
}

.kha-wis-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.kha-wis-main-full .kha-wis-chip-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.kha-wis-chip-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(17,17,17,.08);
    background: var(--kha-wis-soft);
    color: #111 !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 750;
}

.kha-wis-chip-grid a:hover {
    background: #fff;
}

.kha-wis-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 20px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #111;
    color: #fff !important;
    font-weight: 900;
    text-decoration: none !important;
}

.kha-wis-layout-widget .kha-wis-panel {
    width: min(780px, calc(100vw - 30px));
}

.kha-wis-layout-widget .kha-wis-results {
    grid-template-columns: 1fr;
}

.kha-wis-layout-widget .kha-wis-side {
    display: none;
}

.kha-wis-layout-widget .kha-wis-products {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

/* ==========================================================================
   03. Tablet/mobile base responsive rules
   ========================================================================== */

@media (max-width: 1180px) {
    .kha-wis-products,
    .kha-wis-main-full .kha-wis-products {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 980px) {
    .kha-wis-results {
        grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
        gap: 18px;
    }

    .kha-wis-content {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    html.kha-wis-open-page,
    html.kha-wis-open-page body {
        overflow: hidden;
    }

    .kha-wis-root.is-open .kha-wis-shell,
    .kha-wis-popup-mode.is-open .kha-wis-shell {
        position: fixed;
        z-index: 999999;
        inset: 0;
        padding: 12px;
        background: #151517;
    }

    .kha-wis-bar {
        min-height: 48px;
        border-radius: 16px;
        box-shadow: none;
    }

    .kha-wis-input {
        height: 48px;
        line-height: 48px;
        padding-left: 10px;
        padding-right: 88px;
        font-size: 15px;
    }

    .kha-wis-back {
        display: flex;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
    }

    .kha-wis-submit {
        right: 5px;
        top: 5px;
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .kha-wis-clear {
        right: 48px;
        width: 32px;
        height: 32px;
    }

    .kha-wis-panel,
    .kha-wis-popup-mode .kha-wis-panel {
        position: static;
        width: 100%;
        max-width: none;
        height: calc(100vh - 72px);
        margin: 12px 0 0;
        transform: none;
        border-radius: 20px 20px 0 0;
        box-shadow: none;
        overflow: hidden;
    }

    .kha-wis-panel::before {
        height: 3px;
    }

    .kha-wis-content {
        height: 100%;
        max-height: none;
        padding: 18px 16px 34px;
        overflow-y: auto;
        background: #fff;
    }

    .kha-wis-content h3 {
        margin-bottom: 14px;
        font-size: 18px;
    }

    .kha-wis-results {
        display: block;
    }

    .kha-wis-side {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        margin-bottom: 22px;
    }

    .kha-wis-suggestions {
        gap: 8px;
    }

    .kha-wis-suggestion {
        padding: 9px 0;
        border-radius: 0;
        background: transparent !important;
        white-space: normal;
    }

    .kha-wis-products,
    .kha-wis-main-full .kha-wis-products,
    .kha-wis-layout-widget .kha-wis-products {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kha-wis-product {
        min-height: 78px;
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        column-gap: 12px;
        align-items: center;
        padding: 10px;
        border-radius: 15px;
        box-shadow: none !important;
        transform: none !important;
    }

    .kha-wis-product-img {
        height: 66px;
        margin: 0;
        border-radius: 12px;
    }

    .kha-wis-product-img img {
        max-height: 58px;
    }

    .kha-wis-title {
        min-height: 0;
        font-size: 14px;
        line-height: 1.25;
        -webkit-line-clamp: 2;
    }

    .kha-wis-regular {
        display: none;
    }

    .kha-wis-price {
        margin-top: 6px;
        text-align: right;
        font-size: 17px;
        line-height: 1.15;
    }

    .kha-wis-savings {
        margin-top: 4px;
        text-align: right;
        font-size: 12px;
    }

    .kha-wis-cart {
        display: none;
    }

    .kha-wis-separator {
        margin: 22px 0 18px;
    }

    .kha-wis-chip-grid,
    .kha-wis-main-full .kha-wis-chip-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .kha-wis-chip-grid a {
        justify-content: flex-start;
        min-height: 0;
        padding: 9px 0;
        border: 0;
        background: transparent;
        text-align: left;
        font-size: 15px;
    }

    .kha-wis-noquery .kha-wis-products .kha-wis-product:nth-child(n+4),
    .kha-wis-results .kha-wis-products .kha-wis-product:nth-child(n+4) {
        display: none;
    }

    .kha-wis-view-all {
        width: 100%;
    }
}

/* ==========================================================================
   04. WooCommerce/state normalization and legacy compact refinements
   ========================================================================== */

/* v1.0.6 stability fixes */
.kha-wis-root .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.kha-wis-price del,
.kha-wis-price ins,
.kha-wis-regular del,
.kha-wis-regular ins {
    display: inline-block;
    max-width: 100%;
    text-decoration-thickness: 1px;
}

.kha-wis-price ins,
.kha-wis-regular ins {
    text-decoration: none !important;
}

.kha-wis-price {
    max-width: 100%;
    font-size: clamp(15px, 1.15vw, 18px);
}

.kha-wis-products {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.kha-wis-main-full .kha-wis-products {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.kha-wis-cart.is-loading {
    pointer-events: none;
    opacity: .72;
}

.kha-wis-cart.is-added {
    background: #111;
}

@media (max-width: 767px) {
    .kha-wis-price {
        font-size: 16px;
    }
}

/* v1.0.7 compact command dropdown */
.kha-wis-root {
    --kha-wis-radius: 18px;
    --kha-wis-shadow: 0 18px 50px rgba(15, 15, 15, .14);
}

.kha-wis-panel {
    width: min(var(--kha-wis-panel-width, 1040px), calc(100vw - 32px));
    border-radius: 18px;
}

.kha-wis-panel::before {
    height: 3px;
}

.kha-wis-content {
    padding: 22px 24px 24px;
    max-height: min(66vh, 560px);
}

.kha-wis-results {
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 20px;
}

.kha-wis-content h3 {
    margin-bottom: 14px;
    font-size: 17px;
    letter-spacing: -.015em;
}

.kha-wis-side {
    padding: 14px;
    border-radius: 16px;
    background: #f7f7f8;
}

.kha-wis-suggestions {
    gap: 7px;
}

.kha-wis-suggestion,
.kha-wis-chip-grid button,
.kha-wis-maybe button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.kha-wis-suggestion {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(17,17,17,.08);
    min-height: 38px;
    padding: 9px 11px;
}

.kha-wis-suggestion:hover,
.kha-wis-suggestion:focus-visible {
    background: #111;
    color: #fff !important;
}

.kha-wis-suggestion-expand::after,
.kha-wis-suggestion-maybe::after {
    content: '↵';
    float: right;
    opacity: .45;
    font-weight: 700;
}

.kha-wis-products,
.kha-wis-main-full .kha-wis-products,
.kha-wis-layout-widget .kha-wis-products {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.kha-wis-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
        "img body"
        "img cart";
    column-gap: 12px;
    row-gap: 7px;
    align-items: center;
    min-height: 102px;
    padding: 10px;
    border-radius: 16px;
    box-shadow: none;
}

.kha-wis-product:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17,17,17,.07);
}

.kha-wis-product-img {
    grid-area: img;
    width: 72px;
    height: 82px;
    margin: 0;
    border-radius: 13px;
    background: #f5f6f7;
}

.kha-wis-product-img img {
    max-width: 64px;
    max-height: 74px;
}

.kha-wis-product-body {
    grid-area: body;
    min-width: 0;
    align-self: end;
}

.kha-wis-title {
    min-height: 0;
    font-size: 13px;
    line-height: 1.28;
    -webkit-line-clamp: 2;
}

.kha-wis-regular {
    margin-top: 6px;
    font-size: 12px;
}

.kha-wis-price {
    margin-top: 3px;
    font-size: 15px;
    line-height: 1.18;
    font-weight: 900;
}

.kha-wis-savings {
    margin-top: 4px;
    font-size: 11px;
}

.kha-wis-cart {
    grid-area: cart;
    justify-self: start;
    width: auto;
    min-height: 30px;
    margin-top: 0;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .01em;
}

.kha-wis-cart-icon {
    display: none;
}

.kha-wis-maybe {
    margin: -2px 0 12px;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 13px;
}

.kha-wis-maybe button {
    padding: 0;
    background: transparent;
    color: #111;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kha-wis-loading,
.kha-wis-empty {
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
}

.kha-wis-popular-title {
    margin-top: 20px !important;
}

.kha-wis-chip-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.kha-wis-chip-grid button,
.kha-wis-chip-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 0;
    padding: 9px 11px;
    border-radius: 13px;
    border: 1px solid rgba(17,17,17,.08);
    background: #f3f3f4;
    color: #111 !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 750;
}

.kha-wis-chip-grid button:hover,
.kha-wis-chip-grid button:focus-visible,
.kha-wis-chip-grid a:hover,
.kha-wis-chip-grid a:focus-visible {
    background: #111;
    color: #fff !important;
}

.kha-wis-view-all {
    min-height: 38px;
    margin-top: 16px;
    padding: 9px 14px;
    border-radius: 13px;
    font-size: 13px;
}

@media (min-width: 1181px) {
    .kha-wis-main-full .kha-wis-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) and (min-width: 768px) {
    .kha-wis-results {
        grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
    }
    .kha-wis-products,
    .kha-wis-main-full .kha-wis-products {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 767px) {
    .kha-wis-content {
        padding: 17px 16px 34px;
    }
    .kha-wis-product {
        grid-template-columns: 70px minmax(0, 1fr);
        min-height: 86px;
        padding: 9px 0;
        border: 0;
        border-bottom: 1px solid rgba(17,17,17,.08);
        border-radius: 0;
    }
    .kha-wis-product-img {
        width: 64px;
        height: 70px;
    }
    .kha-wis-product-img img {
        max-width: 58px;
        max-height: 64px;
    }
    .kha-wis-cart {
        display: inline-flex;
        min-height: 28px;
        padding: 7px 10px;
        font-size: 11px;
    }
    .kha-wis-products,
    .kha-wis-main-full .kha-wis-products,
    .kha-wis-layout-widget .kha-wis-products {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .kha-wis-chip-grid button,
    .kha-wis-chip-grid a {
        justify-content: flex-start;
        padding: 9px 0;
        border: 0;
        background: transparent;
        font-size: 15px;
    }
}

/* v1.0.8 tighter dropdown + persistent-search visual polish */
.kha-wis-content {
    padding: 18px 20px 20px;
    max-height: min(64vh, 520px);
}

.kha-wis-results {
    gap: 18px;
}

.kha-wis-products,
.kha-wis-main-full .kha-wis-products,
.kha-wis-layout-widget .kha-wis-products {
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 9px;
}

.kha-wis-product {
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 88px;
    padding: 9px;
    border-radius: 14px;
    column-gap: 10px;
    row-gap: 5px;
}

.kha-wis-product-img {
    width: 62px;
    height: 70px;
    border-radius: 12px;
}

.kha-wis-product-img img {
    max-width: 56px;
    max-height: 64px;
}

.kha-wis-title {
    font-size: 12.5px;
    line-height: 1.24;
}

.kha-wis-price {
    font-size: 14px;
    line-height: 1.18;
}

.kha-wis-regular,
.kha-wis-savings {
    font-size: 10.8px;
}

.kha-wis-cart {
    min-height: 27px;
    padding: 7px 11px;
    font-size: 11.5px;
}

.kha-wis-content h3 {
    margin-bottom: 11px;
    font-size: 16px;
}

.kha-wis-side {
    padding: 12px;
}

.kha-wis-suggestion {
    min-height: 35px;
    padding: 8px 10px;
    font-size: 13px;
}

.kha-wis-separator {
    margin: 14px 0 12px;
}

.kha-wis-chip-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 7px;
}

.kha-wis-chip-grid button,
.kha-wis-chip-grid a {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12.5px;
}

@media (min-width: 1181px) {
    .kha-wis-main-full .kha-wis-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .kha-wis-content {
        padding: 16px 16px 32px;
        max-height: none;
    }

    .kha-wis-product {
        grid-template-columns: 64px minmax(0, 1fr);
        min-height: 82px;
        padding: 8px 0;
    }

    .kha-wis-product-img {
        width: 60px;
        height: 66px;
    }

    .kha-wis-product-img img {
        max-width: 54px;
        max-height: 60px;
    }
}

/* v1.0.9 outside-click close behavior is handled in JS; visual state remains unchanged. */

/* ==========================================================================
   05. Desktop/mobile density, recommended products and active-result layouts
   ========================================================================== */

/* v1.1.0 compact desktop + clean mobile refinements */
@media (min-width: 768px) {
    .kha-wis-panel {
        width: min(max(var(--kha-wis-panel-width, 1160px), 1120px), calc(100vw - 34px));
    }

    .kha-wis-content {
        padding: 18px 20px 20px;
        max-height: min(68vh, 540px);
    }

    .kha-wis-results {
        grid-template-columns: minmax(178px, 225px) minmax(0, 1fr);
        gap: 18px;
    }

    .kha-wis-products,
    .kha-wis-main-full .kha-wis-products,
    .kha-wis-layout-widget .kha-wis-products {
        grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
        gap: 8px;
    }

    .kha-wis-product {
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 74px;
        padding: 8px;
        column-gap: 8px;
        row-gap: 3px;
        border-radius: 13px;
    }

    .kha-wis-product-img {
        width: 54px;
        height: 60px;
        border-radius: 11px;
    }

    .kha-wis-product-img img {
        max-width: 48px;
        max-height: 54px;
    }

    .kha-wis-title {
        font-size: 12px;
        line-height: 1.22;
        -webkit-line-clamp: 2;
    }

    .kha-wis-regular {
        margin-top: 4px;
        font-size: 10.5px;
    }

    .kha-wis-price {
        margin-top: 2px;
        font-size: 13.5px;
        line-height: 1.14;
    }

    .kha-wis-savings {
        margin-top: 2px;
        font-size: 10.2px;
    }

    .kha-wis-cart {
        min-height: 24px;
        padding: 6px 9px;
        font-size: 10.5px;
    }

    .kha-wis-side {
        padding: 11px;
        border-radius: 14px;
    }

    .kha-wis-suggestion {
        min-height: 32px;
        padding: 7px 9px;
        border-radius: 10px;
        font-size: 12.5px;
    }
}

@media (min-width: 1181px) {
    .kha-wis-main-full .kha-wis-products,
    .kha-wis-products {
        grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    }
}

@media (max-width: 767px) {
    html.kha-wis-open-page,
    html.kha-wis-open-page body {
        overflow: hidden !important;
    }

    .kha-wis-root.is-open .kha-wis-shell,
    .kha-wis-popup-mode.is-open .kha-wis-shell {
        position: fixed;
        z-index: 999999;
        inset: 0;
        display: flex;
        flex-direction: column;
        padding: 10px 12px 0;
        background: #111113;
    }

    body.admin-bar .kha-wis-root.is-open .kha-wis-shell,
    body.admin-bar .kha-wis-popup-mode.is-open .kha-wis-shell {
        top: 46px;
    }

    .kha-wis-root.is-open .kha-wis-bar,
    .kha-wis-popup-mode.is-open .kha-wis-bar {
        flex: 0 0 auto;
        min-height: 46px;
        border: 0;
        border-radius: 999px;
        background: #fff;
        box-shadow: none;
    }

    .kha-wis-back {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        margin-left: 2px;
        border-radius: 999px;
        background: transparent;
        font-size: 28px;
    }

    .kha-wis-input {
        height: 46px;
        line-height: 46px;
        padding: 0 86px 0 6px;
        font-size: 15px;
    }

    .kha-wis-clear {
        right: 48px;
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: transparent;
        font-size: 22px;
    }

    .kha-wis-submit {
        right: 4px;
        top: 4px;
        width: 38px;
        height: 38px;
        border-radius: 999px;
    }

    .kha-wis-panel,
    .kha-wis-popup-mode .kha-wis-panel {
        flex: 1 1 auto;
        position: static;
        width: 100%;
        height: auto;
        max-height: none;
        margin: 10px 0 0;
        border: 0;
        border-radius: 16px 16px 0 0;
        box-shadow: none;
        transform: none;
        overflow: hidden;
    }

    .kha-wis-panel::before {
        height: 3px;
    }

    .kha-wis-content {
        height: 100%;
        max-height: none;
        padding: 18px 20px 32px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .kha-wis-results {
        display: block;
    }

    .kha-wis-content h3 {
        margin: 0 0 12px;
        font-size: 17px;
        line-height: 1.2;
    }

    .kha-wis-side {
        margin: 0 0 18px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .kha-wis-suggestions {
        display: grid;
        gap: 6px;
    }

    .kha-wis-suggestion {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 5px 0;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        color: #111 !important;
        font-size: 15px;
        line-height: 1.35;
        font-weight: 800;
        text-align: left;
        white-space: normal;
    }

    .kha-wis-suggestion:hover,
    .kha-wis-suggestion:focus-visible {
        background: transparent !important;
        color: #111 !important;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .kha-wis-suggestion-expand::after,
    .kha-wis-suggestion-maybe::after {
        content: none;
    }

    .kha-wis-maybe {
        margin: 0 0 12px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 13px;
    }

    .kha-wis-products,
    .kha-wis-main-full .kha-wis-products,
    .kha-wis-layout-widget .kha-wis-products {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .kha-wis-product {
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr);
        grid-template-areas: "img body";
        min-height: 78px;
        padding: 9px 0;
        border: 0;
        border-bottom: 1px solid rgba(17,17,17,.08);
        border-radius: 0;
        background: transparent;
        box-shadow: none !important;
        transform: none !important;
    }

    .kha-wis-product-img {
        width: 62px;
        height: 58px;
        border-radius: 8px;
        background: #f5f6f7;
    }

    .kha-wis-product-img img {
        max-width: 56px;
        max-height: 52px;
    }

    .kha-wis-product-body {
        align-self: center;
    }

    .kha-wis-title {
        min-height: 0;
        font-size: 14px;
        line-height: 1.22;
        -webkit-line-clamp: 2;
    }

    .kha-wis-price {
        margin-top: 4px;
        font-size: 15px;
        line-height: 1.15;
        text-align: right;
    }

    .kha-wis-savings {
        margin-top: 2px;
        font-size: 11.5px;
        text-align: right;
    }

    .kha-wis-regular {
        display: none;
    }

    .kha-wis-cart {
        display: none !important;
    }

    .kha-wis-separator {
        margin: 18px 0 14px;
    }

    .kha-wis-chip-grid,
    .kha-wis-main-full .kha-wis-chip-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .kha-wis-chip-grid button,
    .kha-wis-chip-grid a {
        justify-content: flex-start;
        min-height: 0;
        padding: 4px 0;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        color: #111 !important;
        text-align: left;
        font-size: 15px;
        line-height: 1.35;
    }

    .kha-wis-noquery .kha-wis-products .kha-wis-product:nth-child(n+4),
    .kha-wis-results .kha-wis-products .kha-wis-product:nth-child(n+4) {
        display: none;
    }

    .kha-wis-view-all {
        width: auto;
        min-height: 38px;
        margin-top: 16px;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 13px;
    }
}


/* v1.1.1 first-open recommended layout refinements */
@media (min-width: 768px) {
    .kha-wis-noquery .kha-wis-products,
    .kha-wis-noquery .kha-wis-main-full .kha-wis-products {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .kha-wis-noquery .kha-wis-products .kha-wis-product:nth-child(n+6) {
        display: none !important;
    }

    .kha-wis-noquery .kha-wis-product {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        min-height: 0 !important;
        padding: 12px !important;
        column-gap: 0 !important;
        row-gap: 0 !important;
        border-radius: 16px !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    .kha-wis-noquery .kha-wis-product-img {
        display: flex !important;
        width: 100% !important;
        height: 116px !important;
        min-height: 116px !important;
        margin: 0 0 10px !important;
        border-radius: 14px !important;
        background: #f4f6f7 !important;
    }

    .kha-wis-noquery .kha-wis-product-img img {
        max-width: calc(100% - 16px) !important;
        max-height: 100px !important;
        object-fit: contain !important;
    }

    .kha-wis-noquery .kha-wis-product-body {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        align-self: stretch !important;
    }

    .kha-wis-noquery .kha-wis-title {
        display: -webkit-box !important;
        min-height: 35px !important;
        margin: 0 0 7px !important;
        text-align: left !important;
        font-size: 13.5px !important;
        line-height: 1.28 !important;
        font-weight: 850 !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .kha-wis-noquery .kha-wis-regular {
        min-height: 15px !important;
        margin: 0 0 2px !important;
        text-align: left !important;
        font-size: 11.5px !important;
        line-height: 1.15 !important;
    }

    .kha-wis-noquery .kha-wis-price {
        margin: 0 !important;
        text-align: left !important;
        font-size: 15px !important;
        line-height: 1.2 !important;
        font-weight: 900 !important;
        white-space: normal !important;
    }

    .kha-wis-noquery .kha-wis-savings {
        margin-top: 3px !important;
        text-align: left !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
    }

    .kha-wis-noquery .kha-wis-cart {
        align-self: flex-start !important;
        width: auto !important;
        min-height: 30px !important;
        margin-top: 9px !important;
        padding: 8px 13px !important;
        border-radius: 999px !important;
        font-size: 11.5px !important;
        line-height: 1 !important;
    }

    .kha-wis-noquery .kha-wis-popular-title {
        margin-top: 18px !important;
    }

    .kha-wis-noquery .kha-wis-popular {
        margin-top: 8px !important;
    }
}

@media (min-width: 768px) and (max-width: 1040px) {
    .kha-wis-noquery .kha-wis-products,
    .kha-wis-noquery .kha-wis-main-full .kha-wis-products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* v1.1.2 compact first-open cards + configurable recommended count */
@media (min-width: 768px) {
    .kha-wis-noquery .kha-wis-products,
    .kha-wis-noquery .kha-wis-main-full .kha-wis-products {
        gap: 10px !important;
        align-items: start !important;
    }

    .kha-wis-rec-cols-3 .kha-wis-noquery .kha-wis-products,
    .kha-wis-rec-cols-3 .kha-wis-noquery .kha-wis-main-full .kha-wis-products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .kha-wis-rec-cols-4 .kha-wis-noquery .kha-wis-products,
    .kha-wis-rec-cols-4 .kha-wis-noquery .kha-wis-main-full .kha-wis-products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .kha-wis-rec-cols-5 .kha-wis-noquery .kha-wis-products,
    .kha-wis-rec-cols-5 .kha-wis-noquery .kha-wis-main-full .kha-wis-products {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .kha-wis-rec-cols-6 .kha-wis-noquery .kha-wis-products,
    .kha-wis-rec-cols-6 .kha-wis-noquery .kha-wis-main-full .kha-wis-products {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    .kha-wis-rec-cols-3 .kha-wis-noquery .kha-wis-products .kha-wis-product:nth-child(n+4),
    .kha-wis-rec-cols-4 .kha-wis-noquery .kha-wis-products .kha-wis-product:nth-child(n+5),
    .kha-wis-rec-cols-5 .kha-wis-noquery .kha-wis-products .kha-wis-product:nth-child(n+6),
    .kha-wis-rec-cols-6 .kha-wis-noquery .kha-wis-products .kha-wis-product:nth-child(n+7) {
        display: none !important;
    }

    .kha-wis-rec-cols-6 .kha-wis-noquery .kha-wis-products .kha-wis-product:nth-child(6) {
        display: flex !important;
    }

    .kha-wis-noquery .kha-wis-product {
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 10px !important;
    }

    .kha-wis-noquery .kha-wis-product-img {
        height: 102px !important;
        min-height: 102px !important;
        margin-bottom: 8px !important;
    }

    .kha-wis-noquery .kha-wis-product-img img {
        max-height: 90px !important;
    }

    .kha-wis-noquery .kha-wis-product-body {
        flex: 0 0 auto !important;
    }

    .kha-wis-noquery .kha-wis-title {
        min-height: 0 !important;
        margin-bottom: 6px !important;
    }

    .kha-wis-noquery .kha-wis-regular {
        min-height: 0 !important;
        margin-bottom: 1px !important;
    }

    .kha-wis-noquery .kha-wis-price {
        margin-top: 0 !important;
    }

    .kha-wis-noquery .kha-wis-cart {
        margin-top: 8px !important;
        min-height: 28px !important;
        padding: 7px 12px !important;
    }
}

/* v1.1.4 UX controls: density, layout and mobile compactness */
@media (min-width: 768px) {
    .kha-wis-density-compact .kha-wis-content {
        padding: 16px 18px 18px !important;
    }

    .kha-wis-density-compact .kha-wis-content h3 {
        margin-bottom: 10px !important;
        font-size: 16px !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-products,
    .kha-wis-density-compact .kha-wis-noquery .kha-wis-main-full .kha-wis-products {
        gap: 10px !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-product {
        padding: 10px !important;
        border-radius: 14px !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-product-img {
        height: 96px !important;
        min-height: 96px !important;
        margin-bottom: 7px !important;
        border-radius: 12px !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-product-img img {
        max-height: 86px !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-title {
        min-height: 0 !important;
        margin-bottom: 5px !important;
        font-size: 13px !important;
        line-height: 1.24 !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-regular {
        margin-bottom: 1px !important;
        font-size: 11px !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-price {
        font-size: 14.5px !important;
        line-height: 1.16 !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-savings {
        margin-top: 2px !important;
        font-size: 10.5px !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-cart {
        min-height: 26px !important;
        margin-top: 6px !important;
        padding: 6px 11px !important;
        font-size: 10.8px !important;
    }

    .kha-wis-density-normal .kha-wis-noquery .kha-wis-product-img {
        height: 108px !important;
        min-height: 108px !important;
    }

    .kha-wis-density-comfortable .kha-wis-noquery .kha-wis-product-img {
        height: 122px !important;
        min-height: 122px !important;
    }

    .kha-wis-density-comfortable .kha-wis-noquery .kha-wis-product {
        padding: 14px !important;
    }

    .kha-wis-density-compact .kha-wis-popular-title {
        margin-top: 14px !important;
    }

    .kha-wis-density-compact .kha-wis-chip-grid {
        gap: 7px !important;
    }

    .kha-wis-density-compact .kha-wis-chip-grid button,
    .kha-wis-density-compact .kha-wis-chip-grid a {
        min-height: 34px !important;
        padding: 8px 10px !important;
        border-radius: 11px !important;
        font-size: 12.5px !important;
    }

    .kha-wis-desktop-list .kha-wis-results .kha-wis-products {
        grid-template-columns: 1fr !important;
    }

    .kha-wis-desktop-grid .kha-wis-results .kha-wis-products {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }

    .kha-wis-desktop-grid .kha-wis-results .kha-wis-product {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .kha-wis-desktop-grid .kha-wis-results .kha-wis-product-img {
        width: 100% !important;
        height: 92px !important;
        margin: 0 0 7px !important;
    }

    .kha-wis-desktop-grid .kha-wis-results .kha-wis-product-img img {
        max-width: calc(100% - 12px) !important;
        max-height: 82px !important;
    }

    .kha-wis-desktop-grid .kha-wis-results .kha-wis-product-body {
        min-width: 0 !important;
    }

    .kha-wis-desktop-list .kha-wis-results .kha-wis-product {
        grid-template-columns: 62px minmax(0, 1fr) auto !important;
        align-items: center !important;
    }
}

@media (max-width: 767px) {
    .kha-wis-root.is-open .kha-wis-shell,
    .kha-wis-popup-mode.is-open .kha-wis-shell {
        padding: 8px 10px 0 !important;
    }

    .kha-wis-content {
        padding: 14px 16px 28px !important;
    }

    .kha-wis-content h3 {
        margin-bottom: 9px !important;
        font-size: 16px !important;
    }

    .kha-wis-side {
        margin-bottom: 14px !important;
    }

    .kha-wis-suggestions {
        gap: 4px !important;
    }

    .kha-wis-suggestion {
        min-height: 0 !important;
        padding: 4px 0 !important;
        font-size: 14px !important;
        line-height: 1.28 !important;
    }

    .kha-wis-mobile-cards .kha-wis-products,
    .kha-wis-mobile-cards .kha-wis-main-full .kha-wis-products,
    .kha-wis-mobile-cards .kha-wis-layout-widget .kha-wis-products {
        gap: 8px !important;
    }

    .kha-wis-mobile-cards .kha-wis-product {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr) !important;
        padding: 9px !important;
        border: 1px solid rgba(17,17,17,.08) !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    .kha-wis-mobile-list .kha-wis-product {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        min-height: 76px !important;
        padding: 7px 0 !important;
    }

    .kha-wis-mobile-list .kha-wis-product-img {
        width: 58px !important;
        height: 60px !important;
    }

    .kha-wis-mobile-list .kha-wis-product-img img {
        max-width: 52px !important;
        max-height: 54px !important;
    }

    .kha-wis-mobile-list .kha-wis-title {
        font-size: 13.5px !important;
        line-height: 1.22 !important;
    }

    .kha-wis-mobile-list .kha-wis-price {
        margin-top: 3px !important;
        font-size: 14px !important;
        line-height: 1.14 !important;
    }

    .kha-wis-mobile-list .kha-wis-savings {
        font-size: 10.5px !important;
    }

    .kha-wis-maybe,
    .kha-wis-empty {
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    .kha-wis-separator {
        margin: 14px 0 12px !important;
    }

    .kha-wis-chip-grid button,
    .kha-wis-chip-grid a {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }
}

/* ==========================================================================
   06. Suggestions, stock, fallback, skeleton and analytics-safe UI states
   ========================================================================== */

/* v1.1.5 search UX: active search uses related chips, not generic popular searches */
.kha-wis-maybe {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
}

.kha-wis-maybe > span {
    color: #333 !important;
}

.kha-wis-maybe-list {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

.kha-wis-maybe-list button,
.kha-wis-related button {
    appearance: none !important;
    border: 1px solid rgba(17, 17, 17, .12) !important;
    background: #fff !important;
    color: #111 !important;
    border-radius: 999px !important;
    min-height: 30px !important;
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.kha-wis-maybe-list button:hover,
.kha-wis-related button:hover,
.kha-wis-maybe-list button:focus-visible,
.kha-wis-related button:focus-visible {
    border-color: var(--kha-wis-accent) !important;
    background: rgba(255, 204, 0, .14) !important;
    outline: none !important;
}

.kha-wis-related-title {
    margin-top: 0 !important;
}

.kha-wis-results .kha-wis-categories,
.kha-wis-results .kha-wis-related {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

.kha-wis-results .kha-wis-categories a,
.kha-wis-results .kha-wis-related button {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    min-height: 31px !important;
    padding: 7px 13px !important;
    border-radius: 999px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

@media (min-width: 768px) {
    .kha-wis-results .kha-wis-categories a,
    .kha-wis-results .kha-wis-related button {
        font-size: 12.5px !important;
    }

    .kha-wis-results .kha-wis-separator {
        margin: 13px 0 11px !important;
    }
}

@media (max-width: 767px) {
    .kha-wis-maybe {
        display: block !important;
        padding: 9px 10px !important;
    }

    .kha-wis-maybe-list {
        margin-top: 7px !important;
    }

    .kha-wis-results .kha-wis-categories,
    .kha-wis-results .kha-wis-related {
        gap: 6px !important;
    }

    .kha-wis-results .kha-wis-categories a,
    .kha-wis-results .kha-wis-related button,
    .kha-wis-maybe-list button {
        min-height: 30px !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }
}

/* v1.4.0 stock/no-results polish */
.kha-wis-stock {
    display: inline-flex !important;
    align-items: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-top: 4px !important;
    padding: 3px 7px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    background: #f1f5f1 !important;
    color: #1f6b34 !important;
}
.kha-wis-stock-outofstock {
    background: #f5eeee !important;
    color: #9b1c1c !important;
}
.kha-wis-stock-onbackorder {
    background: #fff7e0 !important;
    color: #8a5a00 !important;
}
.kha-wis-fallback-title {
    margin-top: 12px !important;
}
.kha-wis-fallback-products {
    margin-top: 8px !important;
}

/* v1.4.2 UX polish: keyboard navigation + stable loading skeleton */
.kha-wis-root .is-keyboard-active {
    outline: 2px solid var(--kha-wis-accent, #ffcc00) !important;
    outline-offset: 2px !important;
}

.kha-wis-root .kha-wis-view-all.is-keyboard-active,
.kha-wis-root .kha-wis-cart.is-keyboard-active,
.kha-wis-root .kha-wis-product-link.is-keyboard-active {
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .22) !important;
}

.kha-wis-skeleton {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.kha-wis-skeleton-side,
.kha-wis-skeleton-main {
    display: grid;
    gap: 10px;
}

.kha-wis-skeleton-side span,
.kha-wis-skeleton-main span {
    position: relative;
    display: block;
    height: 38px;
    border-radius: 13px;
    overflow: hidden;
    background: #f0f0f1;
}

.kha-wis-skeleton-main {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.kha-wis-skeleton-main span {
    height: 84px;
}

.kha-wis-skeleton-side span::after,
.kha-wis-skeleton-main span::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.64), transparent);
    animation: khaWisSkeleton 1.05s infinite;
}

@keyframes khaWisSkeleton {
    100% { transform: translateX(100%); }
}

@media (max-width: 767px) {
    .kha-wis-skeleton {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .kha-wis-skeleton-side {
        gap: 7px;
    }
    .kha-wis-skeleton-side span {
        height: 22px;
        border-radius: 8px;
    }
    .kha-wis-skeleton-main {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .kha-wis-skeleton-main span {
        height: 76px;
        border-radius: 0;
        border-bottom: 1px solid rgba(17,17,17,.08);
        background: #f6f6f7;
    }
}

/* v1.5.0: prevent one-result active search card from stretching full width */
@media (min-width: 768px) {
    .kha-wis-results .kha-wis-products {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        justify-content: start !important;
    }
    .kha-wis-results .kha-wis-products .kha-wis-product:only-child {
        width: min(100%, 360px) !important;
        max-width: 360px !important;
        justify-self: start !important;
    }
    .kha-wis-desktop-list .kha-wis-results .kha-wis-products .kha-wis-product:only-child {
        width: min(100%, 520px) !important;
        max-width: 520px !important;
    }
}

/* v1.5.0: native search results page */
.kha-wis-search-page {
    background: #f7f7f8;
    padding: 38px 18px 56px;
}
.kha-wis-search-page-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}
.kha-wis-search-hero,
.kha-wis-search-block {
    background: #fff;
    border: 1px solid rgba(15, 15, 18, .08);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15, 15, 18, .06);
}
.kha-wis-search-hero {
    padding: 28px;
    margin-bottom: 16px;
}
.kha-wis-search-eyebrow {
    margin: 0 0 7px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7b7b82;
}
.kha-wis-search-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -.04em;
    color: #111;
}
.kha-wis-search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 720px;
}
.kha-wis-search-page-form input[type="search"] {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(15, 15, 18, .14);
    border-radius: 14px;
    background: #fff;
    color: #111;
    font-size: 16px;
    outline: none;
}
.kha-wis-search-page-form input[type="search"]:focus {
    border-color: var(--kha-wis-accent, #ffcc00);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, .16);
}
.kha-wis-search-page-form button,
.kha-wis-search-product-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}
.kha-wis-search-page-form button:hover,
.kha-wis-search-product-action:hover {
    background: #000;
    color: #fff !important;
}
.kha-wis-search-note {
    margin: 12px 0 0;
    color: #73737a;
    font-size: 13px;
}
.kha-wis-search-block {
    padding: 22px;
    margin-bottom: 16px;
}
.kha-wis-search-block h2 {
    margin: 0 0 13px;
    font-size: 19px;
    line-height: 1.25;
    color: #111;
}
.kha-wis-search-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.kha-wis-search-products-head h2 {
    margin: 0;
}
.kha-wis-search-products-head span {
    color: #73737a;
    font-size: 13px;
    font-weight: 700;
}
.kha-wis-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.kha-wis-search-chips a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(15, 15, 18, .12);
    border-radius: 999px;
    background: #f5f5f6;
    color: #111 !important;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
}
.kha-wis-search-chips a:hover {
    border-color: var(--kha-wis-accent, #ffcc00);
    background: #fff;
}
.kha-wis-search-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 14px;
}
.kha-wis-search-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 12px;
    border: 1px solid rgba(15, 15, 18, .09);
    border-radius: 16px;
    background: #fff;
}
.kha-wis-search-product-card:hover {
    border-color: rgba(15, 15, 18, .18);
    box-shadow: 0 10px 22px rgba(15, 15, 18, .06);
}
.kha-wis-search-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / .78;
    margin-bottom: 10px;
    border-radius: 13px;
    background: #f4f5f6;
    overflow: hidden;
}
.kha-wis-search-product-image img {
    max-width: calc(100% - 16px);
    max-height: calc(100% - 16px);
    object-fit: contain;
}
.kha-wis-search-product-content {
    flex: 1 1 auto;
    min-width: 0;
}
.kha-wis-search-product-title {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 8px;
    color: #111 !important;
    font-size: 14px;
    line-height: 1.32;
    font-weight: 850;
    text-decoration: none !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kha-wis-search-regular {
    color: #8a8a92;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: line-through;
}
.kha-wis-search-price {
    color: #111;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}
.kha-wis-search-savings {
    margin-top: 3px;
    color: #e00000;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}
.kha-wis-search-product-action {
    align-self: flex-start;
    min-height: 34px;
    margin-top: 12px;
    padding: 0 14px;
    background: var(--kha-wis-accent, #ffcc00);
    color: #111 !important;
    font-size: 12px;
}
.kha-wis-search-product-action:hover {
    background: #111;
    color: #fff !important;
}
.kha-wis-search-empty {
    padding: 28px;
    border-radius: 16px;
    background: #f5f5f6;
}
.kha-wis-search-empty h2 {
    margin: 0 0 8px;
}
.kha-wis-search-empty p {
    margin: 0;
    color: #73737a;
}
@media (max-width: 767px) {
    .kha-wis-search-page {
        padding: 20px 12px 38px;
    }
    .kha-wis-search-hero,
    .kha-wis-search-block {
        border-radius: 16px;
        padding: 16px;
    }
    .kha-wis-search-page-form {
        grid-template-columns: 1fr;
    }
    .kha-wis-search-products-grid {
        grid-template-columns: 1fr;
    }
    .kha-wis-search-product-card {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        column-gap: 12px;
        align-items: center;
    }
    .kha-wis-search-product-image {
        margin-bottom: 0;
        aspect-ratio: 1 / 1;
        grid-row: span 2;
    }
    .kha-wis-search-product-title {
        min-height: 0;
    }
    .kha-wis-search-product-action {
        grid-column: 2;
        margin-top: 8px;
    }
}


/* v2.0.1 - Theme/Enfold isolation hardening */
.kha-wis-root,
.kha-wis-root .kha-wis-shell,
.kha-wis-root .kha-wis-bar,
.kha-wis-root .kha-wis-panel,
.kha-wis-root .kha-wis-content {
    isolation: isolate;
}

.kha-wis-root.is-open {
    z-index: 2147482000;
}

#top .kha-wis-root input[type="search"].kha-wis-input,
#top .kha-wis-root .kha-wis-input,
.kha-wis-root input[type="search"].kha-wis-input,
.kha-wis-root .kha-wis-input {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 54px !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 106px 0 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--kha-wis-text, #111111) !important;
    font: inherit !important;
    font-size: 16px !important;
    line-height: 54px !important;
    text-align: left !important;
    text-indent: 0 !important;
}

#top .kha-wis-root input[type="search"].kha-wis-input:focus,
.kha-wis-root input[type="search"].kha-wis-input:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

#top .kha-wis-root .kha-wis-bar,
.kha-wis-root .kha-wis-bar {
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}

#top .kha-wis-root .kha-wis-submit,
#top .kha-wis-root .kha-wis-clear,
#top .kha-wis-root .kha-wis-back,
.kha-wis-root .kha-wis-submit,
.kha-wis-root .kha-wis-clear,
.kha-wis-root .kha-wis-back {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Keep Enfold/menu layers behind the mobile search and make the left icon a clean back arrow. */
@media (max-width: 767px) {
    html.kha-wis-open-page #wpadminbar {
        z-index: 2147481000 !important;
    }

    #top .kha-wis-root.is-open .kha-wis-shell,
    .kha-wis-root.is-open .kha-wis-shell,
    .kha-wis-popup-mode.is-open .kha-wis-shell {
        position: fixed !important;
        z-index: 2147483000 !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        padding: max(12px, env(safe-area-inset-top)) 12px 12px !important;
        background: #151517 !important;
        overflow: hidden !important;
        transform: none !important;
    }

    #top .kha-wis-root .kha-wis-bar,
    .kha-wis-root .kha-wis-bar {
        min-height: 48px !important;
        height: 48px !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    #top .kha-wis-root input[type="search"].kha-wis-input,
    #top .kha-wis-root .kha-wis-input,
    .kha-wis-root input[type="search"].kha-wis-input,
    .kha-wis-root .kha-wis-input {
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 88px 0 8px !important;
        font-size: 15px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }

    .kha-wis-root .kha-wis-back {
        display: flex !important;
        position: relative !important;
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
        margin-left: 5px !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        color: #111111 !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
        overflow: hidden !important;
    }

    .kha-wis-root .kha-wis-back::before {
        content: '' !important;
        display: block !important;
        width: 11px !important;
        height: 11px !important;
        border-left: 2px solid currentColor !important;
        border-bottom: 2px solid currentColor !important;
        transform: rotate(45deg) translate(2px, -1px) !important;
    }

    .kha-wis-root .kha-wis-panel,
    .kha-wis-popup-mode .kha-wis-panel {
        position: static !important;
        z-index: auto !important;
        width: 100% !important;
        max-width: none !important;
        height: calc(100dvh - 72px) !important;
        max-height: none !important;
        margin: 10px 0 0 !important;
        border-radius: 18px 18px 0 0 !important;
        transform: none !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .kha-wis-root .kha-wis-content {
        height: 100% !important;
        max-height: none !important;
        padding: 16px 16px 34px !important;
        overflow-y: auto !important;
        background: #ffffff !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .kha-wis-root .kha-wis-side,
    .kha-wis-root .kha-wis-suggestions,
    .kha-wis-root .kha-wis-suggestion {
        max-width: 100% !important;
    }

    .kha-wis-root .kha-wis-suggestion {
        min-height: 0 !important;
        padding: 8px 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
}

/* v2.0.3 - Mobile body-portal hardening for Enfold/headers with transform/overflow */
@media (max-width: 767px) {
    html.kha-wis-open-page,
    html.kha-wis-open-page body {
        overflow: hidden !important;
        height: 100% !important;
    }

    /* The root is temporarily moved to body on mobile while open. This prevents
       Enfold header wrappers, overflow and transform layers from clipping the search. */
    body > .kha-wis-root.kha-wis-portaled.is-open {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2147483000 !important;
        background: #111113 !important;
        color: #111 !important;
        overflow: hidden !important;
        isolation: isolate !important;
    }

    body.admin-bar > .kha-wis-root.kha-wis-portaled.is-open {
        top: 46px !important;
        height: calc(100dvh - 46px) !important;
        min-height: calc(100vh - 46px) !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-shell {
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 8px 10px 0 !important;
        background: #111113 !important;
        overflow: hidden !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-bar {
        position: relative !important;
        z-index: 3 !important;
        flex: 0 0 48px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: #fff !important;
        box-shadow: none !important;
        overflow: hidden !important;
        transform: none !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open input[type="search"].kha-wis-input,
    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-input,
    #top body > .kha-wis-root.kha-wis-portaled.is-open input[type="search"].kha-wis-input {
        -webkit-appearance: none !important;
        appearance: none !important;
        display: block !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 86px 0 6px !important;
        border: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--kha-wis-text, #111) !important;
        font: inherit !important;
        font-size: 15px !important;
        line-height: 48px !important;
        text-indent: 0 !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-back {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        margin: 0 0 0 4px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: transparent !important;
        color: #111 !important;
        font-size: 0 !important;
        line-height: 1 !important;
        text-indent: 0 !important;
        overflow: hidden !important;
        box-shadow: none !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-back::before {
        content: '←' !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        border: 0 !important;
        color: currentColor !important;
        font-size: 24px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        transform: none !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-back::after {
        display: none !important;
        content: none !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-clear {
        right: 48px !important;
        top: 50% !important;
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 999px !important;
        transform: translateY(-50%) !important;
        background: transparent !important;
        color: #111 !important;
        font-size: 22px !important;
        line-height: 1 !important;
        box-shadow: none !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-submit {
        right: 4px !important;
        top: 4px !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 999px !important;
        box-shadow: none !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-panel {
        position: relative !important;
        z-index: 2 !important;
        flex: 1 1 auto !important;
        display: block !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        left: auto !important;
        top: auto !important;
        margin: 10px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        overflow: hidden !important;
        transform: none !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-panel::before {
        height: 3px !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-content {
        height: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        padding: 14px 16px 30px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: #fff !important;
    }

    html.kha-wis-open-page #top .av-burger-overlay,
    html.kha-wis-open-page #top .av-burger-overlay-bg,
    html.kha-wis-open-page #top .av-burger-menu-main,
    html.kha-wis-open-page #top .av-hamburger,
    html.kha-wis-open-page #top #header,
    html.kha-wis-open-page #top .responsive #header_main .main_menu {
        z-index: 1 !important;
        pointer-events: none !important;
    }
}

@media (min-width: 768px) {
    body > .kha-wis-root.kha-wis-portaled {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }
}


/* v2.0.5 - Mobile search bar alignment polish */
@media (max-width: 767px) {
    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-bar {
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-back {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        transform: none !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-back::before {
        content: '' !important;
        display: block !important;
        width: 10px !important;
        height: 10px !important;
        margin: 0 !important;
        border: 0 !important;
        border-left: 2px solid currentColor !important;
        border-bottom: 2px solid currentColor !important;
        transform: rotate(45deg) translate(1px, -1px) !important;
        line-height: 1 !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open input[type="search"].kha-wis-input,
    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-input {
        display: block !important;
        align-self: center !important;
        flex: 1 1 auto !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        padding: 13px 86px 13px 0 !important;
        line-height: 22px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        vertical-align: middle !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open input[type="search"].kha-wis-input::placeholder,
    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-input::placeholder {
        line-height: 22px !important;
        opacity: .52 !important;
    }

    body > .kha-wis-root.kha-wis-portaled.is-open .kha-wis-clear {
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }
}


/* v2.0.6: standalone submit launcher shortcode: [kha-wis-submit] */
.kha-wis-root.kha-wis-submit-only {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.kha-wis-root.kha-wis-submit-only .kha-wis-popup-trigger.kha-wis-submit-shortcode-trigger {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--kha-wis-accent, #ffb000) !important;
    color: #111111 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 28px rgba(17, 17, 17, .14) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.kha-wis-root.kha-wis-submit-only .kha-wis-popup-trigger.kha-wis-submit-shortcode-trigger:hover,
.kha-wis-root.kha-wis-submit-only .kha-wis-popup-trigger.kha-wis-submit-shortcode-trigger:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(17, 17, 17, .18) !important;
    filter: saturate(1.05);
}

.kha-wis-root.kha-wis-submit-only .kha-wis-submit-shortcode-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.kha-wis-root.kha-wis-submit-only .kha-wis-submit-shortcode-icon::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 1px;
    width: 14px;
    height: 14px;
    border: 2.4px solid currentColor;
    border-radius: 999px;
}

.kha-wis-root.kha-wis-submit-only .kha-wis-submit-shortcode-icon::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 2.4px;
    right: 1px;
    bottom: 3px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.kha-wis-root.kha-wis-submit-only .kha-wis-submit-shortcode-text {
    display: inline-block;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.kha-wis-root.kha-wis-submit-only .kha-wis-submit-shortcode-text:not(:empty) {
    padding-right: 4px;
}

.kha-wis-root.kha-wis-submit-only .kha-wis-submit-shortcode-trigger.has-text {
    width: auto;
    min-width: 54px;
    padding: 0 18px !important;
}

@media (max-width: 767px) {
    .kha-wis-root.kha-wis-submit-only:not(.is-open) {
        display: inline-flex !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        background: transparent !important;
        position: relative !important;
        inset: auto !important;
        padding: 0 !important;
    }

    .kha-wis-root.kha-wis-submit-only:not(.is-open) .kha-wis-popup-trigger.kha-wis-submit-shortcode-trigger {
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
    }
}


/* ==========================================================================
   07. Shortcode launchers, submit-only mode, icon mode and portal positioning
   ========================================================================== */

/* v2.4.3 - multi-instance / standalone launcher isolation */
.kha-wis-popup-mode.is-open > .kha-wis-popup-trigger,
.kha-wis-root.kha-wis-submit-only.is-open > .kha-wis-popup-trigger {
    display: none !important;
}

.kha-wis-root.kha-wis-submit-only.kha-wis-submit-portaled.is-open {
    width: auto !important;
    max-width: none !important;
}

@media (min-width: 768px) {
    body > .kha-wis-root.kha-wis-submit-portaled.kha-wis-submit-only.is-open {
        position: static !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2147483000 !important;
    }

    body > .kha-wis-root.kha-wis-submit-portaled.kha-wis-submit-only.is-open .kha-wis-shell {
        display: block !important;
        position: fixed !important;
        z-index: 2147483000 !important;
        inset: 0 !important;
        background: rgba(12, 12, 14, .62) !important;
        padding: 34px !important;
        overflow: auto !important;
    }
}


/* v2.4.4 - desktop [kha-wis-submit] uses inline expansion; popup/fullscreen stays mobile-only */
@media (min-width: 768px) {
    .kha-wis-root.kha-wis-submit-only.is-open {
        position: relative !important;
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
        height: 54px !important;
        vertical-align: middle !important;
        z-index: 999998 !important;
    }

    .kha-wis-root.kha-wis-submit-only.is-open > .kha-wis-popup-trigger {
        display: none !important;
    }

    .kha-wis-root.kha-wis-submit-only.is-open .kha-wis-shell {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        inset: auto !important;
        z-index: 999999 !important;
        width: clamp(310px, 34vw, 460px) !important;
        max-width: calc(100vw - 32px) !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    .kha-wis-root.kha-wis-submit-only.is-open .kha-wis-bar {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        min-height: 54px !important;
        height: 54px !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 14px 36px rgba(17,17,17,.16) !important;
    }

    .kha-wis-root.kha-wis-submit-only.is-open .kha-wis-back {
        display: none !important;
    }

    .kha-wis-root.kha-wis-submit-only.is-open .kha-wis-input {
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 106px 0 18px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        line-height: 54px !important;
        font-size: 16px !important;
        color: var(--kha-wis-text, #111) !important;
    }

    .kha-wis-root.kha-wis-submit-only.is-open .kha-wis-panel {
        position: absolute !important;
        left: 0 !important;
        top: calc(100% + 12px) !important;
        right: auto !important;
        transform: none !important;
        width: min(var(--kha-wis-panel-width, 960px), calc(100vw - 32px)) !important;
        max-width: calc(100vw - 32px) !important;
        min-width: min(760px, calc(100vw - 32px)) !important;
        margin: 0 !important;
        border-radius: var(--kha-wis-radius, 18px) !important;
        background: var(--kha-wis-bg, #fff) !important;
        box-shadow: var(--kha-wis-shadow, 0 24px 70px rgba(15,15,15,.18)) !important;
        overflow: hidden !important;
    }

    .kha-wis-root.kha-wis-submit-only.is-open .kha-wis-content {
        max-height: min(70vh, 620px) !important;
        overflow: auto !important;
        background: #fff !important;
    }

    /* If the launcher is near the right edge, allow a manual helper class in shortcode: class="kha-wis-align-right" */
    .kha-wis-root.kha-wis-submit-only.kha-wis-align-right.is-open .kha-wis-shell {
        left: auto !important;
        right: 0 !important;
    }

    .kha-wis-root.kha-wis-submit-only.kha-wis-align-right.is-open .kha-wis-panel {
        left: auto !important;
        right: 0 !important;
    }
}

/* v2.4.5 - icon-only header trigger: [kha_wis_icon] / [kha_wsf_search_icon]
   Uses the same KHA WIS shell/panel as [kha_wis], only the activation UI is different. */
.kha-wis-root.kha-wis-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    vertical-align: middle;
}

.kha-wis-root.kha-wis-icon-only .kha-wis-icon-trigger {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--kha-wis-text, #111827) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.kha-wis-root.kha-wis-icon-only .kha-wis-icon-trigger:hover,
.kha-wis-root.kha-wis-icon-only .kha-wis-icon-trigger:focus-visible {
    background: rgba(17, 24, 39, .06) !important;
    color: var(--kha-wis-text, #111827) !important;
    transform: translateY(-1px);
}

.kha-wis-root.kha-wis-icon-only .kha-wis-icon-glyph,
.kha-wis-root.kha-wis-icon-only .kha-wis-icon-glyph::before,
.kha-wis-root.kha-wis-icon-only .kha-wis-icon-glyph::after {
    box-sizing: border-box;
}

.kha-wis-root.kha-wis-icon-only .kha-wis-icon-glyph {
    position: relative;
    display: block;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.kha-wis-root.kha-wis-icon-only .kha-wis-icon-glyph::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 1px;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.kha-wis-root.kha-wis-icon-only .kha-wis-icon-glyph::after {
    content: '';
    position: absolute;
    right: 1px;
    bottom: 3px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

@media (min-width: 768px) {
    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open {
        position: fixed !important;
        inset: 0 !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2147483000 !important;
        pointer-events: none !important;
        background: transparent !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open > .kha-wis-icon-trigger {
        display: none !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-shell {
        position: fixed !important;
        left: var(--kha-wis-icon-left, 16px) !important;
        top: var(--kha-wis-icon-top, 92px) !important;
        right: auto !important;
        bottom: auto !important;
        width: var(--kha-wis-icon-width, min(1180px, calc(100vw - 32px))) !important;
        max-width: calc(100vw - 32px) !important;
        height: auto !important;
        max-height: var(--kha-wis-icon-max-height, calc(100vh - 120px)) !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2147483001 !important;
        pointer-events: auto !important;
        overflow: hidden !important;
        border: 1px solid var(--kha-wis-border, #e5e7eb) !important;
        border-top: 3px solid var(--kha-wis-accent, #f5a400) !important;
        border-radius: var(--kha-wis-radius, 16px) !important;
        background: var(--kha-wis-bg, #ffffff) !important;
        box-shadow: var(--kha-wis-shadow, 0 24px 70px rgba(15, 15, 15, .18)) !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-bar {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 62px !important;
        height: 62px !important;
        margin: 0 !important;
        padding: 0 12px 0 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        border-bottom: 1px solid var(--kha-wis-border, #e5e7eb) !important;
        background: var(--kha-wis-bg, #ffffff) !important;
        box-shadow: none !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-back {
        display: none !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open input[type="search"].kha-wis-input,
    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-input {
        display: block !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 112px 0 22px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--kha-wis-text, #111827) !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        line-height: 62px !important;
        outline: none !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-clear {
        right: 74px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-submit {
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-panel {
        position: static !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: var(--kha-wis-bg, #ffffff) !important;
        box-shadow: none !important;
        overflow: hidden !important;
        transform: none !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-content {
        max-height: calc(var(--kha-wis-icon-max-height, 620px) - 64px) !important;
        overflow: auto !important;
        background: var(--kha-wis-bg, #ffffff) !important;
    }
}

@media (max-width: 767px) {
    .kha-wis-root.kha-wis-icon-only:not(.is-open) {
        display: inline-flex !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        background: transparent !important;
        position: relative !important;
        inset: auto !important;
        padding: 0 !important;
    }

    .kha-wis-root.kha-wis-icon-only:not(.is-open) .kha-wis-icon-trigger {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
    }
}


/* v2.4.6-2.4.9 - Header icon mode hardening, Enfold content-box alignment, SEO-safe titles */
.kha-wis-section-title {
    margin: 0 0 16px;
    color: #111;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: -.02em;
}

.kha-wis-content h1,
.kha-wis-content h2,
.kha-wis-content h3,
.kha-wis-content h4,
.kha-wis-content h5,
.kha-wis-content h6 {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
}

.kha-wis-root .kha-wis-panel[hidden],
.kha-wis-root .kha-wis-shell[aria-hidden="true"] .kha-wis-panel {
    display: none !important;
}

@media (min-width: 768px) {
    html.kha-wis-icon-overlay-open::before {
        content: '';
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 2147482500;
        background: rgba(17, 24, 39, .42);
        pointer-events: none;
    }

    .kha-wis-root.kha-wis-icon-only.is-open {
        position: relative !important;
        z-index: auto !important;
    }

    .kha-wis-root.kha-wis-icon-only.is-open > .kha-wis-icon-trigger {
        display: inline-flex !important;
        opacity: 1;
        filter: none;
        pointer-events: auto !important;
    }

    .kha-wis-root.kha-wis-icon-only.is-open .kha-wis-shell {
        position: fixed !important;
        left: var(--kha-wis-icon-left, 16px) !important;
        top: var(--kha-wis-icon-top, 92px) !important;
        right: auto !important;
        bottom: auto !important;
        width: var(--kha-wis-icon-width, min(1180px, calc(100vw - 32px))) !important;
        max-width: calc(100vw - 32px) !important;
        height: auto !important;
        max-height: var(--kha-wis-icon-max-height, min(58vh, 520px)) !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2147483001 !important;
        pointer-events: auto !important;
        overflow: hidden !important;
        border: 1px solid var(--kha-wis-border, #e5e7eb) !important;
        border-top: 3px solid var(--kha-wis-accent, #f5a400) !important;
        border-radius: var(--kha-wis-radius, 16px) !important;
        background: var(--kha-wis-bg, #ffffff) !important;
        box-shadow: 0 28px 80px rgba(15, 23, 42, .22) !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .kha-wis-root.kha-wis-icon-only.is-open .kha-wis-bar {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 58px !important;
        height: 58px !important;
        margin: 0 !important;
        padding: 0 12px 0 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        border-bottom: 1px solid var(--kha-wis-border, #e5e7eb) !important;
        background: var(--kha-wis-bg, #ffffff) !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .kha-wis-root.kha-wis-icon-only.is-open .kha-wis-back {
        display: none !important;
    }

    .kha-wis-root.kha-wis-icon-only.is-open input[type="search"].kha-wis-input,
    .kha-wis-root.kha-wis-icon-only.is-open .kha-wis-input {
        display: block !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 108px 0 20px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--kha-wis-text, #111827) !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 58px !important;
        outline: none !important;
    }

    .kha-wis-root.kha-wis-icon-only.is-open .kha-wis-clear {
        right: 72px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .kha-wis-root.kha-wis-icon-only.is-open .kha-wis-submit {
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .kha-wis-root.kha-wis-icon-only.is-open .kha-wis-panel {
        position: static !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: var(--kha-wis-bg, #ffffff) !important;
        box-shadow: none !important;
        overflow: hidden !important;
        transform: none !important;
    }

    .kha-wis-root.kha-wis-icon-only.is-open .kha-wis-content {
        max-height: calc(var(--kha-wis-icon-max-height, min(58vh, 520px)) - 60px) !important;
        overflow: auto !important;
        background: var(--kha-wis-bg, #ffffff) !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open > .kha-wis-icon-trigger {
        display: none !important;
        z-index: auto !important;
    }
}

@media (max-width: 767px) {
    .kha-wis-section-title {
        margin: 0 0 12px;
        font-size: 16px;
        line-height: 1.25;
    }
}


/* v2.4.9 - Desktop icon search is portaled above the page overlay.
   This prevents theme/header stacking contexts from dimming the active search shell. */
@media (min-width: 768px) {
    html.kha-wis-icon-portaled-open::before,
    html.kha-wis-icon-overlay-open::before {
        z-index: 2147482500 !important;
        pointer-events: none !important;
        background: rgba(17, 24, 39, .46) !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open {
        position: fixed !important;
        inset: 0 !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2147483000 !important;
        pointer-events: none !important;
        background: transparent !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open > .kha-wis-icon-trigger {
        display: none !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-shell {
        z-index: 2147483002 !important;
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
        background: var(--kha-wis-bg, #ffffff) !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-shell,
    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open .kha-wis-shell * {
        opacity: 1;
        filter: none;
    }
}


/* v2.4.11 - Standard [kha_wis] keeps the existing header input, but its dropdown follows the active theme container. */
@media (min-width: 768px) {
    html.kha-wis-default-overlay-open::before {
        content: '';
        position: fixed;
        left: 0;
        right: 0;
        top: var(--kha-wis-default-overlay-top, 0px);
        bottom: 0;
        z-index: 490;
        background: rgba(17, 24, 39, .40);
        pointer-events: none;
    }

    .kha-wis-root.kha-wis-layout-bar.is-open:not(.kha-wis-popup-mode):not(.kha-wis-submit-only):not(.kha-wis-icon-only),
    #top .kha-wis-root.kha-wis-layout-bar.is-open:not(.kha-wis-popup-mode):not(.kha-wis-submit-only):not(.kha-wis-icon-only) {
        position: relative !important;
        z-index: 2147482000 !important;
    }

    .kha-wis-root.kha-wis-layout-bar.is-open:not(.kha-wis-popup-mode):not(.kha-wis-submit-only):not(.kha-wis-icon-only) .kha-wis-shell,
    #top .kha-wis-root.kha-wis-layout-bar.is-open:not(.kha-wis-popup-mode):not(.kha-wis-submit-only):not(.kha-wis-icon-only) .kha-wis-shell {
        position: relative !important;
        z-index: 2147482001 !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .kha-wis-root.kha-wis-layout-bar.is-open:not(.kha-wis-popup-mode):not(.kha-wis-submit-only):not(.kha-wis-icon-only) .kha-wis-panel,
    #top .kha-wis-root.kha-wis-layout-bar.is-open:not(.kha-wis-popup-mode):not(.kha-wis-submit-only):not(.kha-wis-icon-only) .kha-wis-panel {
        position: fixed !important;
        left: var(--kha-wis-default-left, 16px) !important;
        top: var(--kha-wis-default-top, 92px) !important;
        width: var(--kha-wis-default-width, min(var(--kha-wis-panel-width, 1150px), calc(100vw - 32px))) !important;
        max-width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        max-height: var(--kha-wis-default-max-height, min(52vh, 500px)) !important;
        margin: 0 !important;
        transform: none !important;
        z-index: 2147482002 !important;
        overflow: hidden !important;
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }

    .kha-wis-root.kha-wis-layout-bar.is-open:not(.kha-wis-popup-mode):not(.kha-wis-submit-only):not(.kha-wis-icon-only) .kha-wis-content,
    #top .kha-wis-root.kha-wis-layout-bar.is-open:not(.kha-wis-popup-mode):not(.kha-wis-submit-only):not(.kha-wis-icon-only) .kha-wis-content {
        max-height: calc(var(--kha-wis-default-max-height, min(52vh, 500px)) - 4px) !important;
        overflow: auto !important;
        background: var(--kha-wis-bg, #ffffff) !important;
    }
}

/* v2.4.12 - No-query recommendation typography and configurable active result columns */
@media (min-width: 768px) {
    .kha-wis-noquery .kha-wis-title {
        font-weight: 900 !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-title {
        font-size: 15px !important;
    }

    .kha-wis-noquery .kha-wis-price {
        font-weight: 400 !important;
    }

    .kha-wis-density-compact .kha-wis-noquery .kha-wis-price {
        font-size: 16.5px !important;
    }

    .kha-wis-desktop-compact.kha-wis-result-cols-1 .kha-wis-results .kha-wis-products,
    .kha-wis-desktop-grid.kha-wis-result-cols-1 .kha-wis-results .kha-wis-products {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .kha-wis-desktop-compact.kha-wis-result-cols-2 .kha-wis-results .kha-wis-products,
    .kha-wis-desktop-grid.kha-wis-result-cols-2 .kha-wis-results .kha-wis-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .kha-wis-desktop-compact.kha-wis-result-cols-3 .kha-wis-results .kha-wis-products,
    .kha-wis-desktop-grid.kha-wis-result-cols-3 .kha-wis-results .kha-wis-products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .kha-wis-desktop-compact.kha-wis-result-cols-4 .kha-wis-results .kha-wis-products,
    .kha-wis-desktop-grid.kha-wis-result-cols-4 .kha-wis-results .kha-wis-products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .kha-wis-desktop-compact.kha-wis-result-cols-5 .kha-wis-results .kha-wis-products,
    .kha-wis-desktop-grid.kha-wis-result-cols-5 .kha-wis-results .kha-wis-products {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .kha-wis-desktop-compact.kha-wis-result-cols-6 .kha-wis-results .kha-wis-products,
    .kha-wis-desktop-grid.kha-wis-result-cols-6 .kha-wis-results .kha-wis-products {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}


/* ==========================================================================
   08. Image sizing, clear-button state, equal heights and final compatibility fixes
   ========================================================================== */

/* v2.4.13 - Active-result typography and admin-controlled product image size/source. */
.kha-wis-results .kha-wis-title {
    font-weight: 900 !important;
}

.kha-wis-density-compact .kha-wis-results .kha-wis-title {
    font-size: 15px !important;
}

.kha-wis-results .kha-wis-price {
    font-weight: 400 !important;
}

.kha-wis-density-compact .kha-wis-results .kha-wis-price {
    font-size: 16.5px !important;
}

@media (min-width: 768px) {
    .kha-wis-product-img {
        width: calc(var(--kha-wis-product-image-size, 105px) + 12px) !important;
        height: calc(var(--kha-wis-product-image-size, 105px) + 12px) !important;
        min-width: calc(var(--kha-wis-product-image-size, 105px) + 12px) !important;
        min-height: calc(var(--kha-wis-product-image-size, 105px) + 12px) !important;
    }

    .kha-wis-product-img img {
        width: var(--kha-wis-product-image-size, 105px) !important;
        height: var(--kha-wis-product-image-size, 105px) !important;
        max-width: var(--kha-wis-product-image-size, 105px) !important;
        max-height: var(--kha-wis-product-image-size, 105px) !important;
        object-fit: contain !important;
    }

    .kha-wis-results .kha-wis-product,
    .kha-wis-main-full .kha-wis-results .kha-wis-product {
        grid-template-columns: calc(var(--kha-wis-product-image-size, 105px) + 12px) minmax(0, 1fr) !important;
        min-height: calc(var(--kha-wis-product-image-size, 105px) + 28px) !important;
    }

    .kha-wis-desktop-list .kha-wis-results .kha-wis-product {
        grid-template-columns: calc(var(--kha-wis-product-image-size, 105px) + 12px) minmax(0, 1fr) auto !important;
    }

    .kha-wis-noquery .kha-wis-product-img {
        height: calc(var(--kha-wis-product-image-size, 105px) + 12px) !important;
        min-height: calc(var(--kha-wis-product-image-size, 105px) + 12px) !important;
    }

    .kha-wis-noquery .kha-wis-product-img img {
        width: var(--kha-wis-product-image-size, 105px) !important;
        height: var(--kha-wis-product-image-size, 105px) !important;
        max-width: var(--kha-wis-product-image-size, 105px) !important;
        max-height: var(--kha-wis-product-image-size, 105px) !important;
    }
}

@media (max-width: 767px) {
    .kha-wis-product-img {
        width: 66px !important;
        height: 66px !important;
        min-width: 66px !important;
        min-height: 66px !important;
    }
    .kha-wis-product-img img {
        width: 58px !important;
        height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        object-fit: contain !important;
    }
}

/* v2.4.14 - Final image-size enforcement from admin settings. */
@media (min-width: 768px) {
    .kha-wis-root .kha-wis-product-img img,
    #top .kha-wis-root .kha-wis-product-img img {
        width: var(--kha-wis-product-image-size, 105px) !important;
        height: var(--kha-wis-product-image-size, 105px) !important;
        max-width: var(--kha-wis-product-image-size, 105px) !important;
        max-height: var(--kha-wis-product-image-size, 105px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: var(--kha-wis-product-image-fit, cover) !important;
        object-position: center center !important;
        display: block !important;
    }

    .kha-wis-root.kha-wis-density-compact .kha-wis-noquery .kha-wis-product-img img,
    #top .kha-wis-root.kha-wis-density-compact .kha-wis-noquery .kha-wis-product-img img,
    .kha-wis-root.kha-wis-desktop-grid .kha-wis-results .kha-wis-product-img img,
    #top .kha-wis-root.kha-wis-desktop-grid .kha-wis-results .kha-wis-product-img img,
    .kha-wis-root.kha-wis-desktop-compact .kha-wis-results .kha-wis-product-img img,
    #top .kha-wis-root.kha-wis-desktop-compact .kha-wis-results .kha-wis-product-img img {
        width: var(--kha-wis-product-image-size, 105px) !important;
        height: var(--kha-wis-product-image-size, 105px) !important;
        max-width: var(--kha-wis-product-image-size, 105px) !important;
        max-height: var(--kha-wis-product-image-size, 105px) !important;
        object-fit: var(--kha-wis-product-image-fit, cover) !important;
    }
}

/* v2.4.15.1 - targeted reset from the original 2.4.15 baseline. */
.kha-wis-root .kha-wis-product,
#top .kha-wis-root .kha-wis-product {
    border: 0 !important;
}

.kha-wis-root .kha-wis-product:hover,
#top .kha-wis-root .kha-wis-product:hover {
    border-color: transparent !important;
}

.kha-wis-root .kha-wis-product-meta,
#top .kha-wis-root .kha-wis-product-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px 8px !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.kha-wis-root .kha-wis-product-meta .kha-wis-stock,
#top .kha-wis-root .kha-wis-product-meta .kha-wis-stock {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin-top: 0 !important;
}

.kha-wis-root .kha-wis-product-meta .kha-wis-cart,
#top .kha-wis-root .kha-wis-product-meta .kha-wis-cart {
    flex: 0 0 auto !important;
    align-self: center !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 26px !important;
    margin-top: 0 !important;
    padding: 6px 11px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.kha-wis-root a.added_to_cart.wc-forward,
.kha-wis-root .added_to_cart.wc-forward,
#top .kha-wis-root a.added_to_cart.wc-forward,
#top .kha-wis-root .added_to_cart.wc-forward {
    display: none !important;
}

@media (min-width: 768px) {
    .kha-wis-density-compact .kha-wis-results .kha-wis-title,
    #top .kha-wis-density-compact .kha-wis-results .kha-wis-title {
        margin-bottom: 5px !important;
    }

    body > .kha-wis-root.kha-wis-icon-portaled.kha-wis-icon-only.is-open > .kha-wis-icon-trigger {
        display: inline-flex !important;
        position: fixed !important;
        left: var(--kha-wis-icon-trigger-left, 16px) !important;
        top: var(--kha-wis-icon-trigger-top, 16px) !important;
        width: var(--kha-wis-icon-trigger-width, 44px) !important;
        min-width: var(--kha-wis-icon-trigger-width, 44px) !important;
        height: var(--kha-wis-icon-trigger-height, 44px) !important;
        min-height: var(--kha-wis-icon-trigger-height, 44px) !important;
        z-index: 2147483004 !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        filter: none !important;
        transform: none !important;
    }
}


/* v2.4.15.2 - equal recommendation height, clear-button state, centered active result body. */
.kha-wis-root:not(.has-value) .kha-wis-clear,
#top .kha-wis-root:not(.has-value) .kha-wis-clear {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.kha-wis-root.has-value .kha-wis-clear,
#top .kha-wis-root.has-value .kha-wis-clear {
    visibility: visible !important;
}

@media (min-width: 768px) {
    .kha-wis-root .kha-wis-noquery .kha-wis-products,
    #top .kha-wis-root .kha-wis-noquery .kha-wis-products,
    .kha-wis-root .kha-wis-noquery .kha-wis-main-full .kha-wis-products,
    #top .kha-wis-root .kha-wis-noquery .kha-wis-main-full .kha-wis-products {
        align-items: stretch !important;
    }

    .kha-wis-root .kha-wis-noquery .kha-wis-product,
    #top .kha-wis-root .kha-wis-noquery .kha-wis-product {
        align-self: stretch !important;
        height: 100% !important;
        min-height: 100% !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    .kha-wis-root .kha-wis-noquery .kha-wis-product-body,
    #top .kha-wis-root .kha-wis-noquery .kha-wis-product-body {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        align-self: stretch !important;
    }

    .kha-wis-root .kha-wis-noquery .kha-wis-product-meta,
    #top .kha-wis-root .kha-wis-noquery .kha-wis-product-meta {
        margin-top: auto !important;
    }

    .kha-wis-root .kha-wis-results .kha-wis-product,
    #top .kha-wis-root .kha-wis-results .kha-wis-product {
        align-items: center !important;
    }

    .kha-wis-root .kha-wis-results .kha-wis-product-body,
    #top .kha-wis-root .kha-wis-results .kha-wis-product-body {
        align-self: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 767px) {
    .kha-wis-root .kha-wis-price,
    #top .kha-wis-root .kha-wis-price {
        text-align: left !important;
    }
}

/* v2.4.16 - image fit consistency for mobile/responsive rendering. */
@media (max-width: 767px) {
    .kha-wis-root .kha-wis-product-img img,
    #top .kha-wis-root .kha-wis-product-img img {
        object-fit: var(--kha-wis-product-image-fit, cover) !important;
        object-position: center center !important;
    }
}
