/* --- ORDER PAGE EXTRA VARIABLES --- */
:root {
    --border: #e0ddd6;
    --warn: #d9534f;
}

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 5px 5% 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { font-size: 1.2rem; font-weight: 900; color: var(--primary-dark); letter-spacing: 1px; text-decoration: none; font-family: 'Montserrat', sans-serif; display: flex; align-items: center; }

/* --- STICKY SUMMARY BAR --- */
#summary-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary-dark);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 10px 5%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
#summary-bar.hidden { display: none; }
.bar-meals.warn { color: #ff8a75; }
.bar-total { color: #8ec99a; }
@media (max-width: 600px) {
    #summary-bar { font-size: 0.72rem; gap: 14px; padding: 8px 4%; }
    .bar-btn { font-size: 0.68rem; }
    .order-summary-table td:nth-child(2),
    .order-summary-table td:last-child { font-size: 0.78rem; }
}
.bar-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.bar-btn:hover { color: var(--white); }
.bar-btn-clear { color: #ff8a75; }
.bar-btn-clear:hover { color: #ffb3a0; }

/* --- WIZARD WRAPPER --- */
.wizard { max-width: 680px; margin: 0 auto; padding: 40px 20px 80px; }

/* --- STEP --- */
.step { display: none; }
.step.active { display: block; }

/* --- PROGRESS DOTS --- */
.progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s;
}
.dot.active { background: var(--accent-warm); }
.dot.done { background: var(--primary-dark); }

/* --- CARD --- */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
@media (max-width: 600px) { .card { padding: 24px 20px; } }

.step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-warm);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}
.card h2 { color: var(--primary-dark); font-size: 1.6rem; margin-bottom: 6px; }
.card .subtitle { color: #666; font-size: 0.95rem; margin-bottom: 28px; }

/* --- FORM FIELDS --- */
.field { margin-bottom: 22px; }
.field > label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}
.hint {
    font-weight: 400;
    color: #888;
    font-size: 0.82rem;
    margin-left: 6px;
}

/* --- RADIO PROTEIN --- */
.protein-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.protein-option { flex: 1; min-width: 120px; }
.protein-option input[type="radio"] { display: none; }
.protein-option label {
    display: block;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.protein-option label .price-tag {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-warm);
    margin-top: 4px;
}
.protein-option input:checked + label {
    border-color: var(--primary-dark);
    background: #eef4f0;
}

/* --- CHECKBOX ADD-ON --- */
.addon-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fdf6f3;
    border: 1px solid #f0d8ce;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
}
.addon-box input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; accent-color: var(--accent-warm); flex-shrink: 0; }
.addon-text { font-size: 0.9rem; }
.addon-text strong { display: block; font-weight: 700; }
.addon-text span { color: #888; font-size: 0.82rem; }

/* --- SELECT --- */
select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text-main);
    cursor: pointer;
}
select:focus { outline: none; border-color: var(--primary-dark); }

/* --- QUANTITY --- */
.qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qty-btn {
    width: 36px; height: 36px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: var(--primary-dark);
    transition: background 0.2s;
    line-height: 1;
}
.qty-btn:hover { background: #eef4f0; }
input[type="number"].qty-input {
    width: 64px;
    text-align: center;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
}
input[type="number"].qty-input:focus { outline: none; border-color: var(--primary-dark); }

/* --- LINE TOTAL --- */
.line-total-display {
    margin-top: 20px;
    background: #eef4f0;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}
.calc-text { font-size: 0.85rem; color: #555; }
.calc-total { font-size: 1.25rem; font-weight: 900; color: var(--primary-dark); }

/* --- TEXT INPUTS --- */
input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--white);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
}
textarea { resize: vertical; min-height: 80px; }

/* --- DIVIDER --- */
.divider { border: none; border-top: 2px solid var(--border); margin: 28px 0; }

/* --- EXTRA BUTTON VARIANTS --- */
.btn {
    border-radius: 6px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover { border-color: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* --- BACK BUTTON --- */
.back-row { margin-top: 12px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.btn-back {
    background: none;
    border: none;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    padding: 6px 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.btn-back:hover { color: var(--primary-dark); }
.btn-clear {
    background: none;
    border: none;
    color: var(--warn);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    padding: 6px 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.btn-clear:hover { color: #a02b28; }

/* --- YES/NO CHOICE --- */
.choice-row { display: flex; gap: 12px; }
.choice-row .btn { flex: 1; }

/* --- ADD ANOTHER STEP --- */
.add-another-card { text-align: center; }
.meal-recap {
    background: #eef4f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0 28px;
    font-size: 0.9rem;
    color: #444;
    text-align: left;
    line-height: 1.8;
}
.meal-recap strong { color: var(--primary-dark); }

/* --- WELCOME --- */
.welcome-info { list-style: none; margin: 20px 0 32px; }
.welcome-info li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.welcome-info li:last-child { border-bottom: none; }
.welcome-info .lbl { font-weight: 700; color: var(--primary-dark); min-width: 160px; font-family: 'Montserrat', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- CONFIRMATION --- */
.confirm-header { text-align: center; margin-bottom: 28px; }
.confirm-check { font-size: 3rem; margin-bottom: 10px; }
.order-summary-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.order-summary-table th {
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    color: #888;
    padding: 6px 10px;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.order-summary-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.order-summary-table td:last-child { font-weight: 700; color: var(--primary-dark); white-space: nowrap; text-align: right; }
.meal-detail { color: #666; font-size: 0.82rem; margin-top: 4px; line-height: 1.6; }
.total-row td {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    border-bottom: none;
    padding-top: 16px;
}
.customer-info-box { background: #eef4f0; border-left: 4px solid var(--primary-dark); border-radius: 6px; padding: 16px 18px; margin: 0 0 20px; }
.customer-info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.customer-info-table td { padding: 5px 8px 5px 0; vertical-align: top; }
.customer-info-table td:first-child { width: 70px; color: #555; white-space: nowrap; }

.zelle-box {
    background: #eef4f0;
    border-left: 4px solid var(--primary-dark);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.7;
}
.zelle-box strong { display: block; margin-bottom: 6px; color: var(--primary-dark); font-family: 'Montserrat', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- VALIDATION --- */
.error-msg { color: var(--warn); font-size: 0.82rem; margin-top: 6px; display: none; }
.has-error select, .has-error input, .has-error textarea { border-color: var(--warn) !important; }
.has-error .error-msg { display: block; }
.protein-error { color: var(--warn); font-size: 0.82rem; margin-top: 8px; display: none; }

/* --- MEAL COUNT WARNING --- */
.meal-count-warn {
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--warn);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
}
.meal-count-warn.show { display: block; }

/* --- MEAL PICKER --- */
.meal-picker { margin-bottom: 8px; }
.meal-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.meal-item:last-child { border-bottom: none; }
.meal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 12px;
}
.meal-item-name {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--primary-dark);
}
.meal-item-note {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}
.meal-item-price {
    font-weight: 700;
    color: var(--accent-warm);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    white-space: nowrap;
}
.meal-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}
.item-subtotal {
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--primary-dark);
    min-width: 60px;
}
.meal-item-controls { margin-top: 14px; }
.meal-item-controls.hidden { display: none; }
.meal-item-control-row { margin-bottom: 10px; }
.meal-item-control-row label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-main);
}
.noveggies-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.noveggies-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-warm);
    cursor: pointer;
}

/* --- MEAL DESCRIPTION --- */
.info-tooltip {
    background: #f5f3ee;
    border-left: 3px solid var(--accent-warm);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #555;
    margin: -4px 0 12px;
    line-height: 1.6;
}

/* --- BODY MIN HEIGHT --- */
body { min-height: 100vh; }
