﻿:root {
    --ps-popup-overlay-bg: rgba(0, 0, 0, 0.3);
    --ps-popup-bg: #ffffff;
    --ps-popup-border-color: #e9ecef;
    --ps-popup-text: #1a1a1a;
    --ps-popup-text-muted: #495057;
    --ps-popup-scrollbar: #d0d4d9;
    --ps-popup-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    --ps-popup-radius: 8px;
    --ps-popup-radius-lg: 12px;
    --ps-popup-radius-full: 50%;
    --ps-popup-overlay-padding: 8px;
    --ps-popup-overlay-padding-lg: 16px;
    --ps-popup-backdrop-blur: 2px;
    --ps-popup-z-index: 9999;
    --ps-popup-header-padding-y: 14px;
    --ps-popup-header-padding-x: 18px;
    --ps-popup-header-gap: 12px;
    --ps-popup-header-min-height: 52px;
    --ps-popup-body-padding: 0px;
    --ps-popup-body-padding-lg: 8px;
    --ps-popup-title-size: 16px;
    --ps-popup-title-size-sm: 17px;
    --ps-popup-title-size-xl: 18px;
    --ps-popup-title-weight: 600;
    --ps-popup-letter-spacing: .01em;
    --ps-popup-close-size: 32px;
    --ps-popup-close-icon-size: 18px;
    --ps-popup-close-icon-size-sm: 20px;
    --ps-popup-close-icon-size-lg: 22px;
    --ps-popup-close-icon-size-xl: 24px;
    --ps-popup-close-icon-size-4k: 28px;
    --ps-popup-width-default: 720px;
    --ps-popup-size-sm: 480px;
    --ps-popup-size-md: 720px;
    --ps-popup-size-lg: 900px;
    --ps-popup-size-xl: 1100px;
    --ps-popup-size-sm-xl: 500px;
    --ps-popup-size-md-xl: 800px;
    --ps-popup-size-lg-xl: 1000px;
    --ps-popup-size-xl-xl: 1300px;
    --ps-popup-size-sm-4k: 600px;
    --ps-popup-size-md-4k: 960px;
    --ps-popup-size-lg-4k: 1300px;
    --ps-popup-size-xl-4k: 1600px;
    --ps-popup-default-xl: 800px;
    --ps-popup-default-4k: 960px;
    --ps-popup-max-height: 95vh;
    --ps-popup-max-height-lg: 90vh;
    --ps-popup-scrollbar-width: 4px;
    --ps-popup-scrollbar-radius: 3px;
    --ps-popup-overlay-transition: opacity .2s ease;
    --ps-popup-container-transition: transform .25s ease, opacity .45s ease;
    --ps-popup-close-transition: background .15s ease, color .15s ease;
    --ps-popup-icon-transition: transform .15s ease;
}

.ps-popup-overlay {
    position: fixed;
    inset: 0;
    background: var(--ps-popup-overlay-bg);
    backdrop-filter: blur(var(--ps-popup-backdrop-blur));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--ps-popup-z-index);
    padding: var(--ps-popup-overlay-padding);
    box-sizing: border-box;
    opacity: 0;
    transition: var(--ps-popup-overlay-transition);
}

    .ps-popup-overlay.ps-open {
        opacity: 1;
    }

body.ps-scroll-locked {
    overflow: hidden;
}

.ps-popup-container {
    background: var(--ps-popup-bg);
    box-shadow: var(--ps-popup-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: var(--ps-popup-max-height);
    border-radius: var(--ps-popup-radius);
    transform: translateY(16px) scale(.98);
    opacity: 0;
    transition: var(--ps-popup-container-transition);
}

.ps-popup-overlay.ps-open .ps-popup-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ps-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ps-popup-header-gap);
    padding: var(--ps-popup-header-padding-y) var(--ps-popup-header-padding-x);
    background: var(--ps-popup-bg);
    border-bottom: 1px solid var(--ps-popup-border-color);
    flex-shrink: 0;
    min-height: var(--ps-popup-header-min-height);
}

    .ps-popup-header.ps-title-left {
        justify-content: space-between;
    }

        .ps-popup-header.ps-title-left .ps-popup-title {
            flex: 1;
            text-align: left;
        }

    .ps-popup-header.ps-title-center {
        position: relative;
    }

        .ps-popup-header.ps-title-center .ps-popup-title {
            position: absolute;
            left: 0;
            right: 0;
            text-align: center;
            pointer-events: none;
        }

        .ps-popup-header.ps-title-center .ps-popup-close {
            position: relative;
            z-index: 1;
            margin-left: auto;
        }

.ps-popup-title {
    font-size: var(--ps-popup-title-size);
    font-weight: var(--ps-popup-title-weight);
    color: var(--ps-popup-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: var(--ps-popup-letter-spacing);
}

.ps-popup-close {
    border: none;
    background: var(--ps-popup-bg);
    color: var(--ps-popup-text-muted);
    width: var(--ps-popup-close-size);
    height: var(--ps-popup-close-size);
    border-radius: var(--ps-popup-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--ps-popup-close-transition);
}

    .ps-popup-close:hover {
        background: var(--ps-popup-border-color);
        color: var(--ps-popup-text);
    }

    .ps-popup-close:active {
        transform: scale(.92);
    }

    .ps-popup-close svg {
        width: var(--ps-popup-close-icon-size);
        height: var(--ps-popup-close-icon-size);
        display: block;
        flex-shrink: 0;
        transition: var(--ps-popup-icon-transition);
    }

    .ps-popup-close:hover svg {
        transform: scale(1.1);
    }

    .ps-popup-close:active svg {
        transform: scale(.85);
    }

.ps-popup-body {
    padding: var(--ps-popup-body-padding);
    overflow: auto;
    flex: 1;
    position: relative;
    -webkit-overflow-scrolling: touch;
    background: var(--ps-popup-bg);
}

    .ps-popup-body::-webkit-scrollbar {
        width: var(--ps-popup-scrollbar-width);
    }

    .ps-popup-body::-webkit-scrollbar-thumb {
        background: var(--ps-popup-scrollbar);
        border-radius: var(--ps-popup-scrollbar-radius);
    }

    .ps-popup-body::-webkit-scrollbar-track {
        background: transparent;
    }

.ps-popup-container.ps-size-sm {
    max-width: var(--ps-popup-size-sm);
}

.ps-popup-container.ps-size-md {
    max-width: var(--ps-popup-size-md);
}

.ps-popup-container.ps-size-lg {
    max-width: var(--ps-popup-size-lg);
}

.ps-popup-container.ps-size-xl {
    max-width: var(--ps-popup-size-xl);
}

.ps-popup-container.ps-size-full {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
}

@media (min-width: 576px) {
    .ps-popup-overlay {
        padding: var(--ps-popup-overlay-padding-lg);
    }

    .ps-popup-container {
        max-width: 540px;
        max-height: var(--ps-popup-max-height-lg);
        border-radius: var(--ps-popup-radius-lg);
    }

    .ps-popup-title {
        font-size: var(--ps-popup-title-size-sm);
    }

    .ps-popup-body {
        padding: var(--ps-popup-body-padding-lg);
    }

    .ps-popup-close svg {
        width: var(--ps-popup-close-icon-size-sm);
        height: var(--ps-popup-close-icon-size-sm);
    }
}

@media (min-width: 992px) {
    .ps-popup-container {
        max-width: var(--ps-popup-width-default);
    }

    .ps-popup-close svg {
        width: var(--ps-popup-close-icon-size-lg);
        height: var(--ps-popup-close-icon-size-lg);
    }
}

@media (min-width: 1200px) {
    .ps-popup-container.ps-size-sm {
        max-width: var(--ps-popup-size-sm-xl);
    }

    .ps-popup-container.ps-size-md {
        max-width: var(--ps-popup-size-md-xl);
    }

    .ps-popup-container.ps-size-lg {
        max-width: var(--ps-popup-size-lg-xl);
    }

    .ps-popup-container.ps-size-xl {
        max-width: var(--ps-popup-size-xl-xl);
    }

    .ps-popup-container {
        max-width: var(--ps-popup-default-xl);
    }

    .ps-popup-title {
        font-size: var(--ps-popup-title-size-xl);
    }

    .ps-popup-close svg {
        width: var(--ps-popup-close-icon-size-xl);
        height: var(--ps-popup-close-icon-size-xl);
    }
}

@media (min-width: 2000px) {
    .ps-popup-container.ps-size-sm {
        max-width: var(--ps-popup-size-sm-4k);
    }

    .ps-popup-container.ps-size-md {
        max-width: var(--ps-popup-size-md-4k);
    }

    .ps-popup-container.ps-size-lg {
        max-width: var(--ps-popup-size-lg-4k);
    }

    .ps-popup-container.ps-size-xl {
        max-width: var(--ps-popup-size-xl-4k);
    }

    .ps-popup-container {
        max-width: var(--ps-popup-default-4k);
        font-size: 16px;
    }

    .ps-popup-title {
        font-size: var(--ps-popup-title-size-xl);
    }

    .ps-popup-close svg {
        width: var(--ps-popup-close-icon-size-4k);
        height: var(--ps-popup-close-icon-size-4k);
    }
}