.ap-header-search {
    width: min(100%, 500px);
}

.ap-header-search .dgwt-wcas-search-wrapp {
    max-width: 500px;
    width: 100%;
}

.ap-header-search .dgwt-wcas-search-form {
    margin: 0;
}

.ap-header-search .dgwt-wcas-sf-wrapp {
    align-items: stretch;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    display: flex;
    min-height: 40px;
}

.ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    background: #0a0a0a;
    border: 0;
    box-shadow: none;
    color: #ffffff;
    font-family: var(--e-global-typography-text-font-family, sans-serif), sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    line-height: 40px;
    min-height: 40px;
    padding: 0 16px;
}

.ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:hover {
    background: #0a0a0a;
    color: #ffffff;
}

.ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
    background: #0a0a0a;
    color: #ffffff;
    outline: 2px solid rgba(251, 81, 4, 0.55);
    outline-offset: -2px;
}

.ap-header-search .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
    color: rgba(255, 255, 255, 0.58);
    opacity: 1;
}

.ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit {
    background: #fb5104;
    border: 0;
    color: #ffffff;
    flex: 0 0 auto;
    font-family: var(--e-global-typography-primary-font-family, sans-serif), sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    min-height: 40px;
    padding: 0 22px;
    text-transform: uppercase;
}

.ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover {
    background: #e94700;
    color: #ffffff;
}

.ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus {
    background: #e94700;
    color: #ffffff;
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: -3px;
}

.ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::before {
    border-right-color: #fb5104;
}

.ap-fibosearch-active .dgwt-wcas-suggestions-wrapp {
    background: #ffffff;
    border: 1px solid #dfe1e5;
    border-radius: 0;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    color: #090909;
    font-family: var(--e-global-typography-text-font-family, sans-serif), sans-serif;
    max-height: min(74vh, 680px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    z-index: 10020;
}

.ap-fibosearch-active .dgwt-wcas-suggestion {
    --ap-fibosearch-suggestion-bg: #fff6f1;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #eceef1;
    box-sizing: border-box;
    color: #090909;
    display: flex;
    gap: 10px;
    min-height: 62px;
    overflow: hidden;
    padding: 7px 12px;
    position: relative;
    resize: none;
    text-decoration: none;
}

.ap-fibosearch-active .dgwt-wcas-suggestion::before {
    background: var(--ap-fibosearch-suggestion-bg, #fff6f1);
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity .18s ease;
    z-index: 0;
}

.ap-fibosearch-active .dgwt-wcas-suggestion > * {
    position: relative;
    z-index: 1;
}

.ap-fibosearch-active .dgwt-wcas-suggestion:hover {
    --ap-fibosearch-suggestion-bg: #fff6f1;
}

.ap-fibosearch-active .dgwt-wcas-suggestion:hover::before {
    opacity: 1;
}

.ap-fibosearch-active .dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
    --ap-fibosearch-suggestion-bg: #fff1e9;
}

.ap-fibosearch-active .dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected::before {
    opacity: 1;
}

.ap-fibosearch-active .dgwt-wcas-suggestion:last-child {
    border-bottom: 0;
}

.ap-fibosearch-active .dgwt-wcas-si {
    align-items: center;
    background: #f6f6f6;
    border: 1px solid #e4e5e7;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 48px;
    height: 48px;
    justify-content: center;
    margin: 0;
    width: 48px;
}

.ap-fibosearch-active .dgwt-wcas-si img {
    display: block;
    height: 100%;
    max-height: 46px;
    max-width: 46px;
    object-fit: contain;
    width: 100%;
}

.ap-fibosearch-active .dgwt-wcas-content-wrapp {
    flex: 1 1 auto;
    min-width: 0;
    resize: none;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
    align-items: center;
    column-gap: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ap-fibosearch-active .dgwt-wcas-st {
    color: #0a0a0a;
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.22;
    min-width: 0;
}

.ap-fibosearch-active .dgwt-wcas-st-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ap-fibosearch-active .dgwt-wcas-st strong {
    color: #fb5104;
    font-weight: 900;
}

.ap-fibosearch-active .dgwt-wcas-sku {
    color: #62636b;
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 2px;
}

.ap-fibosearch-active .dgwt-wcas-meta {
    grid-column: 2;
    grid-row: 1;
    min-width: 92px;
    text-align: right;
}

.ap-fibosearch-active .dgwt-wcas-sp {
    color: #0a0a0a;
    display: inline-flex;
    flex-wrap: wrap;
    font-family: var(--e-global-typography-primary-font-family, sans-serif), sans-serif;
    font-size: 16px;
    font-weight: 700;
    gap: 2px 6px;
    justify-content: flex-end;
    line-height: 1.05;
}

.ap-fibosearch-active .dgwt-wcas-sp del {
    color: #979aa2;
    font-size: 12px;
    font-weight: 600;
    opacity: 1;
    text-decoration-thickness: 1px;
}

.ap-fibosearch-active .dgwt-wcas-sp ins {
    color: #fb5104;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-headline {
    background: #f7f7f7;
    border-bottom: 1px solid #e3e3e3;
    color: #fb5104;
    height: 32px;
    min-height: 0;
    padding: 7px 12px 6px;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
    color: #fb5104;
    font-family: var(--e-global-typography-primary-font-family, sans-serif), sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-tax {
    min-height: 52px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-tax .dgwt-wcas-si {
    flex-basis: 40px;
    height: 40px;
    width: 40px;
}

.ap-fibosearch-active .dgwt-wcas-st-breadcrumbs {
    color: #777983;
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.28;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-fibosearch-active .dgwt-wcas-st-label-in {
    color: #9b9da4;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-more {
    background: #0a0a0a;
    color: #ffffff;
    font-family: var(--e-global-typography-primary-font-family, sans-serif), sans-serif;
    font-size: 11px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.1em;
    min-height: 38px;
    padding: 9px 14px;
    text-transform: uppercase;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-more::before {
    background: #fb5104;
    opacity: 0;
    transition: opacity .18s ease;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-more:hover,
.ap-fibosearch-active .dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected {
    color: #ffffff;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-more:hover::before,
.ap-fibosearch-active .dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected::before {
    opacity: 1;
}

.ap-fibosearch-active .dgwt-wcas-suggestion-nores {
    color: #555861;
    font-size: 14px;
    min-height: 48px;
    padding: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .ap-fibosearch-active .dgwt-wcas-suggestion::before,
    .ap-fibosearch-active .dgwt-wcas-suggestion-more::before {
        transition: none;
    }
}

@media (max-width: 900px) {
    .ap-fibosearch-active .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
        display: block;
    }

    .ap-fibosearch-active .dgwt-wcas-meta {
        margin-top: 3px;
        min-width: 0;
        text-align: left;
    }

    .ap-fibosearch-active .dgwt-wcas-sp {
        justify-content: flex-start;
        padding-left: 0;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .ap-header-search {
        width: 100%;
    }

    .ap-header-search .dgwt-wcas-sf-wrapp {
        min-height: 42px;
    }

    .ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
        font-size: 14px;
        height: 42px;
        line-height: 42px;
        min-height: 42px;
        padding: 0 12px;
    }

    .ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit {
        font-size: 11px;
        min-height: 42px;
        padding: 0 14px;
    }

    .ap-fibosearch-active .dgwt-wcas-suggestions-wrapp {
        max-height: 72vh;
    }

    .ap-fibosearch-active .dgwt-wcas-suggestion {
        gap: 8px;
        min-height: 58px;
        padding: 6px 10px;
    }

    .ap-fibosearch-active .dgwt-wcas-suggestion-headline {
        height: 30px;
        min-height: 0;
        padding: 7px 10px 6px;
    }

    .ap-fibosearch-active .dgwt-wcas-suggestion-more {
        min-height: 38px;
    }

    .ap-fibosearch-active .dgwt-wcas-si {
        flex-basis: 44px;
        height: 44px;
        width: 44px;
    }

    .ap-fibosearch-active .dgwt-wcas-st {
        font-size: 12px;
        line-height: 1.2;
    }

    .ap-fibosearch-active .dgwt-wcas-sp {
        font-size: 15px;
    }

    .ap-fibosearch-active .dgwt-wcas-sp ins {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .ap-fibosearch-overlay-active,
    .ap-fibosearch-overlay-active .ap-fibosearch-active {
        height: 100%;
        min-height: 100%;
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile {
        --ap-fibosearch-overlay-bar-height: 48px;
        background: #0a0a0a;
        bottom: auto;
        color: #ffffff;
        height: 100vh;
        height: var(--ap-fibosearch-viewport-height, 100dvh);
        left: 0;
        max-height: var(--ap-fibosearch-viewport-height, 100dvh);
        min-height: 0;
        overflow: hidden;
        overscroll-behavior: none;
        position: fixed;
        right: 0;
        top: var(--ap-fibosearch-viewport-top, 0px);
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-om-bar {
        align-items: stretch;
        background: #0a0a0a;
        border-bottom: 1px solid #2a2a2a;
        height: var(--ap-fibosearch-overlay-bar-height);
        min-height: var(--ap-fibosearch-overlay-bar-height);
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-om-return,
    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-om-return:hover,
    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-om-return:focus,
    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-om-return:active {
        align-items: center;
        background: #151515;
        border-right: 1px solid #2a2a2a;
        color: #ffffff;
        display: flex;
        flex: 0 0 var(--ap-fibosearch-overlay-bar-height);
        height: var(--ap-fibosearch-overlay-bar-height);
        justify-content: center;
        touch-action: manipulation;
        width: var(--ap-fibosearch-overlay-bar-height);
        -webkit-tap-highlight-color: rgba(251, 81, 4, 0.22);
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-om-return:hover,
    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-om-return:focus,
    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-om-return:active {
        background: #252525;
        outline: 2px solid #fb5104;
        outline-offset: -2px;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-om-return svg {
        fill: currentColor;
        height: 24px;
        left: auto;
        pointer-events: none;
        position: static;
        top: auto;
        width: 24px;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-search-wrapp-mobile {
        max-width: none;
        width: calc(100% - var(--ap-fibosearch-overlay-bar-height));
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile input[type="search"].dgwt-wcas-search-input,
    .ap-fibosearch-active .dgwt-wcas-overlay-mobile input[type="search"].dgwt-wcas-search-input:focus {
        background: #0a0a0a !important;
        border-bottom: 0;
        caret-color: #fb5104;
        color: #ffffff !important;
        font-size: 16px !important;
        height: var(--ap-fibosearch-overlay-bar-height) !important;
        line-height: var(--ap-fibosearch-overlay-bar-height);
        min-height: var(--ap-fibosearch-overlay-bar-height);
        padding: 0 44px 0 14px;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile input[type="search"].dgwt-wcas-search-input::placeholder {
        color: #8f9298;
        opacity: 1;
    }

    /* FiboSearch writes inline limits and important positioning for this panel. */
    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestions-wrapp {
        background: #0a0a0a;
        border: 0;
        bottom: 0;
        box-shadow: none;
        color: #ffffff;
        height: auto !important;
        max-height: none !important;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        position: absolute;
        scroll-padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        scrollbar-color: #fb5104 #151515;
        scrollbar-width: thin;
        top: var(--ap-fibosearch-overlay-bar-height) !important;
        -webkit-overflow-scrolling: touch;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion {
        --ap-fibosearch-suggestion-bg: #1e1e1e;
        background: #111111;
        border-bottom-color: #292929;
        color: #ffffff;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion:hover {
        --ap-fibosearch-suggestion-bg: #1e1e1e;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
        --ap-fibosearch-suggestion-bg: #2a1710;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-st,
    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-sp {
        color: #f7f7f7;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-sku,
    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-st-breadcrumbs {
        color: #a6a9af;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-st-label-in {
        color: #74777d;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-sp del {
        color: #85888e;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-si {
        background: #f5f5f5;
        border-color: #383838;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-headline {
        background: #181818;
        border-bottom-color: #333333;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-more {
        background: #fb5104;
        color: #ffffff;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-more::before {
        background: #e94700;
    }

    .ap-fibosearch-active .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-nores {
        color: #d5d7db;
    }
}
