/* Sliding corner pop-up. Shared by the home page and single solution pages. */
.hp-popup-block {
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.3;
    position: fixed;
    bottom: 0;
    right: 0;
    transform: translateX(100%);
    transition: transform .5s;
    z-index: 9;
}
.hp-popup-block.active {
    transform: translateX(0);
    transition: transform .5s 1s;
}
.hp-popup-close {
    opacity: 0.3;
    font: 32px/30px "TVNordEF-Light", sans-serif;
    cursor: pointer;
    width: auto;
    position: absolute;
}
.hp-popup-body {
    padding: 25px;
}
.hp-popup-block h3 {
    font: 21px / 1.35 "TVNordEF-Black", sans-serif;
    margin-bottom: 5px;
}
/* .yellow-bar-title is defined per-page (home.css, job.css, resources-hub.css),
   so carry a copy for templates that load none of those. */
.hp-popup-block .yellow-bar-title {
    position: relative;
}
.hp-popup-block .yellow-bar-title:before {
    content: '';
    width: 60px;
    height: 5px;
    background-color: #FFD13F;
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
}
.hp-popup-block img {
    width: 100%;
}
.hp-popup-block h4 {
    font-size: 22px;
    line-height: 24px;
    margin-bottom: 8px;
}
.hp-popup-block .btn {
    font-size: 18px;
    line-height: 0.9;
    width: fit-content;
    padding: 12px 12px;
}
.hp-popup-block.light {
    background-color: #F1F1F1;
    color: #000;
}
.hp-popup-block.dark {
    background-color: #173A56;
    color: #fff;
}
.hp-popup-block .hp-popup-body {
    position: relative;
}
.hp-popup-block .hp-popup-close {
    top: -1px;
    right: 5px;
}
.hp-popup-block img {
    margin-bottom: 40px;
}

@media (min-width: 501px) {
    .hp-popup-block img {
        width: 100%;
    }
    .hp-popup-block.vertical {
        width: 296px;
    }
    .hp-popup-block.horizontal {
        width: 435px;
    }
    .hp-popup-block.horizontal .hp-popup-body {
        display: flex;
        padding-right: 45px;
    }
    .hp-popup-block.horizontal h3 {
        margin-top: 15px;
    }
    .hp-popup-block.horizontal .hp-popup-col-img {
        width: 55%;
    }
    .hp-popup-block.horizontal img {
        margin-bottom: 0;
    }
    .hp-popup-block.horizontal .hp-popup-col-copy {
        width: 50%;
        display: flex;
        flex-direction: column;
    }
    .hp-popup-block.horizontal .btn {
        margin-top: auto;
    }
    .hp-popup-block.horizontal .hp-popup-close {
        line-height: 20px;
        top: 22px;
        right: 18px;
    }
    .hp-popup-block.horizontal.left .hp-popup-col-copy {
        order: -1;
    }
    .hp-popup-block.horizontal.left .hp-popup-col-img {
        padding-left: 25px;
    }
    .hp-popup-block.horizontal.right .hp-popup-col-img {
        padding-right: 25px;
    }
}

@media (max-width: 500px) {
    .hp-popup-block img {
        width: auto;
        max-height: 250px;
    }
}
