/* Shared floating contact widget — all frontend themes */
.fc-widget {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1040;
    display: flex;
    gap: .65rem;
    align-items: flex-end;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.fc-widget--stacked {
    flex-direction: column;
}

.fc-widget--horizontal {
    flex-direction: row;
}

.fc-widget--pill {
    flex-direction: column;
}

.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    text-decoration: none !important;
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    color: #fff !important;
    line-height: 1;
}

.fc-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .24);
    color: #fff !important;
}

.fc-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.fc-btn--round {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 999px;
}

.fc-btn--pill {
    min-height: 2.85rem;
    padding: 0 .95rem 0 .75rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
}

.fc-btn--whatsapp {
    background: linear-gradient(145deg, #25d366, #128c7e);
}

.fc-btn--call {
    background: linear-gradient(145deg, #0ea5e9, #0369a1);
}

.fc-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.fc-btn--pill svg {
    width: 1.15rem;
    height: 1.15rem;
}

/* Expand style */
.fc-widget--expand {
    flex-direction: column;
    align-items: flex-end;
}

.fc-expand-panel {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    align-items: flex-end;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .25s ease, opacity .2s ease, margin .2s ease;
    margin-bottom: 0;
}

.fc-widget--expand.is-open .fc-expand-panel {
    max-height: 12rem;
    opacity: 1;
    pointer-events: auto;
    margin-bottom: .55rem;
}

.fc-btn--toggle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #0f766e, #0369a1);
    position: relative;
}

.fc-btn--toggle .fc-icon-close {
    display: none;
}

.fc-widget--expand.is-open .fc-btn--toggle .fc-icon-open {
    display: none;
}

.fc-widget--expand.is-open .fc-btn--toggle .fc-icon-close {
    display: block;
}

.fc-tooltip {
    position: absolute;
    right: calc(100% + .55rem);
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .35rem .55rem;
    border-radius: .45rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.fc-btn--round {
    position: relative;
}

.fc-btn--round:hover .fc-tooltip {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .fc-widget {
        right: .75rem;
        bottom: .85rem;
    }
    .fc-btn--round {
        width: 3.1rem;
        height: 3.1rem;
    }
    .fc-btn--pill span {
        max-width: 7.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
