.maze-search-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    font-family: inherit;
}

.maze-search-form {
    position: relative;
    display: flex;
    width: 100%;
    margin: 0;
}

.maze-search-input {
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0 92px 0 18px;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: 2px;
    background: #fff;
    color: #222;
    font: inherit;
    line-height: 52px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
}

.maze-search-input:focus {
    border-color: rgba(0, 0, 0, .55);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.maze-search-input::-webkit-search-cancel-button {
    display: none;
}

.maze-search-submit,
.maze-search-clear {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #222;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s ease, opacity .2s ease;
}

.maze-search-submit {
    right: 5px;
}

.maze-search-clear {
    right: 45px;
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
}

.maze-search-submit:hover,
.maze-search-clear:hover,
.maze-search-submit:focus-visible,
.maze-search-clear:focus-visible {
    background: rgba(0, 0, 0, .06);
    outline: none;
}

.maze-search-submit svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.maze-search-box.is-loading .maze-search-submit svg {
    animation: maze-search-pulse .8s ease-in-out infinite alternate;
}

@keyframes maze-search-pulse {
    from { opacity: .3; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

.maze-search-dropdown {
    position: absolute;
    z-index: 999999;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: min(560px, 72vh);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    color: #222;
}

.maze-result-item {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 22px;
    gap: 15px;
    align-items: center;
    min-height: 96px;
    padding: 10px 15px 10px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    color: inherit;
    text-decoration: none !important;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.maze-result-item:hover,
.maze-result-item:focus,
.maze-result-item.is-active {
    background: #f7f7f7;
    box-shadow: inset 3px 0 0 #222;
    color: inherit;
    outline: none;
}

.maze-result-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    background: #fafafa;
}

.maze-result-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.maze-result-content {
    min-width: 0;
}

.maze-result-title {
    display: block;
    margin: 0 0 5px;
    overflow: hidden;
    color: #262626;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.maze-result-title mark,
.maze-result-sku mark {
    padding: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
}

.maze-result-sku {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0 0 4px;
    color: #777;
    font-size: 12px;
    line-height: 1.35;
}

.maze-result-sku > span:first-child {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 10px;
    background: #efefef;
    color: #555;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.maze-result-price {
    display: block;
    color: #222;
    font-size: 14px;
    font-weight: 600;
}

.maze-result-price del {
    margin-right: 7px;
    color: #888;
    font-weight: 400;
    opacity: 1;
}

.maze-result-price ins {
    color: #e3262e;
    font-weight: 700;
    text-decoration: none;
}

.maze-result-arrow {
    color: #aaa;
    font-size: 27px;
    font-weight: 300;
    transition: color .16s ease, transform .16s ease;
}

.maze-result-item:hover .maze-result-arrow,
.maze-result-item:focus .maze-result-arrow,
.maze-result-item.is-active .maze-result-arrow {
    color: #222;
    transform: translateX(2px);
}

.maze-view-all {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 13px 18px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .16s ease;
}

.maze-view-all:hover,
.maze-view-all:focus,
.maze-view-all.is-active {
    background: #f2f2f2;
    color: #222;
    outline: none;
}

.maze-no-results {
    padding: 22px 18px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 767px) {
    .maze-search-input {
        height: 48px;
        min-height: 48px;
        padding-right: 86px;
        line-height: 48px;
    }

    .maze-result-item {
        grid-template-columns: 62px minmax(0, 1fr) 16px;
        gap: 11px;
        min-height: 80px;
        padding: 9px 10px 9px 8px;
    }

    .maze-result-image-wrap {
        width: 62px;
        height: 62px;
    }

    .maze-result-title {
        font-size: 13px;
    }

    .maze-result-price {
        font-size: 13px;
    }

    .maze-result-arrow {
        font-size: 22px;
    }
}

/* Elementor / Funisox full-screen header search integration */
.elementor-search-form__container.elementor-search-form--full-screen .maze-search-box {
    width: min(900px, calc(100vw - 48px)) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-search-form {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-search-input {
    display: block !important;
    width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 104px 0 22px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 16px !important;
    line-height: 60px !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .18) !important;
    box-sizing: border-box !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-search-input:focus {
    box-shadow: 0 10px 35px rgba(0, 0, 0, .22), 0 0 0 2px rgba(0, 0, 0, .1) !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-search-submit,
.elementor-search-form__container.elementor-search-form--full-screen .maze-search-clear {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    z-index: 20 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #222 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-search-submit {
    right: 7px !important;
    left: auto !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-search-clear {
    right: 51px !important;
    left: auto !important;
    font-size: 24px !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-search-submit:hover,
.elementor-search-form__container.elementor-search-form--full-screen .maze-search-clear:hover {
    background: rgba(0, 0, 0, .06) !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-search-submit svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-search-dropdown {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-height: min(600px, 65vh) !important;
    border: 0 !important;
    border-radius: 3px !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .28) !important;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-result-item {
    grid-template-columns: 82px minmax(0, 1fr) 24px;
    min-height: 102px;
    padding: 10px 18px 10px 12px;
}

.elementor-search-form__container.elementor-search-form--full-screen .maze-result-image-wrap {
    width: 82px;
    height: 82px;
}

@media (max-width: 767px) {
    .elementor-search-form__container.elementor-search-form--full-screen .maze-search-box {
        width: calc(100vw - 28px) !important;
    }

    .elementor-search-form__container.elementor-search-form--full-screen .maze-search-input {
        height: 54px !important;
        min-height: 54px !important;
        padding-right: 96px !important;
        padding-left: 16px !important;
        font-size: 14px !important;
        line-height: 54px !important;
    }

    .elementor-search-form__container.elementor-search-form--full-screen .maze-search-submit,
    .elementor-search-form__container.elementor-search-form--full-screen .maze-search-clear {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .elementor-search-form__container.elementor-search-form--full-screen .maze-search-submit {
        right: 5px !important;
    }

    .elementor-search-form__container.elementor-search-form--full-screen .maze-search-clear {
        right: 45px !important;
    }
}
