.bs24-search-host { position: relative; }
.bs24-search-host:has(input[aria-busy="true"])::after,
.mobile-search-modal__form:has(input[aria-busy="true"])::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    box-sizing: border-box;
    border: 2px solid #e7e1db;
    border-top-color: #c76512;
    border-radius: 50%;
    pointer-events: none;
    animation: bs24-search-spin 0.65s linear infinite;
}
.mobile-search-modal__form:has(input[aria-busy="true"])::after { left: 22px; }
.bs24-search-host:has(input[aria-busy="true"]) .search-icon,
.mobile-search-modal__form:has(input[aria-busy="true"]) .mobile-search-modal__search-icon { visibility: hidden; }
@keyframes bs24-search-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .bs24-search-host::after, .mobile-search-modal__form::after { animation: none !important; }
}
.bs24-search-panel {
    position: absolute;
    z-index: 100;
    top: calc(100% + 10px);
    left: 0;
    width: max(100%, 360px);
    max-width: calc(100vw - 32px);
    overflow: hidden;
    border: 1px solid #e7e1db;
    border-radius: 16px;
    background: #fff;
    color: #252525;
    box-shadow: 0 14px 38px #241b1426;
    text-align: left;
    line-height: 1.4;
}
.bs24-search-panel[hidden] { display: none !important; }
.bs24-search-panel [hidden], .bs24-search-discovery[hidden] { display: none !important; }
.bs24-search-list { max-height: min(560px, 65vh); overflow-y: auto; overscroll-behavior: contain; }
.bs24-search-content { display: grid; min-width: 0; gap: 5px; }
.bs24-search-title { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.bs24-search-price { font-size: 13px; color: #65594e; }
.bs24-search-price del { color: #80766d; margin-right: 6px; }
.bs24-search-price ins { color: #a34d09; font-weight: 600; text-decoration: none; }
.bs24-search-match-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    margin-top: 4px;
    text-align: left;
}
.bs24-search-match-badge {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 4px;
    min-width: 0;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid #d5e5dc;
    border-radius: 8px;
    background: #f0f7f2;
    color: #294d38;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.bs24-search-match-badge::before { content: '✓'; color: #417c55; font-size: 11px; }
.bs24-search-match-label { color: #536e5d; }
.bs24-search-match-value { min-width: 0; max-width: 100%; color: #294d38; font-weight: 600; }
.bs24-search-match-term { min-width: 0; max-width: 100%; color: #536e5d; }
.woocommerce ul.products li.product .bs24-search-match-badges { margin: 6px 0 10px; }
.bs24-search-status { margin: 0; padding: 18px 16px; font-size: 14px; }
.bs24-search-panel .bs24-search-all { display: block; padding: 13px 16px; color: #a34d09; font-size: 13px; font-weight: 600; text-align: center; }
.bs24-search-all:focus-visible { outline: 2px solid #c76512; outline-offset: -4px; }
.bs24-search-sr-only, .bs24-search-price .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .bs24-search-panel { width: 100%; } }
@media (min-width: 1024px) {
    /* Reuse the menu's backdrop, including its dimming, blur and transition. */
    #page .desktopContent:has(.bs24-search-panel:not([hidden])) .beautymenu-desktop::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .desktopContent .bs24-search-panel {
        position: fixed;
        top: var(--bs24-search-panel-top, var(--bs24-visible-header-total-offset, 143px));
        left: 50%;
        width: min(1350px, calc(100vw - 40px));
        max-width: calc(100vw - 40px);
        max-height: calc(100dvh - var(--bs24-search-panel-top, var(--bs24-visible-header-total-offset, 143px)) - 24px);
        border-top: 0;
        border-radius: 0 0 16px 16px;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
    }
    .desktopContent .bs24-search-list {
        display: block;
        min-height: 0;
        max-height: min(560px, calc(100dvh - var(--bs24-search-panel-top, var(--bs24-visible-header-total-offset, 143px)) - 88px));
    }
    .desktopContent .bs24-search-content { flex: 1; }
    .desktopContent .bs24-search-status,
    .desktopContent .bs24-search-all { flex-shrink: 0; }
}
.bs24-search-preview-label { display: block; color: #52635b; font-size: 12px; line-height: 1.4; margin-top: 6px; overflow-wrap: anywhere; }
.bs24-search-guidance { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; }
.bs24-search-guidance p { width: 100%; margin: 0; }
.bs24-search-guidance a { display: inline-block; padding: 9px 12px; border: 1px solid #d5dfe7; border-radius: 8px; color: #194333; background: #f0f6f3; }
.bs24-search-variant-selected { outline: 2px solid #e78129; outline-offset: 4px; border-radius: 6px; }
.bs24-search-discovery-group { padding: 18px 20px; }
.bs24-search-discovery-group + .bs24-search-discovery-group { border-top: 1px solid #f1eeea; }
.bs24-search-discovery-title { margin: 0 0 12px; color: #65594e; font-size: 13px; font-weight: 600; line-height: 1.4; }
.bs24-search-discovery-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bs24-search-discovery-link { display: inline-block; max-width: 100%; padding: 10px 14px; border: 1px solid #e7e1db; border-radius: 9px; background: #faf8f5; color: #333; font-size: 14px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.bs24-search-discovery-link:hover, .bs24-search-discovery-link[aria-selected="true"], .bs24-search-discovery-link:focus-visible { background: #fff5eb; border-color: #c76512; outline: 2px solid #c76512; outline-offset: -2px; }
.mobile-search-modal .bs24-search-discovery-group { padding: 12px 0 20px; }
.bs24-search-card, .mobile-search-modal .bs24-search-card { display: flex; align-items: center; min-width: 0; width: 100%; gap: 14px; padding: 10px 0; border: 0; border-bottom: 1px solid #f1eeea; border-radius: 0; background: transparent; box-shadow: none; color: #252525; text-decoration: none; transform: none; line-height: 1.4; }
.bs24-search-card:last-child { border-bottom: 0; }
.bs24-search-card img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; border-radius: 8px; }
.bs24-search-card:hover, .bs24-search-card[aria-selected="true"], .bs24-search-card:focus-visible,
.mobile-search-modal .bs24-search-card:hover, .mobile-search-modal .bs24-search-card:focus-visible { background: #fff5eb; box-shadow: none; transform: none; outline: 2px solid #c76512; outline-offset: 2px; }
.bs24-search-card .bs24-search-sr-only { margin: -1px; padding: 0; }
.bs24-search-card .bs24-search-match-badges { gap: 4px; margin-top: 2px; }
.bs24-search-card .bs24-search-match-badge { padding: 3px 7px; border-radius: 6px; font-size: 11px; }
.mobile-search-modal .bs24-search-products, .mobile-search-modal .bs24-search-category-section { padding: 12px 0 20px; border: 0; border-radius: 0; background: transparent; }
.mobile-search-modal .bs24-search-products .mobile-search-modal__section-list { gap: 0; }
.mobile-search-modal .bs24-search-category-section .mobile-search-modal__section-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.mobile-search-modal .bs24-search-products .mobile-search-modal__section-title,
.mobile-search-modal .bs24-search-category-section .mobile-search-modal__section-title { font-size: 13px; font-weight: 600 !important; line-height: 1.4; color: #65594e; letter-spacing: normal; text-transform: none; }
