/* ============================================
   PICK STRIPS - free / order again / popular
   Cards inherit .menu-product-card from menu.css;
   this file only adds strip layout and modifiers.
   Load after menu.css.
   ============================================ */

.pick-strip-section {
    margin-bottom: 1rem;
}

.pick-strip-section__title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
}

.pick-strip-section__title .bi {
    font-size: 0.875em;
}

.pick-strip-section--free .pick-strip-section__title {
    color: var(--menu-success);
    border-color: var(--menu-success);
}

.pick-strip-section--reorder .pick-strip-section__title,
.pick-strip-section--popular .pick-strip-section__title {
    color: var(--brand-color-one, #212529);
    border-color: var(--brand-color-one, #dee2e6);
}

/* Horizontal scroller */
.pick-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.125rem 0.625rem;
    scrollbar-width: thin;
    scrollbar-color: var(--menu-gray-200) transparent;
}

.pick-strip::-webkit-scrollbar {
    height: 0.375rem;
}

.pick-strip::-webkit-scrollbar-thumb {
    background: var(--menu-gray-200);
    border-radius: 0.25rem;
}

/* Card sizing inside the strip */
.pick-card {
    flex: 0 0 17rem;
    width: 17rem;
    height: 7.5rem;
    scroll-snap-align: start;
}

.pick-card .menu-product-card__image {
    min-width: 6rem;
    max-width: 6.5rem;
}

.pick-card .menu-product-card__content {
    padding: 0.625rem 0.75rem;
}

.pick-card .menu-product-card__title {
    font-size: 0.875rem;
    -webkit-line-clamp: 1;
}

.pick-card .menu-product-card__description {
    -webkit-line-clamp: 2;
}

.pick-card .menu-product-card__badge {
    letter-spacing: 0.03125rem;
}

/* Mode badges */
.pick-card--free .pick-card__badge {
    background: var(--menu-success);
}

.pick-card--reorder .pick-card__badge {
    background: var(--brand-color-one, #212529);
    color: var(--brand-color-two, #fff);
}

.pick-card--popular .pick-card__badge {
    background: var(--brand-color-accent, #ff6b35);
    color: #fff;
}

/* Free card price */
.pick-card__was {
    font-weight: 400;
    color: var(--menu-secondary);
    font-size: 0.8125rem;
    margin-right: 0.25rem;
}

.pick-card__free {
    color: var(--menu-success);
    text-transform: uppercase;
    font-size: 0.8125rem;
}

/* Free card states - driven by .locked / .unlocked / .claimed on the card */
.pick-card--free {
    cursor: default;
}

.pick-card--free .menu-product-card__quick-add .bi-lock-fill {
    display: none;
}

.pick-card--free.locked .menu-product-card__image img {
    filter: grayscale(0.7);
    opacity: 0.75;
}

.pick-card--free.locked .menu-product-card__quick-add {
    background: rgba(255, 255, 255, 0.9);
    color: var(--menu-secondary);
    box-shadow: none;
    pointer-events: none;
}

.pick-card--free.locked .menu-product-card__quick-add .bi-plus {
    display: none;
}

.pick-card--free.locked .menu-product-card__quick-add .bi-lock-fill {
    display: block;
    font-size: 0.875rem;
}

.pick-card--free.unlocked .menu-product-card__quick-add {
    background: var(--menu-success);
    color: #fff;
}

.pick-card--free.unlocked .menu-product-card__quick-add:hover {
    transform: scale(1.1);
}

.pick-card--free.unlocked {
    box-shadow: 0 0 0 0.125rem var(--menu-success), var(--menu-card-shadow);
}

.pick-card--free.claimed .menu-product-card__quick-add {
    background: var(--menu-success);
    color: #fff;
    pointer-events: none;
}

.pick-card--free.claimed .menu-product-card__quick-add .bi-plus {
    display: none;
}

.pick-card--free.claimed .menu-product-card__quick-add .bi-check {
    display: block;
}

.pick-card--free .offer-requirement {
    font-weight: 500;
}

.pick-card--free.unlocked .offer-requirement,
.pick-card--free.claimed .offer-requirement {
    color: var(--menu-success);
}

/* Added flash (kept from old carousel) */
.pick-card.added-flash {
    animation: pick-flash 0.6s ease;
}

@keyframes pick-flash {
    0%   { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6); }
    100% { box-shadow: 0 0 0 0.75rem rgba(25, 135, 84, 0); }
}

/* Mobile */
@media (max-width: 767.98px) {
    .pick-card {
        flex-basis: 15rem;
        width: 15rem;
        height: 7rem;
    }

    .pick-card .menu-product-card__image {
        min-width: 5.5rem;
        max-width: 5.5rem;
    }
}

/* Ordered-before badge on main menu cards */
.menu-product-card__badge.reordered {
    background: var(--brand-color-one, #212529);
    color: var(--brand-color-two, #fff);
}

.menu-category-section.pick-strip-section {
    margin-bottom: 1rem;
}

.menu-categories-nav .nav-link.pick-link {
    background: transparent;
    color: #212529;
    border: 0.0625rem solid #ced4da;
}

.menu-categories-nav .nav-link.pick-link:hover {
    background: var(--menu-gray-200);
    color: #212529;
    border-color: #adb5bd;
}

.menu-categories-nav .nav-link.pick-link.active,
.menu-categories-nav .nav-link.pick-link.active:hover {
    background: var(--brand-color-one);
    color: var(--brand-on-one, #fff);
    border-color: var(--brand-color-one);
}

/* Deals strip (BOGOF / buy-x) */
.pick-strip-section--deal .pick-strip-section__title {
    color: var(--menu-danger);
    border-color: var(--menu-danger);
}

.pick-card--deal .pick-card__badge {
    background: var(--menu-danger);
    color: #fff;
}

/* Offer note in the product modal (free reward / BOGOF / buy-x trigger) */
.product-modal__free-note {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    margin: -0.25rem 0 0.75rem;
    color: var(--menu-success);
}

.product-modal__free-note .badge {
    background: var(--menu-success);
    color: #fff;
    font-size: 0.6875rem;
    text-transform: uppercase;
}

.product-modal__free-note--bogof,
.product-modal__free-note--deal {
    color: var(--menu-danger);
}

.product-modal__free-note--bogof .badge,
.product-modal__free-note--deal .badge {
    background: var(--menu-danger);
}

/* ============================================
   OFFER TILE - one card per offer (2+ rewards)
   Inherits .pick-card--free state styling for
   the lock / plus / tick icon and the green ring.
   ============================================ */
.pick-card--offer {
    cursor: pointer;
}

.pick-card--offer .offer-tile__thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    background: #f7f7f5;
}

.offer-tile__thumb {
    position: static;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    border: 0.125rem solid #fff;
    background: var(--menu-gray-200);
    color: var(--menu-secondary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.12);
}

.offer-tile__thumb + .offer-tile__thumb {
    margin-left: -0.875rem;
}

.offer-tile__thumb img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-tile__thumb--more {
    background: #fff;
    color: var(--brand-color-one, #212529);
    font-size: 0.75rem;
    font-weight: 700;
}

.pick-card--offer.locked .offer-tile__thumb img {
    filter: grayscale(0.7);
    opacity: 0.75;
}

.pick-card--offer .offer-tile__state {
    pointer-events: none;
}

.pick-card--offer.claimed .offer-tile__cta {
    color: var(--brand-color-one, #212529);
    text-decoration: underline;
    text-transform: none;
}

/* ============================================
   OFFER CHOOSER - modal on desktop, bottom
   sheet on phones
   ============================================ */
.offer-chooser .modal-dialog {
    max-width: 30rem;
}

.offer-chooser__heading {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.offer-chooser__badge {
    align-self: flex-start;
    background: var(--menu-success);
    color: #fff;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
}

.offer-chooser__status {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 0.0625rem solid var(--menu-gray-200);
}

.offer-chooser__status--locked {
    background: #fff6e5;
    color: #8a5a00;
}

.offer-chooser__status--unlocked,
.offer-chooser__status--claimed {
    background: rgba(25, 135, 84, 0.1);
    color: var(--menu-success);
}

.offer-choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 0.0625rem solid var(--menu-gray-200);
}

.offer-choice:last-child {
    border-bottom: 0;
}

.offer-choice.claimed {
    background: rgba(25, 135, 84, 0.06);
}

.offer-choice__img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f7f7f5;
    color: var(--menu-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.offer-choice__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-choice.locked .offer-choice__img img {
    filter: grayscale(0.7);
    opacity: 0.75;
}

.offer-choice__body {
    flex: 1;
    min-width: 0;
}

.offer-choice__name {
    font-size: 0.9375rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-choice__price {
    font-size: 0.8125rem;
}

.offer-choice__btn {
    min-width: 6.5rem;
    min-height: 2.75rem;
    font-weight: 600;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.offer-choice__btn .offer-choice__icon {
    font-size: 1rem;
    line-height: 1;
}

.offer-choice__btn .offer-choice__label:empty + .offer-choice__icon {
    font-size: 1.25rem;
}

@media (max-width: 767.98px) {
    .offer-chooser .modal-dialog {
        margin: 0;
        max-width: none;
        min-height: 100%;
        align-items: flex-end;
    }

    .offer-chooser .modal-content {
        border-radius: 1.25rem 1.25rem 0 0;
        max-height: 85vh;
    }

    .offer-chooser.fade .modal-dialog {
        transform: translateY(2rem);
    }

    .offer-chooser.show .modal-dialog {
        transform: none;
    }
}