/* --- Simple Notice Bar --- */
.snb-notice-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: all 0.3s ease-in-out;
}

/* Push the bar down if the admin bar is showing */
body.admin-bar .snb-notice-bar {
    top: 32px;
}

.snb-text {
    margin: 0;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

.snb-cta-button {
    margin-left: 15px;
    padding: 8px 18px;
    border: none;
    border-radius: 50px; /* Cute, pill-shaped button */
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    flex-shrink: 0; /* Prevents button from shrinking */
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.snb-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Mobile Responsive Design --- */

/* For screens smaller than 782px (WordPress admin bar breakpoint) */
@media screen and (max-width: 782px) {
    body.admin-bar .snb-notice-bar {
        top: 46px;
    }
}

/* For smaller screens, stack the elements */
@media screen and (max-width: 600px) {
    .snb-notice-bar {
        flex-direction: column; /* Stack text and button vertically */
        padding: 15px;
        text-align: center;
    }

    .snb-text {
        padding: 0;
        margin-bottom: 10px;
    }

    .snb-cta-button {
        margin-left: 0; /* Remove left margin when stacked */
    }
}