/* =========================
    Floating Contact Widget (Simple Stack Variant Only)
    Removed unused panel & list styles to slim CSS.
    ========================= */
.contact-fab-wrapper {
    position: fixed;
    inset-inline-end: 18px;
    bottom: 18px;
    z-index: 1040;
}
@media (max-width: 575.98px) {
    .contact-fab-wrapper {
        inset-inline-end: 14px;
        bottom: 14px;
    }
}
.contact-fab {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
}
/* Simple variant (no panel) */
.contact-fab.contact-fab-simple {
    gap: 12px;
}
.contact-fab.contact-fab-simple .contact-stack {
    background: transparent;
    padding: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    inset-inline-end: 0;
    transform-origin: bottom right;
}
[dir="rtl"] .contact-fab.contact-fab-simple .contact-stack {
    transform-origin: bottom left;
}
.contact-fab.contact-fab-simple .contact-stack[x-cloak] {
    display: none !important;
}
.contact-fab.contact-fab-simple .contact-stack-item {
    /* Use the previous panel gradient + subtle border like original container */
    background: linear-gradient(145deg, #0f172a, #0b1220 58%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px -8px rgba(2, 8, 23, 0.55),
        0 2px 6px rgba(2, 8, 23, 0.35);
    /* Match toggle button size for perfect vertical alignment */
    width: 54px;
    height: 54px;
}
.contact-fab.contact-fab-simple .contact-stack-item:hover {
    background: linear-gradient(145deg, #14213b, #0f1c33 60%);
    border-color: rgba(var(--brand-primary-rgb), 0.45);
}
.contact-fab.contact-fab-simple.is-open .contact-fab-btn {
    transform: rotate(-10deg);
}
.contact-fab-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: var(--brand-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(var(--brand-primary-rgb), 0.45),
        0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.2s ease,
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-fab-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
}
.contact-fab-btn:active {
    transform: scale(0.92);
}
.contact-fab.is-open .contact-fab-btn {
    box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb), 0.55);
}
.contact-fab-btn:focus-visible {
    outline: 3px solid rgba(var(--brand-primary-rgb), 0.5);
    outline-offset: 3px;
}
/* Vertical stack */
.contact-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-stack-item {
    width: 54px; /* unified with toggle */
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    font-size: 24px;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s;
    position: relative;
}
.contact-stack-item:hover {
    background: rgba(var(--brand-primary-rgb), 0.22);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.35);
}
.contact-stack-item:active {
    transform: scale(0.9);
}
.contact-stack-item i {
    line-height: 1;
}
@media (max-width: 575.98px) {
    .contact-stack-item {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .contact-stack {
        gap: 8px;
    }
}
