.erdt-quick-finder {
    --erdt-qs-yellow: #FFD600;
    --erdt-qs-yellow-hover: #EEC700;
    --erdt-qs-black: #171717;
    --erdt-qs-gray: #626262;
    --erdt-qs-border: #D9D9D4;

    position: relative;
    z-index: 40;

    width: 100%;
    padding: 34px;

    overflow: visible;

    color: var(--erdt-qs-black);
    background: rgba(255,255,255,.98);

    border-radius: 10px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.38);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    font-family: Inter, Arial, sans-serif;
}

.erdt-quick-finder *,
.erdt-quick-finder *::before,
.erdt-quick-finder *::after {
    box-sizing: border-box;
}

.erdt-quick-finder::before {
    content: "";

    position: absolute;
    top: 0;
    left: 34px;

    width: 68px;
    height: 6px;

    background: var(--erdt-qs-yellow);
}

.erdt-quick-finder__kicker {
    margin: 0 0 9px;

    color: #818181;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 750;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.erdt-quick-finder h2 {
    margin: 0;

    color: var(--erdt-qs-black);

    font-size: clamp(27px, 2.7vw, 35px);
    line-height: 1.1;

    letter-spacing: -.035em;
    font-weight: 750;
}

.erdt-quick-finder__text {
    margin: 13px 0 22px;

    color: var(--erdt-qs-gray);

    font-size: 15px;
    line-height: 1.6;
}


/* SEARCH */

.erdt-quick-search {
    position: relative;
    z-index: 70;

    width: 100%;
    margin: 0 0 23px;
}

.erdt-quick-search__field {
    position: relative;
    width: 100%;
}

.erdt-quick-search__icon {
    position: absolute;

    top: 50%;
    left: 18px;

    z-index: 2;

    width: 19px;
    height: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    color: var(--erdt-qs-black);

    pointer-events: none;
}

.erdt-quick-search__icon svg {
    width: 100%;
    height: 100%;
}

.erdt-quick-search__field input {
    width: 100% !important;
    height: 56px !important;

    margin: 0 !important;
    padding: 0 48px 0 50px !important;

    border: 1px solid var(--erdt-qs-border) !important;
    border-radius: 7px !important;

    outline: 0 !important;

    background: #FFFFFF !important;
    color: var(--erdt-qs-black) !important;

    box-shadow: none !important;

    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1 !important;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.erdt-quick-search__field input::placeholder {
    color: #919191;
    opacity: 1;
}

.erdt-quick-search__field input:focus {
    border-color: var(--erdt-qs-yellow) !important;

    box-shadow:
        0 0 0 3px rgba(255,214,0,.16) !important;
}

.erdt-quick-search__spinner {
    position: absolute;

    top: 50%;
    right: 17px;

    width: 18px;
    height: 18px;

    margin-top: -9px;

    border: 2px solid rgba(23,23,23,.17);
    border-top-color: var(--erdt-qs-black);
    border-radius: 50%;

    animation: erdt-qs-spin .7s linear infinite;
}

.erdt-quick-search__spinner[hidden] {
    display: none !important;
}

@keyframes erdt-qs-spin {
    to { transform: rotate(360deg); }
}


/* DROPDOWN */

.erdt-quick-search__dropdown {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    z-index: 999999;

    overflow: hidden auto;

    max-height: 360px;

    background: #FFFFFF;

    border: 1px solid #DEDED8;
    border-radius: 7px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.18);
}

.erdt-quick-search__dropdown[hidden] {
    display: none !important;
}

.erdt-quick-search__result {
    min-height: 70px;

    display: grid;

    grid-template-columns:
        50px
        minmax(0,1fr)
        28px;

    align-items: center;

    gap: 11px;

    padding: 9px 12px;

    color: var(--erdt-qs-black) !important;
    background: #FFFFFF;

    border-bottom: 1px solid #EEEEEA;

    text-decoration: none !important;

    transition: background .15s ease;
}

.erdt-quick-search__result:last-child {
    border-bottom: 0;
}

.erdt-quick-search__result:hover,
.erdt-quick-search__result.is-active {
    background: #FFF9D7;
}

.erdt-quick-search__thumb {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #F4F4F1;

    border: 1px solid #E8E8E2;
    border-radius: 5px;
}

.erdt-quick-search__thumb img {
    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center !important;
}

.erdt-quick-search__placeholder {
    color: #777771;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .08em;
}

.erdt-quick-search__copy {
    min-width: 0;
}

.erdt-quick-search__copy strong,
.erdt-quick-search__copy small {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.erdt-quick-search__copy strong {
    margin-bottom: 4px;

    color: var(--erdt-qs-black);

    font-size: 13px;
    line-height: 1.3;
    font-weight: 750;
}

.erdt-quick-search__copy small {
    color: #777771;

    font-size: 10.5px;
    line-height: 1.35;
}

.erdt-quick-search__arrow {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--erdt-qs-yellow);
    color: var(--erdt-qs-black);

    border-radius: 4px;

    font-size: 16px;

    transition: transform .15s ease;
}

.erdt-quick-search__result:hover .erdt-quick-search__arrow,
.erdt-quick-search__result.is-active .erdt-quick-search__arrow {
    transform: translateX(2px);
}

.erdt-quick-search__message {
    padding: 18px 15px;

    color: #62625E;
    background: #FAFAF8;

    text-align: center;

    font-size: 12px;
    line-height: 1.5;
}

.erdt-quick-search__message[hidden] {
    display: none !important;
}

.erdt-quick-search__message.is-error {
    color: #9D2525;
}


/* QUICK CATEGORIES */

.erdt-quick-finder__label {
    margin: 0 0 11px;

    color: #8A8A8A;

    font-size: 12px;
    line-height: 1.3;

    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .07em;
}

.erdt-quick-finder__categories {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;
}

.erdt-quick-finder__category {
    min-height: 47px;

    padding: 0 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border: 1px solid #E3E3DF;
    border-radius: 5px;

    background: #FAFAF8;

    color: #272727 !important;

    text-decoration: none !important;

    font-size: 13px;
    line-height: 1.25;
    font-weight: 650;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.erdt-quick-finder__category:hover {
    background: #FFF9D5;

    border-color: var(--erdt-qs-yellow);

    transform: translateY(-1px);
}

.erdt-quick-finder__category svg {
    width: 15px;
    height: 15px;

    color: #777777;

    flex: 0 0 auto;
}

.erdt-quick-finder__all {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 18px;

    color: #171717 !important;

    font-size: 14px;
    font-weight: 750;

    text-decoration: none !important;
}

.erdt-quick-finder__all span {
    border-bottom: 1px solid #171717;
}

.erdt-quick-finder__all svg {
    width: 16px;
    height: 16px;

    transition: transform .2s ease;
}

.erdt-quick-finder__all:hover svg {
    transform: translateX(3px);
}


/* RESPONSIVE */

@media (max-width: 1050px) {

    .erdt-quick-finder {
        width: 100%;
        max-width: 700px;
    }

}

@media (max-width: 767px) {

    .erdt-quick-finder {
        width: 100%;
        max-width: none;

        padding: 29px 20px 24px;
    }

    .erdt-quick-finder::before {
        left: 20px;
    }

    .erdt-quick-finder h2 {
        font-size: clamp(25px, 7.5vw, 31px);
    }

    .erdt-quick-finder__text {
        margin-bottom: 19px;

        font-size: 14px;
        line-height: 1.55;
    }

    .erdt-quick-search {
        margin-bottom: 20px;
    }

    .erdt-quick-search__field input {
        height: 54px !important;

        padding:
            0 44px
            0 46px !important;

        font-size: 14px !important;
    }

    .erdt-quick-search__icon {
        left: 16px;

        width: 17px;
        height: 17px;
    }

    .erdt-quick-search__spinner {
        right: 14px;
    }

    .erdt-quick-search__dropdown {
        position: static;

        width: 100%;

        margin-top: 8px;

        max-height: 300px;

        box-shadow:
            0 12px 30px rgba(0,0,0,.13);
    }

    .erdt-quick-search__result {
        min-height: 64px;

        grid-template-columns:
            46px
            minmax(0,1fr)
            27px;

        gap: 10px;

        padding: 8px 10px;
    }

    .erdt-quick-search__thumb {
        width: 46px;
        height: 46px;
    }

    .erdt-quick-search__copy strong {
        font-size: 12.5px;
    }

    .erdt-quick-search__copy small {
        font-size: 10px;
    }

    .erdt-quick-search__arrow {
        width: 27px;
        height: 27px;

        font-size: 14px;
    }

    .erdt-quick-finder__categories {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 430px) {

    .erdt-quick-search__result {
        grid-template-columns:
            42px
            minmax(0,1fr)
            25px;

        gap: 8px;
    }

    .erdt-quick-search__thumb {
        width: 42px;
        height: 42px;
    }

    .erdt-quick-search__arrow {
        width: 25px;
        height: 25px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .erdt-quick-search__spinner {
        animation: none;
    }

    .erdt-quick-search__result,
    .erdt-quick-search__arrow,
    .erdt-quick-finder__category,
    .erdt-quick-finder__all svg,
    .erdt-quick-search__field input {
        transition: none !important;
    }

}
