.nbwp-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nbwp-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
    position: relative;
}

.nbwp-banner-text {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.nbwp-banner-link {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.nbwp-banner-link:hover {
    opacity: 0.8;
}

.nbwp-banner-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-weight: 300;
}

.nbwp-banner-close:hover {
    opacity: 1;
}

.nbwp-banner-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Push page content down */
body {
    padding-top: 0 !important;
}

body.nbwp-banner-active {
    padding-top: 0 !important;
}

/* Push site header down below fixed banner */
body.nbwp-banner-active .site-header {
    margin-top: 60px;
    transition: margin-top 0.3s ease-out;
}

/* Fade out animation when dismissed */
.nbwp-banner.nbwp-dismissed {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .nbwp-banner {
        padding: 12px 50px 12px 15px;
    }

    .nbwp-banner-content {
        flex-direction: column;
        gap: 8px;
    }

    .nbwp-banner-text {
        font-size: 14px;
    }

    .nbwp-banner-close {
        font-size: 24px;
        padding: 0 5px;
    }

    /* Banner wraps to two lines on mobile — increase header offset */
    body.nbwp-banner-active .site-header {
        margin-top: 100px;
    }
}

/* Ensure banner appears above WordPress admin bar */
body.admin-bar .nbwp-banner {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nbwp-banner {
        top: 46px;
    }
}