/* =======================================================
   BOX SEARCH — Inline Input + Dropdown
   ======================================================= */

/* --- Active state: keep SEARCH label visible, input sits to its right --- */
.trigger-search.search-active {
    display: inline-flex !important;
    align-items: baseline;
    gap: 8px;
    cursor: default;
}

/* --- Inline search input --- */
.search-inline-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid currentColor;
    outline: none;
    box-shadow: none;
    font-family: var(--e-global-typography-primary-font-family), "AeonikPro", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: inherit;
    width: 160px;
    padding: 0 0 2px 0;
    line-height: 1;
}

.search-inline-input::placeholder {
    color: inherit;
    opacity: 0.4;
}

/* --- Dropdown container --- */
.box-search-dropdown {
    position: fixed;
    z-index: 9999998;
    background: #F9F8F6;
    display: none;
    flex-direction: column;
    width: 580px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    border: 1px solid #D1D1D1;
    border-top: none;
}

.box-search-dropdown::-webkit-scrollbar { width: 6px; }
.box-search-dropdown::-webkit-scrollbar-track { background: transparent; }
.box-search-dropdown::-webkit-scrollbar-thumb { background: #ccc; }

.box-search-dropdown.is-visible { display: flex; }

/* --- Loading spinner --- */
.proloading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.asp_loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.asp_ball-scale-multiple {
    position: relative;
    width: 40px;
    height: 40px;
}

.asp_ball-scale-multiple > div {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background-color: #000;
    opacity: 0;
    animation: asp-ball-scale 1.25s linear infinite;
}

.asp_ball-scale-multiple > div:nth-child(2) { animation-delay: 0.25s; }
.asp_ball-scale-multiple > div:nth-child(3) { animation-delay: 0.50s; }

@keyframes asp-ball-scale {
    0%   { transform: scale(0); opacity: 0; }
    5%   { opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* --- Result item --- */
.sr-item {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #D1D1D1;
    min-height: 130px;
    flex-shrink: 0;
}

.sr-item:last-child { border-bottom: none; }

.sr-item:hover .sr-name { text-decoration: underline; }

/* --- Image cell: image sits on the baseline --- */
.sr-image {
    width: 130px;
    flex-shrink: 0;
    border-right: 1px solid #D1D1D1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.sr-image img {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

/* --- Text info --- */
.sr-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    gap: 20px;
}

.sr-name {
    font-family: var(--e-global-typography-primary-font-family), "AeonikPro", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #000;
    line-height: 1.3;
    flex: 1;
}

.sr-price {
    font-family: var(--e-global-typography-primary-font-family), "AeonikPro", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Strip WooCommerce price wrapper styling */
.sr-price .woocommerce-Price-amount,
.sr-price bdi {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
