/*
 * Helpline box ("Existing Customer? Need service, repair or claim" + "Call 24|7 Helpline").
 * Copied from heating.247homerescue.co.uk (Content/css/site.css: .ctaHolder, .pinkTopBox, .pinkTopBoxM and their
 * media-query overrides), trimmed to the helpline box only. Linked from Views/Shared/_Layout.cshtml after the site css.
 *
 * Wide screens: .pinkTopBox sits in the header row (inside .ctaHolder, next to the existing phone button).
 * Up to 1249px: the header box is hidden and .pinkTopBoxM, the first element of each landing page, is shown instead.
 * (Heating switches at 1024px, but its header has no Trustpilot badge; here the badge, logo, box and phone button
 * only fit side by side from about 1250px up, so the switch is made there.)
 */

/* .ctaHolder is new here (nothing else in this site's css uses it); scoped under .header anyway. */
.header .ctaHolder {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* The header row now has four items: keep the logo and the buttons at their natural size, the badge gives way. */
.header .logo {
    flex-shrink: 0;
}

.header .trustpilot {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
}

.header .ctaHolder .bluBtn {
    white-space: nowrap;
}

.pinkTopBox {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 10px;
    opacity: 1;
    padding-top: 10px;
    padding-right: 19px;
    padding-bottom: 10px;
    padding-left: 19px;
    border-radius: 16px;
    background: #FBE4E5;
}

    .pinkTopBox .textLine {
        font-family: 'Nunito Sans';
        font-weight: 700;
        font-size: 18px;
        line-height: 100%;
        letter-spacing: -2%;
        vertical-align: middle;
        color: #323234;
    }

        .pinkTopBox .textLine span {
            font-weight: 400;
            font-size: 16px;
        }

    .pinkTopBox .helplineBtn {
        padding-top: 12px;
        padding-right: 15px;
        padding-bottom: 12px;
        padding-left: 15px;
        border-radius: 12px;
        border: 1px solid #DD2127;
        color: #DD2127;
        font-family: 'Nunito Sans';
        font-weight: 700;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: -2%;
        text-align: center;
        white-space: nowrap;
    }

.pinkTopBoxM {
    display: none;
}

/* Below ~1650px the one-line text of heating does not leave room for the Trustpilot badge: put the second part on its own line. */
.pinkTopBox .textLine span {
    display: block;
}

@media only screen and (min-width:1650px) {
    .pinkTopBox .textLine span {
        display: inline;
    }
}

@media only screen and (max-width:1249px) {
    .pinkTopBox {
        display: none;
    }

    .pinkTopBoxM {
        display: flex;
        align-items: center;
        height: 60px;
        width: 100%;
        gap: 10px;
        opacity: 1;
        padding-top: 10px;
        padding-right: 19px;
        padding-bottom: 10px;
        padding-left: 19px;
        border-radius: 16px;
        background: #FBE4E5;
        margin-bottom: 12px;
        justify-content: center;
    }

        .pinkTopBoxM .textLine {
            font-family: 'Nunito Sans';
            font-weight: 700;
            font-size: 18px;
            line-height: 100%;
            letter-spacing: -2%;
            vertical-align: middle;
            color: #323234;
        }

            .pinkTopBoxM .textLine span {
                font-weight: 400;
                font-size: 16px;
            }

        .pinkTopBoxM .helplineBtn {
            padding-top: 12px;
            padding-right: 15px;
            padding-bottom: 12px;
            padding-left: 15px;
            border-radius: 12px;
            border: 1px solid #DD2127;
            color: #DD2127;
            font-family: 'Nunito Sans';
            font-weight: 700;
            font-size: 14px;
            line-height: 100%;
            letter-spacing: -2%;
            text-align: center;
        }
}

@media only screen and (max-width:820px) {
    /* style.css/PPCstyle.css give .call width:52% of the header row; it now lives in .ctaHolder, so keep it content-sized. */
    .header .ctaHolder .call {
        width: auto;
    }
}

@media only screen and (max-width:600px) {
    .pinkTopBoxM {
        align-items: stretch;
    }

        .pinkTopBoxM .helplineBtn {
            width: 180px;
        }
}

@media only screen and (max-width:540px) {
    /* The header is fixed (85px) here, so the strip starts below it. Heating pushes the strip down by 85px; this site
       already pushes .NewSection down by 85px, so that gap is moved to the strip and removed from the section after it. */
    .pinkTopBoxM {
        margin-top: 85px;
    }

    .helplineStrip ~ .NewSection {
        margin-top: 0;
    }
}

@media screen and (max-width:444px) {
    .pinkTopBoxM .helplineBtn {
        width: 220px;
    }
}

@media screen and (max-width:430px) {
    .pinkTopBoxM .helplineBtn {
        width: 230px;
    }
}

@media screen and (max-width:414px) {
    .pinkTopBoxM .textLine {
        font-size: 16px;
    }

        .pinkTopBoxM .textLine span {
            font-size: 14px;
        }
}

@media screen and (max-width:393px) {
    .pinkTopBoxM .helplineBtn {
        width: 100%;
    }
}

@media screen and (max-width:380px) {
    .pinkTopBoxM {
        height: auto;
    }

        .pinkTopBoxM .helplineBtn {
            height: 40px;
        }
}

@media screen and (max-width:340px) {
    .pinkTopBoxM {
        height: auto;
        flex-direction: column;
    }
}
