.tkp-central-popup {
    position: fixed;
    inset: 0;
    z-index: 1999999999;
    display: block;
    overflow: auto;
    visibility: hidden;
    background: rgba(0, 0, 0, .7);
    opacity: 0;
    transition: visibility 0s linear .35s, opacity .35s ease;
}

.tkp-central-popup.is-visible {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.tkp-central-popup__viewport {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 32px;
}

.tkp-central-popup__dialog {
    position: relative;
    width: 60vw;
    max-width: 1120px;
    outline: 0;
    transform: translate(var(--tkp-popup-scrollbar-offset, 0px), 8px);
    transition: transform .35s ease;
}

.tkp-central-popup.is-visible .tkp-central-popup__dialog {
    transform: translate(var(--tkp-popup-scrollbar-offset, 0px), 0);
}

.tkp-central-popup__dialog > .tcm-wrap {
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
}

.tkp-central-popup__close {
    position: absolute;
    z-index: 2;
    top: -14px;
    right: -14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: #cf163f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    color: #fff;
    cursor: pointer;
    font: 700 28px/1 Arial, sans-serif;
}

.tkp-central-popup__close:hover,
.tkp-central-popup__close:focus-visible {
    background: #a90f31;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.tkp-central-popup-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .tkp-central-popup__viewport {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 8px 16px 24px;
    }

    .tkp-central-popup__dialog {
        width: calc(100vw - 32px + var(--tkp-popup-scrollbar-width, 0px));
        flex: 0 0 auto;
        margin: auto 0;
        transform: translate(0, 8px);
    }

    .tkp-central-popup.is-visible .tkp-central-popup__dialog {
        transform: translate(0, 0);
    }

    .tkp-central-popup__dialog > .tcm-wrap {
        padding: 20px;
    }

    .tkp-central-popup__close {
        top: -14px;
        right: -14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tkp-central-popup,
    .tkp-central-popup__dialog {
        transition-duration: .01ms;
    }
}
