/* sticky call button — the red twin of the WhatsApp button (floating-wpp),
   pinned to the opposite corner. floating-call.js adds .is-visible */
.floating-call {
    position: fixed;
    bottom: -20px;
    right: 15px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--theme-color, #D6020C);
    font-size: 30px;
    box-shadow: 1px 1px 4px rgba(60, 60, 60, 0.4);
    opacity: 0;
    visibility: hidden;
}

/* slides up and fades in, the same animation the old back-to-top button
   used. The extra :hover/:focus selectors outrank the site-wide a:hover
   rules, which would otherwise turn the icon blue and swap the transition */
.floating-call,
.floating-call:hover,
.floating-call:focus {
    color: #fff;
    transition: var(--transition, all .5s ease-in-out);
}

.floating-call.is-visible {
    opacity: 1;
    visibility: visible;
    bottom: 15px;
}

.floating-call.is-visible:hover {
    bottom: 17px;
    box-shadow: 1px 2px 8px rgba(60, 60, 60, 0.4);
}

/* on phones both floating buttons shrink to the same, smaller size so they
   don't crowd the screen. The WhatsApp plugin sets its size inline, hence
   the !important */
@media (max-width: 767px) {
    .floating-wpp .floating-wpp-button {
        width: 60px !important;
        height: 60px !important;
    }

    .floating-wpp .floating-wpp-popup.active {
        bottom: 70px;
    }

    .floating-call {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-call,
    .floating-call:hover,
    .floating-call:focus {
        transition: none;
    }
}
