.herb-cs-float {
    position: fixed;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.herb-cs-float:hover {
    text-decoration: none;
    color: inherit;
}

.herb-cs-float .herb-cs-icon {
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 24%, rgba(15, 23, 42, 0.18));
    border: 2px solid color-mix(in srgb, var(--primary-color) 18%, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.herb-cs-float .herb-cs-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.herb-cs-float .herb-cs-icon i {
    color: var(--primary-color);
}

.herb-cs-float .herb-cs-label {
    font-size: 12px;
    color: var(--primary-darker, #334155);
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 8px;
    border-radius: 4px;
    max-width: 100px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 4px color-mix(in srgb, var(--primary-color) 12%, rgba(15, 23, 42, 0.08));
}

.herb-cs-float.pos-topleft { top: 16px; left: 16px; }
.herb-cs-float.pos-topright { top: 16px; right: 16px; }
.herb-cs-float.pos-bottomleft { bottom: 16px; left: 16px; }
.herb-cs-float.pos-bottomright { bottom: 16px; right: 16px; }

/* 個人中心：與 menu-item 一致 */
.herb-cs-menu-group {
    margin-bottom: 10px;
}

.herb-cs-menu-item {
    cursor: pointer;
}

/* 側邊選單 */
.sidebar-cs-contact-item {
    padding: 0;
    list-style: none;
}

.herb-cs-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.herb-cs-sidebar-icon {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* 訂單詳情：置中 */
.herb-cs-order-wrap {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.herb-cs-order-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--primary-color);
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.herb-cs-order-link:hover {
    background: var(--bg-primary-lightest, #f8fafc);
    color: var(--primary-dark);
    text-decoration: none;
}

.herb-cs-order-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-primary-lightest, #f8fafc);
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

.herb-cs-order-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-darker, #334155);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .herb-cs-float.pos-bottomright,
    .herb-cs-float.pos-bottomleft {
        bottom: 80px;
    }

    .sidebar-cs-contact-item {
        display: none;
    }
}
