.hb-site-popup-host {
    position: relative;
    z-index: 10002;
}

.hb-site-popup {
    width: min(92vw, 1080px);
    max-width: 1080px;
    max-height: 88vh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #c7b084;
    color: #fff;
    box-shadow: 0 24px 70px rgba(39, 37, 38, 0.35);
    overflow: auto;
    font-family: inherit;
}

.hb-site-popup:not([open]) {
    display: none;
}

.hb-site-popup[open] {
    display: grid;
    animation: hb-site-popup-in 220ms ease-out;
}

.hb-site-popup::backdrop {
    background: rgba(39, 37, 38, 0.68);
    animation: hb-site-popup-backdrop-in 180ms ease-out;
}

.hb-site-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 4px;
    background: #49521f;
    color: #fff;
    cursor: pointer;
}

.hb-site-popup__close span::before,
.hb-site-popup__close span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: currentColor;
}

.hb-site-popup__close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.hb-site-popup__close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hb-site-popup__close:hover,
.hb-site-popup__close:focus-visible {
    background: #323816;
}

.hb-site-popup__close:focus-visible,
.hb-site-popup__cta:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px;
}

.hb-site-popup__media {
    min-height: 220px;
    margin: 0;
    overflow: hidden;
    background: #949e77;
}

.hb-site-popup__media img {
    width: 100%;
    height: 100%;
    max-height: 76vh;
    object-fit: cover;
}

.hb-site-popup__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 68px 24px 32px;
}

.hb-site-popup__title {
    margin: 0 0 12px;
    color: #49521f;
    font-family: "dm_serif_displayregular", serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hb-site-popup__subtitle {
    margin: 0 0 18px;
    color: #49521f;
    font-family: "barlowmedium", sans-serif;
    font-size: 20px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.hb-site-popup__text {
    color: #272526;
    font-size: 17px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.hb-site-popup__text > * + * {
    margin-top: 12px;
}

.hb-site-popup__text a {
    color: #49521f;
    text-decoration: underline;
}

.hb-site-popup__text ul,
.hb-site-popup__text ol {
    margin-top: 12px;
    padding-left: 22px;
}

.hb-site-popup__text ul {
    list-style: disc;
}

.hb-site-popup__text ol {
    list-style: decimal;
}

.hb-site-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 24px;
    background: #49521f;
    color: #fff;
    font-family: "barlowmedium", sans-serif;
    font-size: 16px;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease;
}

.hb-site-popup__cta:hover {
    background: #323816;
    color: #fff;
}

@media (min-width: 768px) {
    .hb-site-popup--with-image[open] {
        grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    }

    .hb-site-popup__content {
        min-height: 430px;
        padding: 72px 56px 56px;
    }

    .hb-site-popup__media {
        min-height: 430px;
    }

    .hb-site-popup__title {
        font-size: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-site-popup[open],
    .hb-site-popup::backdrop {
        animation: none;
    }

    .hb-site-popup__cta {
        transition: none;
    }
}

@keyframes hb-site-popup-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hb-site-popup-backdrop-in {
    from {
        background: rgba(39, 37, 38, 0);
    }
    to {
        background: rgba(39, 37, 38, 0.68);
    }
}
