/* ==========================================================================
   Meal deal builder
   ========================================================================== */

@layer pages {

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.deal-price-display {
    text-align: right;
}

.deal-price-display .deal-price {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.deal-price-display .deal-savings {
    color: var(--success);
    font-weight: 700;
    font-size: var(--text-sm);
    margin-top: 0.25rem;
}

.deal-item-card {
    background: var(--surface-warm);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
}

.deal-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.deal-item-head h3 {
    font-size: var(--text-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deal-item-head h3 i {
    color: var(--brand);
}

.deal-item-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.deal-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .deal-option-grid {
        grid-template-columns: 1fr;
    }
}

.deal-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--surface);
    transition: all var(--transition);
}

.deal-option:hover {
    border-color: rgba(var(--brand-rgb), 0.4);
}

.deal-option input[type="radio"],
.deal-option input[type="checkbox"] {
    accent-color: var(--brand);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.deal-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-light);
}

.deal-option-name {
    font-weight: 700;
    font-size: var(--text-sm);
}

.deal-option-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.deal-option-price {
    font-weight: 800;
    font-size: var(--text-sm);
    color: var(--brand);
    white-space: nowrap;
}

.deal-option-price.included {
    color: var(--success);
}

.deal-footer {
    background: var(--surface-warm);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.deal-footer-qty {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .deal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .deal-footer-qty {
        justify-content: center;
    }

    .deal-footer .btn {
        width: 100%;
    }
}

} /* end @layer pages */
