.hds-home-popup--template-compact {
    --popup-accent: var(--Brand-Brand-blue-Classic, #003c78);
    right: 35px;
    bottom: 70px;
    left: auto;
    box-sizing: border-box;
    width: min(540px, calc(100vw - 48px));
    min-height: 0;
    max-height: calc(100dvh - 94px);
    padding: 25px 28px;
    gap: 40px;
    border-radius: 5px;
    overflow-y: auto;
    color: var(--color-text-main-100, #011537);
    background: var(--color-white, #fff);
}

.hds-home-popup--template-compact.hds-home-popup--sector-mobility {
    --popup-accent: var(--Brand-Mobility-Classic, #d12d4b);
}

.hds-home-popup--template-compact.hds-home-popup--sector-green-infra {
    --popup-accent: var(--Brand-Green-infra-Classic, #0098e1);
}

.hds-home-popup--template-compact.hds-home-popup--sector-healthcare {
    --popup-accent: var(--Brand-Healthcare-Classic, #008890);
}

.hds-home-popup--template-compact.hds-home-popup--sector-consumer {
    --popup-accent: var(--Brand-Consumer-Classic, #f87f00);
}

.hds-home-popup--template-compact.has-image {
    grid-template-columns: minmax(0, 203fr) minmax(0, 241fr);
}

.hds-home-popup--template-compact .hds-home-popup__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    color: var(--color-text-main-100, #011537);
}

.hds-home-popup--template-compact .hds-home-popup__close span {
    display: none;
}

.hds-home-popup--template-compact .hds-home-popup__close::before,
.hds-home-popup--template-compact .hds-home-popup__close::after {
    position: absolute;
    width: 30px;
    height: 1px;
    background: currentColor;
    content: '';
    transform: rotate(45deg);
}

.hds-home-popup--template-compact .hds-home-popup__close::after {
    transform: rotate(-45deg);
}

.hds-home-popup--template-compact .hds-home-popup__media {
    align-self: end;
    min-height: 0;
    aspect-ratio: 516 / 741;
    background: var(--color-white, #fff);
}

.hds-home-popup--template-compact .hds-home-popup__media::after {
    content: none;
}

.hds-home-popup--template-compact .hds-home-popup__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hds-home-popup--template-compact .hds-home-popup__content {
    align-self: center;
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
}

.hds-home-popup--template-compact .hds-home-popup__eyebrow {
    margin-bottom: 22px;
    color: var(--popup-accent);
    font-size: 1.3125rem;
    line-height: 1.3;
    text-transform: none;
}

.hds-home-popup--template-compact .hds-home-popup__title {
    font-size: 1.6875rem;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: pretty;
}

.hds-home-popup--template-compact .hds-home-popup__text {
    margin-top: 4px;
    font-size: 1.1875rem;
    font-weight: 400;
    line-height: 1.25;
}

.hds-home-popup--template-compact .hds-home-popup__actions {
    display: flex;
    margin-top: 20px;
}

.hds-home-popup--template-compact .hds-home-popup__cta {
    --color: var(--color-white, #fff);
    --bg: var(--popup-accent);
    --color-hover: var(--color-white, #fff);
    --bg-hover: var(--popup-accent);
    box-sizing: border-box;
    max-width: 100%;
    padding: 17px 24px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .hds-home-popup--template-compact {
        bottom: 12px;
        right: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 20px;
        gap: 16px;
    }

    .hds-home-popup--template-compact.has-image {
        grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
    }

    .hds-home-popup--template-compact .hds-home-popup__eyebrow {
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .hds-home-popup--template-compact .hds-home-popup__title {
        font-size: 1.125rem;
    }

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

    .hds-home-popup--template-compact .hds-home-popup__cta {
        padding: 12px;
        font-size: .875rem;
    }
}

@media (max-width: 359px) {
    .hds-home-popup--template-compact.has-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .hds-home-popup--template-compact .hds-home-popup__image {
        max-height: 160px;
    }

    .hds-home-popup--template-compact .hds-home-popup__media {
        aspect-ratio: auto;
    }
}