#cbp-stack {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

#cbp-stack.cbp-visible {
    transform: translateY(0);
}

/* ---------- Trust ticker ---------- */
#cbp-trust {
    background: var(--cbp-trust-color, #161F29);
    overflow: hidden;
    height: 26px;
    display: flex;
    align-items: center;
}

.cbp-trust-track {
    display: flex;
    white-space: nowrap;
    animation: cbp-marquee 22s linear infinite;
}

.cbp-trust-track span {
    display: inline-block;
    padding: 0 32px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

@keyframes cbp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .cbp-trust-track { animation: none; }
}

/* ---------- Call bar ---------- */
#cbp-callbar {
    background: var(--cbp-bar-color, #1FAE5C);
    height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    animation: cbp-breathe 3.6s ease-in-out infinite;
}

@keyframes cbp-breathe {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.16); }
}

@media (prefers-reduced-motion: reduce) {
    #cbp-callbar { animation: none; }
}

.cbp-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    text-decoration: none;
    color: #fff;
}

.cbp-main span {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cbp-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cbp-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.cbp-icon svg {
    display: block;
}

.cbp-wa { background: #25D366; }
.cbp-vb { background: #7360F2; }

@media (min-width: 900px) {
    /* On desktop a bottom bar competes with wide layouts less; keep it centered and capped. */
    #cbp-stack {
        max-width: 480px;
        left: 50%;
        transform: translate(-50%, 120%);
        bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    }
    #cbp-stack.cbp-visible {
        transform: translate(-50%, 0);
    }
}
