/* Autocompletado del buscador del header — BonosPremium */

.bp-ac-wrap { position: relative; }

.bp-ac {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 300;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
}
.bp-ac.abierto { display: block; }

.bp-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
}
.bp-ac-item:last-child { border-bottom: 0; }
.bp-ac-item.activo,
.bp-ac-item:hover { background: #f4f8fc; }

.bp-ac-img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: cover;
    border-radius: 6px;
    background: #f2f2f2;
}

.bp-ac-txt { display: flex; flex-direction: column; min-width: 0; }

.bp-ac-tit {
    font-size: 14px;
    line-height: 1.25;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-ac-item.activo { border-left: 3px solid var(--bp-primary, #039CDC); padding-left: 9px; }
.bp-ac-item:hover .bp-ac-tit,
.bp-ac-item.activo .bp-ac-tit { color: #000; }

.bp-ac-precio {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #111; /* neutro: --bp-primary es amarillo en GC y rojo en MD, ilegible en blanco */
}
.bp-ac .screen-reader-text { display: none; }
.bp-ac-precio del { font-weight: 400; opacity: .55; margin-right: 4px; }
.bp-ac-precio ins { text-decoration: none; }

.bp-ac-vacio,
.bp-ac-load { padding: 12px 14px; font-size: 14px; color: #666; }

/* El buscador real se abre en el overlay: el desplegable cuelga de .bp-search-overlay-inner */
.bp-search-overlay-inner .bp-ac {
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
}

@media (max-width: 480px) {
    .bp-ac-tit { font-size: 13px; }
    .bp-ac-img { width: 38px; height: 38px; flex-basis: 38px; }
}
