/**
* 2025 Addify
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author    Addify
* @copyright 2025 Addify
* @license   http://opensource.org/licenses/afl-3.0.php
*/
/* Mixing Warning Styles */
.addify-mixing-warning {
    margin: 0px 0;
    padding: 15px 20px;
    border-radius: 6px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}
.addify-mixing-warning .alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.addify-mixing-warning i.material-icons {
    font-size: 20px;
    color: #f39c12;
}
.addify-mixing-warning span {
    font-size: 14px;
    line-height: 1.4;
}
/* Enhanced Mixing Error Styles */
.addify-enhanced-mixing-error {
    margin: 0px 0;
    padding: 15px 20px;
    border-radius: 6px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    font-weight: bold;
    text-align: center;
    position: relative;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}
.addify-enhanced-mixing-error i.material-icons {
    font-size: 20px;
    color: #dc3545;
    margin-right: 10px;
}
/* Hidden Checkout Elements */
.addify-hidden-checkout {
    display: none !important;
}
/* Disabled Checkout Elements */
.addify-disabled-checkout {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
.addify-disabled-checkout:hover {
    opacity: 0.5 !important;
}
/* Animation for fade in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Flash animation for error messages */
@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
.addify-mixing-warning.flash,
.addify-enhanced-mixing-error.flash {
    animation: flash 0.5s ease-in-out;
}
/* Responsive design */
@media (max-width: 768px) {
    .addify-mixing-warning,
    .addify-enhanced-mixing-error {
        margin: 10px 0;
        padding: 12px 15px;
        font-size: 13px;
    }
    .addify-mixing-warning .alert-content {
        flex-direction: column;
        gap: 5px;
    }
    .addify-mixing-warning i.material-icons,
    .addify-enhanced-mixing-error i.material-icons {
        font-size: 18px;
    }
}
/* Cart page specific styles */
.cart-container .addify-mixing-warning,
.cart-container .addify-enhanced-mixing-error {
    margin-top: 0;
    margin-bottom: 20px;
}
/* Checkout page specific styles */
.checkout-container .addify-mixing-warning,
.checkout-container .addify-enhanced-mixing-error {
    margin-top: 0;
    margin-bottom: 20px;
}
/* Ensure warning appears above other elements */
.addify-mixing-warning,
.addify-enhanced-mixing-error {
    position: relative;
    z-index: 9999;
}
/* Style for checkout buttons that are being hidden */
.checkout-btn.addify-hidden-checkout,
.btn-checkout.addify-hidden-checkout,
.js-checkout-btn.addify-hidden-checkout,
.addify-quick-checkout-btn.addify-hidden-checkout {
    display: none !important;
}
/* Style for checkout buttons that are disabled */
.checkout-btn.addify-disabled-checkout,
.btn-checkout.addify-disabled-checkout,
.js-checkout-btn.addify-disabled-checkout,
.addify-quick-checkout-btn.addify-disabled-checkout {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
/* Prevent any hover effects on disabled buttons */
.checkout-btn.addify-disabled-checkout:hover,
.btn-checkout.addify-disabled-checkout:hover,
.js-checkout-btn.addify-disabled-checkout:hover,
.addify-quick-checkout-btn.addify-disabled-checkout:hover {
    opacity: 0.5 !important;
    transform: none !important;
    box-shadow: none !important;
}