.cvoix-search-toggle,
.cvoix-search-toggle:hover,
.cvoix-search-toggle:focus,
.cvoix-search-toggle:active {
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--e-global-color-text, currentColor) !important;
}
.cvoix-search-toggle {
    padding: .5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.cvoix-search-toggle svg { display: block; }
.cvoix-search-toggle:hover { opacity: .7; }
.cvoix-search-toggle__label { display: none; }

.cvoix-search-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 1rem;
}
.cvoix-search-modal[hidden] { display: none; }

.cvoix-search-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / .55);
    animation: cvoix-fade .18s ease;
}

.cvoix-search-modal__box {
    position: relative;
    width: min(640px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 24px 60px rgb(0 0 0 / .25);
    animation: cvoix-pop .18s ease;
}

.cvoix-search-modal__results {
    margin-top: 1rem;
    max-height: 50vh;
    overflow-y: auto;
}
.cvoix-search-modal__results[hidden] { display: none; }

.cvoix-sr-item {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .6rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}
.cvoix-sr-item:hover { background: #f4f4f5; }
.cvoix-sr-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.cvoix-sr-title { display: block; font-weight: 500; line-height: 1.3; }
.cvoix-sr-meta  { display: block; font-size: .8125rem; opacity: .6; }

.cvoix-sr-empty,
.cvoix-sr-all { display: block; padding: .6rem; font-size: .875rem; }
.cvoix-sr-all {
    text-align: center;
    font-weight: 500;
    color: inherit !important;
    text-decoration: none;
}
.cvoix-sr-all:hover {
    color: inherit !important;
    text-decoration: underline;
}

.cvoix-search-modal__cats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(0 0 0 / .08);
}

.cvoix-search-modal__cats[hidden] { display: none; }

.cvoix-sr-cats-title {
    margin: 0 0 .6rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .5;
}
.cvoix-sr-cats-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.cvoix-sr-cat {
    display: inline-block;
    padding: .35rem .75rem;
    border: 1px solid rgb(0 0 0 / .15);
    border-radius: 999px;
    font-size: .8125rem;
    line-height: 1.4;
    color: inherit !important;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease;
}
.cvoix-sr-cat:hover {
    background: #f4f4f5;
    border-color: rgb(0 0 0 / .3);
}

body.cvoix-modal-open { overflow: hidden; }

@keyframes cvoix-fade { from { opacity: 0 } }
@keyframes cvoix-pop  { from { opacity: 0; transform: translateY(-8px) } }