/* Restaurant detail components. Scoped so checkout and product options keep their styles. */
.rm-page { --rm-accent: var(--primary, #ff6b00); --rm-ink: #20252b; --rm-muted: #70757d; --rm-line: #e9ebee; padding: 24px 0 64px; background: #f7f8fa; color: var(--rm-ink); min-height: 80vh; }
.rm-page .rm-container { max-width: 1392px; padding-inline: 32px; }
.rm-page [hidden] { display: none !important; }
.rm-page a, .rm-page button, .rm-page input { -webkit-tap-highlight-color: transparent; }
.rm-page :is(a,button,input):focus-visible { outline: 3px solid var(--rm-accent); outline-offset: 4px; }
.rm-breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 12px; color: var(--rm-muted); min-width: 0; }
.rm-breadcrumb a { flex-shrink: 0; color: var(--rm-muted); }
.rm-breadcrumb a:hover { color: var(--rm-accent); }
.rm-breadcrumb i { font-size: 8px; color: #b6bac0; }
.rm-breadcrumb > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-hero { position: relative; display: flex; align-items: center; gap: 28px; padding: 24px; border: 1px solid var(--rm-line); border-radius: 20px; background: #fff; }
.rm-hero-image { width: 208px; height: 174px; flex-shrink: 0; margin: 0; overflow: hidden; border-radius: 14px; background: #f4f4f4; }
.rm-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.rm-hero-content { min-width: 0; flex: 1; }
.rm-hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; font-size: 12px; }
.rm-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.rm-status > span { height: 6px; width: 6px; border-radius: 50%; background: currentColor; }
.rm-status.is-open { color: #198352; background: #edf8f1; }
.rm-status.is-closed { color: #bc4a39; background: #fff0eb; }
.rm-location-short { color: var(--rm-muted); }
.rm-hero h1 { font-size: clamp(21px, 2.1vw, 29px); font-weight: 750; line-height: 1.35; letter-spacing: -.7px; color: var(--rm-ink); margin: 0 0 7px; overflow-wrap: anywhere; text-transform: none; }
.rm-cuisines { font-size: 12px; line-height: 1.7; color: var(--rm-muted); margin-bottom: 12px; }
.rm-address { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; color: var(--rm-muted); font-size: 12px; line-height: 1.6; }
.rm-address i { color: #959ba3; }
.rm-hero-details { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 12px; }
.rm-hero-details > span { display: inline-flex; align-items: center; gap: 7px; color: #565d65; }
.rm-hero-details > span i { color: var(--rm-accent); }
.rm-rating { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 700; background: transparent; color: #26824f; cursor: pointer; }
.rm-rating span { font-size: 11px; color: var(--rm-muted); font-weight: 400; }
.rm-hero-actions { align-self: flex-start; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.rm-about, .rm-book { padding: 10px 13px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #505861; background: #fff; border: 1px solid var(--rm-line); border-radius: 9px; font-size: 11px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s; }
.rm-about:hover, .rm-book:hover { color: var(--rm-accent); border-color: var(--rm-accent); }
.rm-closed-note { display: flex; align-items: center; gap: 10px; padding: 13px 16px; margin-top: 12px; border: 1px solid #f4e1cc; border-radius: 10px; background: #fff8ef; color: #91612c; font-size: 12px; line-height: 1.7; }
.rm-campaigns { padding: 20px 24px; background: #fff; margin-top: 16px; border: 1px solid var(--rm-line); border-radius: 14px; }
.rm-campaigns h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.rm-campaigns h2 i { color: var(--rm-accent); }
.rm-layout { display: grid; grid-template-columns: 192px minmax(0, 1fr) 304px; gap: 24px; align-items: start; margin-top: 28px; }
.rm-categories { min-width: 0; height: 100%; }
.rm-categories-inner { position: sticky; top: 96px; padding-top: 7px; }
.rm-categories h2 { font-size: 15px; font-weight: 700; margin: 0 0 17px 12px; color: var(--rm-ink); }
.rm-category-nav { display: flex; flex-direction: column; gap: 5px; max-height: calc(100dvh - 210px); overflow: auto; scrollbar-width: thin; }
.rm-category-nav a { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px; border-radius: 9px; border: 1px solid transparent; color: #61676f; font-size: 12px; font-weight: 500; line-height: 1.6; transition: background-color .18s, color .18s; }
.rm-category-nav a small { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; padding-inline: 5px; border-radius: 6px; background: #eceef1; font-size: 10px; color: #7c828a; flex-shrink: 0; }
.rm-category-nav a:hover { background: #fff; color: var(--rm-ink); }
.rm-category-nav a.is-active { background: #fff4e9; color: var(--rm-accent); border-color: #ffe2c7; font-weight: 700; }
.rm-category-nav a.is-active small { background: #ffe5cc; color: var(--rm-accent); }
.rm-category-note { border-top: 1px solid var(--rm-line); display: flex; align-items: center; gap: 8px; margin: 20px 12px 0; padding-top: 18px; color: #969ba1; font-size: 10px; line-height: 1.6; }
.rm-menu { width: 100%; min-width: 0; }
.rm-page .rest-content { margin-bottom: 0; }
.rm-menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rm-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.8px; color: #9398a0; display: block; margin-bottom: 5px; }
.rm-menu-toolbar h2 { font-size: 21px; font-weight: 750; letter-spacing: -.6px; color: var(--rm-ink); margin: 0; }
.rm-search { display: flex; align-items: center; gap: 10px; width: 224px; min-width: 0; padding: 0 13px; border: 1px solid #e1e4e9; border-radius: 10px; height: 44px; background: #fff; color: #9298a0; }
.rm-search:focus-within { border-color: var(--rm-accent); }
.rm-search > i { font-size: 14px; }
.rm-search input { width: 100%; min-width: 0; font-size: 12px; color: var(--rm-ink); background: transparent; border: 0; height: 100%; outline: none; }
.rm-search input:focus-visible { outline: none; }
.rm-search input::placeholder { color: #9a9fa7; }
.rm-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rm-search button { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 30px; flex-shrink: 0; color: #747a82; background: transparent; cursor: pointer; }
.rm-menu-section { scroll-margin-top: 100px; margin-bottom: 30px; }
.rm-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.rm-page .product-category-title { padding: 0; margin: 0; color: var(--rm-ink); font-size: 17px; line-height: 1.5; font-weight: 700; letter-spacing: -.3px; }
.rm-section-heading > span { font-size: 10px; color: #8b9199; flex-shrink: 0; }
.rm-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rm-page .rm-product-card { display: flex; align-items: stretch; gap: 12px; padding: 14px; min-height: 168px; border: 1px solid #e6e8ec; border-radius: 12px; background: #fff; overflow: visible; box-shadow: 0 2px 3px #20252b02; transition: box-shadow .2s, border-color .2s, transform .2s; }
.rm-page .rm-product-card:hover { border-color: #f2c49b; box-shadow: 0 5px 16px #292c3308; transform: translateY(-2px); }
.rm-page .product-card-content { padding: 0; gap: 7px; overflow: visible; align-items: stretch; height: auto; min-width: 0; justify-content: flex-start; }
.rm-product-title-link { display: block; color: var(--rm-ink); }
.rm-page .product-card-title { font-size: 14px; font-weight: 650; line-height: 1.5; white-space: normal; overflow: visible; text-overflow: clip; margin: 0; color: var(--rm-ink); }
.rm-product-title-link:hover .product-card-title { color: var(--rm-accent); }
.rm-page .product-card-text { font-size: 11px; line-height: 1.65; color: #747b85; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 0; }
.rm-page .product-card-info { gap: 6px; margin-top: auto; padding-top: 5px; flex-wrap: wrap; }
.rm-page .product-card-price { display: flex; flex-direction: column; gap: 1px; }
.rm-page .product-card-price del { font-size: 10px; line-height: 1.3; font-weight: 400; color: #a5a9b0; }
.rm-page .product-card-price span { font-size: 14px; font-weight: 750; line-height: 1.5; color: var(--rm-ink); letter-spacing: -.3px; }
.rm-page .product-card-add { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 30px; padding: 5px 8px; margin-left: auto; border: 1px solid #ffe2c6; border-radius: 7px; box-shadow: none; background: #fff6ed; color: var(--rm-accent); }
.rm-page .product-card-add span { font-size: 10px; line-height: 1.5; font-weight: 650; color: inherit; }
.rm-page .product-card-add i { font-size: 10px; }
.rm-page .product-card-add:hover { color: #fff; background: var(--rm-accent); border-color: var(--rm-accent); }
.rm-page .product-card-media { position: relative; align-self: flex-start; width: 94px; height: 100px; margin: 0; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.rm-page .product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-discount { position: absolute; top: 5px; left: 5px; border-radius: 4px; padding: 3px 5px; background: #fff; color: #b95714; font-size: 9px; font-weight: 700; box-shadow: 0 1px 4px #0000000a; }
.rm-mobile-categories, .rm-mobile-cart { display: none; }
.rm-search-result { color: var(--rm-muted); font-size: 12px; margin: -8px 0 20px; }
.rm-search-empty, .rm-no-menu { text-align: center; padding: 64px 20px; border: 1px dashed #dfe2e6; border-radius: 14px; background: #fff; }
.rm-search-empty > i, .rm-no-menu > i { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px; color: var(--rm-accent); background: #fff4e9; font-size: 21px; }
.rm-search-empty h3, .rm-no-menu h3 { font-size: 17px; font-weight: 700; margin-bottom: 9px; }
.rm-search-empty p, .rm-no-menu p { font-size: 12px; line-height: 1.8; color: var(--rm-muted); }
.rm-search-empty button { padding: 10px 16px; margin-top: 18px; border-radius: 8px; background: #fff1e4; color: var(--rm-accent); cursor: pointer; font-size: 12px; font-weight: 600; }
/* The existing Livewire cart remains responsible for quantities, options and totals. */
@media (min-width: 992px) {
    .rm-page .rm-cart { position: sticky; top: 95px; min-width: 0; }
    .rm-page .rm-cart .cart-content { position: relative; top: auto; right: auto; width: 100%; max-width: none; transform: none; border: 1px solid var(--rm-line); border-radius: 14px; background: #fff; }
    .rm-page .rm-cart .cart-close { display: none; }
    .rm-page .rm-cart .cart-empty { height: auto; min-height: 310px; padding-bottom: 28px; }
    .rm-page .rm-cart .cart-empty img { width: 112px; height: 112px; margin: 28px auto 18px; }
    .rm-page .rm-cart .cart-title { color: var(--rm-ink); font-size: 17px; font-weight: 700; line-height: 1.6; text-align: left; padding: 19px 20px; border-color: var(--rm-line); }
    .rm-page .rm-cart .cart-empty p { font-size: 11px; line-height: 1.8; color: #969ba3; padding-inline: 28px; }
    .rm-page .rm-cart .cart-scroll-group { height: auto; max-height: calc(100dvh - 266px); overflow-y: auto; }
    .rm-page .rm-cart .cart-amount-btn { border-radius: 10px; font-size: 13px; }
}
@media (min-width: 1600px) {
    .rm-page .rm-container { max-width: 1500px; }
    .rm-layout { grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 28px; }
    .rm-page .product-card-media { width: 112px; height: 112px; }
    .rm-page .product-card-title { font-size: 14px; }
    .rm-page .product-card-text { font-size: 11px; }
}
@media (max-width: 1250px) and (min-width: 992px) {
    .rm-layout { grid-template-columns: 165px minmax(0, 1fr) 280px; gap: 18px; }
    .rm-page .rm-container { padding-inline: 24px; }
    .rm-product-grid { grid-template-columns: 1fr; }
    .rm-page .rm-product-card { min-height: 144px; }
    .rm-page .product-card-media { width: 112px; height: 112px; }
    .rm-page .product-card-title { font-size: 14px; }
    .rm-page .product-card-info { flex-wrap: nowrap; }
    .rm-menu-toolbar { align-items: stretch; flex-direction: column; gap: 13px; }
    .rm-search { width: 100%; }
    .rm-hero-actions { align-self: flex-end; }
}
@media (max-width: 991px) {
    .rm-page { padding-top: 20px; padding-bottom: 95px; }
    .rm-page .rm-container { padding-inline: 20px; }
    .rm-breadcrumb { margin-bottom: 16px; }
    .rm-hero { gap: 20px; flex-wrap: wrap; padding: 20px; }
    .rm-hero-image { width: 160px; height: 150px; }
    .rm-hero h1 { font-size: 23px; }
    .rm-hero-actions { flex-direction: row; width: 100%; border-top: 1px solid var(--rm-line); padding-top: 14px; }
    .rm-layout { display: block; margin-top: 24px; }
    .rm-categories { display: none; }
    .rm-menu-toolbar { margin-bottom: 18px; }
    .rm-mobile-categories, .rm-mobile-categories.active { display: block; position: sticky; top: 60px; left: auto; width: auto; background: #f7f8fa; z-index: 3; margin: 0 -20px 22px; padding: 7px 20px 13px; border-bottom: 1px solid var(--rm-line); }
    .rm-mobile-categories .rm-category-nav { flex-direction: row; gap: 8px; max-height: none; scrollbar-width: none; }
    .rm-mobile-categories .rm-category-nav::-webkit-scrollbar { display: none; }
    .rm-mobile-categories .rm-category-nav a { white-space: nowrap; border: 1px solid #e4e7eb; padding: 8px 12px; background: #fff; flex-shrink: 0; font-size: 11px; }
    .rm-mobile-categories .rm-category-nav a.is-active { border-color: #ffc996; background: #fff3e8; }
    .rm-mobile-categories .rm-category-nav small { display: none; }
    .rm-menu-section { scroll-margin-top: 135px; }
    .rm-page .product-card-media { width: 110px; height: 110px; }
    .rm-page .product-card-title { font-size: 14px; }
    .rm-page .rm-cart { z-index: 1040; }
    .rm-page .rm-cart .cart-content { height: 100dvh; overflow: auto; max-width: 400px; }
    .rm-page .rm-cart .cart-close { z-index: 3; left: auto; right: 16px; top: 15px; height: 30px; width: 30px; background: #f4f5f7; border: 0; color: #555; }
    .rm-page .rm-mobile-cart { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 20px; right: 20px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: auto; height: 54px; padding: 0 18px; border-radius: 12px; background: var(--rm-accent); color: #fff; font-size: 13px; font-weight: 650; box-shadow: 0 6px 22px #bf5a1733; cursor: pointer; }
    .rm-mobile-cart > span:nth-child(2) { flex: 1; text-align: left; }
    .rm-mobile-cart-icon { display: inline-flex; align-items: center; gap: 9px; }
    .rm-mobile-cart-icon b { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 6px; background: #ffffff30; font-size: 11px; }
    body.cart-flow .rm-mobile-cart { visibility: hidden; }
}
@media (max-width: 575px) {
    .rm-page { padding-top: 15px; }
    .rm-page .rm-container { padding-inline: 16px; }
    .rm-breadcrumb { font-size: 10px; gap: 8px; }
    .rm-hero { gap: 14px; padding: 16px; border-radius: 14px; align-items: flex-start; }
    .rm-hero-image { width: 82px; height: 88px; border-radius: 10px; }
    .rm-hero-content { flex: 1; }
    .rm-hero-eyebrow { margin-bottom: 7px; gap: 6px; }
    .rm-hero h1 { font-size: 18px; letter-spacing: -.5px; }
    .rm-location-short { display: none; }
    .rm-cuisines { font-size: 10px; margin: 0 0 10px; }
    .rm-address { font-size: 10px; margin-bottom: 12px; }
    .rm-address span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
    .rm-hero-details { gap: 10px; font-size: 10px; }
    .rm-status { font-size: 9px; padding: 4px 6px; }
    .rm-about, .rm-book { padding: 8px 10px; font-size: 10px; }
    .rm-hero-actions { padding-top: 12px; }
    .rm-campaigns { padding: 16px; }
    .rm-campaigns h2 { font-size: 13px; }
    .rm-menu-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
    .rm-menu-toolbar h2 { font-size: 22px; }
    .rm-search { width: 100%; height: 44px; }
    .rm-mobile-categories, .rm-mobile-categories.active { margin-inline: -16px; padding-inline: 16px; }
    .rm-product-grid { grid-template-columns: 1fr; gap: 10px; }
    .rm-page .rm-product-card { padding: 14px; min-height: 154px; gap: 14px; }
    .rm-page .product-card-title { font-size: 14px; }
    .rm-page .product-card-text { font-size: 11px; }
    .rm-page .product-card-media { width: 104px; height: 112px; }
    .rm-page .product-card-add { min-height: 34px; padding: 7px 11px; }
    .rm-page .product-card-add span { font-size: 11px; }
    .rm-page .product-card-price span { font-size: 15px; }
    .rm-page .product-category-title { font-size: 17px; }
    .rm-menu-section { margin-bottom: 27px; }
    .rm-section-heading { margin-bottom: 12px; }
    .rm-page .rm-mobile-cart { left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .rm-page *, .rm-page *::before, .rm-page *::after { scroll-behavior: auto !important; transition: none !important; }
}

        .rest-coupon-gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: 14px 0 10px;
        }

        .rest-coupon-card {
            width: 136px;
            height: 84px;
            perspective: 1000px;
        }

        .rest-coupon-flip {
            position: relative;
            width: 100%;
            height: 100%;
            border: 0;
            padding: 0;
            background: transparent;
            transform-style: preserve-3d;
            transition: transform .55s ease;
            cursor: pointer;
        }

        .rest-coupon-card.is-flipped .rest-coupon-flip {
            transform: rotateY(180deg);
        }

        .rest-coupon-face {
            position: absolute;
            inset: 0;
            border-radius: 12px;
            overflow: hidden;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            box-shadow: 0 8px 16px rgba(17, 24, 39, .18);
        }

        .rest-coupon-front {
            background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
        }

        .rest-coupon-front img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .rest-coupon-chip {
            position: absolute;
            left: 8px;
            bottom: 8px;
            padding: 3px 8px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 700;
            color: #0b1220;
            background: rgba(255, 255, 255, .9);
        }

        .rest-coupon-front-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 17px;
            font-weight: 800;
            letter-spacing: .6px;
            background: radial-gradient(circle at 20% 20%, var(--primary-color) 0%, #1f2937 65%);
        }

        .rest-coupon-back {
            transform: rotateY(180deg);
            background: linear-gradient(140deg, #fff7ed 0%, #ffedd5 100%);
            color: #431407;
            padding: 8px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 2px;
            text-align: left;
        }

        .rest-coupon-title {
            font-size: 11px;
            font-weight: 700;
            line-height: 1.2;
        }

        .rest-coupon-line {
            font-size: 10px;
            line-height: 1.25;
        }

        .rest-coupon-tip {
            margin-top: 2px;
            font-size: 9px;
            line-height: 1.2;
            color: #9a3412;
        }

.rm-hero .rm-branch { display: block; margin-top: 5px; font-size: 14px; font-weight: 400; color: var(--rm-muted); letter-spacing: 0; line-height: 1.5; overflow-wrap: normal; }
@media (max-width: 575px) { .rm-hero .rm-branch { font-size: 11px; margin-top: 4px; } }
[data-ingredient-preferences] .product-modal-list li label {
    white-space: normal;
    overflow-wrap: anywhere;
    text-transform: none;
}

[data-ingredient-preferences] .product-modal-list input {
    flex-shrink: 0;
}

