.notice-banner-container {
    width: 100%;
    padding: 12px 24px;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s ease;
}

.notice-banner-container.is-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
}

body.admin-bar .notice-banner-container.is-sticky {
    top: var(--wp-admin--admin-bar--height, 32px);
}

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

.notice-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-right: 40px;
}

/* Horizontal Marquee Structural Styles */
.notice-banner-text-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.notice-banner-text-track {
    display: inline-block;
    white-space: nowrap;
}

.notice-banner-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: inline-block;
}

/* Marquee Scrolling Keyframes & classes */
@keyframes noticeMarquee2c47e8b0 {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.notice-banner-text-track.has-marquee {
    display: inline-flex;
    animation: noticeMarquee2c47e8b0 25s linear infinite;
}

.notice-banner-text-track.has-marquee .notice-banner-text {
    padding-right: 120px; /* spacing loop */
}

.notice-banner-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.notice-banner-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

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

/* Default Priorities Background Configuration */
.notice-banner-container.priority-info {
    background-color: #22c55e;
    color: #ffffff;
}
.notice-banner-container.priority-info .notice-banner-btn {
    background-color: #ffffff;
    color: #22c55e;
}

.notice-banner-container.priority-warning {
    background-color: #eab308;
    color: #000000;
}
.notice-banner-container.priority-warning .notice-banner-btn {
    background-color: #000000;
    color: #eab308;
}

.notice-banner-container.priority-critical {
    background-color: #ef4444;
    color: #ffffff;
}
.notice-banner-container.priority-critical .notice-banner-btn {
    background-color: #ffffff;
    color: #ef4444;
}

/* Editor Placeholder UI */
.notice-banner-editor-placeholder {
    padding: 15px;
    border: 2px dashed #ccc;
    background-color: #f9f9f9;
    text-align: center;
    color: #666;
    font-family: sans-serif;
    font-size: 13px;
}
