.fcb-dock,
.fcb-dock * {
    box-sizing: border-box;
}

.fcb-dock {
    position: fixed;
    bottom: var(--fcb-bottom, 22px);
    z-index: var(--fcb-z, 99999);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    pointer-events: none;
}

.fcb-dock--right {
    right: var(--fcb-side, 22px);
}

.fcb-dock--left {
    left: var(--fcb-side, 22px);
    align-items: flex-start;
}

.fcb-panel,
.fcb-launcher {
    pointer-events: auto;
}

.fcb-panel {
    position: relative;
    width: min(var(--fcb-panel, 360px), calc(100vw - 28px));
    max-height: min(620px, calc(100vh - 116px));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 28px;
    color: var(--fcb-secondary, #0b1c2c);
    background-color: var(--fcb-surface, #ffffff);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--fcb-accent, #316ca5) 10%, transparent), transparent 42%),
        var(--fcb-surface, #ffffff);
    border: 1px solid rgba(11, 28, 44, 0.10);
    border-radius: 22px;
    box-shadow:
        0 24px 70px rgba(11, 28, 44, 0.20),
        0 4px 16px rgba(11, 28, 44, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.96);
    transform-origin: bottom right;
    transition:
        opacity 0.24s ease,
        visibility 0.24s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.fcb-dock--left .fcb-panel {
    transform-origin: bottom left;
}

.fcb-dock.is-open .fcb-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fcb-panel__accent {
    display: none;
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
}

.fcb-dock--accented .fcb-panel__accent {
    display: flex;
}

.fcb-panel__accent span {
    flex: 1 1 33.333%;
}

.fcb-panel__accent span:nth-child(1) {
    background: var(--fcb-secondary, #0b1c2c);
}

.fcb-panel__accent span:nth-child(2) {
    background: var(--fcb-accent, #316ca5);
}

.fcb-panel__accent span:nth-child(3) {
    background: var(--fcb-primary, #308639);
}

.fcb-panel__header {
    padding-right: 8px;
}

.fcb-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--fcb-primary, #308639);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fcb-panel__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--fcb-primary, #308639) 12%, transparent);
}

.fcb-panel__title {
    margin: 0;
    color: var(--fcb-secondary, #0b1c2c);
    font-size: 23px;
    font-weight: 760;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.fcb-panel__description {
    margin: 12px 0 0;
    color: rgba(11, 28, 44, 0.66);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.62;
}

.fcb-panel__channels {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.fcb-channel {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 13px;
    min-height: 66px;
    padding: 10px 13px 10px 10px;
    overflow: hidden;
    color: var(--fcb-secondary, #0b1c2c);
    background: rgba(11, 28, 44, 0.035);
    border: 1px solid rgba(11, 28, 44, 0.075);
    border-radius: 14px;
    text-decoration: none;
    transition:
        transform 0.24s ease,
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}

.fcb-channel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--fcb-accent, #316ca5);
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.fcb-channel--whatsapp::before {
    background: var(--fcb-primary, #308639);
}

.fcb-channel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--fcb-primary, #308639);
    background: #ffffff;
    border: 1px solid rgba(11, 28, 44, 0.07);
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(11, 28, 44, 0.08);
}

.fcb-channel--phone .fcb-channel__icon,
.fcb-channel--email .fcb-channel__icon {
    color: var(--fcb-accent, #316ca5);
}

.fcb-channel__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fcb-channel--whatsapp .fcb-channel__icon svg {
    fill: currentColor;
    stroke: none;
}

.fcb-channel__copy {
    min-width: 0;
}

.fcb-channel__copy strong,
.fcb-channel__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fcb-channel__copy strong {
    color: var(--fcb-secondary, #0b1c2c);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.fcb-channel__copy small {
    margin-top: 4px;
    color: rgba(11, 28, 44, 0.54);
    font-size: 11.5px;
    font-weight: 450;
    line-height: 1.25;
}

.fcb-channel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(11, 28, 44, 0.36);
    transition: transform 0.24s ease, color 0.24s ease;
}

.fcb-channel__arrow svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fcb-channel:hover,
.fcb-channel:focus-visible {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: color-mix(in srgb, var(--fcb-accent, #316ca5) 22%, transparent);
    box-shadow: 0 12px 24px rgba(11, 28, 44, 0.10);
}

.fcb-channel:hover::before,
.fcb-channel:focus-visible::before {
    transform: scaleY(1);
}

.fcb-channel:hover .fcb-channel__arrow,
.fcb-channel:focus-visible .fcb-channel__arrow {
    color: var(--fcb-accent, #316ca5);
    transform: translateX(3px);
}

.fcb-panel__socials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(11, 28, 44, 0.08);
}

.fcb-panel__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(11, 28, 44, 0.62);
    background: rgba(11, 28, 44, 0.045);
    border: 1px solid rgba(11, 28, 44, 0.07);
    border-radius: 10px;
    transition: transform 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

.fcb-panel__socials a:hover,
.fcb-panel__socials a:focus-visible {
    transform: translateY(-2px);
    color: #ffffff;
    background: var(--fcb-secondary, #0b1c2c);
}

.fcb-panel__socials svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.fcb-social--instagram svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.fcb-panel__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 17px;
    color: rgba(11, 28, 44, 0.50);
    font-size: 10.5px;
    font-weight: 550;
    line-height: 1.35;
    text-align: center;
}

.fcb-panel__status span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: var(--fcb-primary, #308639);
    border-radius: 50%;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--fcb-primary, #308639) 10%, transparent);
}

.fcb-launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    padding: 0;
    color: #ffffff;
    background-color: var(--fcb-primary, #308639);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--fcb-primary, #308639) 88%, #ffffff), var(--fcb-primary, #308639));
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 20px;
    box-shadow:
        0 15px 32px color-mix(in srgb, var(--fcb-primary, #308639) 32%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: pointer;
    isolation: isolate;
    transition:
        transform 0.25s ease,
        border-radius 0.3s ease,
        box-shadow 0.25s ease;
}

.fcb-launcher::before {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
}

.fcb-launcher__halo {
    position: absolute;
    inset: -7px;
    z-index: -2;
    border: 1px solid color-mix(in srgb, var(--fcb-primary, #308639) 35%, transparent);
    border-radius: 24px;
    animation: fcb-halo 3.4s ease-out infinite;
}

.fcb-launcher__icon {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.fcb-launcher__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fcb-launcher__icon--close {
    opacity: 0;
    transform: rotate(-45deg) scale(0.72);
}

.fcb-dock.is-open .fcb-launcher {
    border-radius: 50%;
    transform: rotate(0deg);
}

.fcb-dock.is-open .fcb-launcher__icon--open {
    opacity: 0;
    transform: rotate(45deg) scale(0.72);
}

.fcb-dock.is-open .fcb-launcher__icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.fcb-launcher:hover,
.fcb-launcher:focus-visible {
    transform: translateY(-3px);
    box-shadow:
        0 19px 38px color-mix(in srgb, var(--fcb-primary, #308639) 38%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.fcb-launcher:focus-visible,
.fcb-channel:focus-visible,
.fcb-panel__socials a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--fcb-accent, #316ca5) 30%, transparent);
    outline-offset: 3px;
}

@keyframes fcb-halo {
    0%, 45% {
        opacity: 0;
        transform: scale(0.90);
    }
    58% {
        opacity: 0.50;
    }
    82%, 100% {
        opacity: 0;
        transform: scale(1.14);
    }
}

@media (max-width: 767px) {
    .fcb-dock {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        left: auto;
        align-items: flex-end;
    }

    .fcb-dock--left {
        right: auto;
        left: 14px;
        align-items: flex-start;
    }

    .fcb-panel {
        width: min(var(--fcb-panel, 360px), calc(100vw - 28px));
        max-height: calc(100vh - 104px - env(safe-area-inset-bottom));
        padding: 24px 20px 21px;
        border-radius: 20px;
        transform-origin: bottom right;
    }

    .fcb-dock--left .fcb-panel {
        transform-origin: bottom left;
    }

    .fcb-panel__title {
        font-size: 21px;
    }

    .fcb-panel__description {
        font-size: 13px;
    }

    .fcb-channel {
        min-height: 62px;
        grid-template-columns: 42px minmax(0, 1fr) 18px;
        gap: 11px;
    }

    .fcb-channel__icon {
        width: 42px;
        height: 42px;
    }

    .fcb-launcher {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .fcb-launcher__icon svg {
        width: 25px;
        height: 25px;
    }

    .fcb-dock--desktop-only {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fcb-panel,
    .fcb-channel,
    .fcb-channel::before,
    .fcb-channel__arrow,
    .fcb-panel__socials a,
    .fcb-launcher,
    .fcb-launcher__icon,
    .fcb-launcher__halo {
        transition: none;
        animation: none;
    }
}
