/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * 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.
 *
 * @author    Felipe Maya <maya@mayaweb.es>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

/* Warning banner below add to cart button when customization is unsaved */
.mw-cg-btn-warning-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    color: #856404;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.mw-cg-btn-warning-banner span {
    font-size: 18px;
}

/* Toast notifications */
.mw-cg-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 480px;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mw-cg-toast-error {
    background-color: #d32f2f;
    border-left: 5px solid #9a0007;
}

.mw-cg-toast-warning {
    background-color: #f57c00;
    border-left: 5px solid #bb4d00;
}

.mw-cg-toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.mw-cg-toast-message {
    flex-grow: 1;
}

.mw-cg-toast-close {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
    margin-left: 8px;
}

.mw-cg-toast-close:hover {
    opacity: 1;
}

.mw-cg-toast-fadeout {
    opacity: 0;
}

/* Disabled button state */
button.mw-cg-disabled,
.mw-cg-disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}
