/**
 * Maestro Sub Builder Styles
 */

.maestro-sub-builder {
    max-width: 500px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* Option Sections */
.sub-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.sub-option-double-meat {
    background: #fff5f5;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ffcdd2;
}

/* Checkbox Labels */
.sub-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s;
}

.sub-checkbox-label:hover {
    border-color: #c41e3a;
    background: #fff5f5;
}

.sub-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #c41e3a;
    cursor: pointer;
    flex-shrink: 0;
}

.sub-checkbox-label.checked,
.sub-checkbox-label:has(input:checked) {
    border-color: #c41e3a;
    background: #fff5f5;
}

.option-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.option-text strong {
    font-size: 16px;
    color: #333;
}

.option-price {
    color: #c41e3a;
    font-weight: 600;
    font-size: 14px;
}

/* Extras Section */
.sub-extras {
    margin-bottom: 20px;
}

.extras-label {
    margin: 0 0 12px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.extras-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Notes Section */
.sub-notes {
    margin-bottom: 20px;
}

.sub-notes label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sub-notes textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.sub-notes textarea:focus {
    outline: none;
    border-color: #c41e3a;
}

.sub-notes textarea::placeholder {
    color: #999;
}

/* Add to Cart Section */
.sub-add-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 2px solid #c41e3a;
}

.sub-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-label {
    font-size: 16px;
    color: #666;
}

.total-price {
    font-size: 24px;
    font-weight: bold;
    color: #c41e3a;
}

.sub-add-to-cart,
.sub-add-to-cart.button,
.sub-add-to-cart.button.alt,
button.sub-add-to-cart {
    display: block !important;
    width: 100% !important;
    padding: 15px 30px !important;
    background: #c41e3a !important;
    background-color: #c41e3a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-align: center !important;
}

.sub-add-to-cart:hover,
.sub-add-to-cart.button:hover,
.sub-add-to-cart.button.alt:hover,
button.sub-add-to-cart:hover {
    background: #a01830 !important;
    background-color: #a01830 !important;
    color: #fff !important;
}

.sub-add-to-cart:disabled,
.sub-add-to-cart.button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* Status Message */
.sub-status {
    margin-top: 15px;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
}

.sub-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.sub-status.error {
    background: #ffebee;
    color: #c62828;
}

/* Responsive */
@media (max-width: 480px) {
    .maestro-sub-builder {
        padding: 15px;
    }

    .sub-add-section {
        flex-direction: column;
        text-align: center;
    }

    .sub-add-to-cart {
        width: 100%;
    }
}
