/* Floating "Book a call" pill */

.tm-book-call {
    --tm-book-bg: #f7f5f2;
    --tm-book-ink: #111111;
    --tm-book-sub: rgba(17, 17, 17, 0.62);
    --tm-book-accent: #91796e;
    --tm-book-accent-ink: #ffffff;

    /* Center without translateX so hover only moves vertically */
    position: fixed;
    left: 0;
    right: 0;
    width: max-content;
    max-width: calc(100vw - 24px);
    margin-inline: auto;
    bottom: 20px;
    z-index: 5000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 9999px;
    background: var(--tm-book-bg) !important;
    background-color: var(--tm-book-bg) !important;
    color: var(--tm-book-ink) !important;
    text-decoration: none !important;
    box-shadow: 0 16px 40px -13px rgba(20, 21, 17, 0.28) !important;
    transform: translateY(2rem);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.tm-book-call.is-visible {
    opacity: 1 !important;
    transform: translateY(0);
    pointer-events: auto;
}

.tm-book-call.is-visible:hover,
.tm-book-call.is-visible:focus-visible,
body.home-draft a.tm-book-call.is-visible:hover,
body.site-chrome-v2 a.tm-book-call.is-visible:hover,
body.home-draft a.tm-book-call.is-visible:focus-visible,
body.site-chrome-v2 a.tm-book-call.is-visible:focus-visible {
    background: var(--tm-book-bg) !important;
    background-color: var(--tm-book-bg) !important;
    color: var(--tm-book-ink) !important;
    box-shadow: 0 16px 40px -13px rgba(20, 21, 17, 0.28) !important;
    opacity: 1 !important;
    text-decoration: none !important;
    transform: translateY(-3px) !important;
    outline: none;
}

.tm-book-call__avatars {
    display: flex;
    flex-shrink: 0;
}

.tm-book-call__avatars img {
    width: 33px;
    height: 33px;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--tm-book-bg);
}

.tm-book-call__avatars img + img {
    margin-left: -10px;
}

.tm-book-call__copy {
    text-align: left;
    line-height: 1.25;
    padding-right: 4px;
    white-space: nowrap;
    min-width: 0;
    color: var(--tm-book-ink) !important;
}

.tm-book-call__title {
    display: block;
    font-size: 12.9px;
    font-weight: 600;
    color: var(--tm-book-ink) !important;
    letter-spacing: normal;
}

.tm-book-call__sub {
    display: block;
    font-size: 10.9px;
    font-weight: 400;
    color: var(--tm-book-sub) !important;
}

.tm-book-call__sub:empty {
    display: none;
}

.tm-book-call__action {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 33px;
    height: 33px;
    border-radius: 9999px;
    background: var(--tm-book-accent);
    color: var(--tm-book-accent-ink);
}

.tm-book-call__action svg {
    width: 16px;
    height: 16px;
    display: block;
}

@media (min-width: 640px) {
    .tm-book-call {
        gap: 12px;
    }

    .tm-book-call__avatars img,
    .tm-book-call__action {
        width: 37px;
        height: 37px;
    }

    .tm-book-call__title {
        font-size: 13.5px;
    }

    .tm-book-call__sub {
        font-size: 11.9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-book-call {
        transition: opacity 0.2s ease;
        transform: translateY(0);
    }

    .tm-book-call.is-visible:hover,
    .tm-book-call.is-visible:focus-visible,
    body.home-draft a.tm-book-call.is-visible:hover,
    body.site-chrome-v2 a.tm-book-call.is-visible:hover {
        transform: translateY(0) !important;
    }
}
