/* ThemeWare retains ownership of content, icons, colours and bar height. */
#twt-usp-bar[data-twt-usp-bar-position="1"] {
    position: sticky;
    top: 0;
    z-index: 1021;
}
/* ThemeWare fixes the mobile header below 576px; desktop headers stay in flow. */
@media (max-width: 575.98px) {
    body:has(> #twt-usp-bar[data-twt-usp-bar-position="1"]) > .header-main {
        top: var(--omn-usp-height, 30px);
    }
}
body.is-sticky-nav-main:has(> #twt-usp-bar[data-twt-usp-bar-position="1"]) .nav-main {
    top: var(--omn-usp-height, 30px) !important;
}
#twt-usp-bar .twt-usp-bar-items { min-width: 0; }
#twt-usp-bar .omn-usp-ticker {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    position: relative;
}
#twt-usp-bar .omn-usp-ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    container-type: inline-size;
}
#twt-usp-bar .omn-usp-ticker-track {
    display: flex;
    width: max-content;
    animation: omn-usp-scroll 45s linear infinite;
}
#twt-usp-bar .omn-usp-ticker-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 0 0 auto;
    min-width: 100cqw;
    gap: clamp(2rem, 4vw, 5rem);
    padding-inline: clamp(1rem, 2vw, 2.5rem);
}
/* Enabled USPs also pass through on mobile, regardless of their static breakpoint. */
#twt-usp-bar .omn-usp-ticker .twt-usp-bar-item {
    display: flex !important;
    position: static !important;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0;
    white-space: nowrap;
    animation: none !important;
    transform: none !important;
}
#twt-usp-bar .omn-usp-ticker-pause {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
#twt-usp-bar .omn-usp-ticker-control {
    order: 2;
    display: grid;
    place-items: center;
    align-self: stretch;
    min-width: 2.75rem;
    min-height: 1.5rem;
    color: var(--omn-usp-color, currentColor);
    margin: 0;
    cursor: pointer;
    font-size: .85rem;
}
#twt-usp-bar .omn-usp-play-icon { display: none; }
#twt-usp-bar .omn-usp-ticker-pause:focus-visible + label {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}
#twt-usp-bar .omn-usp-ticker-pause:checked ~ .omn-usp-ticker-viewport .omn-usp-ticker-track,
#twt-usp-bar .omn-usp-ticker:hover .omn-usp-ticker-track,
#twt-usp-bar .omn-usp-ticker:focus-within .omn-usp-ticker-track {
    animation-play-state: paused;
}
#twt-usp-bar .omn-usp-ticker-pause:checked + label .omn-usp-pause-icon { display: none; }
#twt-usp-bar .omn-usp-ticker-pause:checked + label .omn-usp-play-icon { display: inline; }
@keyframes omn-usp-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    #twt-usp-bar .omn-usp-ticker-track { animation: none; width: 100%; }
    #twt-usp-bar .omn-usp-ticker-group {
        min-width: 0;
        width: 100%;
        flex-wrap: wrap;
        gap: .5rem 1.5rem;
        padding-block: .5rem;
    }
    #twt-usp-bar .omn-usp-ticker .twt-usp-bar-item { white-space: normal; max-width: 100%; }
    #twt-usp-bar .omn-usp-ticker-copy,
    #twt-usp-bar .omn-usp-ticker-control,
    #twt-usp-bar .omn-usp-ticker-pause { display: none; }
    #twt-usp-bar, #twt-usp-bar .twt-usp-bar-container { height: auto; min-height: 44px; }
}
