/**
 * Copyright since 2007 PrestaShop SA and Contributors
 *
 * 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 PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2019 PrestaShop SA
 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

.cartupsellpopin-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cartupsellpopin-overlay.show {
    display: flex;
}

.cartupsellpopin-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: cartupsellpopin-fadein 0.3s;
}

@keyframes cartupsellpopin-fadein {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cartupsellpopin-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.cartupsellpopin-close:hover {
    color: #000;
}

.cartupsellpopin-content {
    margin-top: 10px;
}

.cartupsellpopin-intro {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.cartupsellpopin-product {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cartupsellpopin-product-image {
    flex-shrink: 0;
    width: 200px;
}

.cartupsellpopin-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.cartupsellpopin-product-info {
    flex: 1;
}

.cartupsellpopin-product-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.cartupsellpopin-product-price {
    font-size: 24px;
    font-weight: bold;
    color: #2ecc71;
    margin: 0 0 20px 0;
}

.cartupsellpopin-combinations {
    margin-bottom: 20px;
}

.cartupsellpopin-combinations label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.cartupsellpopin-combinations select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cartupsellpopin-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cartupsellpopin-add-to-cart {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.cartupsellpopin-never-show {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cartupsellpopin-never-show:hover {
    color: #333;
    text-decoration: underline;
}

.cartupsellpopin-loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .cartupsellpopin-modal {
        padding: 20px;
        width: 95%;
    }

    .cartupsellpopin-product {
        flex-direction: column;
    }

    .cartupsellpopin-product-image {
        width: 100%;
    }
}

