.omg-popup {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 250ms ease, visibility 250ms ease;
    visibility: hidden;
    z-index: 99999;
}

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

.omg-popup__backdrop {
    background: rgba(255, 255, 255, 0.86);
    inset: 0;
    position: absolute;
}

.omg-popup__dialog {
    background: #fff;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.14);
    max-height: 90vh;
    max-width: 440px;
    overflow: auto;
    position: relative;
    transform: translateY(12px);
    transition: transform 250ms ease;
    width: calc(100% - 36px);
}

.omg-popup.is-open .omg-popup__dialog {
    transform: translateY(0);
}

.omg-popup__image-wrap {
    line-height: 0;
}

.omg-popup__image {
    display: block;
    height: auto;
    max-height: 52vh;
    object-fit: cover;
    width: 100%;
}

.omg-popup__content {
    padding: 27px 30px 34px;
    text-align: center;
}

.omg-popup__title {
    color: #171717;
    font-family: freightDisplBold, Georgia, serif;
    font-size: 30px;
    font-weight: normal;
    line-height: 1.15;
    margin: 0 0 14px;
}

.omg-popup__text {
    color: #222;
    font-family: vitoRegular, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1.65;
}

.omg-popup__link {
    border-bottom: 1px solid rgb(250, 140, 115);
    color: rgb(250, 140, 115);
    display: inline-block;
    font-family: vitoCondensedMedium, Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0.17em;
    margin-top: 17px;
    padding-bottom: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

.omg-popup__link:focus,
.omg-popup__link:focus-visible {
    border: 2px solid rgb(250, 140, 115);
    outline: 2px solid #222;
    outline-offset: 3px;
}

.omg-popup__close {
    align-items: center;
    background: #fff;
    border: 0;
    color: rgb(250, 140, 115);
    cursor: pointer;
    display: flex;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    height: 35px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 35px;
    z-index: 2;
}

.omg-popup__close:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

.omg-popup__preview-badge {
    background: rgb(250, 140, 115);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 6px 9px;
    position: absolute;
    right: 42px;
    text-transform: uppercase;
    top: 7px;
    z-index: 2;
}

body.omg-popup-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .omg-popup__dialog {
        max-height: 88vh;
        width: calc(100% - 28px);
    }

    .omg-popup__content {
        padding: 22px 20px 27px;
    }

    .omg-popup__title {
        font-size: 26px;
    }

    .omg-popup__text {
        font-size: 13px;
    }
}

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