/**
 * 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    Fernando <fernando@example.com>
 * @copyright Since 2026 Fernando
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

/* Container for premium toast notifications */
.lpq-toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    width: calc(100% - 60px);
    pointer-events: none;
}

/* Glassmorphism Toast Style */
.lpq-toast {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(190%);
    -webkit-backdrop-filter: blur(12px) saturate(190%);
    border-left: 5px solid #ff4b5c;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 12px 30px rgba(31, 38, 135, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(130%);
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.35s ease;
    opacity: 0;
    pointer-events: auto;
}

/* Toast entrance trigger */
.lpq-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Toast Icon background and design */
.lpq-toast-icon {
    font-size: 20px;
    color: #ff4b5c;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 75, 92, 0.12);
    padding: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Content typography */
.lpq-toast-content {
    flex-grow: 1;
}

.lpq-toast-title {
    font-weight: 700;
    color: #1a1a1c;
    margin-bottom: 3px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lpq-toast-message {
    color: #55555c;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Close action */
.lpq-toast-close {
    background: none;
    border: none;
    color: #a0a0a5;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpq-toast-close:hover {
    color: #1a1a1c;
    transform: scale(1.1);
}

/* Inline Warning Alerts */
.lpq-inline-alert {
    background: rgba(255, 75, 92, 0.05);
    border: 1px solid rgba(255, 75, 92, 0.18);
    border-radius: 10px;
    padding: 12px 18px;
    color: #e03a4b;
    font-size: 13px;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: lpq-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1), lpq-shake 0.4s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lpq-inline-alert svg {
    flex-shrink: 0;
    stroke: #ff4b5c;
}

/* Micro-animations */
@keyframes lpq-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lpq-shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-5px);
    }
    40%, 80% {
        transform: translateX(5px);
    }
}

/* Style adjustments for disabled quantity selector */
#quantity_wanted:disabled {
    background-color: #f5f5f7;
    color: #a0a0a5;
    cursor: not-allowed;
    border-color: #e5e5e7;
}

/* Disable state highlight on cart item inputs */
.js-cart-line-product-quantity:disabled {
    background-color: #f5f5f7;
    color: #a0a0a5;
    cursor: not-allowed;
}

/* Product purchase presentation (Panda product-add-to-cart.tpl). */
.js-lpq-purchase-presentation .qty_wrap {
    display: flex;
    align-items: center;
}

.lpq-sale-unit-name {
    align-self: center;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.lpq-purchase-summary {
    flex: 0 0 100%;
    width: 100%;
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.lpq-summary-item:not([hidden]) + .lpq-summary-item:not([hidden])::before {
    content: " · ";
}
