/* Combo Pizza Modal Styles */

.combo-pizza-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.combo-pizza-modal-overlay.active {
    display: flex;
    animation: comboFadeIn 0.2s ease-out;
}

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

.combo-pizza-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: comboSlideUp 0.3s ease-out;
}

@keyframes comboSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.combo-pizza-header {
    padding: 20px;
    background: linear-gradient(135deg, #FDB913 0%, #f5a623 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.combo-pizza-title {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.combo-pizza-subtitle {
    color: #333;
    font-size: 0.9rem;
    margin: 4px 0 0;
}

.combo-pizza-close {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.combo-pizza-close:hover {
    background: rgba(255, 255, 255, 0.5);
}

.combo-pizza-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.combo-info-banner {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.combo-info-icon {
    font-size: 1.5rem;
    color: #FDB913;
}

.combo-info-content strong {
    display: block;
    font-size: 1rem;
}

.combo-info-content span {
    color: #666;
    font-size: 0.85rem;
}

.combo-pizza-section {
    margin-bottom: 20px;
}

.combo-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.combo-section-title i {
    color: #FDB913;
}

.combo-pizza-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.combo-pizza-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.combo-pizza-item:hover {
    border-color: #FDB913;
    background: #fffbf0;
}

.combo-pizza-item.selected {
    border-color: #FDB913;
    background: rgba(253, 185, 19, 0.08);
}

.combo-pizza-item.has-extra {
    border-left: 4px solid #dc3545;
}

.combo-pizza-item.included {
    border-left: 4px solid #28a745;
}

.combo-pizza-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.combo-pizza-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combo-pizza-info {
    flex: 1;
    padding: 0 12px;
}

.combo-pizza-name {
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.combo-pizza-price {
    font-size: 0.85rem;
    color: #666;
}

.combo-pizza-item.included .combo-pizza-price {
    color: #28a745;
}

.combo-pizza-item.has-extra .combo-pizza-price {
    color: #dc3545;
}

.combo-pizza-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.combo-pizza-item.selected .combo-pizza-check {
    border-color: #FDB913;
    background: #FDB913;
    color: white;
}

.combo-pizza-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.combo-summary-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.combo-summary-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 4px 0 0;
}

.combo-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.combo-btn-confirm {
    background: #FDB913;
    color: #1a1a1a;
}

.combo-btn-confirm:hover:not(:disabled) {
    background: #e5a711;
    transform: translateY(-1px);
}

.combo-btn-confirm:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

.combo-error-state {
    text-align: center;
    padding: 40px 20px;
}

.combo-error-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .combo-pizza-modal {
        width: 95%;
        max-height: 90vh;
    }

    .combo-pizza-item {
        padding: 10px;
    }

    .combo-pizza-image {
        width: 50px;
        height: 50px;
    }
}

/* Component Options (sides, chicken, sauces) */

.combo-component-section {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.combo-subsection-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.combo-required-badge {
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.combo-component-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.combo-component-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.combo-component-option:hover {
    border-color: #FDB913;
    background: #fffbf0;
}

.combo-component-option.selected {
    border-color: #FDB913;
    background: rgba(253, 185, 19, 0.08);
}

.combo-component-option.selected .combo-pizza-check {
    border-color: #FDB913;
    background: #FDB913;
    color: white;
}

.combo-option-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 12px;
}

.combo-option-name {
    font-weight: 600;
    color: #1a1a1a;
}

.combo-option-price {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
}

.combo-option-price.has-extra {
    color: #dc3545;
}

.combo-selection-counter {
    text-align: center;
    padding: 8px;
    margin-bottom: 12px;
    background: #fff3cd;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mix controls */
.combo-mix-controls {
    background: #fef9e7;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    margin: -4px 0 8px;
}

.combo-mix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.combo-mix-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.combo-mix-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.combo-mix-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #f5f5f5;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.combo-mix-btn:hover {
    background: #FDB913;
    color: white;
}

.combo-mix-value {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: white;
}

.combo-mix-total {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e0d5b0;
}

/* Pizza size selector */
.combo-pizza-sizes {
    display: none;
    gap: 6px;
    padding: 8px 12px;
    margin: -4px 0 8px;
    background: #f0f4ff;
    border: 1px solid #d0d9f0;
    border-radius: 10px;
}

.combo-size-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.combo-size-btn:hover {
    border-color: #FDB913;
}

.combo-size-btn.active {
    border-color: #FDB913;
    background: rgba(253, 185, 19, 0.1);
}

.combo-size-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
}

/* Special notes textarea */
.combo-special-notes {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.combo-special-notes:focus {
    outline: none;
    border-color: #FDB913;
}
