/**
 * Custom Pizza (Kívánság Pizza) Styles
 */

/* Pizza Base Selector */
.beri-pizza-base-selector {
    margin: 20px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
}

.beri-base-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.beri-base-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.beri-base-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.beri-base-option:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.beri-base-radio {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.beri-base-radio:checked + .beri-base-label {
    font-weight: 600;
}

.beri-base-option:has(.beri-base-radio:checked) {
    border-color: #e31e24;
    background: #fff5f5;
    box-shadow: 0 2px 12px rgba(227, 30, 36, 0.2);
}

.beri-base-label {
    font-size: 14px;
    color: #333;
    line-height: 1.3;
}

/* Custom Pizza Toppings - Free Section */
.beri-custom-pizza-toppings {
    background: #fff9f0;
    border-color: #ffc107;
}

.beri-custom-pizza-toppings .beri-toppings-title {
    color: #333;
}

.beri-topping-counter {
    font-size: 16px;
    color: #e31e24;
    font-weight: 700;
    margin-left: 10px;
}

.beri-free-topping .beri-topping-price {
    color: #28a745;
    font-weight: 700;
    font-size: 12px;
}

.beri-free-topping-checkbox:disabled + .beri-topping-label {
    opacity: 0.5;
}

.beri-free-topping:has(.beri-free-topping-checkbox:disabled) {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Paid Toppings Section */
.beri-paid-toppings {
    margin-top: 15px;
}

.beri-paid-toppings .beri-toppings-title {
    color: #666;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .beri-pizza-base-selector {
        padding: 15px;
    }
    
    .beri-base-list {
        gap: 8px;
    }
    
    .beri-base-option {
        padding: 10px;
    }
    
    .beri-base-label {
        font-size: 13px;
    }
    
    .beri-base-radio {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .beri-topping-counter {
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .beri-base-list {
        gap: 6px;
    }
    
    .beri-base-option {
        padding: 8px;
    }
    
    .beri-base-label {
        font-size: 12px;
    }
}

/* Error styling */
.beri-validation-error {
    background: #fff0f0 !important;
    border-color: #dc3545 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.beri-error-message {
    background: #dc3545;
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s ease;
}

.beri-error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Integration with other sections */
.beri-pizza-size-selector + .beri-pizza-base-selector {
    margin-top: 15px;
}

.beri-pizza-base-selector + .beri-custom-pizza-toppings {
    margin-top: 15px;
}