/**
 * Floating Share Bar
 */

.yousfiat-floating-share {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 1.5rem;
    z-index: 50;
    pointer-events: none;
}

body.rtl .yousfiat-floating-share,
.yousfiat-floating-share {
    right: 1.5rem;
    left: auto;
}

.yousfiat-fs-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--color-background, #fefefe);
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    border-radius: 28px;
    padding: 8px 6px;
    pointer-events: auto;
    transition: all 0.25s ease;
}

.theme-dark .yousfiat-fs-inner {
    background: var(--color-background, #1a1a2e);
    border-color: rgba(255,255,255,0.08);
}

.yousfiat-fs-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--color-muted, #888);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.18s ease;
    text-decoration: none;
}

.yousfiat-fs-btn:hover,
.yousfiat-fs-btn:focus-visible {
    background: var(--color-primary-light, #949fcf);
    color: #fff;
    outline: none;
}

.yousfiat-fs-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--color-primary, #6B74B0);
}

.yousfiat-fs-divider {
    height: 1px;
    background: var(--color-border, rgba(0,0,0,0.08));
    margin: 4px 6px;
}

.yousfiat-fs-bookmark.is-saved {
    color: var(--color-primary, #6B74B0);
}

.yousfiat-fs-bookmark.is-saved .yousfiat-fs-bookmark-icon {
    fill: currentColor;
}

.yousfiat-fs-toast {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    transform: translateY(-50%);
    background: var(--color-foreground, #1a1a2e);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.yousfiat-fs-toast.is-visible {
    opacity: 1;
}

.yousfiat-fs-toast::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--color-foreground, #1a1a2e);
}

/* Mobile: convert to bottom bar */
@media (max-width: 768px) {
    .yousfiat-floating-share {
        top: auto;
        bottom: 1rem;
        right: 50%;
        transform: translateX(50%);
        left: auto;
    }

    .yousfiat-fs-inner {
        flex-direction: row;
        gap: 6px;
        border-radius: 32px;
        padding: 6px 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .yousfiat-fs-divider {
        width: 1px;
        height: auto;
        margin: 6px 4px;
    }

    .yousfiat-fs-toast {
        top: auto;
        right: 50%;
        bottom: calc(100% + 12px);
        transform: translateX(50%);
    }

    .yousfiat-fs-toast::after {
        top: auto;
        right: 50%;
        bottom: -4px;
        transform: translateX(50%) rotate(45deg);
    }
}

/* Hide on print */
@media print {
    .yousfiat-floating-share { display: none !important; }
}
