/**
 * Frontend Styles for Min Max Step Controller
 */

/* Quantity Notice on Product Page */
.mmscw-notice {
    background: #f8f8f8;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-left: 3px solid #2271b1;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.6;
}

.mmscw-notice strong {
    color: #1d2327;
    font-weight: 600;
}

/* Quantity Input Enhancement */
.quantity .qty {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: border-color 0.2s ease;
    min-width: 60px;
}

.quantity .qty:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Quantity Controls */
.quantity {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Error Messages in Cart */
.woocommerce-error,
.woocommerce-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.woocommerce-error {
    background: #fff3cd;
    border-left: 3px solid #dc3232;
    color: #856404;
}

.woocommerce-message {
    background: #d1ecf1;
    border-left: 3px solid #0073aa;
    color: #0c5460;
}

/* Cart Page Quantity Validation Notice */
.mmscw-cart-notice {
    background: #f0f0f1;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 3px;
    font-size: 13px;
    color: #646970;
}

/* Invalid Input Styling */
.mmscw-invalid {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 !important;
}

/* Validation Message */
.mmscw-validation-message {
    background: #fff3cd;
    border-left: 3px solid #dc3232;
    color: #856404;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 3px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mmscw-notice {
        padding: 10px;
        font-size: 13px;
    }
    
    .quantity .qty {
        min-width: 50px;
        padding: 6px 10px;
    }
}

/* Accessibility Enhancements */
.quantity .qty:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Animation for notices */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .mmscw-notice {
        border: 1px solid #000;
        background: #fff;
    }
}