/* Public Styles for Chippy Order - Updated with Sections */

#chippy-order-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.chippy-order-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.chippy-order-header h3 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 24px;
}

.chippy-deadline {
    margin: 0;
    color: #d63638;
    font-size: 14px;
}

.chippy-order-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.chippy-menu-section,
.chippy-basket-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.chippy-menu-section h4,
.chippy-basket-section h4 {
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
    font-size: 18px;
}

/* NEW: More compact menu sections */
.chippy-menu-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chippy-menu-section-group {
    border: none;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
    /* Add permanent shadow */
    box-shadow: 0 2px 8px rgba(0,115,170,0.1);
}

.chippy-menu-section-group:hover {
    /* Keep hover effect but make it slightly stronger */
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
    transform: translateY(-1px);
}
.chippy-section-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 10px 15px;
    border-bottom: none;
    margin: 0;
    cursor: default;
}

.chippy-section-title {
    margin: 0;
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chippy-section-title::before {
    content: "🍽️";
    margin-right: 6px;
    font-size: 14px;
}

/* Section-specific icons - more compact */
.chippy-menu-section-group:has(.chippy-section-title:contains("Chips")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("chips")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("Sides")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("sides")) .chippy-section-title::before {
    content: "🍟";
}

.chippy-menu-section-group:has(.chippy-section-title:contains("Pie")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("pie")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("Pastries")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("pastries")) .chippy-section-title::before {
    content: "🥧";
}

.chippy-menu-section-group:has(.chippy-section-title:contains("Fish")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("fish")) .chippy-section-title::before {
    content: "🐟";
}

.chippy-menu-section-group:has(.chippy-section-title:contains("Drink")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("drink")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("Beverage")) .chippy-section-title::before,
.chippy-menu-section-group:has(.chippy-section-title:contains("beverage")) .chippy-section-title::before {
    content: "🥤";
}

.chippy-section-description {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-style: italic;
}

.chippy-menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #fff;
}

.chippy-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.chippy-menu-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.chippy-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.chippy-item-name {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.chippy-item-price {
    color: #27ae60;
    font-weight: 700;
    font-size: 14px;
}

.chippy-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chippy-item-controls .chippy-quantity {
    display: none; /* Hidden input for tracking */
}

/* Add to Basket / Customize button */
.chippy-add-to-basket {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chippy-add-to-basket:hover {
    background: #005a87;
    transform: scale(1.05);
}

.chippy-customize-btn {
    background: #0073aa;
}

.chippy-customize-btn:hover {
    background: #005a87;
}

/* Item in basket indicator */
.chippy-menu-item.in-basket {
    background: #e8f4fc;
    border-color: #0073aa;
}

.chippy-menu-item.in-basket .chippy-add-to-basket {
    background: #0073aa;
}

.chippy-menu-item.in-basket .chippy-add-to-basket::after {
    content: " ✓";
}

.chippy-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 35px;
}

.chippy-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.chippy-btn:active {
    transform: translateY(0);
}

.chippy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.chippy-btn-primary {
    background: #27ae60;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    width: 100%;
    margin-top: 15px;
}

.chippy-btn-primary:hover {
    background: #229954;
}

.chippy-btn-primary:disabled {
    background: #95a5a6;
}

.chippy-btn-primary.cancel-order {
    background: #e74c3c;
    color: white;
}

.chippy-btn-primary.cancel-order:hover {
    background: #c0392b;
}

.chippy-btn-primary.update-order {
    background: #3498db;
    color: white;
}

.chippy-btn-primary.update-order:hover {
    background: #2980b9;
}

.chippy-btn-minus,
.chippy-btn-plus {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chippy-btn-minus:hover,
.chippy-btn-plus:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ENHANCED: Better quantity display */
.chippy-quantity {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    background: white;
    color: #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.chippy-quantity:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

/* Alternative quantity display with background */
.chippy-quantity:not(:focus) {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.chippy-quantity[value="0"] {
    color: #6c757d;
    background: #f8f9fa;
}

.chippy-quantity:not([value="0"]) {
    background: #e8f4fd;
    border-color: #0073aa;
    color: #0073aa;
}

/* No menu message */
.chippy-no-menu {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px dashed #ddd;
}

/* Basket styling */
#chippy-basket {
    min-height: 150px;
    margin-bottom: 20px;
}

.chippy-basket-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px dashed #ddd;
}

.chippy-basket-item {
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

.chippy-basket-item-info {
    flex: 1;
}

.chippy-basket-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
    font-size: 15px;
}

.chippy-basket-item-addons {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.chippy-basket-addon {
    display: inline-block;
    margin-right: 8px;
    color: #3498db;
}

.chippy-basket-item-total {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.chippy-remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chippy-remove-item:hover {
    background: #c0392b;
}

/* Basket item layout with quantity controls */
.chippy-basket-item-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.chippy-basket-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e1e5e9;
}

.chippy-basket-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chippy-basket-qty-minus,
.chippy-basket-qty-plus {
    background: #0073aa;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chippy-basket-qty-minus:hover,
.chippy-basket-qty-plus:hover {
    background: #005a87;
    transform: scale(1.1);
}

.chippy-basket-qty-value {
    font-weight: 700;
    font-size: 16px;
    min-width: 24px;
    text-align: center;
    color: #333;
}

.chippy-basket-item-price {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.chippy-basket-total {
    padding: 15px;
    background: #2c3e50;
    color: white;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}

#chippy-order-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.chippy-status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.chippy-status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.chippy-status-loading {
    background: #cce7ff;
    color: #0066cc;
    border: 1px solid #99d6ff;
}

.chippy-status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Z-index management for UberMenu compatibility */
.chippy-basket-section {
    z-index: 999; /* Lower than UberMenu dropdowns */
}

.chippy-discrete-notification {
    z-index: 100000; /* Higher than UberMenu for notifications */
}

/* UberMenu specific overrides */
.ubermenu .ubermenu-submenu,
.ubermenu .ubermenu-drop,
.ubermenu-main .ubermenu-submenu {
    z-index: 99999 !important;
}

/* Ensure UberMenu dropdowns appear above chippy elements */
#megaMenu,
.ubermenu,
.ubermenu-responsive-toggle {
    z-index: 99999 !important;
}

/* Only increase basket z-index on mobile where it needs to be prominent */
@media (max-width: 768px) {
    .chippy-basket-section {
        z-index: 1000; /* Higher on mobile for better UX */
    }
    
    /* But still allow UberMenu mobile menu to be on top */
    .ubermenu-responsive-toggle,
    .ubermenu.ubermenu-responsive {
        z-index: 100000 !important;
    }
}
@media (max-width: 1024px) {
    .chippy-order-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chippy-menu-section {
        order: 2;
    }
    
    .chippy-basket-section {
        order: 1;
    }
}

@media (min-width: 1025px) {
    /* Desktop: Make basket sticky */
    .chippy-basket-section {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        z-index: 100;
    }
    
    /* Style the scrollbar for better UX */
    .chippy-basket-section::-webkit-scrollbar {
        width: 8px;
    }
    
    .chippy-basket-section::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .chippy-basket-section::-webkit-scrollbar-thumb {
        background: #0073aa;
        border-radius: 4px;
    }
    
    .chippy-basket-section::-webkit-scrollbar-thumb:hover {
        background: #005a87;
    }
}

@media (max-width: 768px) {
    .chippy-menu-section,
    .chippy-basket-section {
        padding: 15px;
    }
    
    .chippy-menu-sections {
        gap: 10px;
    }
    
    .chippy-section-header {
        padding: 8px 12px;
    }
    
    .chippy-section-title {
        font-size: 14px;
    }
    
    .chippy-menu-items {
        padding: 10px;
        gap: 6px;
    }
    
    .chippy-menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 10px;
    }
    
    .chippy-item-controls {
        align-self: flex-end;
        gap: 8px;
    }
    
    .chippy-btn-minus,
    .chippy-btn-plus {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .chippy-quantity {
        width: 50px;
        height: 35px;
        font-size: 16px;
    }
    
    .chippy-order-header {
        padding: 15px;
    }
    
    .chippy-order-header h3 {
        font-size: 20px;
    }
    
    /* Mobile: Enhanced sticky basket at bottom */
    .chippy-basket-section {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
        border-bottom: none;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        max-height: 60vh;
        transition: transform 0.3s ease;
        /* z-index managed above for UberMenu compatibility */
    }
    
    /* Collapsed state for mobile */
    .chippy-basket-section.collapsed {
        transform: translateY(calc(100% - 50px));
    }
    
    /* Toggle button for mobile basket */
    .chippy-basket-section::before {
        content: '';
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background: #ddd;
        border-radius: 2px;
    }
    
    .chippy-basket-section h4 {
        cursor: pointer;
        user-select: none;
        position: relative;
        padding-top: 15px;
        margin-bottom: 10px;
        font-size: 16px;
    }
    
    .chippy-basket-section h4::after {
        content: "👆 Tap to expand";
        font-size: 11px;
        color: #666;
        font-weight: normal;
        position: absolute;
        right: 0;
        top: 15px;
    }
    
    .chippy-basket-section:not(.collapsed) h4::after {
        content: "👇 Tap to minimize";
    }
    
    /* Add padding to body to prevent content hiding */
    body.has-sticky-basket {
        padding-bottom: 70px;
    }
    
    /* Basket content scrollable on mobile */
    .chippy-basket-section #chippy-basket {
        max-height: 35vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    #chippy-order-container {
        margin: 0 10px;
    }
    
    .chippy-menu-section,
    .chippy-basket-section {
        padding: 15px;
    }
    
    .chippy-section-header {
        padding: 10px 12px;
    }
    
    .chippy-menu-items {
        padding: 12px;
    }
    
    .chippy-basket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chippy-basket-item-total {
        align-self: flex-end;
    }
    
    .chippy-item-controls {
        gap: 6px;
    }
    
    .chippy-btn-minus,
    .chippy-btn-plus {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .chippy-quantity {
        width: 45px;
        height: 32px;
        font-size: 15px;
    }
}

/* Animation for adding/removing items */
.chippy-item-added {
    animation: chippy-pulse 0.6s ease-in-out;
}

@keyframes chippy-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background-color: #d4edda; }
    100% { transform: scale(1); }
}

.chippy-item-removed {
    animation: chippy-fadeOut 0.3s ease-in-out forwards;
}

@keyframes chippy-fadeOut {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-20px); }
}

/* Section collapse/expand animation */
.chippy-menu-section-group.collapsed .chippy-menu-items {
    display: none;
}

.chippy-menu-section-group.collapsed .chippy-section-header::after {
    content: " (Click to expand)";
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* Loading spinner */
.chippy-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
    border: 2px solid #0073aa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: chippy-spin 1s linear infinite;
}

@keyframes chippy-spin {
    to { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.chippy-btn:focus,
.chippy-quantity:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.chippy-section-header:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chippy-menu-section-group {
        border-width: 2px;
    }
    
    .chippy-menu-item {
        border-width: 2px;
    }
    
    .chippy-btn {
        border: 2px solid currentColor;
    }
    
    .chippy-quantity {
        border-width: 3px;
    }
}

/* Enhanced quantity styling for better visibility */
.chippy-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chippy-quantity::-webkit-outer-spin-button,
.chippy-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.chippy-quantity[type=number] {
    -moz-appearance: textfield;
}

/* Ensure quantity is always clearly visible */
.chippy-menu-item .chippy-quantity {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Z-index management for UberMenu compatibility */
.chippy-basket-section {
    z-index: 999; /* Lower than UberMenu dropdowns */
}

.chippy-discrete-notification {
    z-index: 100000; /* Higher than UberMenu for notifications */
}

/* UberMenu specific overrides */
.ubermenu .ubermenu-submenu,
.ubermenu .ubermenu-drop,
.ubermenu-main .ubermenu-submenu {
    z-index: 99999 !important;
}

/* Ensure UberMenu dropdowns appear above chippy elements */
#megaMenu,
.ubermenu,
.ubermenu-responsive-toggle {
    z-index: 99999 !important;
}

/* Only increase basket z-index on mobile where it needs to be prominent */
@media (max-width: 768px) {
    .chippy-basket-section {
        z-index: 1000; /* Higher on mobile for better UX */
    }
    
    /* But still allow UberMenu mobile menu to be on top */
    .ubermenu-responsive-toggle,
    .ubermenu.ubermenu-responsive {
        z-index: 100000 !important;
    }
}

/* Discrete notifications */
.chippy-discrete-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chippy-discrete-notification .notification-icon {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .chippy-discrete-notification {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        text-align: center;
        font-size: 13px !important;
        padding: 10px 15px !important;
    }
}

/* Removed section count badge - no longer needed */

/* Ensure sections cannot be collapsed */
.chippy-menu-section-group .chippy-menu-items {
    display: flex !important;
}

.chippy-menu-section-group.collapsed .chippy-menu-items {
    display: flex !important;
}

/* Sticky basket on mobile */
@media (max-width: 768px) {
    .chippy-basket-section.sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        border-radius: 0;
        border-bottom: none;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .chippy-basket-section.sticky + * {
        margin-bottom: 200px; /* Prevent content hiding behind sticky basket */
    }
}

/* Add these styles to public.css */

/* Order Closed Styles */
.chippy-order-closed {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.chippy-order-closed h3 {
    color: #e74c3c;
    margin: 0 0 20px 0;
    font-size: 24px;
}

.chippy-order-closed p {
    color: #666;
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.chippy-order-closed strong {
    color: #333;
}

.chippy-order-closed h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 18px;
    text-align: left;
}

.chippy-closed-orders {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    list-style: none;
    margin: 0 0 15px 0;
}

.chippy-closed-orders li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.chippy-closed-orders li:last-child {
    border-bottom: none;
}

/* Deadline Warning Styles */
.chippy-deadline {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.chippy-deadline strong {
    color: #e74c3c;
    font-weight: 700;
}

/* Add visual indicator when approaching deadline */
.chippy-order-header.deadline-approaching {
    border-left-color: #f39c12;
    background: #fff3cd;
}

.chippy-order-header.deadline-approaching .chippy-deadline {
    color: #856404;
}

.chippy-order-header.deadline-approaching .chippy-deadline strong {
    color: #d68910;
}

/* Mobile responsive for closed message */
@media (max-width: 768px) {
    .chippy-order-closed {
        padding: 20px;
    }
    
    .chippy-order-closed h3 {
        font-size: 20px;
    }
    
    .chippy-order-closed p {
        font-size: 14px;
    }
    
    .chippy-closed-orders {
        padding: 15px;
    }
}

/* Order Status Notice */
.chippy-order-status-notice {
    padding: 12px 20px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.chippy-order-status-notice[style*="#27ae60"] {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.chippy-order-status-notice[style*="#e74c3c"] {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Enhance order status messages in basket */
#chippy-order-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* =========================================================================
   ADD-ON SELECTION MODAL (Public)
   ========================================================================= */

body.chippy-modal-open {
    overflow: hidden;
}

.chippy-addon-modal-overlay-public {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chippy-addon-modal-public {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    max-width: 450px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.chippy-addon-modal-close-public {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    z-index: 1;
}

.chippy-addon-modal-close-public:hover {
    color: #d63638;
}

.chippy-addon-modal-header-public {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #eee;
}

.chippy-addon-modal-header-public h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #2c3e50;
    padding-right: 30px;
}

.chippy-addon-base-price {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.chippy-addon-modal-body-public {
    padding: 20px 25px;
}

.chippy-addon-group-public {
    margin-bottom: 20px;
}

.chippy-addon-group-public h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 600;
}

.chippy-addon-option-public {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.chippy-addon-option-public:hover {
    background: #e9ecef;
}

.chippy-addon-option-public:has(input:checked) {
    background: #e8f4fc;
    border-color: #0073aa;
}

.chippy-addon-checkbox,
.chippy-addon-radio {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.chippy-addon-option-label {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.chippy-addon-option-price {
    color: #0073aa;
    font-weight: 600;
    font-size: 14px;
}

.chippy-addon-modal-footer-public {
    padding: 20px 25px 25px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.chippy-addon-quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.chippy-modal-qty-minus,
.chippy-modal-qty-plus {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #0073aa;
    background: white;
    color: #0073aa;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chippy-modal-qty-minus:hover,
.chippy-modal-qty-plus:hover {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
    transform: scale(1.1);
}

.chippy-modal-qty-display {
    font-size: 24px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    color: #333;
}

.chippy-addon-total-public {
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.chippy-addon-total-price {
    color: #0073aa;
    font-size: 24px;
    font-weight: bold;
}

.chippy-addon-add-to-basket {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chippy-addon-add-to-basket:hover {
    background: #005a87;
}

/* Customize badge on menu items */
.chippy-item-customize-badge {
    display: inline-block;
    font-size: 10px;
    background: #9b59b6;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chippy-item-customize-badge:hover {
    background: #8e44ad;
}

.chippy-menu-item.has-addons {
    cursor: pointer;
}

.chippy-menu-item.has-addons .chippy-item-info {
    cursor: pointer;
}

/* Basket item with addons */
.chippy-basket-item-addons {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding-left: 10px;
    border-left: 2px solid #ddd;
}

.chippy-basket-addon {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.chippy-basket-addon-label {
    flex: 1;
}

.chippy-basket-addon-price {
    color: #27ae60;
}

/* Mobile styles for add-on modal */
@media (max-width: 768px) {
    .chippy-addon-modal-overlay-public {
        padding: 0;
        align-items: flex-end;
    }

    .chippy-addon-modal-public {
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        max-width: 100%;
    }

    .chippy-addon-modal-header-public {
        padding: 20px 20px 12px;
    }

    .chippy-addon-modal-header-public h3 {
        font-size: 18px;
    }

    .chippy-addon-modal-body-public {
        padding: 15px 20px;
    }

    .chippy-addon-option-public {
        padding: 12px 14px;
    }

    .chippy-addon-modal-footer-public {
        padding: 15px 20px 20px;
    }

    .chippy-addon-add-to-basket {
        padding: 14px;
    }
}