.rcw-floating-window {
    --rcw-primary: #1677ff;
    position: fixed;
    right: 18px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rcw-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-height: 58px;
    padding: 8px 6px;
    border: 0;
    border-radius: 8px;
    background: var(--rcw-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.rcw-item:hover,
.rcw-item:focus-visible,
.rcw-item.rcw-active {
    color: #fff;
    transform: translateX(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .3);
    outline: none;
}

.rcw-icon {
    display: flex;
    width: 24px;
    height: 24px;
}

.rcw-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.rcw-text {
    display: none;
}

.rcw-popover {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    display: block;
    min-width: 140px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .18);
    opacity: 0;
    pointer-events: none;
    transform: translate(8px, -50%);
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
}

.rcw-popover::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}

.rcw-item:hover .rcw-popover,
.rcw-item:focus-visible .rcw-popover,
.rcw-item.rcw-active .rcw-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.rcw-qr-popover {
    width: 178px;
    min-width: 178px;
    padding: 14px;
    white-space: normal;
}

.rcw-qr-popover img {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto 8px;
    border-radius: 6px;
    object-fit: cover;
}

.rcw-qr-popover small {
    display: block;
    color: #4b5563;
    font-size: 13px;
}

.rcw-phone-popover {
    min-width: 164px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
}

.rcw-copy-status {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e8f8ee;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.rcw-copy-phone {
    color: #111827;
    font-weight: 600;
    vertical-align: middle;
}

.rcw-phone-popover.rcw-copy-error .rcw-copy-status {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 767px) {
    .rcw-floating-window {
        right: 10px;
        gap: 8px;
    }

    .rcw-item {
        width: 50px;
        min-height: 50px;
    }

    .rcw-popover {
        right: calc(100% + 8px);
    }

    .rcw-qr-popover {
        width: 148px;
        min-width: 148px;
    }

    .rcw-qr-popover img {
        width: 120px;
        height: 120px;
    }
}
