/* Container & Stacking Structure */
.notice-bar-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    display: flex;
    flex-direction: column;
	background-color: #dc2333;
}

.notice-bar {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px 12px 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.notice-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
	flex-direction: row;
	max-width: 90%;
}

.notice-bar-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

.notice-bar-link {
    text-decoration: underline;
    font-weight: 400;
    color: white;
    margin-left: 5px;
}
.notice-bar-link:hover, .notice-bar-link:active, .notice-bar-link:visited {
    color: white;
}

.notice-bar-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 40px;
	font-weight: 300;
    cursor: pointer;
    color: inherit;
    opacity: 0.8;
    padding: 0;
    line-height: 0;
}

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

/* Hidden state triggered by JS cookies */
.notice-bar.is-hidden {
    display: none !important;
}

/* Default Color Themes for St stacked bars (Easily overridden via backend CSS) */
.notice-bar.notice-1 {
    background-color: #dc2333;
    color: #ffffff;
}

.notice-bar.notice-2 {
    background-color: #182373;
    color: #ffffff;
}

.notice-bar.notice-3 {
    background-color: #eeece2;
    color: #3b2314;
}

.notice-bar.notice-3 .notice-bar-link, 
.notice-bar.notice-3 .notice-bar-link:hover, 
.notice-bar.notice-3 .notice-bar-link:active, 
.notice-bar.notice-3 .notice-bar-link:visited {
    color: #3b2314;
}

.notice-bar.notice-3 .notice-bar-icon svg {
    fill: #3b2314; 
}





.notice-bar-icon {
    display: inline-flex;
    align-items: center;
    width: 20px;
    height: 20px;
}

.notice-bar-icon svg {
    width: 100%;
    height: 100%;
    fill: white; /* Inherits the text color of the notice bar automatically */
}


/* Adjust sticky navigation down by height of notice(s) with fallback to 0 */
#sticky-navigation-section.stick {
	top: var(--notice-bar-height, 0px); /* Falls back to 0px if variable isn't set */
	transition: top 0.3s ease; /* Smooth transition if a notice bar is dismissed */
}