/* =================================================================
   CTC Frontend Menu - Next-Gen Modern Overhaul (Mobile-First Ready)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --ctc-primary: #ff4d4d;
    --ctc-primary-hover: #e63939;
    --ctc-success: #10b981;
    --ctc-dark: #090d16;
    --ctc-slate: #64748b;
    --ctc-bg-light: #f8fafc;
    --ctc-border: #e2e8f0;
    --ctc-radius-xl: 20px;
    --ctc-radius-lg: 14px;
    --ctc-radius-md: 10px;
    --ctc-shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --ctc-shadow-hover: 0 20px 30px -10px rgba(255, 77, 77, 0.15);
}

/* Force Montserrat & Base Wrapper Overrides */
.ctc-public-menu-wrapper, 
.ctc-public-menu-wrapper *, 
.ctc-menu-layout, 
.ctc-menu-layout *,
#ctc-public-menu-container,
#ctc-public-menu-container *,
#ctc-addon-modal-overlay,
#ctc-addon-modal-overlay *,
#ctc-addon-modal-box,
#ctc-addon-modal-box * {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
    color: var(--ctc-dark);
    box-sizing: border-box;
}

/* =================================================================
   1. Ultra-Modern Recommendations Banner
   ================================================================ */

.ctc-recommendations-wrapper {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%) !important;
    border: 1px solid #fed7d7 !important;
    border-radius: var(--ctc-radius-xl) !important;
    padding: 24px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 10px 30px -10px rgba(255, 77, 77, 0.1) !important;
}

.ctc-rec-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.ctc-rec-icon {
    font-size: 18px !important;
    background: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ctc-rec-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #991b1b !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 !important;
}

.ctc-rec-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 14px !important;
}

.ctc-rec-card {
    background: #ffffff !important;
    border-radius: var(--ctc-radius-lg) !important;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: var(--ctc-shadow-card) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.ctc-rec-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--ctc-shadow-hover) !important;
    border-color: #ff8080 !important;
}

.ctc-rec-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--ctc-dark) !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

.ctc-rec-price {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--ctc-success) !important;
}

/* =================================================================
   2. Sleek Sidebar & Category Navigation
   ================================================================ */

.ctc-menu-sidebar {
    background: #ffffff !important;
    border: 1px solid var(--ctc-border) !important;
    border-radius: var(--ctc-radius-xl) !important;
    padding: 20px !important;
    box-shadow: var(--ctc-shadow-card) !important;
}

.ctc-sidebar-link {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-radius: var(--ctc-radius-md) !important;
    color: var(--ctc-slate) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    margin-bottom: 6px;
}

.ctc-sidebar-link:hover {
    background: var(--ctc-bg-light) !important;
    color: var(--ctc-primary) !important;
    padding-left: 18px !important;
}

.ctc-sidebar-link.active {
    background: #ffe6e6 !important;
    color: var(--ctc-primary) !important;
    font-weight: 700 !important;
    box-shadow: inset 3px 0 0 var(--ctc-primary);
}

/* =================================================================
   3. Ultra-Modern Button Styling Overhaul (Tomato Red)
   ================================================================ */

.ctc-public-menu-wrapper button:not(.ctc-schedule-selector-btn):not(.ctc-fulfillment-btn),
.ctc-public-menu-wrapper .button,
.ctc-public-menu-wrapper .ctc-btn,
#ctc-addon-modal-overlay button,
#ctc-addon-modal-overlay .button,
.ctc-modal-footer-area button {
    background: linear-gradient(135deg, #ff5c5c 0%, #ff4d4d 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 77, 77, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.ctc-public-menu-wrapper button:not(.ctc-schedule-selector-btn):not(.ctc-fulfillment-btn):hover,
.ctc-public-menu-wrapper .button:hover,
.ctc-public-menu-wrapper .ctc-btn:hover,
#ctc-addon-modal-overlay button:hover,
#ctc-addon-modal-overlay .button:hover,
.ctc-modal-footer-area button:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #e63939 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.5) !important;
    color: #ffffff !important;
}

.ctc-public-menu-wrapper button:not(.ctc-schedule-selector-btn):not(.ctc-fulfillment-btn):active,
.ctc-public-menu-wrapper .button:active,
#ctc-addon-modal-overlay button:active,
.ctc-modal-footer-area button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3) !important;
}

/* =================================================================
   4. Ultra-Modern Modal & Bottom Sheet Overhaul
   ================================================================ */

#ctc-addon-modal-overlay {
    display: none; 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important; 
    background: rgba(9, 13, 22, 0.7) !important; 
    backdrop-filter: blur(8px) !important;
    z-index: 99999 !important; 
    justify-content: center !important; 
    align-items: center !important; 
    padding: 20px;
}

#ctc-addon-modal-box {
    background: #ffffff !important; 
    width: 100% !important; 
    max-width: 900px !important; 
    height: 85vh !important; 
    max-height: 750px !important;
    border-radius: 24px !important; 
    display: flex !important; 
    flex-direction: row !important; 
    position: relative !important; 
    overflow: hidden !important; 
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4) !important;
    animation: ctcZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Keep close button separated from Add Instruction. */
#ctc-addon-modal-box #ctc-close-modal {
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 50 !important;
}

@keyframes ctcZoomIn {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ctc-modal-left-pane {
    width: 42% !important; 
    background: var(--ctc-bg-light) !important; 
    padding: 32px !important; 
    overflow-y: auto !important; 
    border-right: 1px solid var(--ctc-border) !important;
    display: flex !important;
    flex-direction: column !important;
}

.ctc-modal-right-pane {
    width: 58% !important; 
    display: flex !important; 
    flex-direction: column !important; 
    padding: 76px 32px 32px 32px !important; 
    height: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

#ctc-modal-groups-container {
    flex-grow: 1 !important; 
    overflow-y: auto !important; 
    padding-right: 8px !important;
    margin-bottom: 16px !important;
}

.ctc-modal-footer-area {
    display: flex !important; 
    gap: 14px !important; 
    align-items: center !important; 
    background: #fff !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--ctc-border) !important;
    flex-shrink: 0 !important;
}

/* =================================================================
   5. Mobile Responsiveness & Native-App Bottom Sheet
   ================================================================ */

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .ctc-public-menu-wrapper {
        padding: 8px;
    }

    .ctc-recommendations-wrapper {
        padding: 16px !important;
        margin-bottom: 20px !important;
    }

    .ctc-rec-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding-bottom: 8px !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
    }
    
    .ctc-rec-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .ctc-rec-card {
        min-width: 160px !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        padding: 12px !important;
    }
    
    .ctc-menu-layout {
        flex-direction: column !important;
        display: block !important;
    }
    
    .ctc-menu-sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 20px !important;
        padding: 12px !important;
    }
    
    .ctc-menu-sidebar ul {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
    }
    
    .ctc-menu-sidebar ul::-webkit-scrollbar {
        display: none !important;
    }
    
    .ctc-menu-sidebar li {
        flex-shrink: 0 !important;
    }

    .ctc-sidebar-link {
        padding: 8px 14px !important;
        background: var(--ctc-bg-light) !important;
        border: 1px solid var(--ctc-border) !important;
        border-radius: 99px !important;
        font-size: 13px !important;
    }
    
    .ctc-sidebar-link.active {
        background: var(--ctc-primary) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .ctc-menu-items-grid, 
    .ctc-items-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .ctc-public-menu-wrapper button:not(.ctc-schedule-selector-btn):not(.ctc-fulfillment-btn),
    .ctc-public-menu-wrapper .button,
    .ctc-public-menu-wrapper .ctc-btn {
        width: 100% !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    #ctc-addon-modal-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
    }
    
    #ctc-addon-modal-box {
        max-width: 100% !important;
        width: 100% !important;
        height: 90vh !important;
        max-height: 90vh !important;
        border-radius: 24px 24px 0 0 !important;
        flex-direction: column !important;
        animation: ctcSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    @keyframes ctcSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .ctc-modal-left-pane {
        width: 100% !important;
        padding: 14px 16px !important;
        max-height: 100px !important;
        flex-shrink: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--ctc-border) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    .ctc-modal-left-pane h2 {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }
    
    .ctc-modal-left-pane p {
        display: none !important; 
    }
    
    .ctc-modal-left-pane img {
        width: 56px !important;
        height: 56px !important;
        max-height: 56px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .ctc-modal-right-pane {
        width: 100% !important;
        padding: 72px 16px 16px 16px !important;
        flex-grow: 1 !important;
        overflow-y: auto !important;
    }

    .ctc-modal-footer-area {
        padding: 12px 16px !important;
    }

    .ctc-modal-footer-area button {
        width: 100% !important;
    }
}

/* =================================================================
   Mobile Popup Optimization: Stack Quantity & Add to Basket Button
   ================================================================ */

@media (max-width: 768px) {
    .ctc-modal-footer-area {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    }

    .ctc-modal-footer-area .quantity,
    .ctc-modal-footer-area .ctc-quantity-wrapper,
    .ctc-modal-footer-area div:has(> button.ctc-qty-btn),
    .ctc-modal-footer-area > div:first-child {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .ctc-modal-footer-area button.ctc-qty-btn,
    .ctc-modal-footer-area .qty-btn,
    .ctc-modal-footer-area .minus,
    .ctc-modal-footer-area .plus {
        flex: 1 !important;
        max-width: 80px !important;
        height: 44px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
    }

    .ctc-modal-footer-area input.qty,
    .ctc-modal-footer-area input[type="number"] {
        flex: 1 !important;
        max-width: 100px !important;
        height: 44px !important;
        text-align: center !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border: 1px solid var(--ctc-border) !important;
        border-radius: 12px !important;
        background: var(--ctc-bg-light) !important;
    }

    .ctc-modal-footer-area button#ctc-add-to-basket-btn,
    .ctc-modal-footer-area button.ctc-add-to-cart,
    .ctc-modal-footer-area button[type="submit"],
    .ctc-modal-footer-area .button {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .ctc-modal-footer-area button span,
    .ctc-modal-footer-area .ctc-total-price {
        display: inline-block !important;
        margin-left: auto !important;
        font-weight: 800 !important;
    }
}

/* =================================================================
   Permanent Clean Overrides: Schedule Section & Toggle Buttons
   ================================================================ */

.schedule-section,
.ctc-public-menu-wrapper .schedule-section {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: var(--ctc-dark) !important;
}

.schedule-section .time-text {
    font-weight: 600 !important;
    color: var(--ctc-dark) !important;
}

/* Exempt the schedule button */
.ctc-public-menu-wrapper button.ctc-schedule-selector-btn,
#ctc-public-menu-container button.ctc-schedule-selector-btn,
button.ctc-schedule-selector-btn {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 10px !important;
    color: var(--ctc-dark) !important;
    width: auto !important;
}

.ctc-public-menu-wrapper button.ctc-schedule-selector-btn:hover,
button.ctc-schedule-selector-btn:hover {
    background: var(--ctc-bg-light) !important;
    background-image: none !important;
    transform: none !important;
    box-shadow: none !important;
}

#ctc-selected-time-label {
    color: var(--ctc-dark) !important;
    font-weight: 700 !important;
}

/* ================================================================
   Delivery / Pickup Fulfillment Toggle
   ================================================================ */

.ctc-public-menu-wrapper button.ctc-fulfillment-btn,
#ctc-public-menu-container button.ctc-fulfillment-btn,
button.ctc-fulfillment-btn {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    color: var(--ctc-slate) !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.ctc-public-menu-wrapper button.ctc-fulfillment-btn:hover,
#ctc-public-menu-container button.ctc-fulfillment-btn:hover,
button.ctc-fulfillment-btn:hover {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: var(--ctc-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Active Delivery / Pickup button */
.ctc-public-menu-wrapper button.ctc-fulfillment-btn.active,
#ctc-public-menu-container button.ctc-fulfillment-btn.active,
button.ctc-fulfillment-btn.active {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: var(--ctc-dark) !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.15) !important;
    transform: none !important;
}

.ctc-public-menu-wrapper button.ctc-fulfillment-btn.active:hover,
#ctc-public-menu-container button.ctc-fulfillment-btn.active:hover,
button.ctc-fulfillment-btn.active:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--ctc-dark) !important;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.15) !important;
    transform: none !important;
}

/* ================================================================
   Instruction Modal
   Must sit above the product/addon modal.
   ================================================================ */

#ctc-instruction-modal-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(9, 13, 22, 0.70) !important;
    z-index: 100001 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

#ctc-instruction-modal-overlay > div {
    position: relative !important;
    z-index: 100002 !important;
    background: #ffffff !important;
    color: var(--ctc-dark) !important;
    width: 100% !important;
    max-width: 520px !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.40) !important;
    box-sizing: border-box !important;
}

#ctc-instruction-modal-overlay textarea,
#ctc-instruction-input {
    width: 100% !important;
    min-height: 120px !important;
    box-sizing: border-box !important;
    resize: vertical !important;
    color: var(--ctc-dark) !important;
    background: #ffffff !important;
    border: 1px solid var(--ctc-border) !important;
    border-radius: 12px !important;
    padding: 12px !important;
}

#ctc-instruction-modal-overlay button {
    cursor: pointer !important;
    pointer-events: auto !important;
}

@media (max-width: 768px) {
    #ctc-instruction-modal-overlay {
        padding: 16px !important;
        align-items: center !important;
    }

    #ctc-instruction-modal-overlay > div {
        max-width: 100% !important;
        border-radius: 18px !important;
        padding: 20px !important;
    }
}


/* ================================================================
   Open Now attention indicator
   ================================================================ */

.ctc-restaurant-info-bar span[style*="background:#059669"][style*="border-radius:50%"] {
    animation: ctcOpenNowPulse 1.6s ease-in-out infinite !important;
    transform-origin: center center;
    will-change: transform, opacity, box-shadow;
}

@keyframes ctcOpenNowPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.82);
        box-shadow: 0 0 0 5px rgba(5, 150, 105, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ctc-restaurant-info-bar span[style*="background:#059669"][style*="border-radius:50%"] {
        animation: none !important;
    }
}

/* Frontend fulfilment selector + Rush Mode */
.ctc-frontend-rush-mode{display:flex;align-items:flex-start;gap:12px;padding:13px 15px;border:1px solid #fed7aa;border-left:4px solid #f59e0b;border-radius:0 10px 10px 0;background:#fffbeb;color:#92400e}
.ctc-rush-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:#fef3c7;color:#d97706}
.ctc-rush-icon svg{width:19px;height:19px;fill:currentColor}
.ctc-rush-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.ctc-rush-copy strong{font-size:13px;line-height:1.25;color:#92400e}.ctc-rush-copy small{font-size:12px;line-height:1.45;color:#a16207}
.ctc-frontend-fulfillment{display:flex;flex-direction:column;gap:10px;padding-top:2px}.ctc-fulfillment-heading>span{display:flex;flex-direction:column;gap:2px}.ctc-fulfillment-heading strong{font-size:14px;line-height:1.3;color:#0f172a}.ctc-fulfillment-heading small{font-size:12px;line-height:1.4;color:#64748b}
.ctc-fulfillment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ctc-public-menu-wrapper button.ctc-fulfillment-btn,#ctc-public-menu-container button.ctc-fulfillment-btn,button.ctc-fulfillment-btn{position:relative!important;min-height:74px!important;display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;padding:12px 14px!important;border:1px solid #dbe3ee!important;border-radius:12px!important;background:#fff!important;color:#334155!important;text-align:left!important;box-shadow:0 1px 3px rgba(15,23,42,.05)!important}
.ctc-public-menu-wrapper button.ctc-fulfillment-btn:hover,#ctc-public-menu-container button.ctc-fulfillment-btn:hover,button.ctc-fulfillment-btn:hover{border-color:#a8b7c9!important;background:#f8fafc!important;box-shadow:0 4px 12px rgba(15,23,42,.08)!important}
.ctc-public-menu-wrapper button.ctc-fulfillment-btn.active,#ctc-public-menu-container button.ctc-fulfillment-btn.active,button.ctc-fulfillment-btn.active{border-color:#2563eb!important;background:#eff6ff!important;color:#0f172a!important;box-shadow:0 0 0 2px rgba(37,99,235,.10)!important}
.ctc-fulfillment-icon{width:40px;height:40px;flex:0 0 40px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:#f1f5f9;color:#475569}.ctc-fulfillment-btn.active .ctc-fulfillment-icon{background:#dbeafe;color:#2563eb}.ctc-fulfillment-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ctc-fulfillment-copy{min-width:0;display:flex;flex:1 1 auto;flex-direction:column;gap:2px}.ctc-fulfillment-copy strong{font-size:14px;line-height:1.25;color:#0f172a}.ctc-fulfillment-copy small{font-size:11.5px;line-height:1.35;color:#64748b}
.ctc-fulfillment-check{width:22px;height:22px;flex:0 0 22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;color:transparent;background:#fff}.ctc-fulfillment-btn.active .ctc-fulfillment-check{border-color:#000;background:#000;color:#fff}.ctc-fulfillment-check svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:680px){.ctc-restaurant-info-bar{padding:18px!important;border-radius:14px!important;gap:13px!important}.ctc-restaurant-info-bar>div:first-child{gap:14px!important}.ctc-restaurant-info-bar>div:first-child>div:last-child{width:100%!important;min-width:0!important;align-items:flex-start!important;padding-top:2px}.ctc-restaurant-info-bar>div:first-child>div:last-child>div{align-items:flex-start!important}.ctc-fulfillment-options{grid-template-columns:1fr;gap:8px}.ctc-public-menu-wrapper button.ctc-fulfillment-btn,#ctc-public-menu-container button.ctc-fulfillment-btn,button.ctc-fulfillment-btn{min-height:68px!important;padding:11px 12px!important}.ctc-fulfillment-icon{width:38px;height:38px;flex-basis:38px}.ctc-frontend-rush-mode{padding:12px}}
@media(max-width:420px){.ctc-restaurant-info-bar{padding:15px!important}.ctc-rush-icon{width:32px;height:32px;flex-basis:32px}.ctc-fulfillment-heading small{font-size:11.5px}.ctc-fulfillment-copy strong{font-size:13.5px}.ctc-fulfillment-copy small{font-size:11px}}

.ctc-fulfillment-btn[hidden]{display:none!important}

/* ================================================================
   Compact fulfilment control inside the restaurant status column.
   Checkout Settings is authoritative: hidden modes must stay hidden
   even though the button component uses display:flex !important.
   ================================================================ */
.ctc-fulfillment-btn[hidden] {
    display: none !important;
}

.ctc-frontend-fulfillment-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin-top: 5px;
    padding-top: 7px;
    border-top: 1px solid #eef2f7;
}

.ctc-frontend-fulfillment-compact .ctc-fulfillment-compact-label {
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #64748b;
}

.ctc-frontend-fulfillment-compact .ctc-fulfillment-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.ctc-public-menu-wrapper .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn,
#ctc-public-menu-container .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn,
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn {
    min-height: 32px !important;
    width: auto !important;
    padding: 5px 8px !important;
    gap: 5px !important;
    border-radius: 9px !important;
    border: 1px solid #dbe3ee !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.ctc-public-menu-wrapper .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn:hover,
#ctc-public-menu-container .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn:hover,
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn:hover {
    border-color: #b9c6d6 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

.ctc-public-menu-wrapper .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active,
#ctc-public-menu-container .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active,
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 1px rgba(37,99,235,.08) !important;
}

.ctc-frontend-fulfillment-compact .ctc-fulfillment-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 6px;
}
.ctc-frontend-fulfillment-compact .ctc-fulfillment-icon svg {
    width: 14px;
    height: 14px;
}
.ctc-frontend-fulfillment-compact .ctc-fulfillment-copy {
    flex: 0 1 auto;
}
.ctc-frontend-fulfillment-compact .ctc-fulfillment-copy strong {
    font-size: 11.5px;
    line-height: 1;
    white-space: nowrap;
}
.ctc-frontend-fulfillment-compact .ctc-fulfillment-copy small {
    margin-top: 2px;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}
.ctc-frontend-fulfillment-compact .ctc-fulfillment-btn.active .ctc-fulfillment-copy small {
    color: #475569;
}
.ctc-frontend-fulfillment-compact .ctc-fulfillment-check {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}
.ctc-frontend-fulfillment-compact .ctc-fulfillment-check svg {
    width: 9px;
    height: 9px;
}

@media (max-width: 680px) {
    .ctc-frontend-fulfillment-compact {
        width: 100%;
        align-items: flex-start;
        margin-top: 6px;
        padding-top: 8px;
    }
    .ctc-frontend-fulfillment-compact .ctc-fulfillment-options {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .ctc-public-menu-wrapper .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn,
    #ctc-public-menu-container .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn,
    .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn {
        min-height: 34px !important;
        padding: 5px 9px !important;
    }
}

/* =================================================================
   Floating Basket — Checkout Visual System
   ================================================================= */
.ctc-floating-basket-bar{
    position:fixed;
    left:50%;
    bottom:22px;
    transform:translateX(-50%);
    z-index:9999;
    width:min(460px,calc(100% - 28px));
    box-sizing:border-box;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:10px 10px 10px 14px;
    background:#fff;
    color:#0f172a;
    border:1px solid #dbe3ee;
    border-radius:16px;
    box-shadow:0 14px 40px rgba(15,23,42,.16);
    cursor:pointer;
}
.ctc-floating-basket-summary{display:flex;align-items:center;min-width:0;gap:11px}
.ctc-floating-basket-icon{
    width:40px;height:40px;flex:0 0 40px;border-radius:12px;
    display:grid;place-items:center;background:#fff7f8;color:#ff4050;
    border:1px solid #ffd8dc;
}
.ctc-floating-basket-icon svg{width:21px;height:21px;display:block}
.ctc-floating-basket-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.ctc-floating-basket-copy strong{font-size:14px;line-height:1.2;font-weight:800;color:#0f172a}
.ctc-floating-basket-copy>span{font-size:13px;line-height:1.2;font-weight:700;color:#475569}
.ctc-floating-basket-action{
    display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;
    min-height:40px;padding:0 15px;border-radius:11px;background:#ff4050;color:#fff;
    font-size:13px;font-weight:800;box-shadow:0 4px 12px rgba(255,64,80,.22);
}
.ctc-floating-basket-action svg{width:16px;height:16px}
.ctc-floating-basket-bar:hover .ctc-floating-basket-action{background:#ef3344}
.ctc-floating-basket-bar:focus-visible{outline:3px solid rgba(255,64,80,.22);outline-offset:3px}

.ctc-basket-drawer-overlay{
    position:fixed;inset:0;z-index:10000;
    background:rgba(15,23,42,.52);backdrop-filter:blur(4px);
    justify-content:flex-end;align-items:stretch;
}
.ctc-basket-drawer{
    width:min(440px,100%);height:100%;margin-left:auto;box-sizing:border-box;
    display:flex;flex-direction:column;background:#f8fafc;
    border-left:1px solid #e2e8f0;box-shadow:-18px 0 50px rgba(15,23,42,.16);
    transform:translateX(100%);transition:transform .3s cubic-bezier(.16,1,.3,1);
}
.ctc-basket-drawer-head{
    display:flex;align-items:center;justify-content:space-between;gap:16px;
    padding:20px 22px;background:#fff;border-bottom:1px solid #e2e8f0;
}
.ctc-basket-drawer-title{display:flex;align-items:center;gap:12px;min-width:0}
.ctc-basket-drawer-title-icon{
    width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;
    background:#fff7f8;color:#ff4050;border:1px solid #ffd8dc;
}
.ctc-basket-drawer-title-icon svg{width:21px;height:21px}
.ctc-basket-drawer-title h3{margin:0;color:#0f172a;font-size:18px;line-height:1.2;font-weight:800}
.ctc-basket-drawer-title p{margin:4px 0 0;color:#64748b;font-size:12px;line-height:1.35}
.ctc-basket-drawer-close{
    width:38px;height:38px;flex:0 0 38px;padding:0;border:1px solid #e2e8f0;border-radius:10px;
    background:#f8fafc;color:#475569;display:grid;place-items:center;cursor:pointer;
}
.ctc-basket-drawer-close svg{width:18px;height:18px}
.ctc-basket-drawer-close:hover{background:#f1f5f9;color:#0f172a}
.ctc-basket-items-container{padding:18px 20px;overflow-y:auto;flex:1;min-height:0}
.ctc-basket-item{
    display:flex;justify-content:space-between;align-items:flex-start;gap:14px;
    padding:14px;margin-bottom:10px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;
}
.ctc-basket-item-main{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1}
.ctc-basket-item-image{width:58px;height:58px;flex:0 0 58px;object-fit:cover;border-radius:10px;background:#f1f5f9}
.ctc-basket-item-copy{min-width:0;flex:1}
.ctc-basket-item-name{font-size:14px;line-height:1.3;font-weight:800;color:#0f172a}
.ctc-basket-item-options{margin-top:4px;color:#64748b;font-size:11px;line-height:1.4}
.ctc-basket-item-price{margin-top:7px;color:#0f172a;font-size:13px;font-weight:800}
.ctc-basket-item-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.ctc-basket-qty-control{height:32px;display:flex;align-items:center;overflow:hidden;border:1px solid #dbe3ee;border-radius:9px;background:#fff}
.ctc-basket-qty-control button{
    width:30px;height:30px;padding:0;border:0!important;background:#fff!important;color:#475569!important;
    box-shadow:none!important;font-size:15px!important;font-weight:800!important;cursor:pointer!important;
}
.ctc-basket-qty-control button:hover{background:#f8fafc!important;color:#0f172a!important}
.ctc-basket-qty-control span{min-width:24px;text-align:center;color:#0f172a;font-size:12px;font-weight:800}
.ctc-drawer-item-remove{
    width:32px!important;height:32px!important;padding:0!important;display:grid!important;place-items:center!important;
    border:1px solid #fee2e2!important;border-radius:9px!important;background:#fff7f7!important;color:#b91c1c!important;
    box-shadow:none!important;font-size:18px!important;line-height:1!important;cursor:pointer!important;
}
.ctc-drawer-item-remove:hover{background:#fee2e2!important}
.ctc-basket-empty{
    margin-top:10px;padding:34px 18px;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:14px;
    color:#64748b;font-size:14px;
}
.ctc-basket-drawer-footer{padding:18px 20px 20px;background:#fff;border-top:1px solid #e2e8f0}
.ctc-basket-summary-card{padding:14px 15px;margin-bottom:14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}
.ctc-basket-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#64748b;font-size:13px}
.ctc-basket-summary-row strong{color:#0f172a;font-size:13px;font-weight:800}
.ctc-basket-summary-total{margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0;color:#0f172a;font-size:15px;font-weight:800}
.ctc-basket-summary-total strong{font-size:18px;color:#0f172a}
.ctc-basket-checkout-btn{
    width:100%;min-height:48px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;
    padding:12px 18px;border-radius:12px;background:#ff4050;color:#fff!important;text-decoration:none!important;
    font-size:14px;font-weight:800;box-shadow:0 4px 12px rgba(255,64,80,.22);
}
.ctc-basket-checkout-btn:hover{background:#ef3344;color:#fff!important}
.ctc-basket-checkout-btn svg{width:17px;height:17px}

@media(max-width:600px){
    .ctc-floating-basket-bar{bottom:14px;width:calc(100% - 20px);padding:9px 9px 9px 11px;border-radius:14px;gap:10px}
    .ctc-floating-basket-icon{width:36px;height:36px;flex-basis:36px;border-radius:10px}
    .ctc-floating-basket-icon svg{width:19px;height:19px}
    .ctc-floating-basket-copy strong{font-size:13px}.ctc-floating-basket-copy>span{font-size:12px}
    .ctc-floating-basket-action{min-height:36px;padding:0 11px;font-size:12px;border-radius:10px}
    .ctc-basket-drawer{width:100%;border-left:0}
    .ctc-basket-drawer-head{padding:16px}
    .ctc-basket-items-container{padding:14px}
    .ctc-basket-drawer-footer{padding:14px 14px 16px}
    .ctc-basket-item{flex-direction:column;gap:10px;padding:12px}
    .ctc-basket-item-actions{width:100%;justify-content:space-between;padding-left:70px;box-sizing:border-box}
}

/* =================================================================
   Floating Basket Typography — Montserrat
   The floating shortcode renders outside the main menu wrapper, so it
   needs its own font scope even though Montserrat is already loaded above.
   ================================================================= */
.ctc-floating-basket-bar,
.ctc-floating-basket-bar *,
.ctc-basket-drawer-overlay,
.ctc-basket-drawer-overlay *,
.ctc-basket-drawer,
.ctc-basket-drawer * {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
}

/* ==========================================================================\n   Modern Takeaway - Compact Product Cards\n   4 columns desktop / 3 tablet / 2 mobile\n   ========================================================================== */
.ctc-public-menu .ctc-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ctc-public-menu .ctc-product-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ctc-public-menu .ctc-product-card:hover {
    transform: translateY(-2px);
    border-color: #d5dce7;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.ctc-public-menu .ctc-product-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}

.ctc-public-menu .ctc-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.ctc-public-menu .ctc-product-body {
    flex: 1;
    min-width: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.ctc-public-menu .ctc-product-name {
    margin: 0;
    color: #172033;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 38px;
}

.ctc-public-menu .ctc-product-description {
    margin: 6px 0 0;
    color: #718096;
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ctc-public-menu .ctc-product-footer {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.ctc-public-menu .ctc-product-price {
    display: block;
    width: 100%;
    color: #101828;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.15px;
    white-space: nowrap;
}

.ctc-public-menu .ctc-product-action,
.ctc-public-menu .ctc-product-action.button {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    flex: 0 0 auto;
    width: 100% !important;
    min-height: 32px;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #ff5a5f !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(255, 90, 95, 0.16) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ctc-public-menu .ctc-product-action:hover,
.ctc-public-menu .ctc-product-action.button:hover {
    background: #f0444a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 90, 95, 0.24) !important;
}

.ctc-public-menu .ctc-product-action:focus-visible {
    outline: 3px solid rgba(255, 90, 95, .22);
    outline-offset: 2px;
}

@media (max-width: 1180px) {
    .ctc-public-menu .ctc-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .ctc-public-menu .ctc-product-price {
        font-size: 12.5px;
    }
}

@media (max-width: 767px) {
    .ctc-public-menu .ctc-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ctc-public-menu .ctc-product-card {
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
    }

    .ctc-public-menu .ctc-product-image-wrap {
        aspect-ratio: 1 / .82;
    }

    .ctc-public-menu .ctc-product-image {
        padding: 6px;
    }

    .ctc-public-menu .ctc-product-body {
        padding: 10px;
    }

    .ctc-public-menu .ctc-product-name {
        font-size: 12.5px;
        line-height: 1.35;
        min-height: 34px;
    }

    .ctc-public-menu .ctc-product-description {
        font-size: 10.5px;
        -webkit-line-clamp: 1;
    }

    .ctc-public-menu .ctc-product-footer {
        padding-top: 9px;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    .ctc-public-menu .ctc-product-price {
        font-size: 12px;
        white-space: nowrap;
    }

    .ctc-public-menu .ctc-product-action,
    .ctc-public-menu .ctc-product-action.button {
        width: 100% !important;
        min-height: 31px;
        padding: 6px 7px !important;
        border-radius: 7px !important;
        font-size: 10px !important;
        white-space: nowrap;
    }
}

@media (max-width: 390px) {
    .ctc-public-menu .ctc-product-grid {
        gap: 8px;
    }

    .ctc-public-menu .ctc-product-body {
        padding: 8px;
    }

    .ctc-public-menu .ctc-product-name {
        font-size: 11.5px;
        min-height: 32px;
    }

    .ctc-public-menu .ctc-product-description {
        display: none;
    }

    .ctc-public-menu .ctc-product-price {
        font-size: 11.5px;
        letter-spacing: -0.2px;
    }

    .ctc-public-menu .ctc-product-action,
    .ctc-public-menu .ctc-product-action.button {
        min-height: 30px;
        padding: 6px 6px !important;
        font-size: 9.5px !important;
    }
}


/* ==========================================================
   Frontend Menu Refresh — horizontal categories + product rows
   Scoped to the main menu only. Recommendations remain untouched.
   ========================================================== */
.ctc-menu-layout{
    display:block !important;
    width:100% !important;
}
.ctc-menu-layout .ctc-category-strip{
    position:sticky !important;
    top:calc(var(--menushell-sticky-header-offset, 0px) + 10px) !important;
    z-index:80 !important;
    width:100% !important;
    margin:0 0 26px !important;
    padding:10px 12px !important;
    border:1px solid #e2e8f0 !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.96) !important;
    box-shadow:0 8px 24px rgba(15,23,42,.07) !important;
    backdrop-filter:blur(10px);
    box-sizing:border-box;
}
.ctc-menu-layout .ctc-category-strip-label{display:none}
.ctc-menu-layout .ctc-category-strip ul{
    display:flex !important;
    flex-direction:row !important;
    align-items:center;
    gap:8px !important;
    margin:0 !important;
    padding:0 2px 2px !important;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
}
.ctc-menu-layout .ctc-category-strip ul::-webkit-scrollbar{display:none}
.ctc-menu-layout .ctc-category-strip li{
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
}
.ctc-menu-layout .ctc-category-strip .ctc-sidebar-link{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:8px 14px !important;
    border:1px solid #e2e8f0;
    border-radius:999px !important;
    background:#fff;
    color:#334155 !important;
    font-size:12px !important;
    font-weight:700 !important;
    line-height:1.1;
    white-space:nowrap;
    text-decoration:none !important;
    box-sizing:border-box;
}
.ctc-menu-layout .ctc-category-strip .ctc-sidebar-link:hover{
    border-color:#cbd5e1;
    background:#f8fafc;
}
.ctc-menu-layout .ctc-category-strip .ctc-sidebar-link.active{
    border-color:#0f172a !important;
    background:#0f172a !important;
    color:#fff !important;
}
.ctc-menu-layout .ctc-public-menu{
    width:100% !important;
    min-width:0 !important;
}
.ctc-public-menu .ctc-menu-category-section{
    margin:0 0 34px;
    scroll-margin-top:86px;
}
.ctc-public-menu .ctc-menu-category-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin:0 0 14px;
    padding:0 2px 10px;
    border-bottom:1px solid #e2e8f0;
}
.ctc-public-menu .ctc-menu-category-copy{min-width:0}
.ctc-public-menu .ctc-menu-category-header h3{
    margin:0;
    color:#1e293b;
    font-size:20px;
    font-weight:800;
    line-height:1.2;
    text-transform:uppercase;
}
.ctc-public-menu .ctc-menu-category-header p{
    margin:5px 0 0 !important;
    color:#64748b !important;
    font-size:12px !important;
    line-height:1.4 !important;
}
.ctc-public-menu .ctc-product-row-controls{
    display:flex;
    flex:0 0 auto;
    gap:7px;
}
.ctc-public-menu .ctc-product-row-arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    padding:0;
    border:1px solid #dbe3ee;
    border-radius:50%;
    background:#fff;
    color:#0f172a;
    font-size:23px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 2px 7px rgba(15,23,42,.05);
}
.ctc-public-menu .ctc-product-row-arrow:hover{background:#f8fafc}
.ctc-public-menu .ctc-product-grid{
    display:flex !important;
    grid-template-columns:none !important;
    gap:14px !important;
    width:100%;
    padding:2px 2px 12px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    scroll-behavior:smooth;
    scrollbar-width:thin;
    scrollbar-color:#cbd5e1 transparent;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
    box-sizing:border-box;
}
.ctc-public-menu .ctc-product-grid::-webkit-scrollbar{height:6px}
.ctc-public-menu .ctc-product-grid::-webkit-scrollbar-track{background:transparent}
.ctc-public-menu .ctc-product-grid::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
.ctc-public-menu .ctc-product-grid .ctc-product-card{
    flex:0 0 calc((100% - 70px) / 6);
    min-width:0;
    scroll-snap-align:start;
}
@media (max-width:1180px){
    .ctc-public-menu .ctc-product-grid .ctc-product-card{
        flex-basis:calc((100% - 56px) / 5);
    }
}
@media (max-width:900px){
    .ctc-public-menu .ctc-product-grid .ctc-product-card{
        flex-basis:calc((100% - 42px) / 4);
    }
}
@media (max-width:767px){
    .ctc-menu-layout .ctc-category-strip{
        top:6px !important;
        margin-bottom:20px !important;
        padding:8px !important;
        border-radius:12px !important;
    }
    .ctc-menu-layout .ctc-category-strip .ctc-sidebar-link{
        min-height:34px;
        padding:7px 11px !important;
        font-size:11px !important;
    }
    .ctc-public-menu .ctc-menu-category-section{
        margin-bottom:27px;
        scroll-margin-top:72px;
    }
    .ctc-public-menu .ctc-menu-category-header{
        align-items:center;
        margin-bottom:11px;
        padding-bottom:8px;
    }
    .ctc-public-menu .ctc-menu-category-header h3{font-size:17px}
    .ctc-public-menu .ctc-product-row-controls{display:none}
    .ctc-public-menu .ctc-product-grid{
        gap:10px !important;
        padding-bottom:10px;
        scrollbar-width:none;
    }
    .ctc-public-menu .ctc-product-grid::-webkit-scrollbar{display:none}
    .ctc-public-menu .ctc-product-grid .ctc-product-card{
        flex:0 0 calc((100% - 20px) / 2.25);
    }
}
@media (max-width:390px){
    .ctc-public-menu .ctc-product-grid .ctc-product-card{
        flex-basis:calc((100% - 16px) / 2.15);
    }
}


/* V3 layout lock: the legacy inline/sidebar flex layout is intentionally removed in PHP. */
.ctc-menu-layout{
    display:block !important;
    position:relative !important;
    width:100% !important;
    max-width:100% !important;
}
.ctc-menu-layout > .ctc-category-strip,
.ctc-menu-layout > .ctc-public-menu{
    width:100% !important;
    max-width:100% !important;
    flex:none !important;
}


/* Recommended For You — compact product imagery, click behavior unchanged */
.ctc-recommendations-wrapper .ctc-rec-card{
    overflow:hidden !important;
    padding:0 !important;
    justify-content:flex-start !important;
}
.ctc-recommendations-wrapper .ctc-rec-image-wrap{
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#f8fafc;
    border-bottom:1px solid #f1f5f9;
}
.ctc-recommendations-wrapper .ctc-rec-image{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}
.ctc-recommendations-wrapper .ctc-rec-content{
    display:flex;
    flex:1;
    flex-direction:column;
    justify-content:space-between;
    min-width:0;
    padding:12px 14px 14px;
}
.ctc-recommendations-wrapper .ctc-rec-name{
    display:-webkit-box;
    overflow:hidden;
    margin-bottom:8px !important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}
@media(max-width:767px){
    .ctc-recommendations-wrapper .ctc-rec-image-wrap{aspect-ratio:4/3}
    .ctc-recommendations-wrapper .ctc-rec-content{padding:10px 11px 12px}
}


/* Mobile recommendations — compact suggestion cards */
@media(max-width:767px){
    .ctc-recommendations-wrapper .ctc-rec-grid{
        gap:10px !important;
    }
    .ctc-recommendations-wrapper .ctc-rec-card{
        min-width:220px !important;
        max-width:220px !important;
        min-height:82px !important;
        display:flex !important;
        flex-direction:row !important;
        align-items:stretch !important;
        border-radius:12px !important;
    }
    .ctc-recommendations-wrapper .ctc-rec-image-wrap{
        flex:0 0 82px;
        width:82px;
        height:82px;
        aspect-ratio:auto !important;
        border-right:1px solid #f1f5f9;
        border-bottom:0;
        background:#f8fafc;
    }
    .ctc-recommendations-wrapper .ctc-rec-image{
        width:100%;
        height:100%;
        object-fit:cover;
    }
    .ctc-recommendations-wrapper .ctc-rec-content{
        min-width:0;
        padding:10px 11px !important;
        justify-content:center;
    }
    .ctc-recommendations-wrapper .ctc-rec-name{
        margin-bottom:5px !important;
        font-size:12px !important;
        line-height:1.25 !important;
        -webkit-line-clamp:2;
    }
    .ctc-recommendations-wrapper .ctc-rec-price{
        font-size:11px !important;
        line-height:1.2 !important;
    }
}
@media(max-width:390px){
    .ctc-recommendations-wrapper .ctc-rec-card{
        min-width:205px !important;
        max-width:205px !important;
        min-height:76px !important;
    }
    .ctc-recommendations-wrapper .ctc-rec-image-wrap{
        flex-basis:76px;
        width:76px;
        height:76px;
    }
}


/* Recommendations — compact horizontal card style on desktop too */
@media(min-width:768px){
    .ctc-recommendations-wrapper .ctc-rec-grid{
        display:flex !important;
        overflow-x:auto !important;
        gap:12px !important;
        padding-bottom:8px !important;
        scroll-snap-type:x proximity !important;
        scrollbar-width:thin !important;
    }
    .ctc-recommendations-wrapper .ctc-rec-card{
        flex:0 0 245px !important;
        min-width:245px !important;
        max-width:245px !important;
        min-height:92px !important;
        display:flex !important;
        flex-direction:row !important;
        align-items:stretch !important;
        border-radius:12px !important;
    }
    .ctc-recommendations-wrapper .ctc-rec-image-wrap{
        flex:0 0 92px;
        width:92px;
        height:92px;
        aspect-ratio:auto !important;
        border-right:1px solid #f1f5f9;
        border-bottom:0;
        background:#f8fafc;
    }
    .ctc-recommendations-wrapper .ctc-rec-image{
        width:100%;
        height:100%;
        object-fit:cover;
    }
    .ctc-recommendations-wrapper .ctc-rec-content{
        min-width:0;
        padding:11px 12px !important;
        justify-content:center;
    }
    .ctc-recommendations-wrapper .ctc-rec-name{
        margin-bottom:6px !important;
        font-size:13px !important;
        line-height:1.25 !important;
        -webkit-line-clamp:2;
    }
    .ctc-recommendations-wrapper .ctc-rec-price{
        font-size:12px !important;
        line-height:1.2 !important;
    }
}

.ctc-delivery-area-gate{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(15,23,42,.64);backdrop-filter:blur(5px)}body.ctc-delivery-gate-open{overflow:hidden!important}.ctc-delivery-area-card{width:min(100%,460px);box-sizing:border-box;padding:27px;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 24px 70px rgba(15,23,42,.25);font-family:'Montserrat',sans-serif;text-align:center}.ctc-delivery-area-icon{width:50px;height:50px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;background:#fff1f2;border-radius:14px;font-size:24px}.ctc-delivery-area-card h2{margin:0 0 7px;font-size:21px;color:#0f172a}.ctc-delivery-area-card p{margin:0 0 17px;color:#64748b;font-size:13px}#ctc-delivery-area-address{width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid #cbd5e1;border-radius:11px;font:600 13px 'Montserrat',sans-serif;outline:none}#ctc-delivery-area-address:focus{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.1)}#ctc-delivery-area-check,.ctc-delivery-area-pickup{width:100%;margin-top:10px;padding:13px;border:0;border-radius:11px;font:700 13px 'Montserrat',sans-serif;cursor:pointer}#ctc-delivery-area-check{background:#ef4444;color:#fff}#ctc-delivery-area-check:disabled{opacity:.5;cursor:not-allowed}.ctc-delivery-area-pickup{background:#f1f5f9;color:#334155}#ctc-delivery-area-status{min-height:19px;margin-top:9px;font-size:12px;font-weight:650;color:#64748b}#ctc-delivery-area-status.is-success{color:#059669}#ctc-delivery-area-status.is-error{color:#dc2626}.ctc-delivery-area-card small{display:block;margin-top:12px;color:#94a3b8;font-size:10px}@media(max-width:767px){.ctc-delivery-area-card{padding:21px 16px;border-radius:17px}.ctc-delivery-area-card h2{font-size:19px}}

.ctc-delivery-google-host{width:100%;text-align:left}
.ctc-delivery-google-host gmp-place-autocomplete{width:100%;--gmpx-color-surface:#fff;--gmpx-color-on-surface:#0f172a}


/* Delivery gate Google Places UI — readability only.
   CSS-only: no address verification / API logic changes. */
.ctc-delivery-area-card,
.ctc-delivery-google-host,
.ctc-delivery-google-host gmp-place-autocomplete{
    color-scheme: light !important;
}

.ctc-delivery-google-host gmp-place-autocomplete{
    width:100% !important;

    /* Current Google Places UI Kit color tokens */
    --gmp-mat-color-surface:#ffffff;
    --gmp-mat-color-on-surface:#0f172a;
    --gmp-mat-color-on-surface-variant:#64748b;
    --gmp-mat-color-primary:#ef4444;
}

/* Legacy Google Places fallback, if Google serves the older widget */
.pac-container{
    background:#ffffff !important;
    color:#0f172a !important;
    border:1px solid #e2e8f0 !important;
    box-shadow:0 12px 30px rgba(15,23,42,.16) !important;
}
.pac-item{
    background:#ffffff !important;
    color:#0f172a !important;
    border-top:1px solid #e2e8f0 !important;
}
.pac-item:hover,
.pac-item-selected{
    background:#f8fafc !important;
}
.pac-item-query{
    color:#0f172a !important;
}
.pac-matched{
    color:#0f172a !important;
    font-weight:700 !important;
}

/* ================================================================
   Compact fulfilment selector — clear selected / unselected states.
   Selected: black surface, white icon/text/check.
   Unselected: white surface, neutral border, no visible check.
   ================================================================ */
.ctc-public-menu-wrapper .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active,
#ctc-public-menu-container .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active,
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active,
.ctc-public-menu-wrapper .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active:hover,
#ctc-public-menu-container .ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active:hover,
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active:hover {
    border-color: #000 !important;
    background: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
}
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active .ctc-fulfillment-icon {
    background: transparent !important;
    color: #fff !important;
}
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active .ctc-fulfillment-copy strong {
    color: #fff !important;
}
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn:not(.active) .ctc-fulfillment-check {
    display: none !important;
}
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active .ctc-fulfillment-check {
    display: inline-flex !important;
    border-color: #fff !important;
    background: #fff !important;
    color: #000 !important;
}

/* Active compact fulfilment service icon: force SVG strokes white on black. */
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active .ctc-fulfillment-icon svg,
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active .ctc-fulfillment-icon svg path,
.ctc-frontend-fulfillment-compact button.ctc-fulfillment-btn.active .ctc-fulfillment-icon svg circle {
    stroke: #fff !important;
}


/* Product modal CTA + quantity polish */
#ctc-confirm-addons-btn,
#ctc-confirm-addons-btn .ctc-add-basket-label,
#ctc-confirm-addons-btn .btn-price {
    color: #fff !important;
}
#ctc-confirm-addons-btn .btn-price {
    background: rgba(0,0,0,.15) !important;
}
.ctc-main-qty-control {
    height: 40px !important;
}
.ctc-main-qty-control #ctc-qty-minus,
.ctc-main-qty-control #ctc-qty-plus {
    min-width: 42px !important;
    padding: 0 11px !important;
    font-size: 14px !important;
}
.ctc-main-qty-control #ctc-modal-qty-display {
    min-width: 16px !important;
    padding: 0 5px !important;
    font-size: 14px !important;
}

/* =================================================================
   Product Modal Final Polish — active choice UX
   ================================================================ */
#ctc-addon-modal-box {
    border: 1px solid rgba(226, 232, 240, .85) !important;
}

.ctc-modal-left-pane {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
}

#ctc-modal-img {
    margin-top: 18px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08) !important;
}

#ctc-open-instruction-modal {
    border-color: #e2e8f0 !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}
#ctc-open-instruction-modal:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .07) !important;
    transform: translateY(-1px) !important;
}

.ctc-modifier-group {
    padding: 18px !important;
    margin: 0 0 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.ctc-modifier-group:last-child { margin-bottom: 0 !important; }
.ctc-modifier-group.has-error {
    border-color: #f87171 !important;
    background: #fffafa !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .12) !important;
}
.ctc-modifier-group-head { margin-bottom: 12px !important; }
.ctc-modifier-title-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}
.ctc-modifier-title-wrap h3 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}
.ctc-modifier-badge {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    border-radius: 999px !important;
    padding: 4px 9px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}
.ctc-modifier-badge.is-required {
    background: #fff1f2 !important;
    color: #be123c !important;
    border: 1px solid #fecdd3 !important;
}
.ctc-modifier-badge.is-optional {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}
.ctc-modifier-helper {
    margin-top: 5px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}
.ctc-modifier-validation {
    display: none;
    margin: -2px 0 10px !important;
    color: #b91c1c !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}
.ctc-modifier-options {
    display: grid !important;
    gap: 8px !important;
}
.ctc-option-row {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease !important;
}
.ctc-option-row:hover {
    border-color: #cbd5e1 !important;
    background: #fff !important;
}
.ctc-option-row.is-selected {
    border-color: #fb7185 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 2px rgba(251, 113, 133, .08) !important;
}
.ctc-option-label {
    min-height: 48px !important;
    padding: 11px 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}
.ctc-option-main {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
}
.ctc-option-main input.ctc-group-input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    accent-color: #ef4444 !important;
}
.ctc-option-name {
    color: #334155 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 650 !important;
}
.ctc-option-price {
    flex: 0 0 auto !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}
.ctc-addon-qty-wrapper {
    display: none;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 0 12px 10px !important;
}
.ctc-addon-qty-label {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
}
.ctc-addon-qty-control {
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    height: 32px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
}
#ctc-addon-modal-overlay .ctc-addon-qty-control button.ctc-addon-qty-minus,
#ctc-addon-modal-overlay .ctc-addon-qty-control button.ctc-addon-qty-plus {
    width: 34px !important;
    min-width: 34px !important;
    height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #475569 !important;
    box-shadow: none !important;
    transform: none !important;
    font-size: 16px !important;
}
#ctc-addon-modal-overlay .ctc-addon-qty-control button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
.ctc-addon-qty-display {
    min-width: 24px !important;
    padding: 0 4px !important;
    color: #0f172a !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}
.ctc-modal-no-options {
    padding: 20px !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    text-align: center !important;
    font-size: 13px !important;
}

.ctc-modal-footer-area {
    margin: 0 -2px !important;
    padding-top: 16px !important;
    background: #fff !important;
}
#ctc-confirm-addons-btn {
    min-height: 50px !important;
    border-radius: 12px !important;
}

@media (max-width: 768px) {
    #ctc-addon-modal-box { height: min(92vh, 780px) !important; max-height: 92vh !important; }
    .ctc-modal-right-pane { padding: 64px 14px 0 !important; }
    #ctc-modal-groups-container { padding-right: 0 !important; margin-bottom: 0 !important; }
    .ctc-modifier-group { padding: 14px !important; margin-bottom: 12px !important; border-radius: 14px !important; }
    .ctc-modifier-title-wrap { align-items: flex-start !important; }
    .ctc-modifier-title-wrap h3 { font-size: 15px !important; }
    .ctc-option-label { min-height: 50px !important; padding: 12px !important; }
    .ctc-modal-footer-area {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 8 !important;
        margin: 12px -14px 0 !important;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -8px 22px rgba(15, 23, 42, .08) !important;
    }
    .ctc-main-qty-control { width: 100% !important; justify-content: space-between !important; }
    #ctc-addon-modal-overlay .ctc-main-qty-control #ctc-qty-minus,
    #ctc-addon-modal-overlay .ctc-main-qty-control #ctc-qty-plus {
        flex: 0 0 46px !important;
        width: 46px !important;
        min-width: 46px !important;
    }
}
