/* 收货悬浮客服：与 .rc-totop 同宽同高、同右对齐 */

:root {
    --rc-float-size: 3rem;
    --rc-float-right: 1.25rem;
    --rc-float-bottom: 1.25rem;
    --rc-float-gap: 0.75rem;
}

.rc-support-fab {
    position: fixed;
    right: var(--rc-float-right);
    bottom: calc(var(--rc-float-bottom) + var(--rc-float-size) + var(--rc-float-gap));
    z-index: 91;
    width: var(--rc-float-size);
    height: var(--rc-float-size);
    pointer-events: none;
}

.rc-support-fab > * {
    pointer-events: auto;
}

.rc-support-btn {
    position: relative;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: var(--rc-float-size);
    height: var(--rc-float-size);
    border: 0;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.rc-support-btn:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    color: #fff;
}

.rc-support-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rc-support-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #e23a2e;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.rc-support-tip {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    max-width: 15.5rem;
    padding: 0.7rem 1.65rem 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: #fff;
    color: #222;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.rc-support-tip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.04);
}

.rc-support-tip-title {
    display: block;
    margin: 0 0 0.2rem;
    color: #e23a2e;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
}

.rc-support-tip-body {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #333;
}

.rc-support-tip-close {
    position: absolute;
    top: 0.28rem;
    right: 0.28rem;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 0;
    border-radius: 50%;
    background: #eee;
    color: #666;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.rc-support-tip-close:hover {
    background: #e2e2e2;
    color: #333;
}

@media (max-width: 767.98px) {
    :root {
        --rc-float-size: 2.75rem;
        --rc-float-right: 0.875rem;
        --rc-float-bottom: max(0.875rem, env(safe-area-inset-bottom));
    }

    .rc-support-tip {
        max-width: 12.5rem;
    }
}
