/**
 * Copyright since 2024 Pixodeo
 *
 * 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.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 *
 * @author    Pixodeo
 * @copyright Since 2024 Pixodeo
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
 */

.px-cartmessage-container {
    margin: 15px 0;
}

.px-cartmessage-item {
    padding: 12px 16px;
    margin-bottom: 10px;
    background-color: rgba(214, 134, 5, 0.15);
    border: 1px solid rgba(214, 134, 5, 0.4);
    border-radius: 4px;
    color: #8a5600;
    font-size: 14px;
    line-height: 1.5;
}

.px-cartmessage-item:last-child {
    margin-bottom: 0;
}

.px-cartmessage-container:empty {
    display: none;
    margin: 0;
    padding: 0;
}

/* ======================================================================
   Popup Modal
   ====================================================================== */

.px-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.px-popup-overlay.px-popup-visible {
    opacity: 1;
}

.px-popup-overlay.px-popup-closing {
    opacity: 0;
}

.px-popup-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.px-popup-visible .px-popup-modal {
    transform: scale(1);
}

.px-popup-closing .px-popup-modal {
    transform: scale(0.95);
}

.px-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0;
    z-index: 1;
}

.px-popup-close:hover {
    background: #e0e0e0;
}

.px-popup-close:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

.px-popup-header {
    padding: 24px 24px 0;
}

.px-popup-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    padding-right: 40px;
}

.px-popup-body {
    padding: 16px 24px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.px-popup-body p {
    margin: 0 0 10px;
}

.px-popup-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .px-popup-modal {
        width: 95%;
        border-radius: 8px;
    }

    .px-popup-header {
        padding: 16px 16px 0;
    }

    .px-popup-title {
        font-size: 18px;
    }

    .px-popup-body {
        padding: 12px 16px 16px;
    }

    .px-popup-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 18px;
    }
}
