.floating-contact-fab {
    position: fixed;
    right: 24px;
    bottom: 108px;
    z-index: 66;
    width: 64px;
    height: 64px;
    will-change: left, top;
}

.floating-contact-panel {
    position: absolute;
    top: 50%;
    right: calc(100% + 14px);
    width: min(256px, calc(100vw - 112px));
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 236, 214, 0.16);
    background: linear-gradient(180deg, rgba(64, 36, 23, 0.96), rgba(20, 14, 12, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translate(10px, -50%) scale(0.98);
    transform-origin: right center;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.floating-contact-fab.panel-right .floating-contact-panel {
    left: calc(100% + 14px);
    right: auto;
    transform: translate(-10px, -50%) scale(0.98);
    transform-origin: left center;
}

.floating-contact-fab:hover .floating-contact-panel,
.floating-contact-fab:focus-within .floating-contact-panel,
.floating-contact-fab.is-open .floating-contact-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%) scale(1);
    pointer-events: auto;
}

.floating-contact-fab.is-dragging .floating-contact-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.floating-contact-title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff4e7;
    text-align: center;
}

.floating-contact-qr-shell {
    position: relative;
    aspect-ratio: 1 / 1;
    margin-top: 12px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 236, 214, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.floating-contact-qr {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-contact-panel.has-image .floating-contact-qr {
    display: block;
}

.floating-contact-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.floating-contact-panel.has-image .floating-contact-placeholder {
    display: none;
}

.floating-contact-placeholder-title {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
    color: #fff4e7;
}

.floating-contact-path {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 236, 214, 0.14);
    background: rgba(12, 9, 8, 0.32);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.6;
    color: #ffe7c8;
    word-break: break-all;
}

.floating-contact-trigger {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 234, 0.96));
    color: #17110d;
    display: grid;
    place-items: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-contact-trigger:hover,
.floating-contact-fab.is-open .floating-contact-trigger,
.floating-contact-trigger:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.94);
    outline: none;
}

.floating-contact-fab.is-dragging .floating-contact-trigger {
    cursor: grabbing;
    transform: none;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.floating-contact-trigger svg {
    width: 30px;
    height: 30px;
    display: block;
}

@media (max-width: 720px) {
    .floating-contact-fab {
        right: 14px;
        bottom: 88px;
        width: 58px;
        height: 58px;
    }

    .floating-contact-panel {
        width: min(220px, calc(100vw - 92px));
        padding: 12px;
    }

    .floating-contact-trigger {
        width: 58px;
        height: 58px;
    }

    .floating-contact-trigger svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 520px) {
    .floating-contact-fab {
        right: 12px;
        bottom: 80px;
        width: 58px;
        height: 58px;
    }

    .floating-contact-panel {
        width: min(200px, calc(100vw - 84px));
    }

    .floating-contact-path {
        font-size: 9px;
    }
}
