/** Fuel Notifications Menu v1.0.1 **/

:root {
    --high: #C90000;
	--medium: #E97000;
	--low: #009B10;    
}

.menu-notifications .priority1 {
    --noticeColor: var(--high);
}

.menu-notifications .priority2 {
    --noticeColor: var(--medium);
}

.menu-notifications .priority3 {
    --noticeColor: var(--low);
}

@media only screen and (max-width: 68.49em) {
    .menu-notifications:not(.wp-block-fuel-menu-item) > .menu-item-title > span::after {
        content: "Notices";
    }
}

@media only screen and (min-width: 68.5em) {
    .menu-notifications > summary.menu-item-title > span::after {
        opacity: 0;
    }
    
	.menu-home, .menu-search, .menu-notifications{
		flex: 1 1 auto;
		min-width: 2rem;
		width: 2%;
		max-width: 11rem;
	}
	
    .menu-notifications > .menu-item-title > span > svg {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 1.2rem;
		height: 1.2rem;
		margin: auto;
	}
    /* Styling for notification block */
    .menu-notifications.wp-block-fuel-menu-item > .menu-item-title > span > svg {
        position: relative;
        width: 1.5rem;
		height: 1.5rem;
    }
}

.menu-notifications .new {
    position: absolute;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 100%;
    background: var(--noticeColor);
    color: #fff;
    line-height: 0.42;
    z-index: 1;
    transform: translateX(0.05rem) translateY(-0.2rem);
}
.menu-notifications.wp-block-fuel-menu-item .new {
    transform: translateX(0.75rem) translateY(0.25rem);
    line-height: 0.25;
    width: 0.7rem;
    height: 0.7rem;
    outline: 1px solid #fff;
    outline-offset: -1px;
}

@media only screen and (min-width: 68.5em) {
    .menu-notifications .new {
        width: 1rem;
        height: 1rem;
        line-height: 0.7;
    }
    .menu-notifications:not(.wp-block-fuel-menu-item) .new {
        transform: translateX(0.65rem) translateY(-0.1rem);
    }
    .menu-notifications.wp-block-fuel-menu-item .new {
        transform: translateX(0.1rem) translateY(-0.1rem);
        line-height: 0.5;
        width: 0.9rem;
        height: 0.9rem;
    }
}

@media (prefers-reduced-motion:no-preference) {
    .notice-bubble.new + svg {
    	animation: shake 2s linear 0s infinite alternate;
    }
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    2% { transform: rotate(-15deg); }
    4% { transform: rotate(0deg); }
    6% { transform: rotate(15deg); }
    8% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    12% { transform: rotate(0deg); }
    14% { transform: rotate(15deg); }
    16% { transform: rotate(0deg); }
    18% { transform: rotate(-15deg); }
    20% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.menu-notifications li {
    background: rgba(255,255,255,0.05);
    position: relative;
}

.menu-notifications .new::before {
    content: attr(data-total);
    font-size: 0.5rem;
    font-weight: bold;
    line-height: 1.25;
}

.menu-notifications.wp-block-fuel-menu-item .new::before {
    font-weight: normal;
}

@media only screen and (min-width: 68.5em) {
    .menu-notifications .new::before {
        font-size: 0.6rem;
    }
}

/* Sub-menu */
.menu-notifications .menu-sub {
    width: 100%;
    left: auto;
}

@media only screen and (min-width: 68.5em) {
    .menu-notifications .menu-sub {
        max-width: 27.5rem;
    }
}

.menu-notifications.wp-block-fuel-menu-item .tablist {
    padding: 2rem;
}
.menu-notifications.wp-block-fuel-menu-item .notices-title {
    font-size: 1.2rem;
    color: var(--wp--preset--color--sub-menu-color);
    border-bottom: 1px solid;
}
.menu-notifications.wp-block-fuel-menu-item #notices {
    padding: 0;
}

.menu-notifications #notices {
    list-style: none;
}

.menu-notifications.wp-block-fuel-menu-item li {
    margin-bottom: 0.4rem;
}

.menu-notifications li::before {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    background: var(--noticeColor);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 1rem;
    position: absolute;
    top: 0.8rem;
    left: 1.1rem;
}

.menu-notifications .notice {
    display: block;
    padding: 0.5rem 0.5rem 0.5rem 2.6rem;
    color: #fff;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.menu-notifications.wp-block-fuel-menu-item .notice {
    color: inherit;
}

.linkIcon {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: calc(100% - 1.5rem);
    background: rgba(255,255,255,0.05);
}

.linkIcon svg {
    width: 0.9rem;
    height: 0.9rem;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

@media (max-width: 68.49em) {
    .primary-menu-open.allow-scroll,
    .primary-menu-open.allow-scroll body {
        overflow: scroll  !important;
        overscroll-behavior: auto;
        touch-action: auto;
    }
}


/* Fuel6 Walker Menu (2025) */
.fuel6 .notice-bubble.new {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fuel6 .notice-bubble.new::before {
    line-height: 1;
}

@media only screen and (max-width: 68.49em) {
    .fuel6 .menu-notifications:not(.wp-block-fuel-menu-item) .new {
        transform: translateX(0.5rem) translateY(0.2rem);
    }
}