/* ============================================================
   SSS Meal Ordering System — Frontend Styles1
   ============================================================ */

.sss-order-form {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 760px;
    margin: 0 auto;
    color: #222;
    background: #f2f2f2;
    padding-bottom: 32px;
}

/* ── BANNER ─────────────────────────────────────────────────── */
.sss-form-banner {
    background: #cc0000;
    text-align: center;
    padding: 18px 20px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 4px;
}
.sss-form-banner h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.sss-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 12px;
}

/* ── FIELD LAYOUT ───────────────────────────────────────────── */
.sss-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 560px) {
    .sss-field-row { grid-template-columns: 1fr; }
}

.sss-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.sss-field:last-child { margin-bottom: 0; }

.sss-field label,
.sss-sides-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #444;
}
.sss-req { color: #cc0000; }

.sss-input,
.sss-order-form input[type=text],
.sss-order-form input[type=email],
.sss-order-form input[type=tel],
.sss-order-form input[type=number],
.sss-order-form select,
.sss-order-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #222;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.sss-order-form input:focus,
.sss-order-form select:focus,
.sss-order-form textarea:focus {
    outline: none;
    border-color: #80c842;
    box-shadow: 0 0 0 3px rgba(128,200,66,.15);
}
.sss-textarea { resize: vertical; min-height: 80px; }
.sss-input.sss-invalid { border-color: #cc0000; box-shadow: 0 0 0 3px rgba(204,0,0,.1); }

/* ── EMAIL WRAP ─────────────────────────────────────────────── */
.sss-email-wrap { display: flex; align-items: center; gap: 10px; }
.sss-email-wrap .sss-input { flex: 1; }
.sss-email-hint { font-size: 11px; color: #888; margin: 3px 0 0; }
.sss-customer-badge {
    font-size: 11px; font-weight: 700; padding: 4px 10px;
    border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.sss-badge-new       { background: #e8f5e9; color: #2e7d32; }
.sss-badge-returning { background: #e3f2fd; color: #1565c0; }
.sss-badge-checking  { background: #fff8e1; color: #856404; }

/* ── DAY SECTION ────────────────────────────────────────────── */
.sss-day-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.sss-day-banner {
    background: #ffdd00;
    padding: 14px 20px;
    border-bottom: 1px solid #e6c800;
}
.sss-day-banner h3 {
    margin: 0 0 3px;
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: #222;
}
.sss-day-notice {
    margin: 0;
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* ── MEALS GRID ─────────────────────────────────────────────── */
.sss-meals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 20px;
}
@media (max-width: 500px) {
    .sss-meals-grid { grid-template-columns: 1fr; }
}

.sss-meal-card {
    background: #80c842;
    border-radius: 7px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: box-shadow .15s;
}
.sss-meal-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.15); }

.sss-meal-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.3;
}
.sss-meal-meta {
    font-size: 11px;
    color: rgba(255,255,255,.8);
}
.sss-qty-select {
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: #222;
    cursor: pointer;
}
.sss-meal-subtotal {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

/* ── SIDES TOGGLE ───────────────────────────────────────────── */
.sss-sides-toggle-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}
.sss-sides-radio-group { display: flex; gap: 14px; }
.sss-radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
}
.sss-radio-label input { cursor: pointer; accent-color: #80c842; width: 15px; height: 15px; }

/* ── SIDES PANEL ────────────────────────────────────────────── */
.sss-sides-panel {
    padding: 16px 20px;
    background: #fffbea;
    border-top: 2px solid #ffe066;
    animation: sss-fade-in .2s ease;
}
@keyframes sss-fade-in {
    from { opacity:0; transform: translateY(-6px); }
    to   { opacity:1; transform: translateY(0); }
}

.sss-sides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.sss-side-card {
    background: #fff;
    border: 1px solid #e0d87a;
    border-radius: 7px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .15s, box-shadow .15s;
}

/* Full-width for text and textarea fields */
.sss-side-card[data-field-type="text"],
.sss-side-card[data-field-type="textarea"] {
    grid-column: 1 / -1;
}

.sss-side-card:hover { border-color: #80c842; box-shadow: 0 2px 8px rgba(128,200,66,.2); }
.sss-side-card.sss-side-selected { border-color: #80c842; background: #f0fae3; }

.sss-side-name  { font-size: 12px; font-weight: 700; color: #333; line-height: 1.3; }
.sss-side-desc  { font-size: 11px; color: #888; }
.sss-side-price { font-size: 12px; font-weight: 700; color: #80c842; }

.sss-side-qty-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.sss-qty-btn {
    width: 26px; 
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: background .1s !important;
    line-height: 1 !important;
    padding: 10px 20px 10px 20px !important;
}
.sss-qty-btn:hover { background: #80c842; color: #fff; border-color: #80c842; }
.sss-side-qty-input {
    width: 40px !important;
    text-align: center;
    padding: 4px !important;
    font-size: 13px !important;
    font-weight: 700;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
}

/* ── COMBO SECTION ──────────────────────────────────────────── */
.sss-combo-section {
    padding: 16px 20px;
    background: #fff8dc;
    border-top: 2px solid #ffdd00;
}
.sss-combo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.sss-combo-title {
    font-size: 14px;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: #cc5500;
    flex: 1;
}
.sss-combo-price-badge {
    background: #ffdd00;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── COMBO IMAGE ────────────────────────────────────────────── */
.sss-combo-image-wrap {
    margin: 10px 0 12px 0;
    border-radius: 6px;
    overflow: hidden;
    max-height: 300px;
}
.sss-combo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.sss-combo-note {
    font-size: 12px;
    color: #777;
    margin: 0 0 6px;
    font-style: italic;
}
.sss-combo-instruction {
    font-size: 12px;
    color: #555;
    font-weight: 600;
    margin: 0 0 8px;
}
.sss-combo-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sss-combo-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all .15s;
}
.sss-combo-check-label:hover { background: #fff3cd; border-color: #ffe066; }
.sss-combo-check-label:has(input:checked) { background: #fffacc; border-color: #ffd700; }
.sss-combo-checkbox { accent-color: #cc5500; width: 16px; height: 16px; cursor: pointer; }
.sss-combo-check-name { flex: 1; }

/* ── COMBO ERROR MESSAGE ────────────────────────────────────────── */
.sss-combo-error {
    color: #d32f2f;
    font-weight: 600;
    margin-top: 8px;
    font-size: 13px;
    background: #ffebee;
    padding: 8px 10px;
    border-left: 3px solid #d32f2f;
    border-radius: 3px;
    display: none;
}

/* ── COMBO QUANTITY SECTION ────────────────────────────────────── */
.sss-combo-quantity-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}
.sss-combo-quantity-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* 🆕 Combo Quantity Input with +/- Buttons */
.sss-combo-qty-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 180px;
}
.sss-combo-qty-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: #80c842;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sss-combo-qty-btn:hover {
    background: #6db333;
    transform: scale(1.05);
}
.sss-combo-qty-btn:active {
    transform: scale(0.95);
}
.sss-combo-quantity {
    flex: 1;
    width: 100% !important;
    max-width: none !important;
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    text-align: center;
    box-sizing: border-box !important;
    font-weight: 600;
}
.sss-combo-quantity:focus {
    outline: none;
    border-color: #80c842 !important;
    box-shadow: 0 0 0 3px rgba(128,200,66,.15) !important;
}

/* ── PRICE SUMMARY ──────────────────────────────────────────── */
.sss-summary-section {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    color: #fff;
}
.sss-summary-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #aaa;
    margin-bottom: 12px;
}
.sss-summary-lines { margin-bottom: 12px; }
.sss-summary-empty { font-size: 13px; color: #666; margin: 0; }
.sss-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    font-size: 13px;
    color: #ccc;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sss-summary-line:last-child { border-bottom: none; }
.sss-summary-line-label { flex: 1; }
.sss-summary-line-amount { font-weight: 600; color: #fff; min-width: 60px; text-align: right; }
.sss-summary-line.sss-line-sub {
    padding-left: 14px;
    font-size: 12px;
    color: #888;
}
.sss-summary-line.sss-line-item-detail {
    padding-left: 30px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 12px;
    color: #777;
    border-bottom: none;
}
.sss-summary-line.sss-line-sub:has(+ .sss-line-item-detail) {
    border-bottom: none;
}
.sss-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 12px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.sss-total-amount {
    font-size: 30px;
    font-weight: 900;
    color: #ffdd00;
    line-height: 1;
}
.sss-customer-pricing-note {
    font-size: 11px;
    color: #777;
    margin: 8px 0 0;
}

/* ── PAYMENT SECTION ────────────────────────────────────────── */
.sss-payment-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
}
.sss-payment-header {
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: #cc0000;
    margin-bottom: 4px;
}
.sss-payment-note { font-size: 12px; color: #888; margin-bottom: 16px; }

.sss-tip-wrap { display: flex; align-items: center; gap: 6px; }
.sss-currency { font-size: 16px; color: #555; font-weight: 600; }
.sss-tip-wrap .sss-input { flex: 1; }

/* ── SUBMIT BUTTON ──────────────────────────────────────────── */
.sss-submit-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: #1a7a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 16px;
    transition: background .2s, transform .1s;
}
.sss-submit-btn:hover    { background: #145a14; }
.sss-submit-btn:active   { transform: scale(.98); }
.sss-submit-btn:disabled { background: #999; cursor: not-allowed; transform: none; }

/* ── FEEDBACK MESSAGES ──────────────────────────────────────── */
.sss-submit-feedback { margin-top: 12px; font-size: 14px; border-radius: 6px; }
.sss-msg-success {
    background: #e8f5e9; color: #2e7d32;
    border: 1px solid #a5d6a7; padding: 12px 16px;
    border-radius: 6px; font-weight: 600;
}
.sss-msg-error {
    background: #ffebee; color: #c62828;
    border: 1px solid #ef9a9a; padding: 12px 16px;
    border-radius: 6px; font-weight: 600;
}
.sss-msg-loading {
    background: #fff8e1; color: #856404;
    border: 1px solid #ffe083; padding: 12px 16px;
    border-radius: 6px;
}

/* ── CATEGORY HEADERS ───────────────────────────────────── */
.sss-sides-category-group {
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.sss-sides-category-header {
    background: #f5f5f5;
    border-bottom: 2px solid #80c842;
    padding: 12px 16px;
    margin: 0;
}

.sss-sides-category-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 0.5px;
}

/* ── NEW FIELD TYPES: CHECKBOX ──────────────────────────────── */
.sss-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all .15s;
    margin-top: 4px;
}
.sss-checkbox-label:hover {
    background: #f0fae3;
    border-color: #80c842;
}
.sss-checkbox-label input[type=checkbox] {
    cursor: pointer;
    accent-color: #80c842;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* ── NEW FIELD TYPES: RADIO ─────────────────────────────────── */
.sss-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all .15s;
    margin-top: 4px;
}
.sss-radio-label:hover {
    background: #f0fae3;
    border-color: #80c842;
}
.sss-radio-label input[type=radio] {
    cursor: pointer;
    accent-color: #80c842;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* ── NEW FIELD TYPES: TEXT INPUT ────────────────────────────── */
.sss-field-text {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    margin-top: 4px !important;
}
.sss-field-text:focus {
    outline: none;
    border-color: #80c842 !important;
    box-shadow: 0 0 0 3px rgba(128,200,66,.15) !important;
}

/* ── NEW FIELD TYPES: NUMBER INPUT ──────────────────────────── */
.sss-field-number {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    margin-top: 4px !important;
}
.sss-field-number:focus {
    outline: none;
    border-color: #80c842 !important;
    box-shadow: 0 0 0 3px rgba(128,200,66,.15) !important;
}

/* ── NEW FIELD TYPES: TEXTAREA ──────────────────────────────── */
.sss-field-textarea {
    width: 100% !important;
    min-height: 80px !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    background: #fff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    resize: vertical !important;
    margin-top: 4px !important;
}
.sss-field-textarea:focus {
    outline: none;
    border-color: #80c842 !important;
    box-shadow: 0 0 0 3px rgba(128,200,66,.15) !important;
}
.sss-field-textarea::placeholder {
    color: #999;
}

/* ── NEW FIELD TYPES: DROPDOWN ──────────────────────────────── */
.sss-field-dropdown {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    background: #fff !important;
    color: #333 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin-top: 4px !important;
}
.sss-field-dropdown:focus {
    outline: none;
    border-color: #80c842 !important;
    box-shadow: 0 0 0 3px rgba(128,200,66,.15) !important;
}
.sss-field-dropdown option {
    padding: 6px;
    color: #333;
}

/* ── NEW FIELD TYPES: MULTI-SELECT GROUP ───────────────────── */
.sss-multi-select-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.sss-multi-select-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all .15s;
}
.sss-multi-select-label:hover {
    background: #f0fae3;
    border-color: #80c842;
}
.sss-multi-select-label input[type=checkbox] {
    cursor: pointer;
    accent-color: #80c842;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}
.sss-multi-select-label span {
    flex: 1;
    line-height: 1.4;
}

/* ── NEW FIELD TYPES: DATE PICKER ───────────────────────────── */
.sss-field-date-picker {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    background: #fff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    margin-top: 4px !important;
}
.sss-field-date-picker:focus {
    outline: none;
    border-color: #80c842 !important;
    box-shadow: 0 0 0 3px rgba(128,200,66,.15) !important;
}
/* Date input styling for different browsers */
.sss-field-date-picker::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
    margin-right: 2px;
    opacity: 0.6;
    filter: invert(0.8);
}
.sss-field-date-picker::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   🆕 COMBO SECTION - UPDATED STYLES (NEW PHOTO CAROUSEL & +/- BUTTONS)
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   COMBO SECTION - CONTAINER
   ───────────────────────────────────────────────────────────────────────── */

.sss-combo-section {
    background: #f5f5f5;
    border: 2px solid #80c842;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    transition: all 0.2s ease;
}

.sss-combo-section:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ─────────────────────────────────────────────────────────────────────────
   COMBO HEADER
   ───────────────────────────────────────────────────────────────────────── */

.sss-combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sss-combo-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.sss-combo-price-badge {
    background: #80c842;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────────────────
   COMBO PHOTOS CAROUSEL (NEW)
   ───────────────────────────────────────────────────────────────────────── */

.sss-combo-photos-carousel {
    position: relative;
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
    max-height: 250px;
}

.sss-combo-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: none;
    border-radius: 6px;
}

.sss-combo-photo.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Photo Navigation Dots */
.sss-combo-photo-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.sss-photo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sss-photo-dot.active {
    background: white;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.sss-photo-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* ─────────────────────────────────────────────────────────────────────────
   COMBO NOTE
   ───────────────────────────────────────────────────────────────────────── */

.sss-combo-note {
    font-size: 12px;
    color: #666;
    margin: 8px 0;
    font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────────
   COMBO INSTRUCTION
   ───────────────────────────────────────────────────────────────────────── */

.sss-combo-instruction {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 12px 0 8px 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   COMBO ITEMS WITH +/- BUTTONS (NEW)
   ───────────────────────────────────────────────────────────────────────── */

.sss-combo-items-flex {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.sss-combo-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sss-combo-item-row:hover {
    background: #fafafa;
    border-color: #80c842;
}

.sss-combo-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.sss-combo-item-qty-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* +/- Buttons for Combo Items */
.sss-combo-item-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #80c842;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sss-combo-item-btn:hover {
    background: #6db333;
    transform: scale(1.05);
}

.sss-combo-item-btn:active {
    transform: scale(0.95);
}

.sss-combo-item-qty {
    width: 40px;
    height: 32px;
    padding: 0;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #333;
}

/* ─────────────────────────────────────────────────────────────────────────
   COMBO ITEMS COUNTER (NEW)
   ───────────────────────────────────────────────────────────────────────── */

.sss-combo-item-counter {
    text-align: center;
    padding: 10px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 12px;
}

.sss-combo-items-selected {
    font-size: 18px;
    font-weight: 700;
}

.sss-combo-items-total {
    color: #666;
}

/* Show error state if incomplete */
.sss-combo-item-counter.incomplete {
    background: #fff3e0;
    border-color: #ffb74d;
    color: #e65100;
}

.sss-combo-item-counter.complete {
    background: #c8e6c9;
    border-color: #81c784;
    color: #1b5e20;
}

/* Brief flash when customer tries to exceed the max picks limit */
.sss-combo-item-counter.sss-limit-flash {
    background: #ffcdd2;
    border-color: #e57373;
    color: #b71c1c;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* ─────────────────────────────────────────────────────────────────────────
   COMBO QUANTITY SECTION (for multiple combos)
   ───────────────────────────────────────────────────────────────────────── */

.sss-combo-quantity-section {
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 12px;
}

.sss-combo-quantity-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.sss-combo-qty-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* +/- Buttons for Combo Quantity */
.sss-combo-qty-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    background: #80c842;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sss-combo-qty-btn:hover {
    background: #6db333;
    transform: scale(1.05);
}

.sss-combo-qty-btn:active {
    transform: scale(0.95);
}

.sss-combo-quantity {
    width: 50px;
    height: 36px;
    padding: 0;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    color: #333;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .sss-combo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sss-combo-photos-carousel {
        max-height: 200px;
    }
    
    .sss-combo-photo {
        height: 200px;
    }
    
    .sss-combo-item-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sss-combo-item-qty-controls {
        justify-content: flex-start;
        margin-top: 8px;
    }
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   AUTO-PAIRING COMBO LOGIC — every N items = one 2-Way Combo
   ═══════════════════════════════════════════════════════════ */

/* "= 2 combos" indicator inside the items counter */
.sss-combo-pairs-count {
    font-weight: 700;
    color: #1b5e20;
    margin-left: 6px;
}

/* Pairs preview: (Pasta Salad + Side Salad) (Side Salad + Sandwich) */
.sss-combo-pairs-preview {
    margin: 10px 0 4px;
    padding: 10px 12px;
    background: #f0f8f5;
    border-left: 3px solid #80c842;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.9;
}

.sss-combo-pair {
    display: inline-block;
    background: #fff;
    border: 1px solid #c8e6c9;
    color: #1b5e20;
    border-radius: 14px;
    padding: 3px 10px;
    margin: 2px 6px 2px 0;
    font-weight: 600;
    white-space: nowrap;
}

/* Incomplete pair (odd item waiting for its partner) */
.sss-combo-pair-partial {
    border-style: dashed;
    border-color: #ffc107;
    color: #856404;
    background: #fffdf0;
}

/* Read-only auto-calculated combo quantity */
.sss-combo-quantity[readonly] {
    background: #f5f5f5;
    text-align: center;
    font-weight: 700;
    cursor: default;
}

/* Original price struck through next to the discounted price */
.sss-orig-price {
    color: #8a8fa3;
    font-size: 0.85em;
    margin-right: 4px;
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   DAY TAG — shows when an item's delivery day differs from
   its section (e.g. "SATURDAY DELIVERY" inside FRIDAY DELIVERY)
   ═══════════════════════════════════════════════════════════ */

/* Meal card tag chip */
.sss-meal-day-tag {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe08a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 11px;
    margin: 4px 0 6px;
    letter-spacing: 0.3px;
}

.sss-day-tag-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f0a500;
    margin-right: 5px;
    vertical-align: 1px;
}

/* Order summary tag chip (dark panel) */
.sss-sum-day-tag {
    display: inline-block;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 9px;
    margin-left: 6px;
    letter-spacing: 0.4px;
    vertical-align: 1px;
}

/* Same-day tag (card only) — green variant */
.sss-meal-day-tag.sss-day-tag-same {
    background: #eaf7e0;
    color: #2e7d32;
    border-color: #b7e2a1;
}

.sss-meal-day-tag.sss-day-tag-same .sss-day-tag-dot {
    background: #4caf50;
}
