/* Waffle Customizer Frontend Styles */

.waffle-customizer-wrapper {
    background: #fff;
    border: 2px solid #e91e63;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.1);
}

.waffle-customizer-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.waffle-customizer-header h3 {
    color: #e91e63;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.waffle-customizer-description {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.waffle-customizer-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Category Styles */
.waffle-category {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.waffle-category:hover {
    background: #f5f5f5;
}

.waffle-category-header {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin: -20px -20px 20px -20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.waffle-category-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
    min-width: 150px;
}

.waffle-category-requirement {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.waffle-category-extra-price {
    background: rgba(255, 255, 255, 0.9);
    color: #e91e63;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Options Grid */
.waffle-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.waffle-option {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.waffle-option:hover {
    border-color: #e91e63;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.2);
}

.waffle-option-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e91e63;
}

.waffle-option-label {
    flex: 1;
    font-size: 12px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.waffle-option input:checked+.waffle-option-label {
    color: #e91e63;
}

.waffle-option:has(input:checked) {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(240, 98, 146, 0.1) 100%);
    border-color: #e91e63;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

/* Price Summary */
.waffle-price-summary {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.waffle-extra-label {
    font-size: 18px;
}

.waffle-extra-price {
    font-size: 24px;
    font-weight: 700;
}

/* Validation Messages */
.waffle-validation-error {
    color: #f44336;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #ffebee;
    border-left: 3px solid #f44336;
    border-radius: 4px;
    display: none;
}

.waffle-validation-error.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .waffle-customizer-wrapper {
        padding: 20px 15px;
    }

    .waffle-customizer-header h3 {
        font-size: 24px;
    }

    .waffle-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .waffle-category-header {
        padding: 12px 15px;
    }

    .waffle-category-title {
        font-size: 18px;
        width: 100%;
    }

    .waffle-price-summary {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .waffle-options-grid {
        grid-template-columns: 1fr;
    }

    .waffle-option {
        padding: 10px 12px;
    }
}

/* Loading State */
.waffle-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation */
@keyframes waffleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waffle-category {
    animation: waffleSlideIn 0.4s ease-out;
}

.waffle-category:nth-child(1) {
    animation-delay: 0.1s;
}

.waffle-category:nth-child(2) {
    animation-delay: 0.2s;
}

.waffle-category:nth-child(3) {
    animation-delay: 0.3s;
}

.waffle-category:nth-child(4) {
    animation-delay: 0.4s;
}

.waffle-category:nth-child(5) {
    animation-delay: 0.5s;
}