/* ==========================================================================
   Toast Menu Plugin — toast-menu.css v1.3.4
   ========================================================================== */

/* --------------------------------------------------------------------------
   Location wrapper
   -------------------------------------------------------------------------- */

.toast-location {
    margin-bottom: 3rem;
}

.toast-location-title {
    margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */

.toast-tabs-wrapper {
    width: 100%;
}

.toast-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.toast-tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    outline: none;
    white-space: nowrap;
}

.toast-tab:hover {
    color: #111827;
}

.toast-tab.is-active {
    color: #111827;
    border-bottom-color: #111827;
}

.toast-panel {
    display: block;
}

.toast-panel[hidden] {
    display: none;
}

/* --------------------------------------------------------------------------
   Group anchor nav
   -------------------------------------------------------------------------- */

.toast-group-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.toast-group-nav__btn {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.toast-group-nav__btn:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Groups
   -------------------------------------------------------------------------- */

.toast-group {
    margin-bottom: 2.5rem;
    scroll-margin-top: 2rem;
}

.toast-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.toast-group--depth-1 .toast-group-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #374151;
}

.toast-group--depth-1 {
    margin-left: 1rem;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Menu items — 1 column (default)
   -------------------------------------------------------------------------- */

.toast-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.toast-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.toast-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.toast-item-name {
    font-weight: 500;
    color: #111827;
    flex: 1;
}

.toast-item-price {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    flex-shrink: 0;
}

.toast-item-body {
    flex: 1;
    min-width: 0;
}

.toast-item-description {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.toast-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.toast-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
}

.toast-item-tag--badge {
    color: #ffffff;
    background: #111827;
    border-color: #111827;
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    letter-spacing: 0.06em;
}

.toast-tag-icon {
    display: block;
    width: 1em;
    height: 1em;
    object-fit: contain;
    flex-shrink: 0;
}

.toast-menu-title {
    text-align: center;
    margin: 1rem 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.toast-menu-description {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

.toast-group-description {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.toast-item-meta {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.toast-item-allergens {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.toast-item-allergen-group {
    display: block;
}

.toast-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.toast-item-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
}

.toast-item-badge--alcohol {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.toast-item-ref {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: monospace;
}

.toast-item-image {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Menu items — 2 columns
   -------------------------------------------------------------------------- */

.toast-items--cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

/* Each item in 2-col gets a separator on the bottom */
.toast-items--cols-2 .toast-item {
    border-bottom: 1px solid #f3f4f6;
}

/* Hide the bottom border on the last two items (both bottom-row cells) */
.toast-items--cols-2 .toast-item:nth-last-child(-n+2):not(:nth-child(odd) ~ .toast-item) {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   States
   -------------------------------------------------------------------------- */

.toast-error,
.toast-empty {
    color: #6b7280;
    font-style: italic;
    padding: 1rem 0;
}

/* --------------------------------------------------------------------------
   Responsive — tablet
   -------------------------------------------------------------------------- */

@media ( max-width: 768px ) {

    .toast-tabs {
        gap: 0;
        border-bottom-width: 1px;
    }

    .toast-tab {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
        letter-spacing: -0.01em;
    }

    .toast-group-nav {
        gap: 0.375rem;
        padding: 0.5rem;
    }

    .toast-group-nav__btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.625rem;
    }

    .toast-item-header {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .toast-group-title {
        font-size: 1.1rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive — mobile: always 1 column regardless of setting
   -------------------------------------------------------------------------- */

@media ( max-width: 640px ) {

    .toast-items--cols-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toast-items--cols-2 .toast-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #f3f4f6;
    }

    .toast-items--cols-2 .toast-item:last-child {
        border-bottom: none;
    }
}

/* --------------------------------------------------------------------------
   Location logo
   -------------------------------------------------------------------------- */

.toast-location-logo-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}

.toast-location-logo {
    display: block;
    margin: 0 auto;
    max-height: 100px;
    width: auto;
    object-fit: contain;
    object-position: center;
}

/* --------------------------------------------------------------------------
   Disclaimers
   -------------------------------------------------------------------------- */

.toast-menu-disclaimer,
.toast-group-disclaimer {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.toast-group-disclaimer {
    margin-top: 1rem;
}
