/* QJR Shatter Banner Styles */
#qsb-banner {
    display: none;
    /* JS will show it */
    position: fixed;
    /* CHANGED: Fixed to stick to top of viewport */
    top: 0;
    left: 0;
    width: 100%;
    background: #111827;
    /* Dark Gray */
    color: #fff;
    padding: 12px 20px 20px 20px;
    /* ADDED: Extra bottom padding */
    z-index: 999999;
    /* Higher index to be above menu */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border-bottom: 3px solid #3B82F6;
    /* Blue Accent */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    transition: opacity 0.3s ease-in-out;
}

.qsb-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding-right: 40px;
}

.qsb-msg {
    display: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.qsb-msg.active {
    display: block;
}

.qsb-msg a {
    color: #60A5FA;
    text-decoration: underline;
}

#qsb-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

#qsb-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- Christmas Cord Logic --- */
#qsb-cord {
    display: none;
    /* Hidden strictly by default */
    position: fixed;
    /* Keep Cord Fixed so easy to find */
    top: -300px;
    /* Start hidden above */
    left: 40px;
    /* MOVED: To the left side */
    width: 80px;
    /* Wider for Sign */
    height: 150px;
    cursor: pointer;
    z-index: 999999;
    transition: top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Enhanced Bounce effect */
}

#qsb-cord.visible {
    display: block;
    top: -10px;
    /* Drop down */
}

.qsb-rope {
    width: 4px;
    height: 100px;
    /* Sign hangs from this */
    margin: 0 auto;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Holiday Cord Styles */
.qsb-cord-holiday .qsb-rope {
    background: repeating-linear-gradient(45deg,
            #991B1B,
            #991B1B 6px,
            #F87171 6px,
            #F87171 12px);
}

.qsb-cord-holiday .qsb-bell-body {
    background: radial-gradient(circle at 30% 30%, #F59E0B, #B45309);
}

/* Regular Cord Styles */
.qsb-cord-regular .qsb-rope {
    background: #4B5563;
    /* Medium Gray */
}

.qsb-cord-regular .qsb-bell-body {
    background: radial-gradient(circle at 30% 30%, #D1D5DB, #4B5563);
    /* Silver/Chrome */
}

.qsb-cord-regular .qsb-bell-clapper {
    background: #374151;
}

/* Holiday Sign */
.qsb-sign {
    position: absolute;
    top: 60px;
    /* Hang halfway down rope */
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    background: #111827;
    /* Dark Gray to match Banner */
    border: 2px solid #F59E0B;
    /* Gold Border */
    color: #F59E0B;
    /* Gold Text */
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    z-index: 2;
    animation: qsb-sway 3s infinite ease-in-out;
    transform-origin: center top;
}

/* Nail for Sign */
.qsb-sign::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #F59E0B;
    /* Gold Nail */
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.qsb-bell {
    position: absolute;
    bottom: 20px;
    /* Bottom of cord area */
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    z-index: 1;
}

.qsb-bell-body {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Shine */
.qsb-bell-body::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.qsb-bell-clapper {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 1;
}

/* Animations */
@keyframes qsb-sway {

    0%,
    100% {
        transform: translateX(-50%) rotate(-3deg);
    }

    50% {
        transform: translateX(-50%) rotate(3deg);
    }
}

/* Pull Animation */
#qsb-cord:active {
    top: 10px !important;
    transition: top 0.1s;
}

/* Mobile Tweak - Still on left but maybe tucked in more */
@media (max-width: 768px) {
    #qsb-cord {
        left: 20px;
    }
}