/* ============================================
   POS WIZARD - Multi-step ordering flow
   Style McDonald's / Borne de commande
   ============================================ */

.pos-wizard {
    padding: 0 24px 24px;
}

/* -- Main Item Header -- */
.wizard-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #FFF;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #EFF0F6;
}

.wizard-item-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.wizard-item-info {
    flex: 1;
}

.wizard-item-info h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
    line-height: 1.2;
}

.wizard-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #E93C3C;
    margin: 0;
}

/* -- Premium Progress Bar with Labels -- */
.wizard-progress-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 8px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.wizard-progress-bar::-webkit-scrollbar {
    display: none;
}

.wizard-progress-bar .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 60px;
    flex: 0 0 auto;
}

.wizard-progress-bar .step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F0F0F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid #E0E0EC;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.wizard-progress-bar .step-item.active .step-icon {
    background: linear-gradient(135deg, #E93C3C, #FF6B81);
    border-color: #E93C3C;
    box-shadow: 0 4px 15px rgba(233, 60, 60, 0.3);
    transform: scale(1.15);
}

.wizard-progress-bar .step-item.done .step-icon {
    background: #43C6AC;
    border-color: #43C6AC;
}

.wizard-progress-bar .step-label {
    font-size: 9px;
    font-weight: 600;
    color: #A0A0B0;
    margin-top: 4px;
    text-align: center;
    max-width: 70px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-progress-bar .step-item.active .step-label {
    color: #E93C3C;
    font-weight: 700;
}

.wizard-progress-bar .step-item.done .step-label {
    color: #43C6AC;
}

.wizard-progress-bar .step-line {
    position: absolute;
    top: 19px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #E0E0EC;
    z-index: 1;
}

.wizard-progress-bar .step-line.done {
    background: #43C6AC;
}

/* -- Running Total -- */
.wizard-running-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    margin: 16px 0 0;
    background: linear-gradient(135deg, #1B1B3A, #2D2B55);
    border-radius: 14px;
    color: #FFF;
    font-family: 'Rubik', sans-serif;
}

.wizard-running-total span:first-child {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

.wizard-running-total .run-total-value {
    font-size: 18px;
    font-weight: 700;
    color: #43C6AC;
}

/* -- Step Container -- */
.wizard-step {
    display: none;
    animation: wizardSlideIn 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wizard-step.active {
    display: block;
}

/* Forward navigation: slide from right */
@keyframes wizardSlideIn {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Back navigation: slide from left */
.wizard-step.active.slide-back {
    animation: wizardSlideBack 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes wizardSlideBack {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Legacy alias */
@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* -- Step Header -- */
.wizard-step-header {
    text-align: center;
    margin-bottom: 22px;
}

.wizard-step-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1B1B3A;
    margin: 0 0 4px;
    font-family: 'Rubik', sans-serif;
}

.wizard-step-header p {
    font-size: 12px;
    color: #8E8EA9;
    margin: 0;
}

/* =============================================
   VIANDE STEP
   ============================================= */
.wizard-viande-counter-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.viande-total {
    background: #F0F0FF;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s;
}

.viande-total.complete {
    background: #E8FFF5;
    color: #43C6AC;
}

.viande-complete-badge {
    font-size: 13px;
    font-weight: 600;
    color: #43C6AC;
    animation: wizardFadeIn 0.3s ease;
}

.wizard-viande-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 0 4px;
}

.wizard-viande-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 2px solid #EFF0F6;
    background: #FAFAFF;
    transition: all 0.2s ease;
}

.wizard-viande-row.active {
    border-color: #E93C3C;
    background: linear-gradient(135deg, #FFF0F0, #FFE8EC);
}

.viande-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.viande-emoji {
    font-size: 22px;
}

.viande-name {
    font-size: 14px;
    font-weight: 600;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
}

.viande-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.viande-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #E93C3C;
    background: white;
    color: #E93C3C;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.viande-btn:hover:not(.disabled) {
    background: #E93C3C;
    color: white;
}

.viande-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.viande-count {
    font-size: 18px;
    font-weight: 700;
    color: #1B1B3A;
    min-width: 20px;
    text-align: center;
    font-family: 'Rubik', sans-serif;
}

/* =============================================
   SAUCE STEP (multi-select)
   ============================================= */
.wizard-sauce-info {
    text-align: center;
    margin-bottom: 16px;
}

.sauce-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
}

.sauce-badge.free {
    background: #E8FFF5;
    color: #43C6AC;
}

.sauce-badge.paid {
    background: #FFF0F0;
    color: #E93C3C;
}

.sauce-frites-label {
    font-size: 16px;
    font-weight: 700;
    color: #1B1B3A;
    margin-bottom: 8px;
    font-family: 'Rubik', sans-serif;
}

.sauce-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* -- Option Cards Grid -- */
.wizard-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 2px;
}

.wizard-options::-webkit-scrollbar {
    width: 4px;
}

.wizard-options::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* -- Option Card (radio & checkbox) -- */
.wizard-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border-radius: 14px;
    border: 2px solid #EFF0F6;
    background: #FAFAFF;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 70px;
    user-select: none;
}

.wizard-option:hover {
    border-color: #FFB3B3;
    background: #FFF5F5;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(233, 60, 60, 0.08);
}

.wizard-option.selected {
    border-color: #E93C3C;
    background: linear-gradient(135deg, #FFF0F0, #FFE8EC);
    box-shadow: 0 3px 12px rgba(233, 60, 60, 0.15);
}

.wizard-option .option-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

/* [S24 FIX] Force emoji mode for sauces/garnitures - cleaner UI */
.wizard-option .option-icon.force-emoji,
.wizard-option .option-icon-micro.force-emoji {
    font-size: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 10px;
}

.wizard-option .option-icon-micro.force-emoji {
    font-size: 20px;
    width: 32px;
    height: 32px;
}

.wizard-option .option-name {
    font-size: 12px;
    font-weight: 600;
    color: #1B1B3A;
    line-height: 1.3;
    font-family: 'Rubik', sans-serif;
}

.wizard-option .option-price {
    font-size: 11px;
    color: #8E8EA9;
    margin-top: 3px;
}

.wizard-option .option-price.paid {
    color: #E93C3C;
    font-weight: 600;
}

.wizard-option .option-price.free {
    color: #43C6AC;
    font-weight: 600;
}

/* Addon images */
.wizard-option .option-icon.has-img {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
}

.wizard-option .option-icon.has-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Images produits (sauces, suppléments, etc.) */
.wizard-option .option-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 4px;
    display: block;
}

/* [UI/UX Sprint 4] Micro icons for sauces/garnitures - compact mode */
.wizard-option .option-img-micro {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 2px;
    display: block;
}

.wizard-option .option-icon-micro {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 2px;
}

.wizard-option.micro-opt {
    padding: 6px 8px;
    font-size: 11px;
    min-height: 30px;
}

.wizard-option.micro-opt .option-name {
    font-size: 10px;
}

.wizard-option.micro-opt .option-price {
    font-size: 9px;
}

/* Hidden options for "Voir Plus" collapse */
.wizard-option.hidden-opt,
.wizard-viande-row.hidden-opt {
    display: none !important;
}

.wizard-options.expanded .wizard-option.hidden-opt {
    display: flex;
}

.wizard-viande-list.expanded .wizard-viande-row.hidden-opt {
    display: flex !important;
}

.btn-voir-plus {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    background: #F5F5FA;
    border: 1px dashed #D0D0E0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #6E6E8A;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-voir-plus:hover {
    background: #EBEBF5;
    border-color: #B0B0C8;
    color: #1B1B3A;
}

.wizard-option .check-mark {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
}

.wizard-option.selected .check-mark {
    background: #E93C3C;
    color: white;
}

.wizard-option:not(.selected) .check-mark {
    border: 2px solid #D9DBE9;
    background: white;
    color: transparent;
}

/* Sauce option: multi-select style badge */
.wizard-option.sauce-opt.selected .check-mark {
    background: #E93C3C;
    color: white;
}

/* -- Garnitures: pre-checked style -- */
.wizard-option.garniture.selected {
    border-color: #43C6AC;
    background: linear-gradient(135deg, #F0FFF8, #E8FFF5);
}

.wizard-option.garniture.selected .check-mark {
    background: #43C6AC;
}

.wizard-option.garniture:hover {
    border-color: #43C6AC;
    background: #F0FFF8;
}

/* -- Menu Combo Section -- */
.wizard-menu-question {
    text-align: center;
    padding: 20px 0;
}

.wizard-menu-question h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1B1B3A;
    margin-bottom: 24px;
    font-family: 'Rubik', sans-serif;
}

.wizard-menu-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.wizard-menu-btn {
    flex: 1;
    max-width: 200px;
    padding: 18px 16px;
    border-radius: 16px;
    border: 2px solid #EFF0F6;
    background: white;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.wizard-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.wizard-menu-btn.yes:hover,
.wizard-menu-btn.yes.selected {
    border-color: #43C6AC;
    background: linear-gradient(135deg, #E8FFF5, #F0FFF8);
}

.wizard-menu-btn.no:hover,
.wizard-menu-btn.no.selected {
    border-color: #FF6B81;
    background: linear-gradient(135deg, #FFF0F0, #FFE8EC);
}

.wizard-menu-btn .menu-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.wizard-menu-btn .menu-label {
    font-size: 14px;
    font-weight: 700;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
}

.wizard-menu-btn .menu-desc {
    font-size: 11px;
    color: #8E8EA9;
    margin-top: 4px;
}

/* -- Collapse for individual addons -- */
.wizard-individual-addons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.wizard-individual-addons.open {
    max-height: 400px;
}

/* -- Navigation Buttons -- */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #F2F2F7;
}

.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.wizard-btn-back {
    background: white;
    color: #E93C3C;
    border: 2px solid #E93C3C;
}

.wizard-btn-back:hover {
    background: #FFF5F5;
}

.wizard-btn-next {
    background: linear-gradient(135deg, #E93C3C, #FF6B81);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 60, 60, 0.3);
}

.wizard-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 60, 60, 0.4);
}

.wizard-btn-cart {
    background: linear-gradient(135deg, #43C6AC, #52D3B8);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 198, 172, 0.3);
    font-size: 15px;
    padding: 14px 32px;
}

.wizard-btn-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(67, 198, 172, 0.4);
}

.wizard-btn-skip {
    background: transparent;
    color: #8E8EA9;
    font-size: 12px;
    padding: 10px 16px;
}

.wizard-btn-skip:hover {
    color: #1B1B3A;
}

/* -- Recap Section -- */
.wizard-recap {
    background: #FAFAFF;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.wizard-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
}

.wizard-recap-row .label {
    color: #8E8EA9;
    font-weight: 500;
}

.wizard-recap-row .value {
    font-weight: 600;
    max-width: 60%;
    text-align: right;
}

.wizard-recap-row.total {
    border-top: 2px solid #EFF0F6;
    margin-top: 8px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
}

/* -- Quantity in recap -- */
.wizard-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
}

.wizard-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #E93C3C;
    background: white;
    color: #E93C3C;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wizard-qty-btn:hover {
    background: #E93C3C;
    color: white;
}

.wizard-qty-value {
    font-size: 20px;
    font-weight: 700;
    color: #1B1B3A;
    min-width: 30px;
    text-align: center;
    font-family: 'Rubik', sans-serif;
}

/* -- Instruction textarea -- */
.wizard-instruction textarea {
    width: 100%;
    height: 60px;
    border: 1.5px solid #D9DBE9;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    font-family: 'Rubik', sans-serif;
    resize: none;
    transition: border-color 0.2s;
}

.wizard-instruction textarea:focus {
    border-color: #E93C3C;
    outline: none;
}

.wizard-instruction textarea::placeholder {
    color: #B0B0C8;
}

/* =============================================
   [P1] MENU CHOICE - 3 Options
   ============================================= */
.wizard-menu-choice-container {
    padding: 10px 0;
}

.menu-choice-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1B1B3A;
    margin-bottom: 24px;
}

.wizard-menu-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.menu-choice-card {
    border: 2px solid #E5E5F0;
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: white;
}

.menu-choice-card:hover {
    border-color: #C5C5E0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.menu-choice-card.selected {
    border-color: #E93C3C;
    background: linear-gradient(135deg, #FFF0F0, #FFE8EC);
    box-shadow: 0 4px 15px rgba(233, 60, 60, 0.15);
}

.menu-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.menu-card-icon .option-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 12px;
    display: block;
}

.menu-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1B1B3A;
    margin-bottom: 6px;
}

.menu-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #E93C3C;
    margin-bottom: 6px;
}

.menu-choice-card.selected .menu-card-price {
    color: #E93C3C;
}

.menu-card-desc {
    font-size: 11px;
    color: #8E8EA9;
    line-height: 1.3;
}

/* =============================================
   [P1] FRITES OPTIONS
   ============================================= */
.wizard-frites-options-container {
    padding: 10px 0;
}

.frites-section {
    margin-bottom: 28px;
}

.frites-section:last-child {
    margin-bottom: 0;
}

.frites-title {
    font-size: 16px;
    font-weight: 700;
    color: #1B1B3A;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.frites-size-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.frites-option {
    border: 2px solid #E5E5F0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.frites-option:hover {
    border-color: #C5C5E0;
}

.frites-option.selected {
    border-color: #E93C3C;
    background: linear-gradient(135deg, #FFF0F0, #FFE8EC);
    box-shadow: 0 4px 12px rgba(233, 60, 60, 0.12);
}

.frites-opt-label {
    font-size: 14px;
    font-weight: 600;
    color: #1B1B3A;
}

.frites-opt-price {
    font-size: 12px;
    color: #8E8EA9;
    font-weight: 500;
}

.frites-opt-price.upgrade {
    color: #E93C3C;
    font-weight: 700;
}

.frites-option.selected .frites-opt-label {
    color: #E93C3C;
}

/* =============================================
   [P1] BOISSON CHOICE
   ============================================= */
.wizard-boisson-container {
    padding: 10px 0;
}

.boisson-title {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #1B1B3A;
    margin-bottom: 20px;
}

.wizard-options.boisson-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wizard-option.boisson-opt {
    padding: 14px 10px;
    border: 2px solid #E5E5F0;
    border-radius: 12px;
    background: white;
    transition: all 0.25s ease;
}

.wizard-option.boisson-opt:hover {
    border-color: #C5C5E0;
    transform: translateY(-1px);
}

.wizard-option.boisson-opt.selected {
    border-color: #E93C3C;
    background: linear-gradient(135deg, #FFF0F0, #FFE8EC);
    box-shadow: 0 4px 12px rgba(233, 60, 60, 0.12);
}

.wizard-option.boisson-opt .option-name {
    font-size: 12px;
    font-weight: 600;
}

.wizard-option.boisson-opt.selected .option-name {
    color: #E93C3C;
}
/* =============================================
   [UI/UX IMPROVEMENTS — Phase 8]
   Added: directional animations, selection pulse,
   enhanced recap, better running total, option card
   micro-interactions, cashier speed optimizations
   ============================================= */

/* -- Running Total: animate on price change -- */
.wizard-running-total {
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wizard-running-total .run-total-value {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.wizard-running-total.price-bump .run-total-value {
    animation: priceBump 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes priceBump {
    0%   { transform: scale(1); color: #43C6AC; }
    40%  { transform: scale(1.25); color: #FFE87A; }
    100% { transform: scale(1); color: #43C6AC; }
}

/* -- Option Card: selection pulse/ripple effect -- */
.wizard-option {
    overflow: hidden;
    will-change: transform;
}

.wizard-option::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(233, 60, 60, 0);
    transition: background 0.15s ease;
    pointer-events: none;
}

.wizard-option:active::after {
    background: rgba(233, 60, 60, 0.08);
}

.wizard-option.selected {
    transform: translateY(0px);
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Check icon animation */
.wizard-option.selected .check-mark {
    animation: checkPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
    0%   { transform: scale(0) rotate(-10deg); }
    70%  { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* -- Garniture card: toggle deselect animation -- */
.wizard-option.garniture:not(.selected) .check-mark {
    background: white;
    border-color: #D9DBE9;
    transition: all 0.2s ease;
}

/* -- Viande row: subtle ring on active -- */
.wizard-viande-row.active {
    box-shadow: 0 0 0 2px rgba(233, 60, 60, 0.2);
}

.wizard-viande-row {
    transition: all 0.18s ease;
    cursor: pointer;
}

/* -- Button: faster feedback on tap/click -- */
.wizard-btn {
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, box-shadow;
}

.wizard-btn:active {
    transform: translateY(1px) scale(0.98);
}

.wizard-btn-next:active {
    box-shadow: 0 2px 8px rgba(233, 60, 60, 0.25) !important;
}

.wizard-btn-cart:active {
    box-shadow: 0 2px 8px rgba(67, 198, 172, 0.25) !important;
}

/* -- Step header: sharper and more visible -- */
.wizard-step-header h3 {
    font-size: 18px;
    letter-spacing: -0.2px;
}

.wizard-step-header p {
    font-size: 12.5px;
    opacity: 0.72;
}

/* -- Progress bar: smoother step transitions -- */
.wizard-progress-bar .step-icon {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wizard-progress-bar .step-item.done .step-icon {
    animation: stepDone 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stepDone {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.wizard-progress-bar .step-line {
    transition: background 0.4s ease;
}

/* -- Recap section: significantly improved legibility -- */
.wizard-recap {
    background: linear-gradient(135deg, #FAFAFF, #F6F6FF);
    border: 1px solid #EFF0F6;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.wizard-recap-row {
    border-bottom: 1px solid rgba(239, 240, 246, 0.7);
    padding: 8px 2px;
    transition: background 0.15s ease;
}

.wizard-recap-row:last-child {
    border-bottom: none;
}

.wizard-recap-row:hover {
    background: rgba(233, 60, 60, 0.03);
    border-radius: 8px;
}

.wizard-recap-row .label {
    font-size: 12px;
    gap: 4px;
    display: flex;
    align-items: center;
}

.wizard-recap-row .value {
    font-size: 13px;
    line-height: 1.4;
}

/* Total row: more prominent */
.wizard-recap-row.total {
    background: linear-gradient(135deg, #1B1B3A, #2D2B55);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
    color: white;
}

.wizard-recap-row.total .label {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.wizard-recap-row.total .value {
    font-size: 20px;
    font-weight: 800;
    color: #43C6AC;
    letter-spacing: -0.5px;
}

/* -- Menu choice card: bigger hit area, clearer pricing -- */
.menu-choice-card {
    position: relative;
}

.menu-card-price {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.menu-choice-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: #E93C3C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -- Frites options: cleaner diff display -- */
.frites-opt-price.upgrade::before {
    content: '↑ ';
}

/* -- Sauce badge: slightly larger for readability -- */
.sauce-badge {
    font-size: 12.5px;
    padding: 6px 18px;
}

/* -- Instruction textarea: larger input area -- */
.wizard-instruction textarea {
    height: 72px;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-instruction textarea:focus {
    border-color: #E93C3C;
    box-shadow: 0 0 0 3px rgba(233, 60, 60, 0.1);
}

/* -- Quantity buttons: larger tap targets -- */
.wizard-qty-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    transition: all 0.15s ease;
}

.wizard-qty-btn:active {
    transform: scale(0.9);
    background: #E93C3C;
    color: white;
}

/* -- Skip button: more discoverable -- */
.wizard-btn-skip {
    color: #A0A0B0;
    font-size: 12.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(160, 160, 176, 0.5);
}

.wizard-btn-skip:hover {
    color: #6E6E8A;
    text-decoration-color: rgba(110, 110, 138, 0.8);
}

/* -- Nav container: sticky with separator shadow -- */
.wizard-nav {
    background: white;
    border-radius: 0 0 16px 16px;
    padding: 16px 0 4px;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(27, 27, 58, 0.06);
    border-top: 1px solid #F2F2F7;
}

/* -- Viande complete badge: celebratory pulse -- */
.viande-complete-badge {
    animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
    0%   { opacity: 0; transform: scale(0.7); }
    60%  { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── Wizard Step Badge (PLAN_07 UX-03) ── */
.wizard-step-badge {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(233, 60, 60, 0.09);
    border: 1.5px solid rgba(233, 60, 60, 0.25);
    border-radius: 20px;
    padding: 3px 10px;
    font-family: 'Rubik', sans-serif;
    margin-left: auto;
    flex-shrink: 0;
}

.step-badge-current {
    font-size: 15px;
    font-weight: 800;
    color: #E93C3C;
}

.step-badge-sep {
    font-size: 11px;
    color: #C0C0C0;
    margin: 0 2px;
}

.step-badge-total {
    font-size: 13px;
    font-weight: 600;
    color: #6E6E8A;
}

/* -- Responsive: compact mode for smaller modals -- */
@media (max-height: 700px) {
    .wizard-options {
        max-height: 240px;
    }
    .wizard-viande-list {
        max-height: 260px;
    }
    .wizard-step-header {
        margin-bottom: 14px;
    }
    .wizard-step-header h3 {
        font-size: 15px;
    }
}

/* ============================================
   [S25] SINGLE-PAGE ORDER FLOW STYLES
   ============================================ */

.pos-wizard.single-page {
    padding-bottom: 8px;
}

/* ---- Header compact avec Qté inline ---- */
.pos-wizard.single-page .wizard-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #FAFAFF;
    border-radius: 12px;
}

.pos-wizard.single-page .wizard-item-info {
    flex: 1;
    min-width: 0;
}

.pos-wizard.single-page .wizard-item-header h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-wizard.single-page .wizard-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #E93C3C;
    margin: 0;
}

/* Qté inline dans le header */
.pos-wizard.single-page .wizard-qty-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: white;
    border: 2px solid #EFF0F6;
    border-radius: 10px;
    padding: 4px 8px;
}

/* ---- Pain seul sur sa ligne (sandwich uniquement) ---- */
.pos-wizard.single-page .wizard-top-row {
    margin-bottom: 12px;
}

.pos-wizard.single-page .pain-section {
    width: 100%;
}

.pos-wizard.single-page .pain-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: #8E8EA9;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pos-wizard.single-page .pain-segment {
    display: flex;
    gap: 6px;
}

.pos-wizard.single-page .pain-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: 2px solid #EFF0F6;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
    transition: all 0.18s;
    white-space: nowrap;
}

.pos-wizard.single-page .pain-btn .pain-emoji {
    font-size: 18px;
}

.pos-wizard.single-page .pain-btn:hover {
    border-color: #D0D0E0;
    background: #FAFAFF;
}

.pos-wizard.single-page .pain-btn.selected {
    border-color: #E93C3C;
    background: linear-gradient(135deg, #FFF0F0, #FFE8EC);
    color: #E93C3C;
}

/* ---- Sections générales ---- */
.pos-wizard.single-page .wizard-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #EFF0F6;
}

.pos-wizard.single-page .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pos-wizard.single-page .section-header h4,
.pos-wizard.single-page .wizard-section > h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
    margin: 0 0 8px;
}

.pos-wizard.single-page .section-hint {
    font-size: 11px;
    color: #8E8EA9;
    margin-bottom: 8px;
}

.pos-wizard.single-page .quota-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    background: #FFF0F0;
    color: #E93C3C;
    border: 1px solid #E93C3C;
}

.pos-wizard.single-page .quota-badge.complete {
    background: #E8F8F5;
    color: #43C6AC;
    border-color: #43C6AC;
}

.pos-wizard.single-page .complete-text {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    color: #43C6AC;
    font-weight: 600;
}

/* ---- Sauce icon / supplement icon ---- */
.pos-wizard.single-page .sauce-icon,
.pos-wizard.single-page .supplement-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

/* ---- Mise en page 2 colonnes (Sauce | Suppléments) et (Viandes | Crudités) ---- */
.pos-wizard.single-page .wizard-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #EFF0F6;
    /* Évite colonnes étirées à la hauteur de l’autre + réduit sensation de « trou » sous crudités */
    align-items: start;
}

.pos-wizard.single-page .wizard-2col-block {
    min-width: 0;
}

.pos-wizard.single-page .wizard-2col-block h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
    margin: 0 0 8px;
}

/* --- C1: Sauces en chips compacts --- */
.sauce-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}

.sauce-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1.5px solid #D9DBE9;
    border-radius: 20px;
    background: white;
    font-size: 12px;
    font-weight: 600;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.sauce-chip:hover {
    border-color: #E93C3C;
    background: #FFF5F5;
}

.sauce-chip.selected {
    background: #E93C3C;
    border-color: #E93C3C;
    color: white;
}

.sauce-chip .chip-free {
    font-size: 10px;
    opacity: 0.85;
}

.sauce-chip .chip-paid {
    font-size: 10px;
    opacity: 0.85;
}

/* --- C2: Viandes en grille 3 colonnes --- */
.pos-wizard.single-page .wizard-viande-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    /* Limite la hauteur de ligne (viande | crudités) : la liste défile, moins d’espace blanc sous crudités */
    max-height: min(360px, 48vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

.pos-wizard.single-page .wizard-viande-row {
    padding: 6px 8px;
    margin-bottom: 0;
}

.pos-wizard.single-page .viande-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.pos-wizard.single-page .viande-emoji {
    font-size: 16px;
}

.pos-wizard.single-page .viande-name {
    font-size: 11px;
    line-height: 1.2;
}

.pos-wizard.single-page .viande-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
}

.pos-wizard.single-page .viande-count {
    font-size: 14px;
    min-width: 14px;
}

/* Supplement grid dans la colonne droite */
.pos-wizard.single-page .wizard-2col-block .wizard-options.supplement-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-height: 200px;
}

/* Crudités : colonne droite — pas de débordement sur la grille viandes, boutons empilés propres */
.pos-wizard.single-page .wizard-2col-block.crudites-section {
    min-width: 0;
    align-self: start;
    position: relative;
    z-index: 1;
}

.pos-wizard.single-page .wizard-2col-block .garniture-toggle {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pos-wizard.single-page .wizard-2col-block.crudites-section .garniture-toggle-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    padding: 10px 12px;
}

/* ---- Formule compacte ---- */
.pos-wizard.single-page .wizard-formule-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pos-wizard.single-page .formule-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    border: 2px solid #EFF0F6;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.pos-wizard.single-page .formule-card:hover {
    border-color: #D0D0E0;
}

.pos-wizard.single-page .formule-card.selected {
    border-color: #43C6AC;
    background: #F0FDFA;
}

.pos-wizard.single-page .formule-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.pos-wizard.single-page .formule-name {
    font-size: 11px;
    font-weight: 600;
    color: #1B1B3A;
    text-align: center;
    font-family: 'Rubik', sans-serif;
    line-height: 1.2;
}

.pos-wizard.single-page .formule-price {
    font-size: 12px;
    font-weight: 700;
    color: #E93C3C;
    margin-top: 3px;
}

/* ---- Sauce frites : grille 4 colonnes compacte ---- */
.pos-wizard.single-page .sauce-frites-inline .wizard-options.sauce-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    max-height: 160px;
}

.pos-wizard.single-page .sauce-frites-inline h4,
.pos-wizard.single-page .frites-upgrades-inline h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
    margin: 10px 0 8px;
}

/* ---- Options frites compactes ---- */
.pos-wizard.single-page .frites-upgrades-inline .wizard-options.supplement-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* --- C5: Suppléments toggle collapse --- */
.suppl-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
    padding: 7px 12px;
    border: 1.5px dashed #D9DBE9;
    border-radius: 8px;
    background: #FAFAFF;
    color: #6E6E8A;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.suppl-toggle:hover {
    border-color: #E93C3C;
    color: #E93C3C;
}

.suppl-toggle.has-items {
    background: #E93C3C;
    border-color: #E93C3C;
    color: white;
    border-style: solid;
}

.suppl-panel { }
.suppl-panel.collapsed { display: none; }

/* --- C6: Réduction espacement global wizard --- */
.pos-wizard.single-page .wizard-section {
    margin-bottom: 12px;
}

.pos-wizard.single-page .wizard-2col {
    gap: 10px;
    margin-bottom: 12px;
}

.pos-wizard.single-page .wizard-2col-block {
    padding: 10px;
}

.pos-wizard.single-page h4 {
    font-size: 12px;
    margin-bottom: 6px;
}

/* ---- Instruction spéciale compacte ---- */
.pos-wizard.single-page .wizard-comment-field {
    width: 100%;
    min-height: 48px;
    max-height: 100px;
    padding: 8px 12px;
    border: 2px solid #EFF0F6;
    border-radius: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    resize: vertical;
    line-height: 1.4;
}

.pos-wizard.single-page .wizard-comment-field:focus {
    outline: none;
    border-color: #43C6AC;
}

/* ---- Aperçu ticket compact ---- */
.pos-wizard.single-page .wizard-ticket-preview {
    margin: 10px 0;
    padding: 8px 12px;
    background: #FFF8F0;
    border: 1px solid #FFD9A0;
    border-radius: 8px;
}

.pos-wizard.single-page .ticket-label {
    font-size: 10px;
    font-weight: 700;
    color: #B05A00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-family: 'Rubik', sans-serif;
}

.pos-wizard.single-page .ticket-content {
    font-size: 12px;
    font-weight: 600;
    color: #1B1B3A;
    font-family: 'Rubik', sans-serif;
    line-height: 1.4;
    word-break: break-word;
}

/* ---- Barre sticky ---- */
.pos-wizard.single-page .wizard-sticky-bar {
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border-top: 2px solid #EFF0F6;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.07);
    z-index: 10;
}

.pos-wizard.single-page .sticky-total {
    display: flex;
    flex-direction: column;
}

.pos-wizard.single-page .total-label {
    font-size: 11px;
    color: #8E8EA9;
    font-family: 'Rubik', sans-serif;
}

.pos-wizard.single-page .total-value {
    font-size: 22px;
    font-weight: 700;
    color: #43C6AC;
    font-family: 'Rubik', sans-serif;
}

.pos-wizard.single-page .wizard-btn-cancel {
    padding: 12px 20px;
    background: #F7F7FC;
    color: #6E7191;
    border: 2px solid #D9DBE9;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-wizard.single-page .wizard-btn-cancel:hover {
    background: #FFE8E8;
    border-color: #E93C3C;
    color: #E93C3C;
}

.pos-wizard.single-page .wizard-btn-cart {
    padding: 12px 24px;
    background: #43C6AC;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: all 0.2s;
}

.pos-wizard.single-page .wizard-btn-cart:hover {
    background: #3BB99D;
    transform: translateY(-2px);
}

/* Hide progress bar in single-page mode */
.pos-wizard.single-page .wizard-progress-bar,
.pos-wizard.single-page .wizard-step-badge {
    display: none !important;
}

/* ---- Responsive: sur petit écran, 2col repasse en 1col ---- */
@media (max-width: 600px) {
    .pos-wizard.single-page .wizard-2col {
        grid-template-columns: 1fr;
    }
    .pos-wizard.single-page .wizard-top-row {
        flex-direction: column;
        align-items: stretch;
    }
    .pos-wizard.single-page .wizard-formule-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .pos-wizard.single-page .sauce-frites-inline .wizard-options.sauce-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
