/* CPS Mobility site-wide utility controls */

/* Back-to-top now lives inside the dark site footer, aligned right. */
.cps-footer-utilities-host {
    position: relative !important;
}

.cps-back-to-top-wrap {
    position: absolute;
    top: 14px;
    right: 24px;
    width: auto;
    margin: 0;
    padding: 0;
    display: block;
    z-index: 8;
}

.cps-back-to-top {
    appearance: none;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: #f4c542;
    color: #082f52;
    font: inherit;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    padding: 9px 13px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}

.cps-back-to-top:hover,
.cps-back-to-top:focus-visible {
    background: #ffd45c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,.16);
    outline: none;
}

.cps-back-to-top span:first-child {
    font-size: 15px;
    line-height: .8;
}

.cps-facebook-header-link {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1877f2;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(8, 47, 82, 0.16);
    transition: transform .18s ease, box-shadow .18s ease;
    margin-left: 8px;
    vertical-align: middle;
}

.cps-facebook-header-link:hover,
.cps-facebook-header-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(8, 47, 82, 0.22);
    outline: 3px solid rgba(24, 119, 242, 0.18);
    outline-offset: 2px;
}

.cps-facebook-header-link svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
}

.cps-header-social-holder {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 8px;
}

@media (max-width: 782px) {
    .cps-back-to-top-wrap {
        top: 10px;
        right: 12px;
    }

    .cps-back-to-top {
        font-size: 12px;
        min-height: 32px;
        padding: 8px 11px;
        gap: 5px;
    }

    .cps-facebook-header-link {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        margin-left: 6px;
    }
}
