/*
 * genui/1 components, in the restyle's language: white, brand green as the
 * only accent, pill controls, image-led cards without borders. Selected
 * states are green, never black. Section headings are dark so the green
 * marks what can be tapped; the page title stays green. The tokens repeat
 * restyle.css so this file can be dropped into the site without it.
 */
.bt-genui {
    --bt-green: #4EB711;
    --bt-green-dark: #3A9A0C;
    --bt-ink: #212121;
    --bt-muted: #6C6C6C;
    --bt-soft: #F5F5F5;
    --bt-mint: #F6FBF3;
    --bt-line: #F0F0F0;
    --bt-outline: #E6E6E6;
    --bt-radius-card: 24px;
    --bt-radius-pill: 999px;
    color: var(--bt-ink);
    font-family: Inter, "Noto Sans", system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* A row that swipes must not widen the page to fit every card in it. */
.bt-genui > *,
.bt-genui__hero {
    min-width: 0;
}

/* An answer is read top to bottom, closer together than the welcome's rows. */
.bt-genui--answer {
    gap: 16px;
}

.bt-genui__reply {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.bt-genui__notice {
    margin: 0;
    font-size: 12px;
    color: var(--bt-muted);
}

.bt-genui__head {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--bt-ink);
}

.bt-genui__card {
    border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius-card);
    padding: 16px;
    background: #fff;
}

.bt-genui__meta {
    font-size: 13px;
    line-height: 1.45;
    color: var(--bt-muted);
}

.bt-genui__clip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-genui__reason {
    font-size: 13px;
    background: var(--bt-mint);
    border-radius: 12px;
    padding: 6px 10px;
    margin-top: 4px;
}

/* Photos: taken out of the flow so a portrait photo cannot stretch its box. */
.bt-genui__hero-photo,
.bt-genui__tile-photo,
.bt-genui__list-photo,
.bt-genui__summary-photo {
    position: relative;
    overflow: hidden;
    background: var(--bt-soft);
}

.bt-genui__hero-photo img,
.bt-genui__tile-photo img,
.bt-genui__list-photo img,
.bt-genui__summary-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bt-genui__rating {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: var(--bt-ink);
    border-radius: var(--bt-radius-pill);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.bt-genui__rating-icon {
    width: 12px;
    height: 12px;
}

/* The photo rows' cards are small: a smaller pill, tucked in. */
.bt-genui__tile-photo .bt-genui__rating {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 11px;
}

/* hero: the welcome's Featured, one big photo each, swiped sideways */
.bt-genui__hero-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.bt-genui__hero-track::-webkit-scrollbar {
    display: none;
}

.bt-genui__hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bt-genui__hero-link {
    display: block;
    border-radius: var(--bt-radius-card);
}

.bt-genui__hero-photo {
    height: 216px;
    border-radius: var(--bt-radius-card);
}

.bt-genui__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: var(--bt-green-dark);
    border-radius: var(--bt-radius-pill);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.bt-genui__hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.bt-genui__hero-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.bt-genui__hero-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.bt-genui__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.bt-genui__dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #E0E0E0;
    transition: width .2s, background .2s;
}

.bt-genui__dot.is-on {
    width: 18px;
    background: var(--bt-green);
}

/* rail: the welcome's other rows, photo cards that open the restaurant */
.bt-genui__row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bt-genui__all {
    font-size: 14px;
}

.bt-genui__rail {
    display: grid;
    grid-auto-flow: column;
    /* One width for every card, however many are in the row. */
    grid-auto-columns: 168px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.bt-genui__rail::-webkit-scrollbar {
    display: none;
}

.bt-genui__tile {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bt-ink);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.bt-genui__tile-photo {
    height: 124px;
    border-radius: 18px;
    margin-bottom: 6px;
}

.bt-genui__tile-name {
    font-size: 15px;
    font-weight: 700;
}

.bt-genui__tile:hover .bt-genui__tile-name {
    text-decoration: underline;
}

/* list: an answer's restaurants, one row each, a row asks for its times */
.bt-genui__list {
    display: flex;
    flex-direction: column;
}

.bt-genui__list-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--bt-line);
    background: none;
    color: var(--bt-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bt-genui__list-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.bt-genui__list-row:hover .bt-genui__tile-name {
    text-decoration: underline;
}

.bt-genui__list-photo {
    flex: none;
    width: 92px;
    height: 92px;
    border-radius: 18px;
}

.bt-genui__list-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bt-genui__chevron {
    flex: none;
    width: 20px;
    height: 20px;
    color: #9E9E9E;
}

/* slot_picker */
.bt-genui__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.bt-genui__slot,
.bt-genui__chip {
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--bt-radius-pill);
    border: 1.5px solid var(--bt-outline);
    background: #fff;
    color: var(--bt-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.bt-genui__slot[aria-pressed="true"] {
    background: var(--bt-green);
    border-color: var(--bt-green);
    color: #fff;
    font-weight: 600;
}

.bt-genui__slot:focus-visible,
.bt-genui__chip:focus-visible,
.bt-genui__btn:focus-visible,
.bt-genui__tile:focus-visible,
.bt-genui__list-row:focus-visible,
.bt-genui__hero-link:focus-visible {
    outline: 2px solid var(--bt-green);
    outline-offset: 2px;
}

.bt-genui__empty {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bt-soft);
    font-size: 14px;
    color: var(--bt-muted);
}

/* menu_highlights */
.bt-genui__dishes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.bt-genui__dish {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--bt-line);
}

.bt-genui__dish:first-child {
    border-top: 0;
}

.bt-genui__dish-name {
    font-weight: 600;
    font-size: 14px;
}

.bt-genui__dish-desc {
    font-size: 13px;
    color: var(--bt-muted);
}

.bt-genui__price {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* booking_summary: the restaurant's photo, then the table and the button */
.bt-genui__summary {
    background: var(--bt-mint);
    border-radius: var(--bt-radius-card);
    overflow: hidden;
}

.bt-genui__summary-photo {
    height: 150px;
}

.bt-genui__summary-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bt-genui__summary-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bt-genui__summary-top .bt-genui__link {
    flex: none;
    font-size: 14px;
}

.bt-genui__summary-name {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.bt-genui__summary .bt-genui__btn {
    min-height: 52px;
    font-size: 16px;
    font-weight: 700;
}

.bt-genui__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bt-genui__fact {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
}

.bt-genui__fact b {
    display: block;
    font-size: 15px;
}

.bt-genui__fact span {
    font-size: 12px;
    color: var(--bt-muted);
}

.bt-genui__fine {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--bt-muted);
}

/* links, and the quiet pre-order / take-away box */
.bt-genui__link,
.bt-genui__head-link,
.bt-genui__name-link {
    color: inherit;
    text-decoration: none;
}

.bt-genui__link {
    color: var(--bt-green-dark);
    font-weight: 600;
}

.bt-genui__link:hover,
.bt-genui__head-link:hover,
.bt-genui__name-link:hover {
    text-decoration: underline;
}

.bt-genui__extras {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    margin-top: 12px;
}

.bt-genui__summary .bt-genui__extras {
    margin-top: 0;
}

.bt-genui__extras-icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--bt-green);
}

.bt-genui__extra {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--bt-ink);
}

/* buttons and chips */
.bt-genui__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    border: 0;
    border-radius: var(--bt-radius-pill);
    background: var(--bt-green);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

.bt-genui__btn:hover {
    background: var(--bt-green-dark);
}

.bt-genui__btn[disabled] {
    background: var(--bt-outline);
    color: var(--bt-muted);
    cursor: default;
}

/* A button sized to its words, beside text (the hero's "See times"). */
.bt-genui__btn--fit {
    flex: none;
    width: auto;
    padding: 0 20px;
    font-weight: 700;
}

.bt-genui__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-genui__chip[aria-pressed="true"] {
    background: var(--bt-green);
    border-color: var(--bt-green);
    color: #fff;
    font-weight: 600;
}

.bt-genui__chip[aria-pressed="false"]:hover,
.bt-genui__chip:not([aria-pressed]):hover {
    border-color: var(--bt-green);
    color: var(--bt-green-dark);
}

/* Suggestions ("Dinner for 2 tonight"): Bookatable green, outlined, so they
   never read as a ticked preference chip, which is solid green. */
.bt-genui__chip--suggest {
    color: var(--bt-green);
    border-color: var(--bt-green);
    font-weight: 600;
}

.bt-genui__chip--suggest:hover,
.bt-genui__chip--suggest:focus-visible {
    background: var(--bt-mint);
    color: var(--bt-green-dark);
    border-color: var(--bt-green-dark);
}

/* Arrows on the rows that swipe, for a mouse: a phone and a trackpad swipe
   them, a mouse wheel cannot. Shown only where there is a mouse, over the
   photos, and each one hides at its end of the row. */
.bt-genui__scroller {
    position: relative;
}

.bt-genui__arrow {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .bt-genui__arrow {
        position: absolute;
        top: 62px;
        z-index: 2;
        width: 40px;
        height: 40px;
        margin-top: -20px;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: var(--bt-ink);
        box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: opacity .15s;
    }

    .bt-genui__hero-box .bt-genui__arrow {
        top: 108px;
    }

    .bt-genui__arrow--prev { left: 8px; }
    .bt-genui__arrow--next { right: 8px; }

    .bt-genui__arrow:hover { color: var(--bt-green-dark); }

    .bt-genui__arrow:focus-visible {
        outline: 2px solid var(--bt-green);
        outline-offset: 2px;
    }

    .bt-genui__scroller.is-at-start .bt-genui__arrow--prev,
    .bt-genui__scroller.is-at-end .bt-genui__arrow--next {
        opacity: 0;
        pointer-events: none;
    }
}

.bt-genui__arrow-icon {
    width: 20px;
    height: 20px;
}

/* The dots under the hero are buttons: a tap or click goes to that one. */
button.bt-genui__dot {
    padding: 0;
    border: 0;
    cursor: pointer;
}

/* The offer running today, on the photo: "10% off" (11 Nov 2026). Warm and
   solid so it reads as a deal, not as another label; bottom-left on the hero
   (Featured is top-left, the stars top-right), top-left on a row's card. */
.bt-genui__offer {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(180deg, #FF6B4A 0%, #E8462A 100%);
    color: #fff;
    border-radius: var(--bt-radius-pill);
    padding: 4px 10px 4px 4px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 3px 10px rgba(232, 70, 42, 0.35);
    white-space: nowrap;
}
.bt-genui__offer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: #E8462A;
    font-size: 11px;
    font-weight: 900;
}
.bt-genui__offer--hero {
    top: auto;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px 6px 6px;
    font-size: 15px;
}
.bt-genui__offer--hero .bt-genui__offer-icon { width: 22px; height: 22px; font-size: 13px; }
.bt-genui__offer-tag { width: 62%; height: 62%; fill: currentColor; }
.bt-genui__offer-tag path { fill-rule: evenodd; }
.bt-genui__offer--small { top: 4px; left: 4px; padding: 2px 7px 2px 2px; font-size: 10px; }
.bt-genui__offer--small .bt-genui__offer-icon { width: 14px; height: 14px; font-size: 9px; }
.bt-genui__list-photo { position: relative; }
