.os-phone-cta {
    --os-phone-accent: #00A651;
    --os-phone-text: #FFFFFF;
    position: fixed;
    z-index: 99980;
    bottom: 24px;
    max-width: calc(100vw - 36px);
    font-family: inherit;
}

.os-phone-cta--left {
    left: 22px;
}

.os-phone-cta--right {
    right: 22px;
}

.os-phone-cta__link {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 62px;
    padding: 10px 18px 10px 10px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 999px;
    background: rgba(14, 24, 21, .92);
    color: var(--os-phone-text) !important;
    text-decoration: none !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.os-phone-cta__link:hover,
.os-phone-cta__link:focus {
    color: var(--os-phone-text) !important;
    background: rgba(14, 24, 21, .97);
    transform: translateY(-3px);
    box-shadow: 0 23px 55px rgba(0,0,0,.28);
}

.os-phone-cta__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--os-phone-accent);
    color: var(--os-phone-text);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--os-phone-accent) 40%, transparent);
}

.os-phone-cta.has-pulse .os-phone-cta__icon::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid color-mix(in srgb, var(--os-phone-accent) 65%, transparent);
    border-radius: 50%;
    animation: os-phone-pulse 2.4s ease-out infinite;
}

.os-phone-cta__copy {
    display: grid;
    line-height: 1.15;
}

.os-phone-cta__copy small {
    margin-bottom: 3px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 600;
}

.os-phone-cta__copy strong {
    color: var(--os-phone-text);
    font-size: 15px;
    font-weight: 850;
}

.os-phone-cta__copy > span {
    margin-top: 3px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.os-phone-cta--compact .os-phone-cta__copy small,
.os-phone-cta--compact .os-phone-cta__copy strong {
    display: none;
}

.os-phone-cta--compact .os-phone-cta__link {
    padding-right: 16px;
}

.os-phone-cta--shortcode {
    position: static;
    display: inline-block;
    max-width: 100%;
}

.os-phone-cta--shortcode .os-phone-cta__link {
    background: #101820;
}

@keyframes os-phone-pulse {
    0% { transform: scale(.85); opacity: .85; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@media (min-width: 769px) {
    .os-phone-cta[data-show-desktop="0"] {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .os-phone-cta[data-show-mobile="0"] {
        display: none !important;
    }

    .os-phone-cta--sitewide[data-mobile-bar="1"] {
        left: 12px !important;
        right: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom));
        max-width: none;
    }

    .os-phone-cta--sitewide[data-mobile-bar="1"] .os-phone-cta__link {
        width: 100%;
        justify-content: center;
        min-height: 58px;
        padding: 8px 16px;
        border-radius: 18px;
    }

    .os-phone-cta--sitewide[data-mobile-bar="1"] .os-phone-cta__copy {
        grid-template-columns: auto auto;
        align-items: center;
        gap: 8px;
    }

    .os-phone-cta--sitewide[data-mobile-bar="1"] .os-phone-cta__copy small {
        display: none;
    }

    .os-phone-cta--sitewide[data-mobile-bar="1"] .os-phone-cta__copy > span {
        margin: 0;
    }
}

@media (max-width: 430px) {
    .os-phone-cta--sitewide[data-mobile-bar="1"] .os-phone-cta__copy {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .os-phone-cta--sitewide[data-mobile-bar="1"] .os-phone-cta__copy strong,
    .os-phone-cta--sitewide[data-mobile-bar="1"] .os-phone-cta__copy > span {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .os-phone-cta,
    .os-phone-cta *,
    .os-phone-cta *::before,
    .os-phone-cta *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* v1.1 Hover-to-reveal interaction */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .os-phone-cta--sitewide[data-hover-reveal="1"] {
        width: 64px;
        overflow: visible;
    }

    .os-phone-cta--sitewide[data-hover-reveal="1"] .os-phone-cta__link {
        width: 64px;
        max-width: 64px;
        min-height: 64px;
        padding: 9px;
        gap: 0;
        overflow: hidden;
        white-space: nowrap;
        transition:
            width .30s cubic-bezier(.22,.61,.36,1),
            max-width .30s cubic-bezier(.22,.61,.36,1),
            padding .30s cubic-bezier(.22,.61,.36,1),
            gap .30s cubic-bezier(.22,.61,.36,1),
            transform .20s ease,
            box-shadow .20s ease,
            background .20s ease;
    }

    .os-phone-cta--sitewide[data-hover-reveal="1"] .os-phone-cta__copy {
        display: grid;
        min-width: 0;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateX(-8px);
        transition:
            max-width .30s cubic-bezier(.22,.61,.36,1),
            opacity .20s ease .04s,
            transform .25s ease;
    }

    .os-phone-cta--sitewide[data-hover-reveal="1"]:hover .os-phone-cta__link,
    .os-phone-cta--sitewide[data-hover-reveal="1"]:focus-within .os-phone-cta__link {
        width: 270px;
        max-width: 270px;
        padding: 9px 18px 9px 9px;
        gap: 13px;
    }

    .os-phone-cta--sitewide[data-hover-reveal="1"]:hover .os-phone-cta__copy,
    .os-phone-cta--sitewide[data-hover-reveal="1"]:focus-within .os-phone-cta__copy {
        max-width: 190px;
        opacity: 1;
        transform: translateX(0);
    }

    .os-phone-cta--sitewide[data-hover-reveal="1"] .os-phone-cta__link:focus-visible {
        outline: 3px solid color-mix(in srgb, var(--os-phone-accent) 55%, #ffffff);
        outline-offset: 4px;
    }
}

/* Touch devices: compact icon-only call button */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
    .os-phone-cta--sitewide[data-hover-reveal="1"] {
        left: 16px !important;
        right: auto !important;
        bottom: calc(16px + env(safe-area-inset-bottom)) !important;
        width: 58px !important;
        max-width: 58px !important;
    }

    .os-phone-cta--sitewide[data-hover-reveal="1"].os-phone-cta--right {
        left: auto !important;
        right: 16px !important;
    }

    .os-phone-cta--sitewide[data-hover-reveal="1"] .os-phone-cta__link {
        width: 58px !important;
        max-width: 58px !important;
        min-height: 58px !important;
        padding: 7px !important;
        gap: 0 !important;
        justify-content: center !important;
        border-radius: 999px !important;
        overflow: hidden !important;
    }

    .os-phone-cta--sitewide[data-hover-reveal="1"] .os-phone-cta__icon {
        flex-basis: 44px;
    }

    .os-phone-cta--sitewide[data-hover-reveal="1"] .os-phone-cta__copy {
        display: none !important;
    }
}
