.hds-home-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(1, 21, 55, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s;
}

.hds-home-popup-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.hds-home-popup-open {
    overflow: hidden;
}

.hds-home-popup {
    position: fixed;
    right: 24px;
    bottom: 70px;
    z-index: 9998;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(680px, calc(100vw - 48px));
    min-height: 260px;
    overflow: hidden;
    color: #011537;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 35px rgba(1, 21, 55, .22);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s ease, opacity .35s ease, visibility .35s;
}

.hds-home-popup.has-image {
    grid-template-columns: 240px minmax(0, 1fr);
}

.hds-home-popup--from-right {
    transform: translateX(calc(100% + 32px));
}

.hds-home-popup--from-bottom {
    transform: translateY(calc(100% + 32px));
}

.hds-home-popup.is-visible {
    transform: translate(0, 0);
    opacity: 1;
    visibility: visible;
}

.hds-home-popup--position-center {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
}

.hds-home-popup--position-center.hds-home-popup--from-right {
    transform: translate(calc(-50% + 100vw), -50%);
}

.hds-home-popup--position-center.hds-home-popup--from-bottom {
    transform: translate(-50%, calc(-50% + 100vh));
}

.hds-home-popup--position-center.is-visible {
    transform: translate(-50%, -50%);
}

.hds-home-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #596373;
    font: 400 22px/1 Arial, sans-serif;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.hds-home-popup__close:hover,
.hds-home-popup__close:focus-visible {
    color: #011537;
}

.hds-home-popup__media {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100%;
    background: #e7e3de;
    overflow: hidden;
}

.hds-home-popup__media::after {
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 34px;
    content: '';
    background: #fff;
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.hds-home-popup__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hds-home-popup__content {
    align-self: center;
    padding: 40px 54px 40px 34px;
}

.hds-home-popup__eyebrow,
.hds-home-popup__title,
.hds-home-popup__text {
    margin: 0;
    letter-spacing: 0;
}

.hds-home-popup__eyebrow {
    margin-bottom: 8px;
    color: var(--Brand-Brand-blue-Classic, #003c78);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.hds-home-popup__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.hds-home-popup__text {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.4;
}

.hds-home-popup__button {
    --color: var(--color-white, #fff);
    --bg: var(--Brand-Brand-blue-Classic, #003c78);
    --color-hover: var(--Brand-Brand-blue-Classic, #003c78);
    --bg-hover: var(--color-white, #fff);

    margin-top: 22px;
}

@media (max-width: 600px) {
    .hds-home-popup {
        right: 12px;
        bottom: 70px;
        width: calc(100vw - 24px);
        min-height: 190px;
    }

    .hds-home-popup.has-image {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .hds-home-popup--position-center {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
    }

    .hds-home-popup__content {
        padding: 24px 36px 24px 20px;
    }

    .hds-home-popup__title {
        font-size: 18px;
    }

    .hds-home-popup__text {
        font-size: 12px;
    }
}

.hds-home-popup--template-classic {
    inset: auto 0 0;
    width: 100%;
    min-height: min(240px, 65dvh);
    max-height: 65dvh;
    overflow-y: auto;
    border-radius: 0;
    border-top: 3px solid var(--Brand-Brand-blue-Classic, #003c78);
    box-shadow: 0 -6px 16px rgba(1, 21, 55, .12), 0 -18px 40px rgba(1, 21, 55, .08);
}

.hds-home-popup--template-classic.has-image {
    grid-template-columns: minmax(240px, 30%) minmax(0, 1fr);
}

.hds-home-popup--template-classic .hds-home-popup__content {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 48px 120px 48px 48px;
    overflow-wrap: anywhere;
}

.hds-home-popup--template-classic.has-image .hds-home-popup__content {
    grid-column: 2;
}

.hds-home-popup--template-classic .hds-home-popup__media {
    grid-column: 1;
    grid-row: 1;
    min-height: 100%;
}

.hds-home-popup--template-classic .hds-home-popup__image {
    position: absolute;
    inset: 0;
}

.hds-home-popup--template-classic .hds-home-popup__title {
    font-size: 2rem;
    font-weight: 400;
}

@media (max-width: 600px) {
    .hds-home-popup--template-classic {
        min-height: min(200px, 65dvh);
    }

    .hds-home-popup--template-classic.has-image {
        grid-template-columns: 28% minmax(0, 1fr);
    }

    .hds-home-popup--template-classic .hds-home-popup__content {
        padding: 32px 56px 32px 20px;
    }

    .hds-home-popup--template-classic .hds-home-popup__title {
        font-size: 1.375rem;
    }

    .hds-home-popup--template-classic .hds-home-popup__text {
        font-size: .875rem;
    }

    .hds-home-popup--template-classic .hds-home-popup__button {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hds-home-popup,
    .hds-home-popup-backdrop {
        transition-duration: .01ms;
    }
}
