/* Base Bar Styles */
#snb-bar {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    /* Smooth slide animation */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Hidden States - Starts off screen */
#snb-bar.snb-hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
#snb-bar.snb-position-bottom.snb-hide {
    transform: translateY(100%);
}

/* Positions */
#snb-bar.snb-position-top { top: 0; }
#snb-bar.snb-position-bottom { bottom: 0; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25); }

/* Inner Content */
.snb-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 50px;
    gap: 15px;
    text-align: center;
    box-sizing: border-box;
}

.snb-text {
    transition: color 0.2s ease;
    line-height: 1.4;
}

.snb-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Close Button - Bulletproof Centering */
#snb-close-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    color: inherit;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    left: 15px;
    /* Flexbox guarantees perfect centering of the X */
    display: flex;
    align-items: center;
    justify-content: center;
}

#snb-close-btn:hover { background: rgba(0,0,0,0.4); }
.snb-close-right { left: auto; right: 15px; }

/* Smooth wagon effect only on the body */
body { 
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important; 
}