.custom-announcement-bar {
    width: 100%;
    display: none;
    align-items: stretch;
    margin-top: 14px;
    margin-bottom: 26px;
}

.announcement-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    background-color: var(--text-color);
    color: var(--background-color);
    font-family: var(--font1);
    line-height: 160%;
    font-size: 16px;
}

.announcement-content {
    width: 100%;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    overflow: hidden;
    position: relative;
}

.announcement-inner {
    display: flex;
    align-items: center;
}

.announcement-text {
    white-space: nowrap;
    font-size: 16px;
    font-family: var(--font1);
    line-height: 160%;
    padding: 8px 0px;
    display: flex;
    align-items: center;
    -webkit-text-size-adjust: 100%;
}

.announcement-text a {
    text-decoration: underline;
}

.announcement-close-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    height: 100%;
    position: absolute;
    right: 0;
}

.announcement-close-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    min-width: 13px;
    height: 13px;
    margin-left: 17px;
}

.custom-announcement-bar[data-announcement-bar-type="Moving One News"] .announcement-text {
    padding-left: 17px;
    padding-right: 17px;
}

.custom-announcement-bar[data-announcement-bar-type="Static"] .announcement-text {
    padding-left: 17px;
    padding-right: 34px;
    white-space: unset;
}

.custom-announcement-bar[data-announcement-bar-type="Static"] .announcement-text:nth-child(2) {
    display: none;
}

.slide-animation {
    animation: slideAnimation 40s linear infinite;
}

.announcement-circle {
    display: inline-flex;
    border-radius: 100%;
    min-width: 5px;
    width: 5px;
    height: 5px;
    background-color: var(--text-color);
    margin-left: 20px;
    margin-right: 20px;
}

@keyframes slideAnimation {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Styles for large desktop */
@media (min-width: 1439px) {  
    .custom-announcement-bar {
        margin-top: calc(0.97vw * var(--scale));
        margin-bottom: calc(1.81vw * var(--scale));
    }
    
    .announcement-heading {
        padding: calc(0.56vw * var(--scale)) calc(1.18vw * var(--scale));
        font-size: calc(1.11vw * var(--scale));
    }

    .announcement-text {
        font-size: calc(1.11vw * var(--scale));
        padding: calc(0.56vw * var(--scale)) 0px;
    }
    
    .announcement-close-button {
        width: calc(0.9vw * var(--scale));
        min-width: calc(0.9vw * var(--scale));
        height: calc(0.9vw * var(--scale));
        margin-left: calc(1.18vw * var(--scale));
    }
    
    .custom-announcement-bar[data-announcement-bar-type="Moving One News"] .announcement-text {
        padding-left: calc(1.18vw * var(--scale));
        padding-right: calc(1.18vw * var(--scale));
    }
    
    .custom-announcement-bar[data-announcement-bar-type="Static"] .announcement-text {
        padding-left: calc(1.18vw * var(--scale));
        padding-right: calc(2.36vw * var(--scale));
    }
    
    .announcement-circle {
        min-width: calc(0.35vw * var(--scale));
        width: calc(0.35vw * var(--scale));
        height: calc(0.35vw * var(--scale));
        margin-left: calc(1.39vw * var(--scale));
        margin-right: calc(1.39vw * var(--scale));
    }
}

/* Styles for tablet */
@media (max-width: 991px) { 
    .custom-announcement-bar {
        margin-bottom: 38px;
    }

    .custom-announcement-bar[data-announcement-bar-type="Static"] {
        flex-direction: column;
        text-align: center;
    }

    .custom-announcement-bar[data-announcement-bar-type="Static"] .announcement-text {
        padding: 16px;
    }

    .custom-announcement-bar[data-announcement-bar-type="Static"] .announcement-content {
        overflow: unset;
    }

    .custom-announcement-bar[data-announcement-bar-type="Static"] .announcement-close-wrapper {
        top: -21px;
        right: 16px;
        height: auto;
        transform: translateY(-50%);
        background-color: transparent;
    }

    .custom-announcement-bar[data-announcement-bar-type="Static"] .announcement-close-button {
        margin-left: 0;
    }

    .custom-announcement-bar[data-announcement-bar-type="Static"] svg path {
        fill: var(--background-color);
    }
}

/* Styles for mobile */
@media (max-width: 479px) { 
    .custom-announcement-bar {
        margin-top: 10px;
        margin-bottom: 32px;
    }
    
    .announcement-heading {
        padding: 6px 14px;
        font-size: 14px;
    }
    
    .announcement-text {
        font-size: 14px;
        padding: 6px 0px;
    }
    
    .announcement-close-button {
        margin-left: 14px;
    }
    
    .custom-announcement-bar[data-announcement-bar-type="Moving One News"] .announcement-text {
        padding-left: 14px;
        padding-right: 14px;
    }
    
    .announcement-circle {
        min-width: 4px;
        width: 4px;
        height: 4px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .custom-announcement-bar[data-announcement-bar-type="Static"] .announcement-text {
        padding: 12px;
    }

    .custom-announcement-bar[data-announcement-bar-type="Static"] .announcement-close-wrapper {
        top: -18px;
        right: 12px;
        height: auto;
    }
}