/* TableBeep - public menu styles (menu.php).
 * Loaded after the theme CSS; each shop's own colors and fonts stay inline in menu.php. */
/* Remove banner shadow/border across all themes */
.banner-image { box-shadow: none !important; border: none !important; }

/* Shop logo fallback for items without a picture: white background, logo centered */
.item-image.item-image-logo-fallback {
    object-fit: contain !important;
    background-color: #ffffff !important;
    padding: 18%;
    box-sizing: border-box;
}
.modal-image-wrapper.logo-fallback-bg {
    background-color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-image.logo-fallback {
    width: auto !important;
    max-width: 55%;
    height: auto !important;
    max-height: 55%;
    object-fit: contain !important;
    animation: none !important;
    margin: 60px auto;
}
.cart-item-image.cart-item-image-logo-fallback {
    object-fit: contain !important;
    background-color: #ffffff !important;
    padding: 15%;
    box-sizing: border-box;
}

.item-image-wrapper { position: relative; }
@keyframes skeletonShimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.img-skeleton {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 800px 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.best-seller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 193, 7, 0.95);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.item-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.item-badges .best-seller-badge { position: static; }
.new-item-badge {
    background: #22a447;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.item-like-container {
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    z-index: 10;
}
.item-like-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
.item-like-container:active {
    transform: scale(0.85);
}
.item-like-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}
.item-like-container.liked .item-like-btn svg {
    fill: #ff4757;
    stroke: #ff4757;
}
.item-like-container:not(.liked) .item-like-btn svg {
    fill: none;
    stroke: #666;
}
.item-like-container.liked {
    animation: likeAnimation 0.4s ease;
}
@keyframes likeAnimation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.1); }
    20% { transform: scale(1); }
    30% { transform: scale(1.08); }
    40% { transform: scale(1); }
}
.item-like-container.heartbeat-animate:not(.liked) .item-like-btn {
    animation: heartbeat 2s ease-in-out infinite;
}
.item-like-count {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    min-width: 16px;
    text-align: center;
}
/* Floating Categories Bar */
.floating-categories {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 10px 12px 12px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.floating-categories.visible {
    transform: translateY(0);
    pointer-events: auto;
}
.floating-categories-inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}
.floating-categories-inner::-webkit-scrollbar { display: none; }
.floating-cat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.floating-cat-item.active {
    background: rgba(0,0,0,0.85);
    border-color: transparent;
    color: #fff;
}
.floating-cat-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.floating-cat-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Global overrides for section titles */
.section-title { padding-bottom: 13px; line-height: 1.2; }
.categories-title, .items-title { border: 0 !important; border-bottom: 0 !important; }
/* One category shown at a time: the others stay hidden until their chip is tapped.
   While searching, every category with a match is shown. */
.items-title { display: block; }
.items-section .items-container { display: grid; }
body:not(.tb-search-active) .items-section .tb-cat-hidden { display: none !important; }
body.tb-search-active .items-container + .items-title { margin-top: 28px; }
/* Short fade when switching category */
@keyframes tbCategoryIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
.items-section .items-container.tb-cat-enter .item-card { animation: tbCategoryIn 0.3s ease both; }
/* Best sellers carousel: only with the first category */
.best-sellers-section.is-hidden { display: none; }

/* Long names wrap instead of pushing the price out of the card */
.item-title { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; min-width: 0; }
.item-price { white-space: nowrap; }

/* ===== Search: opened from the bottom bar, floats over the top of the page (glass) ===== */
.menu-search-panel {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: 640px;
    margin: 0 auto;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 8px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 24px;
    background: rgba(255,255,255,0.45);
    -webkit-backdrop-filter: blur(18px) saturate(1.8);
    backdrop-filter: blur(18px) saturate(1.8);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateY(calc(-100% - 20px));
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.25s;
}
body.tb-search-open .menu-search-panel {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.menu-search { position: relative; flex: 1; min-width: 0; }
.menu-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a8a;
    pointer-events: none;
}
.menu-search .menu-search-input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 0 42px 0 40px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
    color: #222;
    font-size: 16px; /* 16px keeps iOS from zooming on focus */
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.menu-search .menu-search-input::placeholder { color: #8a8a8a; }
.menu-search-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.menu-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.menu-search-clear[hidden] { display: none; }
.menu-search-cancel {
    flex-shrink: 0;
    padding: 8px 4px;
    border: 0;
    background: none;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.menu-search-status {
    max-width: 1100px;
    margin: 4px auto 14px;
    padding: 0 20px;
    box-sizing: border-box;
    font-size: 14px;
    opacity: 0.75;
}
.menu-search-status[hidden] { display: none; }
.social-btn.search-btn { border: none; padding: 0; cursor: pointer; }
.social-btn.search-btn svg { color: #333333; }
body.tb-dark .social-btn.search-btn svg { color: #ffffff; }

/* Items and categories that don't match the search */
.items-section .tb-search-hidden { display: none !important; }

/* ===== Shop info under the banners: hours + Map + Avis on one line ===== */
.shop-info-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 560px;
    margin: 16px auto 6px;
    padding: 0 12px;
    box-sizing: border-box;
}
.shop-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}
.shop-hours svg { flex-shrink: 0; opacity: 0.75; }
.shop-hours-text { text-align: left; }

/* Open / closed pill, with the week in a dropdown under it */
.shop-hours-wrap { position: relative; min-width: 0; flex: 0 1 auto; }
.shop-hours-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    height: 38px;
    padding: 0 8px 0 11px;
    box-sizing: border-box;
    border: 1.5px solid rgba(0,0,0,0.07);
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    color: #222;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    -webkit-tap-highlight-color: transparent;
}
.shop-hours-status[hidden] { display: none; }
#shopHoursLabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hours-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #9e9e9e;
}
.hours-dot.is-open { background: #22a447; box-shadow: 0 0 0 3px rgba(34,164,71,0.18); }
.hours-dot.is-closed { background: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,0.16); }
.shop-hours-chevron { flex-shrink: 0; opacity: 0.55; transition: transform 0.2s ease; }
.shop-hours-status[aria-expanded="true"] .shop-hours-chevron { transform: rotate(180deg); }
.shop-hours-table {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 600;
    width: 250px;
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}
.shop-hours-table[hidden] { display: none; }
.shop-hours-now { margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid #eee; font-weight: 700; }
.shop-hours-now.is-open { color: #1b7f3b; }
.shop-hours-now.is-closed { color: #c62828; }
.shop-hours-day { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.shop-hours-day.is-today { font-weight: 700; }
.shop-hours-day .is-closed-day { color: #999; }

/* Map and Avis buttons */
.shop-info-actions { display: flex; gap: 6px; flex-shrink: 0; }
.shop-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 10px 0 5px;
    box-sizing: border-box;
    border: 1.5px solid rgba(0,0,0,0.07);
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    color: #222;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.shop-info-btn:active { transform: scale(0.96); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.shop-info-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.shop-info-btn.maps .shop-info-icon { background: #fdecea; color: #ea4335; }
.shop-info-btn.comment .shop-info-icon { background: #e8f5e9; color: #2e7d32; }

/* ===== No-photo placeholder: the item's initial on the theme's placeholder color ===== */
.tb-initial {
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 700;
    user-select: none;
}
.item-image.tb-initial { font-size: clamp(34px, 11vw, 64px); }
.tb-initial { color: rgba(0,0,0,0.28); }
.item-image.tb-initial { background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.75), rgba(255,255,255,0) 65%); }
/* Dark theme (11): dark placeholders */
body.tb-dark .tb-initial { color: rgba(255,255,255,0.35); }
body.tb-dark .item-image.tb-initial { background-image: none; }
.category-image.tb-initial { font-size: 28px; }
.floating-cat-item.no-image { padding-left: 16px; min-height: 50px; box-sizing: border-box; }
.item-modal.no-image .modal-content { padding-top: 56px; }

/* Make only the categories list scroll horizontally, keep the title static */
.categories-section { overflow: visible !important; }
.categories-section .categories-title { flex: 0 0 auto; }
.categories-container {
    display: flex !important;
    gap: 12px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
    white-space: nowrap;
}
.categories-container .category-item { flex: 0 0 auto; }

/* Best Sellers carousel */
.best-sellers-section {
    background: transparent;
    padding: 12px 0 4px;
    margin: 0 0 8px;
}
.best-sellers-title {
    margin: 0 16px 12px;
    padding: 0;
    border: 0 !important;
    line-height: 1.2;
}
.best-sellers-track-wrap {
    position: relative;
}
.best-sellers-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
    padding: 12px 16px 16px;
    background: transparent;
}
.best-sellers-track::-webkit-scrollbar { display: none; }
.best-seller-card {
    flex: 0 0 auto;
    width: 65%;
    max-width: 420px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    background: var(--bs-card-bg, rgba(255,255,255,0.85));
    display: flex;
    flex-direction: column;
}
.best-seller-card .bs-media {
    position: relative;
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    background: rgba(0,0,0,0.06);
    overflow: hidden;
}
.best-seller-card .bs-media img,
.best-seller-card .bs-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.best-seller-card .bs-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.best-seller-card .bs-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.best-seller-card .bs-desc {
    font-size: 12px;
    line-height: 1.35;
    color: #555;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.best-seller-card .bs-price {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}
.best-sellers-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #222;
    border: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 2;
}
.best-sellers-arrow.left { left: 6px; }
.best-sellers-arrow.right { right: 6px; }
.best-sellers-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 480px) {
    .best-seller-card { width: 65%; max-width: none; }
    .best-sellers-arrow { display: none; }
}


.social-btn.google-map {
    background-color: #fff;
    color: #4285F4;
}

.linkme-menu-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #fff; 
    color: #333;
    text-decoration: none;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}
.linkme-menu-btn:active { transform: scale(0.95); }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.item-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .item-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.modal-image-wrapper {
    width: 100%;
    max-height: 500px;
    background: #f5f5f5;
    flex-shrink: 0;
    overflow: hidden;
}

@keyframes modalZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.modal-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: cover;
    animation: modalZoom 8s ease-in-out infinite;
}

.modal-content {
    padding: 24px;
    overflow-y: auto;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #2d2d2d;
}

.modal-price {
    font-size: 20px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 16px;
}

.modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    white-space: pre-line;
}

/* Item cards show immediately (no fade-in) so the first category appears at once */

/* Mobile Bottom Sheet Style */
@media (max-width: 600px) {
    .modal-overlay {
        align-items: flex-end;
    }
    
    .item-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        transform: translateY(100%);
    }
    
    .modal-overlay.active .item-modal {
        transform: translateY(0);
    }
}

/* Cart System Styles */
.add-to-cart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 11;
    transition: transform 0.2s ease, background 0.2s ease;
}
.add-to-cart-btn:hover {
    background: #fff;
    transform: scale(1.1);
}
.add-to-cart-btn:active {
    transform: scale(0.95);
}
.add-to-cart-btn svg {
    width: 18px;
    height: 18px;
    stroke: #333;
}
.add-to-cart-btn.in-cart {
    background: #4CAF50;
}
.add-to-cart-btn.in-cart svg {
    stroke: #fff;
}

/* Floating Cart Button (inside .floating-social) */
.floating-cart {
    background: var(--primary-color, #d80e29);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
    border: none;
    position: relative;
}
.floating-cart:hover {
    transform: scale(1.1);
}
.floating-cart svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
}
.floating-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #d80e29;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.floating-cart.has-items {
    animation: cartPulse 2s ease-in-out infinite;
}
@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.floating-cart.hidden {
    display: none !important;
}

/* Call Waiter Social Button */
.call-waiter-social-btn {
    background: #ff9800;
    color: #fff;
    border: none;
    cursor: pointer;
}

.call-waiter-social-btn:hover {
    transform: scale(1.1);
}

.call-waiter-social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.waiter-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}

.waiter-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.waiter-toast.success { background: #2e7d32; }
.waiter-toast.error   { background: #c62828; }

/* Call Waiter Modal */
.waiter-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.waiter-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.waiter-modal {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 32px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.waiter-modal-overlay.active .waiter-modal {
    transform: translateY(0);
}

.waiter-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.waiter-modal-icon {
    font-size: 24px;
    line-height: 1;
}

.waiter-modal-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.waiter-modal-close {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.waiter-modal-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

.waiter-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    max-height: 220px;
    overflow-y: auto;
}

.waiter-table-chip {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fafafa;
    user-select: none;
}

.waiter-table-chip:hover {
    border-color: #ff9800;
    background: #fff8e1;
    color: #e65100;
}

.waiter-table-chip.selected {
    border-color: #ff9800;
    background: #ff9800;
    color: #fff;
}

.waiter-confirm-btn {
    width: 100%;
    padding: 14px;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
}

.waiter-confirm-btn:hover:not(:disabled) {
    background: #f57c00;
    transform: translateY(-1px);
}

.waiter-confirm-btn:disabled {
    background: #e0e0e0;
    color: #aaa;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .call-waiter-btn {
        top: auto;
        bottom: 90px;
        right: 16px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Cart Modal */
.cart-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-overlay.active .cart-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    max-height: 400px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child {
    border-bottom: none;
}
.remove-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: #dc3545;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.remove-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}
.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}
.cart-item-price {
    color: #d80e29;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}
.cart-item-note {
    font-size: 12px;
    color: #666;
    background: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    border-left: 3px solid #ffc107;
}
.cart-item-actions {
    margin-top: 4px;
}
.note-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.note-btn:hover {
    background: #f0f0f0;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.qty-btn:hover {
    background: #f5f5f5;
}
.qty-value {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.cart-empty svg {
    width: 60px;
    height: 60px;
    stroke: #ddd;
    margin-bottom: 16px;
}
.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.cart-total-amount {
    color: #d80e29;
}
.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    background: #d80e29;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.cart-checkout-btn:hover {
    background: #b80c23;
}
.cart-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Checkout Form */
.checkout-form {
    padding: 24px;
    overflow-y: auto;
    max-height: 70vh;
}
.checkout-form .form-group {
    margin-bottom: 16px;
}
.checkout-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    background-color: white;
}
.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
    outline: none;
    border-color: #d80e29;
}
.checkout-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.checkout-form textarea {
    resize: vertical;
    min-height: 80px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}
.checkout-back-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}
.checkout-back-btn:hover {
    color: #333;
}
.order-success {
    text-align: center;
    padding: 40px 24px;
}
.order-success svg {
    width: 80px;
    height: 80px;
    stroke: #4CAF50;
    margin-bottom: 20px;
}
.order-success h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
}
.order-success p {
    color: #666;
    margin-bottom: 24px;
}
.order-success-btn {
    padding: 12px 32px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 600px) {
    .cart-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        transform: translateY(100%);
    }
    .modal-overlay.active .cart-modal {
        transform: translateY(0);
    }
    /* floating-cart is inside floating-social, no override needed */
}

.tb-footer {
    text-align: center;
    padding: 24px 16px 90px;
    margin-top: 24px;
    font-size: 13px;
    color: #888;
}
.tb-footer p { margin: 0; }
.tb-footer a {
    color: #6a1dba;
    text-decoration: none;
    font-weight: 600;
}
.tb-footer a:hover { text-decoration: underline; }

/* ===== Comment System ===== */
.comment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
}
.comment-modal-overlay.active { opacity: 1; pointer-events: all; }
.comment-modal {
    background: #fff;
    width: 92%;
    max-width: 460px;
    border-radius: 16px;
    padding: 22px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.comment-modal-overlay.active .comment-modal { transform: translateY(0); }
.comment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.comment-modal-header h3 {
    font-size: 1.15rem;
    color: #6a1dba;
    margin: 0;
}
.comment-modal-close {
    background: #f1f1f1;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #555;
}
.comment-modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    margin-top: 10px;
}
.comment-modal input[type="text"],
.comment-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.comment-modal input[type="text"]:focus,
.comment-modal textarea:focus {
    outline: none;
    border-color: #6a1dba;
}
.comment-modal textarea { min-height: 110px; resize: vertical; }
.comment-modal .comment-honey {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}
.comment-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.comment-modal-actions button {
    flex: 1;
    padding: 11px 14px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.comment-cancel-btn {
    background: #f1f1f1;
    color: #555;
}
.comment-cancel-btn:hover { background: #e5e5e5; }
.comment-submit-btn {
    background: linear-gradient(135deg, #6a1dba, #9b59b6);
    color: #fff;
}
.comment-submit-btn:hover { transform: translateY(-1px); }
.comment-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.comment-feedback {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
}
.comment-feedback.success { color: #2e7d32; }
.comment-feedback.error   { color: #c62828; }
.comment-thanks {
    text-align: center;
    padding: 18px 6px 6px;
}
.comment-thanks .check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.comment-thanks h4 { color: #2e7d32; margin: 0 0 4px; }
.comment-thanks p  { color: #555; font-size: 14px; margin: 0; }

/* ===== Reservation System ===== */
.social-btn.reservation-btn {
    background: linear-gradient(135deg, #d6336c, #f06595);
    color: #fff;
    border: none;
    cursor: pointer;
}
.social-btn.reservation-btn:hover { transform: scale(1.05); }

.reservation-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
    padding: 16px;
}
.reservation-modal-overlay.active { opacity: 1; pointer-events: all; }
.reservation-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 22px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.reservation-modal-overlay.active .reservation-modal { transform: translateY(0); }
.reservation-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.reservation-modal-header h3 {
    font-size: 1.2rem;
    color: #d6336c;
    margin: 0;
}
.reservation-modal-header .res-icon { font-size: 24px; margin-right: 8px; }
.reservation-modal .reservation-subtitle {
    color: #777;
    font-size: 13px;
    margin-bottom: 14px;
}
.reservation-modal-close {
    background: #f1f1f1;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #555;
    flex-shrink: 0;
}
.reservation-modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    margin-top: 10px;
}
.reservation-modal label .req { color: #d6336c; }
.reservation-modal input[type="text"],
.reservation-modal input[type="tel"],
.reservation-modal input[type="email"],
.reservation-modal input[type="date"],
.reservation-modal input[type="time"],
.reservation-modal input[type="number"],
.reservation-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.reservation-modal input:focus,
.reservation-modal textarea:focus {
    outline: none;
    border-color: #d6336c;
}
.reservation-modal textarea { min-height: 80px; resize: vertical; }
.reservation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 480px) {
    .reservation-row { grid-template-columns: 1fr; gap: 0; }
}
.reservation-modal .res-honey {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}
.reservation-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.reservation-modal-actions button {
    flex: 1;
    padding: 11px 14px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.reservation-cancel-btn { background: #f1f1f1; color: #555; }
.reservation-cancel-btn:hover { background: #e5e5e5; }
.reservation-submit-btn {
    background: linear-gradient(135deg, #d6336c, #f06595);
    color: #fff;
}
.reservation-submit-btn:hover { transform: translateY(-1px); }
.reservation-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.reservation-feedback {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
}
.reservation-feedback.success { color: #2e7d32; }
.reservation-feedback.error   { color: #c62828; }
.reservation-thanks {
    text-align: center;
    padding: 18px 6px 6px;
}
.reservation-thanks .check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fde4ee;
    color: #d6336c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.reservation-thanks h4 { color: #d6336c; margin: 0 0 4px; }
.reservation-thanks p  { color: #555; font-size: 14px; margin: 0; }

/* ===== Waiter Mode Banner ===== */
.waiter-mode-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.waiter-mode-banner .wm-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.7);
    animation: wmPulse 1.6s infinite;
}
@keyframes wmPulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.waiter-blocked-banner {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffe69c;
    text-align: center;
    font-size: 13px;
    padding: 10px 14px;
    margin: 10px;
    border-radius: 8px;
}
