
/* =========================
   PRICE PREVIEW
========================= */

.price-preview {
    position: relative;
    overflow: hidden;
    max-height: 800px;
}

.price-preview::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;

    background: linear-gradient(
        to bottom,
        rgba(246, 255, 242, 0) 0%,
        rgba(246, 255, 242, 0.75) 45%,
        rgba(246, 255, 242, 1) 80%
    );

    pointer-events: none;
    z-index: 5;
}

.price-preview-button {
    position: absolute;
    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    z-index: 10;
}


/* =========================
   PRICE LIST POPUP
========================= */

.price-popup {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .25s ease;
}

.price-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Popup backdrop */

.price-popup-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .55);

    backdrop-filter: blur(5px);
}


/* Popup content */

.price-popup-content {
    position: relative;

    width: min(1440px, calc(100% - 40px));
    max-height: calc(100vh - 60px);

    overflow: hidden;

    background: #f6fff2;
    border-radius: 40px;

    padding: 0;

    z-index: 1;

    transform: translateY(20px) scale(.98);

    transition: transform .25s ease;
}

.price-popup.is-open .price-popup-content {
    transform: translateY(0) scale(1);
}


/* Popup scroll area */

.price-popup-scroll {
    box-sizing: border-box;

    max-height: calc(100vh - 60px);

    overflow-y: auto;

    padding: 50px;

    scrollbar-width: thin;
    scrollbar-color: #156120 transparent;
}


/* Chrome / Safari / Edge scrollbar */

.price-popup-scroll::-webkit-scrollbar {
    width: 8px;
}

.price-popup-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.price-popup-scroll::-webkit-scrollbar-thumb {
    background: #156120;

    border: 2px solid #f6fff2;
    border-radius: 999px;

    background-clip: padding-box;
}

.price-popup-scroll::-webkit-scrollbar-thumb:hover {
    background: #176D24;
    background-clip: padding-box;
}


/* Popup close button */

.price-popup .price-popup-close {
    position: absolute;
    top: 24px;
    right: 28px;

    width: 44px;
    height: 44px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    appearance: none;

    border: none !important;
    outline: none;
    box-shadow: none !important;

    background: transparent !important;
    color: #156120;

    font-size: 40px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    z-index: 10;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.price-popup .price-popup-close:hover,
.price-popup .price-popup-close:active {
    transform: scale(1.12);
    opacity: .7;
}

.price-popup .price-popup-close:focus-visible {
    outline: 2px solid #156120;
    outline-offset: 4px;
    border-radius: 50%;
}