/* ===========
   WRAPPER BASE
   =========== */
.fssb-wrapper {
    position: fixed;
    z-index: 9999;
    display: inline-flex;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
}

/* Positions */
.fssb-pos-left {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    flex-direction: column;
}

.fssb-pos-right {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    flex-direction: column;
}

.fssb-pos-top {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
}

.fssb-pos-bottom {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
}

/* Themes */
.fssb-theme-light {
    background: rgba(255, 255, 255, 0.95);
}

.fssb-theme-dark {
    background: rgba(15, 23, 42, 0.96);
}

.fssb-theme-color {
    background: linear-gradient(135deg, #6366f1, #ec4899);
}

/* Hide on desktop / mobile */
@media (min-width: 768px) {
    .fssb-hide-desktop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .fssb-hide-mobile {
        display: none !important;
    }
}

/* ===========
   BUTTON STYLE
   =========== */

.fssb-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(0);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        opacity 0.15s ease;
}

/* Light theme buttons */
.fssb-theme-light .fssb-btn {
    background: rgba(15, 23, 42, 0.03);
}

/* Dark theme buttons */
.fssb-theme-dark .fssb-btn {
    background: rgba(255, 255, 255, 0.08);
}

/* Color theme buttons */
.fssb-theme-color .fssb-btn {
    background: rgba(255, 255, 255, 0.16);
}

.fssb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    opacity: 0.95;
}

/* ===========
   ICON + LABEL
   =========== */

/* Icon container */
.fssb-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Inner SVG */
.fssb-icon svg {
    display: block;
}

/* Text label */
.fssb-label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: #111827;
}

/* Label color for dark / colorful themes */
.fssb-theme-dark .fssb-label,
.fssb-theme-color .fssb-label {
    color: #f9fafb;
}

/* ===========
   MOBILE TWEAKS
   =========== */

/* On very small screens: align as bottom bar and hide labels for compactness */
@media (max-width: 600px) {
    .fssb-pos-left,
    .fssb-pos-right {
        top: auto;
        bottom: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
    }

    .fssb-wrapper {
        padding: 6px 8px;
    }

    .fssb-label {
        display: none;
    }
}
