/* ===========================
   UPDATED & ENHANCED STYLES.CSS
   For: ChefiChoice Health 
   Fully Responsive + Mobile-First
   =========================== */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F4F4E8;
    color: #000;
    position: relative;
    z-index: 3;
    font-family: "Nunito Sans Headings", Arial, sans-serif;
    overflow-y: auto; /* Better than just 'overflow: auto' */
    overscroll-behavior-y: none; /* Prevent pull-to-refresh on mobile */
    padding-bottom: 60px !important; /* Adjust based on footer height */
}

/* Hide scrollbar but allow scrolling */
body::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none; /* Firefox */
}

/* Scrolling Fixes */
.container::-webkit-scrollbar {
    width: 6px;
}
.container::-webkit-scrollbar-track {
    background: transparent;
}
.container::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 3px;
}
.container::-webkit-scrollbar-thumb:hover {
    background: #333333;
}
.container {
    scrollbar-width: thin;
    scrollbar-color: #000000 transparent;
}
html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ===========================================
   HEADER SECTION – Fixed Issues
   =========================================== */

/* Fixed App Header with Background */
header.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    width: 100%;
    max-width: 3800px;
    box-sizing: border-box;
    height: 70px;
}

.app-header {
    max-width: 3800px;
    height: 70px;
    background: url('images/neutrinos-cream-banner.jpg') right bottom no-repeat;
    background-size: cover;
    background-position: right bottom;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    padding-top: 5px;
    padding-left: 30px;
    position: relative;
    z-index: 1000;
}

/* Logo positioning:from top of header */
.logo {
    position: absolute;
    top: 0px;
    left: 50px;
    z-index: 1100;

}

.logo img {
    height: 50px; /* Matches original design */
    width: auto;
}

.logoleft {
    position: absolute;
    top: 53px;
    left: 20px;
    z-index: 1100;
}

.logoleft img {
	display: block;
	margin: 0px auto;
    height: 16px; /* Matches original design */
    width: auto;
}


/* Logline */
.logline {
    position: absolute;
    top: 53px;
    white-space: nowrap;
    left: 135px;
    font-size: 0.65rem;
    color: #FDEBCF;
}

.img {
    display: block;
    margin: 0px auto;
    max-width: 100%;
    height: auto;
	}
	
/* =========================================
   FLEXBOX CSS
   ========================================= */	

.main-wrapper {
    display: flex;
    gap: 0px;
    max-width: 1600px;
    margin: 0px auto;
    padding: 0px;
}

.main-content {
    flex: 5; /* Takes 4/5 width */
    min-width: 0; /* Prevents overflow */
}

.sidebar {
    flex: 1; /* Takes 1/5 width */
    height: fit-content;
    align-items: center;
    justify-content: center;
    padding: 25px 25px 0 0px;
}

/* Mobile collapse */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar {
        position: static;
    }
}	


/* =========================================
   SCROLLABLE CONTAINER
   ========================================= */

.container {
    max-width: 1600px;
    width: 100%;
    margin: 50px auto 0; /* Offset for fixed header */
    padding: 0 0px;
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 0px;
    min-height: 400px;
    margin-bottom: 60px !important; /* Match body padding-bottom */
}


.main-column {
    flex: none !important;
    max-width: none !important;
    min-width: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.right-column  {	
	flex: 1;
    flex-wrap: wrap;
    padding-top: 100px;
    padding: 20px;
    display: block;
    margin: 0px auto;
    width: 300px;
}

.info-box  {
	display: flex;
    flex-wrap: wrap;
    border: 0px solid #ff9900;
    border-radius: 16px;
    padding: 10px 10px 10px 6px;
    margin: 0 auto;
}

.chooser {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: center;
    margin: 5px 0 0 0;
    background: #F4EAE2;
    border-radius: 8px;

} 

/* =============================================
   OPTION LIST GRID
   ============================================= */

.option-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 1px;
    padding: 0 12px 1px 2px;
	width: 100%;        /* Control width */
    min-width: 455px;
    margin: 0 auto; 
}


.option-list-grid .option-item {
    background: none;
    border: 0px solid #fff;
    border-radius: 6px;
    padding: 2px 4px 2px 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 18px;
    display: flex;
    align-items: center;
}
.item-number {
	font-size: 0.8rem;
	color: #33CC99;
	line-height: 1.0
}

.option-list-grid .item-name {
    font-size: 0.85rem !important;
    font-weight: 650; 
    font-stretch: 90%;
}

.option-list-grid .option-item:hover {
    background: #00FF87;
    border-color: #D2691E;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.option-list-grid .option-item.selected {
    background: #FFE200;
    border-color: #FF8C00;
    color: #996600;
    box-shadow: 0 0 6px rgba(255, 140, 0, 0.6);
}

.option-list-grid .option-name {
    font-weight: 650; 
    font-stretch: 90%;
    color: #FDEBCF;
    font-size: 0.85rem;
    line-height: 1.0;
    width: 100%;
}

.option-list-grid .option-name.selected {
    font-weight: 650;
    color: #996600;
    font-size: 0.85rem;
    line-height: 1.0;
    width: 100%;
}

/* =============================================
   REST OF EXISTING STYLES BELOW...
   ============================================= */


p {
    font-weight: 600; 
    font-stretch: 90%;
    margin: 0.4em 0.2em 0.2em 0.2em;
    widows: 2;
    orphans: 2;
    text-align: justify;
    font-size: 0.85rem;
    line-height: 1.3;
    text-indent: 0.0em;
}

h1, h2, h3, h4 {
	font-family: "Nunito Sans Headings", Arial, sans-serif;
} 

h1 {
	font-weight: 900; 
    font-stretch: 80%;   
    font-size: 1.8rem;
    text-align: center;
    font-style: normal;
}
em { 
	font-style: italic;
	font-weight: 600;  
}
strong { 
	font-weight: 750; 
}

h2 { 
	font-weight: 900; 
    font-stretch: 80%;     
    font-size: 1.1rem;
    text-align: left;
    color: #650F5B;
}

h3 {
	font-weight: 800; 
    font-stretch: 80%;    
    font-size: 1.0rem;
    text-align: left;
    color: #650F5B;
}
h3.condensed {
  font-weight: 800;      
  font-stretch: 75%;    
  font-style: normal;
}
h4 {
	font-weight: 800; 
    font-stretch: 85%;
    font-size: 0.75rem;
    text-align: left;
    font-style: normal;
    color: #650F5B;
}
h4.italic {
	font-weight: 800; 
    font-stretch: 85%;
    font-size: 0.75rem;
    text-align: left;
    font-style: italic;
    color: #650F5B;
}
.subtitle {
	font-weight: 800; 
    font-stretch: 80%;    
    color: #FFFFCC;
    font-size: 1.2rem;
    margin: 0 0 4px 0;
    text-align: center;
    padding-bottom: 2px;
    padding-left: 14px;
    padding-right: 4px;
    line-height: 1.3rem;
}

.text {
    color: #FFF;
    font-size: 0.8rem;
    font-weight: 650; 
    font-stretch: 90%;
    margin: 0 0 4px 0;
    text-align: left;
    padding-bottom: 2px;
    padding-left: 14px;
    padding-right: 4px;
    line-height: 1.2rem;
}

.smalltext {
	font-weight: 200; 
    font-stretch: 90%;
    color: #650F5B;
    font-size: 0.70rem;
    text-align: center;
    padding-bottom: 5px;
    line-height: 0.7rem;
    font-style: italic;
}
.yellow-caption {
	font-weight: 500; 
    font-stretch: 90%;
    color: #EDA17F;
    font-size: 0.70rem;
    text-align: center;
    padding-bottom: 5px;
    line-height: 0.7rem;
    font-style: normal;
}


p.dropcap::first-letter {
    float: left;
    font-size: 1.6em;
    line-height: 1;
    margin-top: 0.15em;
    margin-right: 0.0em;
    margin-left: 0;
    font-weight: 700;
}

.center {
    position: relative;
    margin: 0 auto;
}

.about-text {
    item-align: center;
    font-size: 1.00rem;
    line-height: 1.5rem;
    letter-spacing: 0.04rem;
    padding-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    font-weight: 600;
}



/* =============================================
    ITEMS */
/* ===========================================


/*------The selected items  Box------*/

#selected-items {
    width: 95%;        /* Control width */
    min-height: 120px;
    margin: 0px auto;       /* Center horizontally */
    padding: 0px;
    background: #FCEDE0;
    background-size: cover;
    background-position: right bottom;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* The selected item container */
.selected-item {
    background: #FCE9E0;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 0px;
}

/* Each dish item */
.dish-item {
    padding: 6px;
    border-bottom: 1px solid #eee;
}
.dish-item:last-child {
    border-bottom: none;
}

/* Center the whole  section */
.-display-container {  /* Add this wrapper in HTML */
    display: flex;
    justify-content: center;
    align-items: start;
    min-height: 180px;
    padding: 0px;
}

    color: #FDEBCF;
    font-size: 0.75rem;
    font-style: italic;
    text-align: right;
    padding-top: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}


/*==============================================
   POPUP SYSTEM */
   /* Force popup to center */
#popup-overlay {
    display: none;
    position: fixed !important;
    top: 80 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: none;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.popup-overlay {
    display: none;
    position: fixed !important;
    top: 80 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.popup-overlay.show {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: auto;
}

.popup-content {
    background: #110000;
    border: 2px solid #993300;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    flex: vertical;
    width: 100%;
    max-height: 75vh;
    z-index: 5000;
    position: relative !important;
    margin: auto !important;
}

#popup-title {
    color: #FFCC66;
    font-weight: 800;
	font-stretch: 100%;
    margin-bottom: 0px;
    font-size: 1rem;
    padding: 0px 10px 0 10px;
}

.popup-title {
    color: #FFCC66;
    font-weight: 800; 
    font-stretch: 100%;
    margin-bottom: 0px;
    font-size: 1rem;
    padding: 0px 10px 0 10px;
}
#popup-description {
    max-height: calc(70vh - 100px); 
      overflow-y: auto;
    padding-right: 10px; 
}
#popup-description::-webkit-scrollbar {
    width: 8px;
}

#popup-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#popup-description::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#popup-description::-webkit-scrollbar-thumb:hover {
    background: #555;
}


 /* Override any popup or overlay z-index issues */
/* #popup-overlay,
#checkout-overlay, 
#payment-overlay {
    z-index: 1000 !important;
} */


.popup-description {
    color: #F5F5DC;
    margin-top: 10px;
    margin-bottom: 7px;
    line-height: 0.7rem;
    padding: 0 10px;
    max-height: calc(70vh - 100px); 
    overflow-y: auto;
    padding-right: 10px; 
}
.popup-buttons {
    display: flex;
    gap: 10px;
    padding: 25px;
    background: rgba(51, 0, 0, 0.5);
}
.select-btn {
    background: linear-gradient(45deg, #8FBC8F, #6B8E23);
    color: white;
    border: none;
    padding: 10px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 750; 
    font-stretch: 90%;    
    font-size: 0.9rem;
    flex: 1;
    transition: all 0.3s ease;
}

.select-btn:hover {
    background: linear-gradient(45deg, #1BF459, #57AF70);
    transform: translateY(-2px);
}

.close-btn {
    background: #8B4513;
    color: white;
    border: none;
    padding: 10px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 750;
    font-size: 0.9rem;
}

.close-btn:hover {
    background: #D2691E;
}

=======
   CHEFICHOICES */
/* Make sure fusion and recommendation sections scroll nicely */
.fusion-section, .regular-section {
    margin-bottom: 20px;
}
/* Optional: Style the scrollbar */
#popup-description::-webkit-scrollbar {
    width: 8px;
}

#popup-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#popup-description::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#popup-description::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Health  Custom Popup Styles */
.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.size-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.size-option:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.size-option.selected {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.size-name {
    font-weight: 700;
    font-size: 1.1em;
}

.size-details {
    color: #666;
    font-size: 0.85em;
}

.size-price {
    color: #4CAF50;
    font-weight: 750;
    margin-top: 5px;
}

.addin-options {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.addin-option {
    display: block;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.addin-option:hover {
    background: #f5f5f5;
}

.addin-option input[type="checkbox"] {
    margin-right: 10px;
}

.addin-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addin-desc {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.selection-summary {
    background: #f0f8f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 0.9rem;
    font-weight: 900;
    color: #0F4C12;
}

.back-btn {
    margin-top: 15px;
    padding: 8px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}


/* Hide checkout overlay when not in use */
#checkout-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#checkout-overlay.show {
    display: flex !important;
}



/* Preparation Methods */
#prep-methods-container h4 {
    color: #9EDD1D;
    margin-bottom: 4px; /* Increased from 10px */
    font-size: 0.85rem;
    font-weight: 650; 
    font-stretch: 90%;
    margin-left: 15px; /* Added indentation */
    padding-bottom: 0px; /* Added bottom padding */
}

.prep-methods {
    margin: 12px 12px;
}

.prep-methods h4 {
    color: #9EDD1D;
    margin-bottom: 4px;
    font-size: 0.75rem;
}

.prep-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.prep-options label {
    background: #8B4513;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prep-options label:hover {
    background: #D2691E;
}

.prep-options input[type="radio"] {
    margin: 0;
}

.prep-options label:has(input[type="radio"]:checked) {
    background: #6B8E23;
    border-color: #8FBC8F;
    box-shadow: 0 0 8px rgba(107, 142, 35, 0.5);
}

.prep-option {
    background: #8B4513;
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.prep-option:hover {
    background: #1BF459;
}

.prep-option.selected {
    background: #6B8E23;
    border-color: #8FBC8F;
    box-shadow: 0 0 8px rgba(107, 142, 35, 0.5);
}

/*==============================================
   SELECTED ITEMS DISPLAY */
   .main-dish-item, .soup-item, .sauce-item, .garnish-item, .salad-item, .side-item, .dessert-item {
    padding: 8px;
    margin: 0px 0;
    /* etc. */
}

.main-dishes, .add-ons, .flavors, .garnishes, .salads, .sides,  .sweets {
    color: #FFFFCC;
    font-size: 0.9rem;
    font-style: normal;
    margin-bottom: 6px;
    margin-left: 0px;
    text-align: left;
    letter-spacing: 0.2px;
}

.meal-title {
    color: #FFFFCC;
    font-size: 0.85rem;
    font-weight: 650;
    font-stretch: 100%;
    font-style: italic;
    margin: 6px 0 3px 0;
    text-align: center;
    letter-spacing: 1px;
}

/* Enhanced Item Display with Pricing */
/* Combined selectors for dish items */
.selected-item .item-header, .dish-item .item-header {
    display: flex;
    align-items: center;
    gap: 2px;
}

.selected-item .item-name-section, .dish-item .item-name-section {
    flex: 1;
}

.selected-item .dish-controls select, .dish-item .dish-controls select {
    padding: 3px;
    border: 0px solid #8B4513;
    border-radius: 3px;
    background: #F4A460;
    color: #660000;
    font-size: 0.7rem;
    min-width: auto !important;    
}

.selected-item .item-header, .dish-item .item-header {
    position: relative;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 4px;
    width: 100% !important;
}

.selected-item .item-name-section {
    flex: 1;
    padding-right: 4px;
	max-width: 100%;
     
}
.selected-item .item-name {
    color: #660000;
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 1rem;
    line-height: 1.0;
}

.selected-item .item-description {
    color: #330000;
    font-size: 0.85rem;
    line-height: 1.1;
}

.selected-item .dish-controls select {
    font-size: 0.85em !important;
    padding: 1px 2px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 0px !important;
    min-width: auto !important;    
}

.selected-item {
    border: 0px solid #8B4513;
    width: 98% !important;
    max-width: none !important;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.dish-item {
    padding: 0px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    font-size: 0.85rem;
}

.dish-item:last-child {
    border-bottom: none;
}



/* Grid Name Sizing */
.dish-item .item-name {
    color: #660000;
    font-weight: 900;
    margin-bottom: 2px;
    font-size: 1rem;
    line-height: 1.0;
}

.item-price {
    color: #660000;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 0px;
    background: #FFFFCC;
    padding: 2px 2px;
    border-radius: 6px;
    display: inline-block;
}

.price-and-controls {
    display: flex !important;
    justify-content: space-between !important;
    align-items: right !important;
    margin-top: 6px !important;
}

.-controls {
	color: #8B4513;
    font-weight: 800;
    margin-bottom: 6px;
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px; 
}

.selected-item .slot-info {
    color: #660000;
    font-size: 0.75em;
}

/* Size Selector Styling */
.size-selector {
    margin-right: 8px;
}

.size-select {
    background: #FFFFCC;
    border: 1px solid #8B4513;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.85rem;
    color: #330000;
    cursor: pointer;
    min-width: 80px;
}

.size-select:focus {
    outline: none;
    border-color: #D2691E;
    box-shadow: 0 0 3px rgba(210, 105, 30, 0.5);
}

.dish-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: 0px !important;
    min-width: 30px !important;
}
.dish-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.complete-btn, .delete-btn {
    border: none !important;
    border-radius: 50% !important;  
    width: 28px !important;
    height: 28px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: right!important;
    justify-content: right !important;
    color: white !important;
    font-weight: 700 !important;
}

.complete-btn {
    background: #27ae60 !important;
}

.delete-btn {
    background: #e74c3c !important;
}

.complete-btn:hover {
    background: #229954 !important;
    transform: scale(1.1) !important;
}

.delete-btn:hover {
    background: #c0392b !important;
    transform: scale(1.1) !important;
}
    transition: all 0.2s ease;
}

.delete-btn {
    background: #e74c3c !important;
}

.complete-btn:hover {
    background: #229954;
    transform: scale(1.1);
}

.delete-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.new-dish-btn {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-items {
    color: #FFFFCC;
    font-size: 0.6rem;
    font-style: italic;
    margin-bottom: 6px;
    margin-left: 0px;
    text-align: center;
    letter-spacing: 1px;
}

.prep-details {
    font-size: 0.9em;
    font-weight: 600; 
    font-stretch: 90%;   
    color: #fff;
    margin-bottom: 4px;
    margin-top: 4px;
    padding: 4px;
    background: none;
    border-radius: 4px;
    width: 100%; 
    box-sizing: border-box; 
}

.prep-details textarea {
    width: 100%;
    font-size: 0.9em;
    font-weight: 600; 
    font-stretch: 90%;   
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 1px;
    background: #FDEBCF;
    box-sizing: border-box; 
    resize: vertical; 
}


.-item {
    background: none;
    border: 1px solid transparent;
    border-color: #02060A;
    border-radius: 10px;
    padding: 4px 8px;
    margin-top: 0px;
    margin-bottom: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.-item:hover {
    background: #990000;
    border-color: #FF9900;
    transform: translateX(2px);
}

.-item.active {
    background: #FF9900;
    border-color: #FC0085;
    box-shadow: 0 0 8px rgba(255, 153, 0, 0.6);
}

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

.-text {
    color: #F5F5DC;
    font-size: 11px;
    font-weight: 800;
    font-stretch: 90%;
    line-height: 1.1;
    text-align: center;
}

.-item.active .-text {
    color: #330000;
}

.menu-item {
    background: none;
    border: 1px solid transparent;
    border-color: #02060A;
    border-radius: 10px;
    padding: 6px 6px;
    margin: 10px 2px 4px 2px;
    width: 45px;
    height: 45px;
    font-size: 0.7rem;
    font-weight: 800;
    font-stretch: 90%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.menu-item:hover {
    background: #990000;
    border-color: #FF9900;
    transform: translateX(2px);
}

.menu-item.active {
    background: #FF9900;
    border-color: #FC0085;
    box-shadow: 0 0 8px rgba(255, 153, 0, 0.6);
}

.menu-icon {
    font-size: 30px;
    line-height: 1;
}

.menu-text {
    color: #B5301B;
    font-size: 11px;
    font-weight: 800;
    font-stretch: 90%;
    line-height: 1.1;
    text-align: center;
}

.menu-item.active .menu-text {
    color: #330000;
}

/*  Controls Enhancement */
.-controls {
    color: #8B4513;
    font-weight: 800;
    font-stretch: 90%;
	margin: 16px 0 10px 0;
    font-size: 0.8rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(253, 235, 207, 0.3);
    border-radius: 8px;
}

.new-dish-btn, .clear-all-btn {
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    min-width: 120px;
    height: auto;
}

/* Main Dishes vs Sides Distinction */
.main-dishes h4 {
    color: #FFFFCC;
    font-size: 0.9rem;
    
    font-weight: 800;
    font-stretch: 90%;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 204, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
}

.sides h4 {
    color: #FFFFCC;
    font-size: 0.9rem;
    font-weight: 800;
    font-stretch: 90%;    
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 204, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: 16px;
}

/* Main Dish Items */
.main-dish {
    background: #FDEBCF;
    border: 1px solid #8B4513;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.main-dish:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateX(1px);
}

.main-dish.complete {
    background: rgba(253, 235, 207, 0.7);
    border-color: #27ae60;
    box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.3);
}

/* Optional: Active page styling */

.-title {
    color: #FDEBCF;
    font-size: 0.75rem;
    font-weight: 800;
    font-stretch: 90%;
    font-style: italic;
    text-align: right;
    padding-top: 78px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/*=======================================

/*==============================================
   MODE TABS */

.mode-tabs {
    background: #FACD8A;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tab-container {
    max-width: 3800px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
}

.mode-tab {
    background: #FACD8A;
    color: #F5F5DC;
    border: none;
    padding: 6px 20px;
    font-size: 0.8rem;
    font-weight: 800;
    font-stretch: 90%;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 0px solid transparent;
}

.mode-tab:hover {
    background: #FACD8A;
    color: white;
    border-bottom-color: #C26100;
}

.mode-tab.active {
    background: #FF9900;
    color: white;
    border-bottom-color: #FC0085;
}

/*=============================================
   MODE SECTIONS */

.mode-section {
    display: none;
}

.mode-section.active {
    display: block;
}

.mode-section h2 {
    color: #F5F5DC;
    margin-bottom: 10px;
    margin-top: 4px;
    font-size: 1.0rem;
    text-align: center;
    font-style: italic;
    font-weight: 800;
    font-stretch: 90%;
    letter-spacing: 1px;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-item {
    background: #FDF5E8;
    border: 1px solid #8B4513;
    border-radius: 8px;
    padding: 6px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option-item:hover {
    background: #00cccc;
    border-color: #D2691E;
    transform: translateX(1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.option-item.selected {
	color: #993300;
    background: #FFFFCC;
    border-color: #FF8C00;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
}

.option-name {
    font-weight: 800;
    font-stretch: 90%;
    color: #FFFFCC;
    font-size: 0.8rem;
    line-height: 1.2;
}

.loading {
    color: #F5F5DC;
    text-align: center;
    padding: 12px;
    font-style: italic;
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Seasoning Container in Popup */
#seasoning-container {
    margin: 15px 25px;
}

#seasoning-container h4 {
    color: #9EDD1D;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* 3-in-1 Seasoning Button */
.seasoning-option {
    background: #8B4513;
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    margin: 5px 0;
    display: inline-block;
    font-weight: 700;
}

.seasoning-option:hover {
    background: #D2691E;
    transform: translateY(-1px);
}

.seasoning-option.selected {
    background: #6B8E23;
    border-color: #8FBC8F;
    box-shadow: 0 0 8px rgba(107, 142, 35, 0.5);
    color: white;
}

/* Enhanced Main Course vs Additional Items  */
.main-courses h4 {
    color: #FFFFCC;
    font-size: 0.9rem;
    font-weight: 800;
    font-stretch: 90%;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 1px solid rgba(255, 255, 204, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
}

.standalone-items h4 {
    color: #FFFFCC;
    font-size: 0.9rem;
    font-weight: 800;
    font-stretch: 90%;
    margin-bottom: 0px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 204, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: 16px;
}

/* Order Section */
.action-buttons-row {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 1px;
    flex-wrap: nowrap;
}

.action-btn {
    background: linear-gradient(45deg, #D2691E, #FF8C00);
    color: white;
    border: 1px solid #8B4513;
    padding: 6px 4px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.68rem;
    transition: all 0.3s ease;
    min-width: 95px;
    max-width: 110px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-btn:hover {
    background: linear-gradient(45deg, #49DF5C, #23792E);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.action-btn.active {
    background: linear-gradient(45deg, #FF9500, #E67E22);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 149, 0, 0.3);
    border-color: #E67E22;
}

.order-section {
    background: none;
    border-radius: 16px;
    padding: 6px;
    margin-top: 4px;
    border: 1px solid #8B4513;
    width: 100%;
    display: flex;
    justify-content: center;
}

.order-section h4 {
    margin-top: 4px;
    color: #FFFFCC;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 800;
    font-stretch: 90%;
    text-align: center;
    padding-bottom: 4px;
}

.order-note {
    color: #EDA17F;
    font-style: normal;
    padding: 0 0px 12px 0px;
    margin-top: 2px;
    font-size: 0.76rem;
    font-weight: 600;
    font-stretch: 90%;
    text-align: left;
    line-height: 1.2rem;
    justify-content: center;
    margin: 0 auto;
}


.form-field, .email-field {
    display: flex;
    flex-direction: column;
    border-radius: 16px; 
    padding-top: 0px;  
}

.form-field label, .email-field label {
    color: #FDEBCF;
    margin-bottom: 2px;
    font-weight: 700;
    font-stretch: 90%;
    font-size: 0.85rem;
    padding: 8px;
}

.shopping-list-btn {
	background: linear-gradient(45deg, #D2691E, #FF8C00);
    color: white;
    border: 1px solid #8B4513;
    padding: 4px 4px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-stretch: 90%;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.order-form {
    border-radius: 16px;
    border: 0px solid #993300; /* Added 'solid' */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin-bottom: 4px;
    max-width: 500px; /* Optional: constrain width */
    margin-left: auto;
    margin-right: auto; /* Centers the entire form if needed */
    padding: 0px;
    box-sizing: border-box;
}

.form-field, 
.email-field {
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the input inside the field */
}

.email-field input {
    width: 100%;
    max-width: 360px; /* Limits input width and helps centering */
    padding: 6px;
    border-radius: 16px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}


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

.demand-header  {
    color: #FFFFCC;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 700;
    padding-bottom: 10px;
}

.demand-subtitle {
    color: #FDF5E8;
    font-size: 0.75rem;
    margin: 0 0 4px 0;
    text-align: left;
    padding-bottom: 2px;
    padding-left: 14px;
    padding-right: 4px;
    line-height: 1.1rem;
}
#user-country {
    padding: 2px 3px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: .75rem;
    font-family: inherit;
    color: #000;
    background: white;
    width: auto;
    font-weight: 700;
}

.user-country.label {
	color: #fff;
    font-size: .75rem;
    margin: 0 0 0px 0;
    line-height: 1.2;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.location-input {
    display: flex;
    gap: 4px;
    margin-bottom: 2px;
    align-items: center;
    flex-direction: column !important;
    text-align: center;
    font-size: .75rem;
    color: #000;
}

.location-input label {
    font-size: .75rem;
    color: #D03D03;
    font-weight: 700;
    white-space: nowrap;
    
}

.location-input input {
    flex: 1;
    line-height: 1.2;
    padding: 2px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: .75rem;
    text-align: center;
    background: #fff;
    color: #000;
    font-weight: 700;
}

.detect-btn {
    background: #007bff;
    color: #D03D03;
    border: none;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.detect-btn:hover {
    background: #FFE200;
}

.demand-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    margin-left: 20px;
    cursor: pointer;
    font-size: 0.6rem;
    text-align: left;
    color: #fff;
}

.demand-checkbox input {
    margin-right: 10px; 
    
}
.diet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #000;
}

.diet-tag {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 3px 6px;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #000;
}

.diet-tag:hover {
    background: #d1ecf1;
    border-color: #bee5eb;
}

.diet-tag.selected {
    background: #28a745;
    border-color: #28a745;
}

.contact-info {
    margin-bottom: 1px;
    margin-top: 6px;
}

.contact-info input {
    width: 90%;
    padding: 6px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: .75rem;
    box-sizing: border-box;
}

.submit-demand-btn {
    width: 90%;
    background: #28a745;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 7px;
    transition: background-color 0.3s;
}

.submit-demand-btn:hover {
    background: #218838;
}

.demand-stats {
    text-align: center;
    padding: 4px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.stats-text {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

.demand-success {
    text-align: center;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.demand-success h4 {
    color: #28a745;
    margin: 0 0 10px 0;
}

.next-steps, .interim-suggestions {
    text-align: left;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.next-steps h5, .interim-suggestions h5 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.timeline {
    margin: 10px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.timeline-number {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 11px;
    font-weight: 700;
}

.timeline-text {
    flex: 1;
    color: #555;
}

.interim-suggestions ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.interim-suggestions li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

.create-another-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
}

.create-another-btn:hover {
    background: #545b62;
}

.partner-section {
    margin-top: 20px;
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}

.partner-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partner-info {
    display: flex;
    flex-direction: column;
}

.partner-distance {
    font-size: 12px;
    color: #666;
}

.partner-specialties {
    font-size: 11px;
    color: #28a745;
}

.order-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Order Summary Section */
.order-summary {
    background: rgba(253, 235, 207, 0.95);
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-summary h3 {
    color: #330000;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 6px;
    font-weight: 700;
    border-bottom: 1px solid #8B4513;
    padding-bottom: 2px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    color: #330000;
    font-size: 0.85rem;
}

.summary-line .price {
    font-weight: 700;
    color: #8B4513;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-top: 8px;
    border-top: 2px solid #8B4513;
    color: #330000;
    font-size: 1rem;
    font-weight: 700;
}

.summary-total .total-price {
    color: #D2691E;
    font-size: 1.0rem;
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Payment Section */
.payment-section {
    background: #ECECEC;
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.payment-section h3 {
    color: #FFFFCC;
    margin-bottom: 6px;
    font-size: 1.1rem;
    text-align: center;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 204, 0.3);
}

.payment-total {
    text-align: center;
    font-size: 1.3rem;
    color: #FF9900;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 153, 0, 0.1);
    border-radius: 6px;
}

/* Payment Method Selector */
.payment-method-selector {
    margin-bottom: 12px;
}

.payment-method-selector h4 {
    color: #FFFFCC;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.payment-method-option:hover {
    background: rgba(255, 153, 0, 0.1);
}

.payment-method-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.payment-method-label {
    color: #FFFFCC;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

/* Payment Forms */
.payment-forms {
    margin-bottom: 20px;
}

.payment-form {
    display: none;
}

.payment-form.active {
    display: block;
}

/* Billing Information */
.billing-info {
    margin-bottom: 20px;
}

.billing-info h4 {
    color: #FFFFCC;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.billing-grid input {
    background: #FDEBCF;
    border: 2px solid #8B4513;
    border-radius: 6px;
    padding: 8px;
    color: #2D1810;
    font-family: inherit;
    font-size: 0.85rem;
}

.billing-grid input:focus {
    outline: none;
    border-color: #FF9900;
    box-shadow: 0 0 3px rgba(255, 153, 0, 0.5);
}

/* Full width inputs */
.billing-grid input:first-child,
.billing-grid input:nth-child(2) {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .billing-grid {
        grid-template-columns: 1fr;
    }
    
    .billing-grid input:first-child,
    .billing-grid input:nth-child(2) {
        grid-column: auto;
    }
}

/* Card Information (Stripe) */
.card-info {
    margin-bottom: 20px;
}

.card-info h4 {
    color: #FFFFCC;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

#stripe-card-element {
    background: #FDEBCF;
    border: 2px solid #8B4513;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

#stripe-card-element.StripeElement--focus {
    border-color: #FF9900;
    box-shadow: 0 0 3px rgba(255, 153, 0, 0.5);
}

#stripe-card-errors {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 8px;
    min-height: 20px;
}

/* PayPal Container */
#paypal-button-container {
    margin: 20px 0;
    min-height: 50px;
}

.paypal-alternative {
    text-align: center;
    margin-top: 10px;
}

.paypal-alternative p {
    color: #FFFFCC;
    font-size: 0.8rem;
    font-style: italic;
}

.paypal-error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
}

/* Payment Submit Button */
.payment-submit-btn {
    background: linear-gradient(45deg, #D2691E, #F1AB11);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.payment-submit-btn:hover {
    background: linear-gradient(45deg, c);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.payment-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Security */
.payment-security {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 204, 0.3);
}

.payment-security p {
    color: #FFFFCC;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Payment Success */
.payment-success {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.payment-success h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.payment-success p {
    color: #FFFFCC;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.next-steps {
    margin-top: 25px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.next-steps h4 {
    color: #FFFFCC;
    margin-bottom: 10px;
    font-size: 1rem;
}

.next-steps ul {
    color: #FFFFCC;
    font-size: 0.85rem;
    line-height: 1.5;
}

.next-steps li {
    margin-bottom: 5px;
}

/* Enhanced Order Section */
.order-section .submit-btn {
    background: linear-gradient(45deg, #D2691E, #F1AB11);
    color: white;
    border: 2px solid #8B4513;
    padding: 8px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 80%;
    margin-top: 8px;
}

.payment-body{
    background: #3C3F49;
    border: 2px solid #8B4513;
    padding: 0px 0px;
    border-radius: 8px;
    max-width: 600px;
    margin-top: 20px;
}


.order-section .submit-btn:hover {
    background: linear-gradient(45deg, #49DF5C, #23792E);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Payment Toggle Options */
.payment-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.payment-toggle button {
    background: #8B4513;
    color: white;
    border: 2px solid #8B4513;
    padding: 8px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.payment-toggle button:hover {
    background: #D2691E;
    border-color: #D2691E;
}

.payment-toggle button.active {
    background: #FF9900;
    border-color: #FF9900;
    color: #330000;
    font-weight: 700;
}

/* Loading States */
.payment-loading {
    text-align: center;
    padding: 20px;
    color: #FFFFCC;
}

.payment-loading::after {
    content: "...";
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: "..."; }
    40% { content: "...."; }
    60% { content: "....."; }
    80%, 100% { content: "......"; }
}


.popup-requests {
    background: #FDEBCF;
    border-color: #FF9900;
    color: #330000;
    padding: 5px;
}

.availability {
    font-size: 0.75rem;
    font-weight: normal;
}

.availability.available {
    color: #27ae60;
}

.availability.notavailable {
    color: #e74c3c;
}

/* Date/Time Selection */
.datetime-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.datetime-field label {
    color: #fff;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.datetime-field input {
    background: #FDEBCF;
    border: 2px solid #8B4513;
    border-radius: 6px;
    padding: 8px;
    color: #2D1810;
    font-family: inherit;
    font-size: 0.85rem;
}

.datetime-field input:focus {
    outline: none;
    border-color: #FF9900;
    box-shadow: 0 0 3px rgba(255, 153, 0, 0.5);
}

/* Address Field (for delivery) */
.address-field {
    display: none; /* Hidden by default */
    flex-direction: column;
    margin-bottom: 12px;
}

.address-field label {
    color: #fff;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.address-field input {
    background: #FDEBCF;
    border: 2px solid #8B4513;
    border-radius: 6px;
    padding: 8px;
    color: #2D1810;
    font-family: inherit;
    font-size: 0.85rem;
}

.address-field input:focus {
    outline: none;
    border-color: #FF9900;
    box-shadow: 0 0 3px rgba(255, 153, 0, 0.5);
}

/* Order Confirmation Message */
.order-confirmation-msg {
    color: white;
    font-style: italic;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 15px;
    opacity: 0.9;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Enhanced No Items Message */
.no-items {
    color: #FFFFCC;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: center;
    letter-spacing: 1px;
    padding: 15px;
    border: 1px dashed rgba(255, 255, 204, 0.3);
    border-radius: 8px;
}

/* Enhanced Popup Styling */
#prep-methods-container h4 {
    color: #9EDD1D;
    margin-bottom: 6px;
    font-size: 0.75rem;
    margin-left: 12px;
}

#seasoning-container h4 {
    color: #9EDD1D;
    margin-bottom: 8px;
    font-size: 1rem;
    margin-left: 25px;
}

/* Prep methods container styling to match seasonings */
#prep-methods-container {
    margin: 20px 0;
}

.prep-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 25px 15px 25px;
}

/* Seasoning options positioning */
#seasoning-container {
    margin: 15px 0;
}

#seasoning-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 25px 10px 25px;
}

/* Enhanced Order Summary - Hide delivery when not applicable */
.summary-line.delivery-hidden {
    display: none;


.payment-subtitle {
	background: #660000;
	color: #FFFFCC;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 4px;
    text-align: center;
    margin-top: 4px;
    letter-spacing: 0.3px;
    padding: 4px;
}

.order-summary-header {
	background: #120000;
	color: #FFFFCC;
    font-size: 1.1rem;
    font-style: normal;
    margin-bottom: 4px;
    text-align: center;
    margin-top: 4px;
    letter-spacing: 0.3px;
    padding: 4px;
}


#payment-order-items {
	background: #120000;
	color: #FFFFCC;
    font-size: 1.0rem;
    font-style: normal;
    margin-bottom: 8px;
    text-align: left;
    margin-top: 4px;
    letter-spacing: 0.3px;
    padding-left: 12px;
}

.order-totals {
	background: #120000;
	color: #FFFFCC;
    font-size: 1.0rem;
    font-style: normal;
    margin-bottom: 12px;
    text-align: right;
    margin-top: 8px;
    letter-spacing: 0.3px;
    padding-right: 36px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .order-type-buttons {
        gap: 4px;
    }
    
    .order-type-btn {
        padding: 4px 4px;
        font-size: 0.75rem;
    }
    
    .datetime-field input,
    .address-field input {
        font-size: 0.8rem;
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .order-type-btn {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .availability {
        align-self: flex-end;
    }
    
    .no-items {
        font-size: 0.8rem;
        padding: 4px;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .payment-section {
        padding: 4px;
    }
    
    .payment-total {
        font-size: 0.9rem;
    }
    
    .billing-grid {
        gap: 4px;
    }
    
    .payment-method-option {
        padding: 4px 4px;
    }
    
    .payment-submit-btn {
        font-size: 0.9rem;
        padding: 4px 4px;
    }
}

/* Payment Gateway Popup - Centered */
#payment-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

#payment-overlay.show {
    display: flex;
}

.payment-popup {
   	background: #120000;
   	width: 70%;
    max-width: 450px;
    padding-left: 20px;
	padding-right: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #FDEBCF;
    max-height: 100vh;
    overflow-y: auto;
}

.payment-header {
    background: #390101;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    text-align: center;
}

.payment-header h2 {
    margin: 0;
    font-size: 1.4em;
    color: #10D19E;
}

.payment-body {
    padding: 20px;
}


/* =============================================
   ORDER TYPE/PAYMENT METHOD BUTTONS  HORIZL */
   
.order-type-section {
    color: #fff;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    max-width: 95%;
}
.order-type-title {
	color: #FFFFCC;
    margin-top: 8px;
    font-size: 1.0rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 8px;
}
.order-type-btn {
	flex: 1; 
    min-width: 100px;
    max-width: 150px; 
    background: #CC3333;
    color: white;
    border: 2px solid #8B4513;
    padding: 2px 2px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    align-items: center;
    max-width: 31%;
    display: horizontal;
    justify-content: space-between;
}

.order-type-btn.hover {
    background: #D2691E;
    border-color: #D2691E;
    transform: translateY(-1px);
}

.order-type-btn.active {
    background: #99ffcc;
    border-color: #FF9900;
    color: #330000;
    box-shadow: 0 0 8px rgba(255, 153, 0, 0.6);
}

.order-type-btn:disabled {
    background: #666;
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.order-type-btn:disabled:hover {
    transform: none;
    background: #666;
}

.payment-method-grid {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
    justify-content: space-between; 
}

.payment-method-card {
    flex: 1;
    min-width: 90px;
    text-align: center;
    padding: 10px 5px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    background: #2d2d2d;
    color: white;
    font-size: 0.9em;
}

.payment-method-card.active {
    border-color: #00d66f;
    background: #001a0e;
    color: #00d66f;
}

/* =============================================
   FORM FIELDS & STYLING */

.form-field {
    margin: 15px 0;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #00d66f;
    font-size: 1.1em;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #2d2d2d;
    color: white;
    font-size: 1em;
}

.form-field textarea {
    background-color: #FDEBCF !important; /* ✅ Special Requests background */
    min-height: 60px;
}

/*=============================================
   ORDER SUMMARY & TOTALS */
 .order-summary-header,
.payment-method-title,
.order-type-title {
    color: #00d66f;
    font-size: 1.2em;
    margin: 15px 0 10px 0;
    font-weight: 700;
}
  
.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #333;
}

.order-totals .total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-weight: 500;
}

.order-totals .total-grand {
    font-weight: 700;
    color: #ffcc00;
    font-size: 1.1em;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #333;
}

.terms-text {
    line-height: 1.5;
    font-size: 14px;
    color: #ffffff;
}

.terms-link {
    color: #ADAEF0;
    text-decoration: underline;
}

.terms-link:hover {
    color: #09F732;
}

/* CHEF-I-CHOICES STYLES */

.chef-choices-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 15px 0;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
}

.chef-choices-container {
    padding: 20px;
}

.chef-recommendations {
    display: grid;
    gap: 10px;
    margin: 10px 0 20px;
}

.chef-rec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.chef-rec-item:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.compatibility-badge {
    font-size: 0.9em;
    color: #667eea;
}

.back-to-item {
    background: #6c757d;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Chef Choices Styling */
.chef-choices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.chef-choice-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
}

.chef-choice-card:hover {
    border-color: #FF9900;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.15);
}

.chef-choice-card.selected {
    border-color: #FF9900;
    background: #fff8e7;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.chef-choice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chef-choice-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
    text-transform: capitalize;
}

.chef-choice-price {
    color: #FF9900;
    font-weight: 700;
    font-size: 0.9em;
}

.chef-choice-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 8px;
    border-left: 3px solid #FF9900;
    padding-left: 10px;
}

.chef-choice-benefits {
    color: #28a745;
    font-size: 0.85em;
    font-style: italic;
    font-weight: 500;
}

.selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 700;
}

/* =============================================================================
   DISH ANALYSIS AND COMBINATION WARNINGS
   ============================================================================= */

.combination-warning {
    margin-top: 4px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 700;
    display: none; /* Hidden by default, shown when needed */
}

.combination-warning.visible {
    display: block;
}

.combination-warning.hidden {
    display: none;
}

/* Force dark red colors for warning text */
.meal-display .combination-warning 
.meal-display .combination-warning span {
    color: #8B4513 !important;
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.meal-display span {
    color: #8B0000 !important;
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
}


.harmony-score {
    font-weight: 700;
    font-size: 0.9rem;
}

.harmony-message {
    line-height: 1.3;
}

.details-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 4px;
}

.details-btn:hover {
    background: #5a6268;
}

/* Fusion achievement popup */
.fusion-achievement {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fusionPop 0.5s ease-out;
}

.fusion-achievement .fusion-icon {
    font-size: 3rem;
    margin: 10px 0;
}

.fusion-achievement h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.fusion-achievement h3 {
    margin: 5px 0;
    font-size: 1.2rem;
}

.fusion-achievement.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.5s ease-out;
}

@keyframes fusionPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* ===========================
   MOBILE-FIRST RESPONSIVE LAYOUT
   =========================== */
/* ===========================
   MINIMAL RESPONSIVE ENHANCEMENTS
   =========================== */

/* Mobile: Slightly smaller text & tighter spacing */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .-item {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }

    .-icon {
        font-size: 20px;
    }

    .-text {
        font-size: 0.65rem;
    }

    .container {
        padding: 0 12px;
    }
}

/* Extra Small (iPhone SE) */
@media (max-width: 480px) {
    .-item {
        width: 55px;
        height: 55px;
    }
}


/* ===========================
   FOOTER FIX - Add this to your styles.css
   =========================== */

/* First, ensure any existing footer styles are overridden */
footer, .footer {
    all: unset !important; /* Reset all inherited styles */
}

/* Apply clean footer styles */
footer.footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    background: #110000 !important;
    color: #F5F5DC !important;
    border-top: 1px solid #333 !important;
    z-index: 5999 !important;
    display: block !important;
    text-align: center !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    font-family: 'Nunito Sans', Arial, sans-serif !important;
    line-height: 1.2 !important;
}

/* Footer links container */
footer.footer > div:first-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 4px 0 !important;
}

/* Footer links styling */
footer.footer a {
    color: #F5F5DC !important;
    text-decoration: none !important;
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    transition: color 0.2s ease !important;
}

footer.footer a:hover {
    color: #FF9900 !important;
    background: rgba(255, 153, 0, 0.1) !important;
}

/* Footer contact info */
footer.footer .footer-contact {
    color: #F5F5DC !important;
    font-size: 0.55rem !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    opacity: 0.8 !important;
    line-height: 1.1 !important;
}

/* Ensure body has space for footer */
body {
    margin-bottom: 0 !important;
    padding-bottom: 60px !important;
}

/* Ensure main container has space for footer */
.container {
    margin-bottom: 120px !important;
    padding-bottom: 20px !important;
}

/* Override any popup or overlay z-index issues */
	#popup-overlay,
	.checkout-overlay, 
	.payment-overlay {
    z-index: 1000 !important;
}

/* Make sure footer appears above page content but below popups */
	footer.footer {
    z-index: 500 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    footer.footer {
        padding: 2px 2px !important;
    }
    
    footer.footer > div:first-child {
        gap: 8px !important;
    }
    
    footer.footer a {
        font-size: 0.6rem !important;
    }
    
    footer.footer .footer-contact {
        font-size: 0.5rem !important;
    }
    
    body {
        padding-bottom: 30px !important;
    }
    
    .container {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    footer.footer {
        padding: 2px 2px !important;
    }
    
    footer.footer > div:first-child {
        gap: 6px !important;
        line-height: 1.0 !important;
    }
    
    footer.footer a {
        font-size: 0.55rem !important;
        padding: 1px 2px !important;
    }
    
    body {
        padding-bottom: 45px !important;
    }
    
    .container {
        margin-bottom: 45px !important;
    }
}



/* Media queries for responsive footer */
@media (max-width: 768px) {
    .footer {
        font-size: 0.6rem !important;
        padding: 2px 0 !important;
    }
    
    .footer a {
        font-size: 0.6rem !important;
    }
    
    .footer-contact {
        font-size: 0.5rem !important;
    }
    
    body {
        padding-bottom: 30px !important;
    }
    
    .container {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    .footer > div:first-child {
        gap: 4px !important;
    }
    
    .footer {
        padding: 2px 0 !important;
    }
    
    body {
        padding-bottom: 30px !important;
    }
    
    .container {
        margin-bottom: 30px !important;
    }
}

/* STEP 1: Nuclear reset - remove ALL existing footer styles */
footer, .footer, footer *, .footer * {
    all: revert !important;
}

/* STEP 2: Apply clean styles with maximum specificity */
body > footer.footer {
    /* Positioning */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 9999 !important;
    
    /* Appearance */
    background-color: #110000 !important;
    background-image: none !important;
    color: #F5F5DC !important;
    border-top: 1px solid #333 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    
    /* Layout */
    display: block !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0px 0px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    
    /* Typography */
    font-family: 'Trebuchet MS', Arial, sans-serif !important;
    font-size: 0.65rem !important;
    line-height: 1.0 !important;
    font-weight: normal !important;
    font-style: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
}

/* Links container - the first div */
body > footer.footer > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0px 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
}

/* All footer links */
body > footer.footer a {
    color: #F5F5DC !important;
    background: transparent !important;
    text-decoration: none !important;
    font-size: 0.65rem !important;
    font-weight: normal !important;
    font-style: normal !important;
    white-space: nowrap !important;
    padding: 0px 4px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 3px !important;
    display: inline-block !important;
    line-height: 1.0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
}

body > footer.footer a:hover,
body > footer.footer a:focus {
    color: #FF9900 !important;
    background: rgba(255, 153, 0, 0.1) !important;
    text-decoration: none !important;
}

/* Footer contact info */
body > footer.footer .footer-contact {
    color: #F5F5DC !important;
    background: transparent !important;
    font-size: 0.55rem !important;
    font-weight: normal !important;
    font-style: normal !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    opacity: 0.8 !important;
    line-height: 1.0 !important;
    text-align: center !important;
    display: block !important;
    border: none !important;
    text-decoration: none !important;
    text-transform: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body > footer.footer {
        padding: 4px 8px !important;
        font-size: 0.6rem !important;
    }
    
    body > footer.footer > div:first-child {
        gap: 8px !important;
    }
    
    body > footer.footer a {
        font-size: 0.6rem !important;
    }
    
    body > footer.footer .footer-contact {
        font-size: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    body > footer.footer {
        padding: 3px 6px !important;
    }
    
    body > footer.footer > div:first-child {
        gap: 6px !important;
    }
    
    body > footer.footer a {
        font-size: 0.55rem !important;
        padding: 1px 2px !important;
    }
}

.footer, footer {
    background: red !important;
    color: white !important;
    font-size: 2rem !important;
}


