/**
 * EtailJP_SearchAutocomplete
 * Plain CSS so it works regardless of the Tailwind build state.
 */

[x-cloak] {
    display: none !important;
}

.block-search .control.relative {
    position: relative;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-top: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    max-height: 420px;
    overflow-y: auto;
}

.search-autocomplete ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-autocomplete li {
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.search-autocomplete li:last-child {
    border-bottom: none;
}

.search-autocomplete li.highlighted,
.search-autocomplete li:hover {
    background-color: #f5f5f5;
}

.search-autocomplete .ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
}

.search-autocomplete .ac-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.search-autocomplete .ac-thumb img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.search-autocomplete .ac-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-autocomplete .ac-name {
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-autocomplete .ac-price {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2px;
}
