.search-bar:has(.cuisine-picker) { position: relative; }
.search-bar .search-box:has(.cuisine-picker) {
    padding: 0;
    top: calc(100% + 8px);
    left: auto;
    right: 0;
    height: auto;
    width: min(440px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    border: 1px solid #e4e8e4;
    border-radius: 16px;
    box-shadow: 0 16px 40px #18342926;
    overflow: hidden;
    transform-origin: top center;
    animation: cuisine-picker-enter 180ms ease-out;
    transition: none;
}
.search-box .cuisines-box.cuisine-picker {
    box-sizing: border-box;
    width: 100%;
    max-height: min(420px, 60vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border-radius: 16px;
    font-family: 'Open Sans', sans-serif;
    color: #22382d;
    scrollbar-width: thin;
}
.cuisine-picker__heading {
    position: sticky;
    top: -8px;
    z-index: 1;
    padding: 12px 10px 14px;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #edf0eb;
    margin-bottom: 6px;
}
.cuisine-picker__heading span {
    display: block;
    margin-top: 3px;
    color: #68766e;
    font-size: 12px;
    font-weight: 400;
}
.cuisine-picker .search-box-link.cuisine-card {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    height: auto;
    min-height: 84px;
    width: 100%;
    margin: 0;
    padding: 10px;
    border-radius: 10px;
    color: #22382d;
    text-decoration: none;
    text-align: left;
    background: #fff;
    transition: background-color 150ms ease;
}
.cuisine-picker .cuisine-card:hover { background: #f0f6ef; }
.cuisine-picker .cuisine-card:focus-visible {
    outline: 2px solid #24764b;
    outline-offset: -2px;
    background: #f0f6ef;
}
.cuisine-card__image {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: #edf0eb;
}
.cuisine-card__info { display: grid; gap: 4px; min-width: 0; }
.cuisine-card__type { color: #65766b; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cuisine-card__name { font-size: 14px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.cuisine-card__arrow { margin-left: auto; color: #537561; font-size: 20px; }
.cuisine-picker__empty { padding: 16px 10px; margin: 0; font-size: 13px; line-height: 1.6; color: #68766e; }
.cuisine-picker [hidden] { display: none !important; }
@media (max-width: 480px) {
    .cuisine-picker .search-box-link.cuisine-card { gap: 10px; padding: 8px; }
    .cuisine-card__image { width: 52px; height: 52px; flex-basis: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    .cuisine-picker .search-box-link.cuisine-card { transition: none; }
}

@media (max-width: 600px) {
    .search-area:has(.cuisine-picker) { position: relative; }
    /* Anchor below the actual input row, including the stacked mobile layout. */
    .search-area .search-bar:has(.cuisine-picker) { position: relative; }
    .search-area .search-bar .search-box:has(.cuisine-picker) {
        box-sizing: border-box;
        left: 50%;
        right: auto;
        top: calc(100% + 8px);
        --picker-offset-x: -50%;
        transform: translateX(-50%);
    }
}

@keyframes cuisine-picker-enter {
    from { opacity: 0; transform: translate(var(--picker-offset-x, 0px), 8px) scale(.98); }
    to { opacity: 1; transform: translate(var(--picker-offset-x, 0px), 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .search-bar .search-box:has(.cuisine-picker) { animation: none; }
}
