.zcb {
    position: fixed;
    bottom: 24px;
    z-index: 9999;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

.zcb-right { right: 24px; }
.zcb-left  { left: 24px; }

/* Main toggle button */
.zcb-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: var(--zcb-main, #D2001B);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 2;
}

.zcb-toggle:hover {
    transform: scale(1.06);
}

.zcb-toggle svg {
    width: 28px;
    height: 28px;
}

.zcb-toggle-open,
.zcb-toggle-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s ease, transform .25s ease;
}

/* Close (X) icon, drawn with pseudo-elements */
.zcb-toggle-close {
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: rotate(-90deg);
}
.zcb-toggle-close::before,
.zcb-toggle-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
.zcb-toggle-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.zcb-toggle-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.zcb.is-open .zcb-toggle-open  { opacity: 0; transform: rotate(90deg); }
.zcb.is-open .zcb-toggle-close { opacity: 1; transform: rotate(0deg); }

/* Channel list */
.zcb-list {
    position: absolute;
    bottom: 76px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1;
}
.zcb-right .zcb-list { right: 6px; align-items: flex-end; }
.zcb-left  .zcb-list { left: 6px;  align-items: flex-start; }

.zcb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.zcb-left .zcb-item { flex-direction: row-reverse; }

/* Fully hide the list until opened so nothing peeks behind the button */
.zcb:not(.is-open) .zcb-list {
    visibility: hidden;
    pointer-events: none;
}

.zcb.is-open .zcb-item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.zcb.is-open .zcb-item:nth-child(1) { transition-delay: .05s; }
.zcb.is-open .zcb-item:nth-child(2) { transition-delay: .10s; }
.zcb.is-open .zcb-item:nth-child(3) { transition-delay: .15s; }
.zcb.is-open .zcb-item:nth-child(4) { transition-delay: .20s; }
.zcb.is-open .zcb-item:nth-child(5) { transition-delay: .25s; }

.zcb-label {
    background: #fff;
    color: #191716;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.zcb-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    transition: transform .2s ease;
}
.zcb-item:hover .zcb-icon {
    transform: scale(1.08);
}
.zcb-icon svg {
    width: 24px;
    height: 24px;
}

/* Greeting tooltip */
.zcb-greeting {
    position: absolute;
    bottom: 14px;
    background: #fff;
    color: #191716;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 32px 10px 14px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    animation: zcbFadeIn .4s ease both;
}
.zcb-right .zcb-greeting { right: 74px; }
.zcb-left  .zcb-greeting { left: 74px; }
.zcb.is-open .zcb-greeting { display: none; }

.zcb-greeting-close {
    position: absolute;
    top: 4px;
    right: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #999;
}

@keyframes zcbFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .zcb { bottom: 16px; }
    .zcb-right { right: 16px; }
    .zcb-left  { left: 16px; }
    .zcb-greeting { display: none; }
}
