/*
 * Оформлення сповіщень магазину (SweetAlert2) у стилі сайту EXSO:
 * шрифт e-Ukraine, помаранчевий #f58220 (кнопки каталогу), темний #232323,
 * прямокутні кнопки з верхнім регістром як у .btn-apply-filters / .btn-buy-orange-wide.
 * Підключається після vendor/sweetalert2/sweetalert2.min.css; JS-обгортка — js/exso-notify.js.
 */

:root {
    --swal2-backdrop: rgba(35, 35, 35, 0.55);
    --swal2-background: #ffffff;
    --swal2-color: #232323;
    --swal2-border-radius: 6px;
    --swal2-outline: 0 0 0 3px rgba(245, 130, 32, 0.35);
    --swal2-confirm-button-background-color: #f58220;
    --swal2-cancel-button-background-color: #232323;
}

.swal2-container {
    font-family: 'e-Ukraine', sans-serif;
    z-index: 100000;
}

/* ---------- Модальні вікна ---------- */

.swal2-popup.exso-modal {
    font-family: 'e-Ukraine', sans-serif;
    color: #232323;
    width: 34em;
    max-width: 92vw;
    padding: 34px 32px 30px;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.exso-modal .swal2-icon {
    margin: 0 auto 20px;
    border-width: 3px;
}

.exso-modal .swal2-title,
.exso-modal-title {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #232323;
    letter-spacing: 0.2px;
    margin: 0;
    padding: 0 0 6px;
}

.exso-modal .swal2-html-container,
.exso-modal-text {
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.65;
    color: #555555;
    margin: 0;
    padding: 6px 0 0;
}

.exso-modal-actions {
    width: 100%;
    justify-content: center;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
}

.exso-modal-close {
    color: #999999;
    font-size: 24px;
    font-family: inherit;
    box-shadow: none;
}

.exso-modal-close:hover,
.exso-modal-close:focus-visible {
    color: #232323;
    transform: none;
}

.exso-btn {
    font-family: 'e-Ukraine', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    min-width: 150px;
    margin: 0;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.exso-btn-primary {
    background-color: #f58220;
    border-color: #f58220;
    color: #ffffff;
}

.exso-btn-primary:hover,
.exso-btn-primary:focus-visible {
    background-color: #e06e0c;
    border-color: #e06e0c;
    color: #ffffff;
}

.exso-btn-secondary {
    background-color: #ffffff;
    border-color: #232323;
    color: #232323;
}

.exso-btn-secondary:hover,
.exso-btn-secondary:focus-visible {
    background-color: #232323;
    color: #ffffff;
}

.exso-btn:focus-visible {
    outline: 2px solid rgba(245, 130, 32, 0.6);
    outline-offset: 2px;
    box-shadow: none;
}

.exso-error-list {
    text-align: left;
    margin: 6px 0 0;
    padding: 0 0 0 18px;
    font-size: 13px;
    color: #555555;
}

.exso-error-list li {
    margin-bottom: 5px;
}

.exso-error-list li::marker {
    color: #d9534f;
}

/* Картка товару у вікні «додано до кошика» */
.exso-cart-added-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
    margin-top: 4px;
}

.exso-cart-added-product img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid #ededed;
    background: #f7f7f7;
}

.exso-cart-added-product strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #232323;
}

.exso-cart-added-product span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 300;
    color: #777777;
}

/* ---------- Тости (правий нижній кут, щоб не перекривати кнопки шапки) ---------- */

.swal2-container.swal2-bottom-end {
    padding: 0 20px 20px 0;
}

.swal2-popup.exso-toast {
    font-family: 'e-Ukraine', sans-serif;
    width: auto;
    max-width: 380px;
    padding: 14px 40px 14px 16px;
    border-left: 4px solid #f58220;
    border-radius: 4px;
    background: #ffffff;
    color: #232323;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.swal2-popup.exso-toast-error { border-left-color: #d9534f; }
.swal2-popup.exso-toast-warning { border-left-color: #f5a623; }
.swal2-popup.exso-toast-info { border-left-color: #232323; }

.exso-toast .swal2-icon {
    margin: 0 12px 0 0;
}

.exso-toast .swal2-title,
.exso-toast-title {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: #232323;
    margin: 0;
    padding: 0;
    text-align: left;
}

.exso-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    font-size: 20px;
    font-family: inherit;
    color: #aaaaaa;
    box-shadow: none;
}

.exso-toast-close:hover,
.exso-toast-close:focus-visible {
    color: #232323;
    transform: none;
}

.exso-toast-progress {
    height: 3px;
    background: #f58220;
}

.exso-toast-error .exso-toast-progress { background: #d9534f; }
.exso-toast-warning .exso-toast-progress { background: #f5a623; }
.exso-toast-info .exso-toast-progress { background: #232323; }

@media (max-width: 575px) {
    .swal2-popup.exso-modal {
        padding: 28px 20px 24px;
    }

    .exso-modal-actions {
        flex-direction: column-reverse;
    }

    .exso-btn {
        width: 100%;
    }

    .swal2-popup.exso-toast {
        max-width: calc(100vw - 24px);
    }
}
