/*
 * InstaQR customer-site theme (mobile-first).
 * Loaded only on the customer site (layouts/guest.blade.php). Plain CSS, so no Vite/Tailwind rebuild is needed.
 * Brand colour comes from the restaurant theme setting: --color-base = "r, g, b".
 */

:root {
    --tt-brand: rgb(var(--color-base, 22, 163, 74));
    --tt-brand-soft: rgba(var(--color-base, 22, 163, 74), 0.1);
    --tt-brand-softer: rgba(var(--color-base, 22, 163, 74), 0.06);
    --tt-bg: #f7f5f0;
    --tt-card: #ffffff;
    --tt-text: #1f2328;
    --tt-muted: #6b7280;
    --tt-line: #ece8df;
    --tt-radius: 16px;
    --tt-radius-sm: 12px;
    --tt-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 4px 14px rgba(17, 24, 39, 0.06);
    --tt-shadow-lg: 0 10px 30px rgba(17, 24, 39, 0.16);
}

html.dark {
    --tt-bg: #0f1115;
    --tt-card: #1a1d23;
    --tt-text: #f3f4f6;
    --tt-muted: #9ca3af;
    --tt-line: #2a2e36;
    --tt-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ---------- Base ---------- */
body.tt-shop {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--tt-bg) !important;
    color: var(--tt-text);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

body.tt-shop #main-content,
body.tt-shop #main-content > main,
body.tt-shop .tt-shell > .flex.mt-4 {
    background: transparent !important;
}

body.tt-shop .tt-shell {
    background: var(--tt-bg);
    box-shadow: none !important;
}

/* Comfortable tap targets everywhere on mobile */
@media (max-width: 1023px) {
    body.tt-shop button,
    body.tt-shop a {
        touch-action: manipulation;
    }
}

/* ---------- Header ---------- */
body.tt-shop .tt-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--tt-line);
}

html.dark body.tt-shop .tt-header {
    background: rgba(17, 19, 24, 0.92);
}

body.tt-shop .tt-header nav {
    background: transparent !important;
}

body.tt-shop .tt-header .app-logo img,
body.tt-shop .tt-header .app-logo svg {
    border-radius: 10px;
}

body.tt-shop .tt-header-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--tt-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--color-base, 22, 163, 74), 0.35);
}

body.tt-shop #mobile-menu-2 {
    background: var(--tt-card) !important;
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
    overflow: hidden;
}

/* ---------- Welcome strip ---------- */
body.tt-shop .tt-welcome {
    margin: 14px 16px 0;
    padding: 16px 18px;
    border-radius: var(--tt-radius);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, var(--tt-brand) 0%, rgba(var(--color-base, 22, 163, 74), 0.82) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(var(--color-base, 22, 163, 74), 0.28);
}

body.tt-shop .tt-welcome__hello {
    font-size: 12px;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

body.tt-shop .tt-welcome__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2px;
}

body.tt-shop .tt-welcome__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

body.tt-shop .tt-welcome__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

body.tt-shop .tt-welcome__pill svg {
    width: 16px;
    height: 16px;
}

/* ---------- Order-type bar (old one) is replaced by the welcome strip ---------- */
body.tt-shop .tt-ot-bar {
    display: none !important;
}

/* ---------- Menu chips (Show All / Hot / Iced ...) ---------- */
body.tt-shop .tt-menu-chips-wrap {
    margin-top: 14px !important;
    margin-bottom: 4px !important;
}

@media (max-width: 1023px) {
    body.tt-shop .tt-menu-chips {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding: 2px 2px 6px;
        scrollbar-width: none;
        /* room for the active chip's shadow inside the scroll area */
        padding: 4px 4px 12px !important;
        margin: -4px -4px -8px;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card--active {
        box-shadow: 0 4px 10px rgba(var(--color-base, 22, 163, 74), 0.28) !important;
    }

    body.tt-shop .tt-menu-chips::-webkit-scrollbar {
        display: none;
    }

    body.tt-shop .tt-menu-chips > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card {
        border-radius: 999px !important;
        min-height: 40px;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card > div {
        padding: 8px 16px !important;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card__icon {
        width: 16px !important;
        height: 16px !important;
    }

    body.tt-shop .tt-menu-chips .tt-shop-menu-card__title {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: visible !important;
    }

    /* "show more" toggle is not needed with a scrolling row */
    body.tt-shop .tt-menu-chips-more {
        display: none !important;
    }

    body.tt-shop .tt-menu-chips [x-show] {
        display: block !important;
    }
}

body.tt-shop .tt-shop-menu-card {
    border-color: var(--tt-line) !important;
    box-shadow: none !important;
}

body.tt-shop .tt-shop-menu-card--active {
    box-shadow: 0 6px 16px rgba(var(--color-base, 22, 163, 74), 0.3) !important;
    border-color: transparent !important;
}

/* ---------- Filters row (category dropdown + search + veg) ---------- */
body.tt-shop .tt-filters {
    margin-top: 10px !important;
}

body.tt-shop .tt-filters input[type='text'],
body.tt-shop .tt-filters button {
    border-radius: 12px !important;
    border-color: var(--tt-line) !important;
    min-height: 44px;
}

body.tt-shop .tt-search {
    position: relative;
}

body.tt-shop .tt-search input {
    padding-left: 38px !important;
    background: var(--tt-card) !important;
    font-size: 14px;
}

body.tt-shop .tt-search::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M17 10.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Z'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

[dir='rtl'] body.tt-shop .tt-search::before {
    left: auto;
    right: 13px;
}

[dir='rtl'] body.tt-shop .tt-search input {
    padding-left: 12px !important;
    padding-right: 38px !important;
}

body.tt-shop .tt-toggles {
    margin: 8px 16px 0 !important;
    gap: 14px !important;
}

@media (max-width: 1023px) {
    body.tt-shop .tt-toggles {
        justify-content: flex-start !important;
        margin-top: 10px !important;
    }

    body.tt-shop .tt-toggles > div {
        justify-content: flex-start !important;
        margin-top: 0 !important;
    }
}

/* ---------- Section heading ---------- */
body.tt-shop .tt-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 10px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

body.tt-shop .tt-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tt-line);
}

/* ---------- Item cards ---------- */
body.tt-shop .tt-item-card {
    background: var(--tt-card) !important;
    border: 1px solid var(--tt-line) !important;
    border-radius: var(--tt-radius) !important;
    box-shadow: var(--tt-shadow) !important;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.tt-shop .tt-item-card:active {
    transform: scale(0.99);
}

body.tt-shop .tt-item-card > div {
    padding: 12px !important;
    gap: 12px !important;
}

body.tt-shop .tt-item-img {
    width: 88px !important;
    height: 88px !important;
    border-radius: 14px !important;
    flex-shrink: 0;
    background: #f1ede4;
}

@media (min-width: 1024px) {
    body.tt-shop .tt-item-img {
        width: 104px !important;
        height: 104px !important;
    }
}

body.tt-shop .tt-item-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-transform: capitalize;
}

body.tt-shop .tt-item-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--tt-text) !important;
}

body.tt-shop .tt-item-card--oos {
    opacity: 0.72;
}

body.tt-shop .tt-item-card--oos .tt-item-img {
    filter: grayscale(0.9);
}

body.tt-shop .tt-oos-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c !important;
    font-size: 12px;
    font-weight: 600;
}

body.tt-shop .tt-low-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
}

/* Add button + qty stepper as pills */
body.tt-shop .tt-add-btn {
    min-width: 84px;
    height: 38px;
    justify-content: center;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 14px rgba(var(--color-base, 22, 163, 74), 0.3) !important;
}

body.tt-shop .tt-add-btn::before {
    content: '+';
    margin-right: 6px;
    font-size: 16px;
    line-height: 1;
}

body.tt-shop .tt-stepper {
    margin: 0 !important;
    max-width: none !important;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--tt-brand);
    box-shadow: 0 6px 14px rgba(var(--color-base, 22, 163, 74), 0.3);
}

body.tt-shop .tt-stepper button {
    height: 38px !important;
    width: 38px;
    padding: 0 !important;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.tt-shop .tt-stepper button svg {
    width: 12px !important;
    height: 12px !important;
    color: #fff !important;
}

body.tt-shop .tt-stepper input {
    width: 34px !important;
    min-width: 34px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px !important;
}

/* ---------- Floating cart bar ---------- */
body.tt-shop .tt-cart-bar {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 30 !important;
}

body.tt-shop .tt-cart-bar > div {
    border-radius: 18px !important;
    padding: 12px 12px 12px 18px !important;
    background: #111827 !important;
    box-shadow: var(--tt-shadow-lg);
}

body.tt-shop .tt-cart-bar__info {
    font-weight: 600;
    font-size: 14px !important;
}

body.tt-shop .tt-cart-bar button {
    border-radius: 12px !important;
    background: var(--tt-brand) !important;
    color: #fff !important;
    border: 0 !important;
    min-height: 42px;
    padding: 0 16px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Keep content above the floating cart bar */
body.tt-shop .tt-menu-list {
    padding-bottom: 110px;
}

/* ---------- Floating actions (call waiter) ---------- */
body.tt-shop .tt-floating-actions {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    justify-content: flex-end !important;
}

/* ---------- Order type: bottom sheet on phones ---------- */
@media (max-width: 639px) {
    body.tt-shop .tt-ot-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    body.tt-shop .tt-ot-sheet {
        border-radius: 24px 24px 0 0 !important;
        max-width: 100% !important;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        animation: tt-sheet-up 0.22s ease-out;
    }

    body.tt-shop .tt-ot-sheet::before {
        content: '';
        display: block;
        width: 42px;
        height: 5px;
        margin: 10px auto 0;
        border-radius: 999px;
        background: #d1d5db;
    }

    body.tt-shop .tt-ot-sheet h2 {
        font-size: 19px !important;
    }

    body.tt-shop .tt-ot-options {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 16px !important;
    }

    body.tt-shop .tt-ot-options > button {
        padding: 14px 6px !important;
        border-radius: 16px !important;
    }

    body.tt-shop .tt-ot-options > button > div {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 8px !important;
    }

    body.tt-shop .tt-ot-options > button > div svg {
        width: 24px !important;
        height: 24px !important;
    }

    body.tt-shop .tt-ot-options > button > span:first-of-type {
        font-size: 14px !important;
    }

    /* Descriptions make the sheet too tall on phones */
    body.tt-shop .tt-ot-options > button > span + span,
    body.tt-shop .tt-ot-options > button > span ~ span {
        display: none !important;
    }
}

@keyframes tt-sheet-up {
    from {
        transform: translateY(40px);
        opacity: 0.4;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---------- Generic modals (item detail, login, etc.) ---------- */
body.tt-shop .jetstream-modal > div:last-child,
body.tt-shop .tt-item-detail {
    border-radius: 20px !important;
}

@media (max-width: 639px) {
    body.tt-shop .jetstream-modal {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.tt-shop .jetstream-modal > div:last-child {
        margin-top: 24px !important;
    }
}

/* ---------- Cart page ---------- */
body.tt-shop .tt-cart-line {
    background: var(--tt-card) !important;
    border: 1px solid var(--tt-line) !important;
    border-radius: var(--tt-radius) !important;
    box-shadow: var(--tt-shadow) !important;
    overflow: hidden;
}

body.tt-shop .tt-cart-line > div {
    background: transparent !important;
}

body.tt-shop .tt-cart-line img.object-cover {
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
}

body.tt-shop .tt-cart-summary > div:not(:last-child) {
    background: var(--tt-card) !important;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius) !important;
    box-shadow: var(--tt-shadow);
}

/* Checkout buttons: always reachable at the bottom of the screen on phones */
body.tt-shop .tt-cart-summary > div:last-child {
    background: transparent !important;
}

@media (max-width: 1023px) {
    body.tt-shop .tt-cart-summary > div:last-child {
        position: sticky;
        bottom: 0;
        z-index: 20;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        background: var(--tt-bg) !important;
    }
}

body.tt-shop .tt-cart-summary button {
    min-height: 46px;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ---------- Footer ---------- */
body.tt-shop footer {
    background: transparent !important;
    border-color: var(--tt-line) !important;
    padding-bottom: 120px !important;
}

@media (min-width: 1024px) {
    body.tt-shop footer {
        padding-bottom: 24px !important;
    }
}

/* ---------- Safety: never allow sideways scrolling on phones ---------- */
@media (max-width: 1023px) {
    /* clip (not hidden) so the sticky header keeps working */
    html,
    body.tt-shop {
        overflow-x: clip !important;
        max-width: 100%;
    }

    body.tt-shop img {
        max-width: 100%;
    }
}

/* =====================================================================
   v4: sticky browse bar, category photo strip, food-app style item cards
   ===================================================================== */

/* Sticky search + categories (sits right under the sticky header) */
body.tt-shop .tt-browse-bar {
    position: sticky;
    top: var(--tt-header-h, 60px);
    z-index: 30;
    margin-top: 6px;
    padding: 10px 16px 4px;
    background: var(--tt-bg);
}

body.tt-shop .tt-browse-bar.tt-stuck {
    box-shadow: 0 8px 16px -12px rgba(17, 24, 39, 0.25);
}

body.tt-shop .tt-browse-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.tt-shop .tt-browse-row input[type='text'] {
    height: 44px;
    border-radius: 14px !important;
    border-color: var(--tt-line) !important;
}

body.tt-shop .tt-diet-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--tt-line);
    background: var(--tt-card);
    color: var(--tt-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

body.tt-shop .tt-diet-pill--on {
    border-color: #16a34a;
    background: #ecfdf5;
    color: #15803d;
}

body.tt-shop .tt-veg-dot {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1.5px solid #16a34a;
    border-radius: 3px;
}

body.tt-shop .tt-veg-dot::after {
    content: '';
    position: absolute;
    inset: 2.5px;
    border-radius: 50%;
    background: #16a34a;
}

/* Category strip */
body.tt-shop .tt-cat-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.tt-shop .tt-cat-strip::-webkit-scrollbar {
    display: none;
}

body.tt-shop .tt-cat {
    position: relative;
    flex: 0 0 auto;
    width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    scroll-snap-align: start;
    cursor: pointer;
}

body.tt-shop .tt-cat__img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tt-brand-soft), #ffffff);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.tt-shop .tt-cat__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.tt-shop .tt-cat__img--all svg {
    width: 26px;
    height: 26px;
    color: var(--tt-brand);
}

body.tt-shop .tt-cat__initial {
    font-size: 24px;
    font-weight: 700;
    color: var(--tt-brand);
    text-transform: uppercase;
}

body.tt-shop .tt-cat__name {
    max-width: 78px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--tt-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.tt-shop .tt-cat__count {
    position: absolute;
    top: -2px;
    right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid var(--tt-bg);
    background: #111827;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

body.tt-shop .tt-cat--active .tt-cat__img {
    border-color: var(--tt-brand);
    box-shadow: 0 0 0 3px var(--tt-brand-soft), 0 6px 14px rgba(var(--color-base, 22, 163, 74), 0.3);
    transform: translateY(-2px);
}

body.tt-shop .tt-cat--active .tt-cat__name {
    color: var(--tt-brand);
}

body.tt-shop .tt-cat--active .tt-cat__count {
    background: var(--tt-brand);
}

/* Item cards: photo on the right, "ADD" button overlapping the photo (food-app style) */
body.tt-shop .tt-item-card {
    position: relative;
}

body.tt-shop .tt-item-card[data-img='1'] > div {
    flex-direction: row-reverse;
    min-height: 152px;
    padding-bottom: 26px !important;
}

body.tt-shop .tt-item-card[data-img='1'] .tt-item-img {
    width: 116px !important;
    height: 116px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
}

body.tt-shop .tt-item-card[data-img='1'] .tt-item-actions {
    position: absolute;
    top: calc(12px + 116px - 20px);
    right: 12px;
    width: 116px;
    align-items: center !important;
    z-index: 2;
}

[dir='rtl'] body.tt-shop .tt-item-card[data-img='1'] .tt-item-actions {
    right: auto;
    left: 12px;
}

body.tt-shop .tt-item-card[data-img='1'] .tt-item-actions > div {
    align-items: center !important;
}

body.tt-shop .tt-item-card[data-img='1'] .tt-add-btn {
    min-width: 96px;
    background: #ffffff !important;
    color: var(--tt-brand) !important;
    border: 1px solid rgba(var(--color-base, 22, 163, 74), 0.35) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.16) !important;
}

html.dark body.tt-shop .tt-item-card[data-img='1'] .tt-add-btn {
    background: #111827 !important;
}

body.tt-shop .tt-item-card[data-img='1'] .tt-low-badge,
body.tt-shop .tt-item-card[data-img='1'] .tt-oos-badge {
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.12);
}

body.tt-shop .tt-item-card .tt-item-price {
    margin-top: 4px;
}

/* ---------- "Order again" banner on the menu ---------- */
body.tt-shop .tt-repeat-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 16px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #a7f3d0;
}

body.tt-shop .tt-repeat-banner button {
    font-size: 20px;
    line-height: 1;
    color: inherit;
}

/* ---------- Order status page: alerts + buttons ---------- */
body.tt-shop .tt-notify-btn,
body.tt-shop .tt-notify-on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

body.tt-shop .tt-notify-btn {
    background: var(--tt-brand);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(var(--color-base, 22, 163, 74), 0.3);
}

body.tt-shop .tt-notify-on {
    background: var(--tt-brand-soft);
    color: var(--tt-brand);
}

body.tt-shop .tt-ready-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--tt-header-h, 60px) + 10px);
    z-index: 60;
    padding: 16px 18px;
    border-radius: 16px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--tt-shadow-lg);
    animation: tt-pop 0.35s ease-out;
}

@keyframes tt-pop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

body.tt-shop .tt-repeat-btn,
body.tt-shop .tt-order-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--tt-line);
    background: var(--tt-card);
    color: var(--tt-text);
}

body.tt-shop .tt-repeat-btn,
body.tt-shop .tt-order-card__btn--primary {
    background: var(--tt-brand);
    border-color: transparent;
    color: #ffffff;
}

body.tt-shop .tt-order-card__btn {
    flex: 1;
}

/* ---------- My Orders cards ---------- */
body.tt-shop .tt-order-card {
    padding: 14px;
    border-radius: var(--tt-radius);
    border: 1px solid var(--tt-line);
    background: var(--tt-card);
    box-shadow: var(--tt-shadow);
}

body.tt-shop .tt-status-pill {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

body.tt-shop .tt-status-pill--active {
    background: #fef3c7;
    color: #92400e;
}

body.tt-shop .tt-status-pill--done {
    background: #dcfce7;
    color: #166534;
}

/* ---------- Delivery address form ---------- */
body.tt-shop .tt-address-form {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--tt-line);
    background: var(--tt-brand-softer);
}

/* Sticky elements need ancestors without a scroll container: use clip instead of hidden/auto. */
body.tt-shop .tt-shell > .flex.mt-4,
body.tt-shop #main-content,
body.tt-shop #main-content > main,
body.tt-shop .overflow-x-hidden:has(.tt-browse-bar),
body.tt-shop .overflow-x-hidden:has(.tt-cart-summary) {
    overflow: clip !important;
}
/* Saved addresses offered as one-tap choices */
body.tt-shop .tt-saved-address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--tt-line);
    background: var(--tt-card);
    text-align: start;
}

body.tt-shop .tt-saved-address:hover {
    border-color: var(--tt-brand);
}

body.tt-shop .tt-saved-address__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--tt-brand);
}

body.tt-shop .tt-saved-address__text {
    font-size: 13px;
    color: var(--tt-text);
}