#pk-popup {
    z-index: 9999;
    position: fixed;
}
#pk-popup:not(.is-open) {
    display: none;
}
.pkpopup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #fff;
    border-radius: 50%;
    padding: 10px;
    color: #222;
    width: 30px;
    height: 30px;
    &:hover {
        background-color: #f1f1f1;
    }
    svg {
        width: 10px;
    }
}

#pk-popup[aria-hidden='false'] {
    .modal__overlay {
        animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
    }
    .modal__container {
        animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
    }
}

#pk-popup[aria-hidden='true'] {
    .modal__overlay {
        animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
    }
    .modal__container {
        animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
    }
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    will-change: transform;
}

.modal__container {
    background-color: #fff;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 100vh;
    box-sizing: border-box;
    overflow: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    will-change: transform;
}

.modal__close {
    background: transparent;
    border: 0;
}

.modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.8);
}

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}
