/* Fixed Bottom Scroller Menu Styles */
.fbsm-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2D2D3B;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fbsm-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.fbsm-scroller::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.fbsm-nav {
    padding: 10px 15px;
}

.fbsm-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: min-content;
    gap: 5px;
}

.fbsm-menu li {
    margin: 0;
    flex-shrink: 0;
}

.fbsm-menu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    background: #d5ee9b;
    border-radius: 25px;
    border: 1px solid #e9ecef;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-align: center;
}

.fbsm-menu a:hover,
.fbsm-menu a:focus {
    background: #54b435;
    color: white;
    border-color: #54b435;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.fbsm-menu .current-menu-item a,
.fbsm-menu .current_page_item a {
    background: #54b435;
    color: white;
    border-color: #54b435;
}

/* Remove all toggle button related styles */
.fbsm-toggle {
    display: none !important;
}

/* Responsive Design - Always visible now */
@media (max-width: 768px) {
    .fbsm-container {
        transform: translateY(0) !important; /* Always visible */
        position: fixed !important; /* Ensure it stays fixed */
    }
    
    .fbsm-menu a {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .fbsm-nav {
        padding: 12px 15px;
    }
    
    /* Adjust for mobile devices with notches */
    .fbsm-container {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Animation for menu items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fbsm-menu li {
    animation: slideIn 0.3s ease forwards;
}

.fbsm-menu li:nth-child(1) { animation-delay: 0.1s; }
.fbsm-menu li:nth-child(2) { animation-delay: 0.2s; }
.fbsm-menu li:nth-child(3) { animation-delay: 0.3s; }
.fbsm-menu li:nth-child(4) { animation-delay: 0.4s; }
.fbsm-menu li:nth-child(5) { animation-delay: 0.5s; }

/* Smooth scrolling */
.fbsm-scroller {
    scroll-behavior: smooth;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fbsm-menu a {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fbsm-menu a {
        transition: none;
    }
    
    .fbsm-menu li {
        animation: none;
    }
    
    .fbsm-scroller {
        scroll-behavior: auto;
    }
}

/* Shortcode version adjustments */
.fbsm-shortcode {
    position: relative;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

/* Ensure content doesn't hide behind the fixed menu */
body {
    padding-bottom: 80px !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px !important;
    }
}

/* Scroll indicator for horizontal scrolling */
.fbsm-scroller.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9));
    pointer-events: none;
}

/* Error message styling */
.fbsm-error {
    text-align: center;
    padding: 15px;
    background: #fff3f3;
    border: 1px solid #d63638;
    border-radius: 4px;
    color: #d63638;
    margin: 10px;
}

.fbsm-error a {
    color: #d63638;
    text-decoration: underline;
}

/* Ensure body has padding for fixed menu */
body {
    padding-bottom: 80px !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px !important;
    }
}