/* =========================================================
   PRICE LIST POPUP
   Tartu Seikluspark
========================================================= */


/* =========================================================
   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;
}


/* =========================================================
   BACKDROP
========================================================= */

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

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

    backdrop-filter: blur(5px);
    -webkit-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;
    overflow-x: hidden;

    padding: 50px;

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


/* Chrome / Safari / Edge */

.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;
}


/* =========================================================
   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%;
}


/* =========================================================
   POPUP TRIGGERS
========================================================= */

.price-popup-trigger {
    cursor: pointer;
}


/* =========================================================
   "KOGU HINNAKIRI →" BUTTON
   Elementor CSS class:
   price-popup-trigger

   Muudame ainult teksti ja ikooni valgeks.
========================================================= */

.price-popup-trigger .elementor-button,
.price-popup-trigger .elementor-button:visited,
.price-popup-trigger .elementor-button:hover,
.price-popup-trigger .elementor-button:focus,
.price-popup-trigger .elementor-button:active {
    color: #ffffff !important;
}


.price-popup-trigger .elementor-button-text {
    color: #ffffff !important;
}


.price-popup-trigger .elementor-button-icon {
    color: #ffffff !important;
}


.price-popup-trigger .elementor-button-icon i,
.price-popup-trigger .elementor-button-icon i::before {
    color: #ffffff !important;
}


.price-popup-trigger .elementor-button-icon svg {
    color: #ffffff !important;
}


.price-popup-trigger .elementor-button-icon svg path,
.price-popup-trigger .elementor-button-icon svg line,
.price-popup-trigger .elementor-button-icon svg polyline,
.price-popup-trigger .elementor-button-icon svg polygon,
.price-popup-trigger .elementor-button-icon svg circle {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}


/* =========================================================
   ALUMINE TEKSTILINK
   "kogu hinnakirjast"
========================================================= */

.price-popup-text-link,
.price-popup-text-link:visited,
.price-popup-text-link:focus,
.price-popup-text-link:active,
.price-popup-text-link:hover {
    color: #ffffff !important;

    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px;
}


.price-popup-text-link:hover {
    opacity: .8;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .price-popup-content {
        width: calc(100% - 32px);

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

        border-radius: 32px;
    }


    .price-popup-scroll {
        max-height: calc(100vh - 40px);

        padding: 40px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .price-popup-content {
        width: calc(100% - 20px);

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

        border-radius: 24px;
    }


    .price-popup-scroll {
        max-height: calc(100vh - 20px);

        padding:
            50px
            18px
            24px;
    }


    .price-popup .price-popup-close {
        top: 12px;
        right: 14px;

        width: 40px;
        height: 40px;

        font-size: 34px;
    }

}