/* Vril portable social share bar (products, pages, marketing) */

.vrl-social-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin: 1rem 0 1.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid var(--vrl-border, rgba(148, 163, 184, 0.35));
    background: color-mix(in srgb, var(--vrl-surface, #fff) 88%, var(--vrl-primary, #7c3aed) 12%);
}

.vrl-social-share-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vrl-text-muted, #64748b);
}

.vrl-social-share-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.vrl-social-share-btn {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(var(--vrl-primary-rgb, 124, 58, 237), 0.22);
    background: var(--vrl-surface, #fff);
    color: var(--vrl-primary, #7c3aed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
}

.vrl-social-share-btn:hover,
.vrl-social-share-btn:focus-visible {
    transform: translateY(-1px);
    background: rgba(var(--vrl-primary-rgb, 124, 58, 237), 0.12);
    border-color: rgba(var(--vrl-primary-rgb, 124, 58, 237), 0.45);
    color: var(--vrl-primary, #7c3aed);
    outline: none;
}

.vrl-social-share-btn.is-copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.45);
    color: #16a34a;
}

.vrl-social-share-icon {
    display: block;
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.vrl-social-share-btn--vrilchat:hover,
.vrl-social-share-btn--vrilchat:focus-visible {
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.55);
    background: rgba(102, 126, 234, 0.12);
}

.vrl-social-share--layout {
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.vrl-social-share--float-left,
.vrl-social-share--float-right {
    position: fixed;
    top: 42%;
    z-index: 1040;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    max-width: 4.5rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.vrl-social-share--float-left {
    left: 0.75rem;
}

.vrl-social-share--float-right {
    right: 0.75rem;
}

.vrl-social-share--float-left .vrl-social-share-label,
.vrl-social-share--float-right .vrl-social-share-label {
    text-align: center;
    font-size: 0.65rem;
}

.vrl-social-share--float-left .vrl-social-share-actions,
.vrl-social-share--float-right .vrl-social-share-actions {
    flex-direction: column;
}

@media (max-width: 991px) {
    .vrl-social-share--float-left,
    .vrl-social-share--float-right {
        position: static;
        max-width: none;
        flex-direction: row;
        margin: 1rem 0 1.25rem;
        box-shadow: none;
    }

    .vrl-social-share--float-left .vrl-social-share-actions,
    .vrl-social-share--float-right .vrl-social-share-actions {
        flex-direction: row;
    }
}

[data-bs-theme="dark"] .vrl-social-share {
    background: color-mix(in srgb, var(--vrl-surface-2, #0f172a) 90%, var(--vrl-primary, #7c3aed) 10%);
}

[data-bs-theme="dark"] .vrl-social-share-btn {
    background: var(--vrl-surface-2, #111827);
}
