@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Outfit:wght@600;700&display=swap');

.tru-website-notice {
    box-sizing: border-box;
    width: min(var(--notice-width), 100%);
    max-width: 100%;
    margin-inline: auto;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    border: 1px solid #ebebed;
    border-radius: 24px;
    background: #fff;
    color: #0a0a0f;
    font: 400 1rem/1.5 "DM Sans", sans-serif;
    box-shadow: 0 12px 32px rgb(13 78 125 / 15%);
    overflow-wrap: anywhere;
}

.tru-website-notice [hidden] { display: none !important; }
.tru-website-notice strong, .tru-website-notice h2 {
    display: block;
    margin: 0 0 0.25rem;
    color: inherit;
    font: 700 1.3rem/1.15 Outfit, sans-serif;
}
.tru-website-notice p { margin: 0; white-space: pre-wrap; }
.tru-website-notice-action, .tru-website-notice button {
    display: inline-block;
    width: fit-content;
    padding: 0.35rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(100deg, #ffc400, #f17727);
    color: #0a0a0f;
    font: 700 0.875rem/1.35 "DM Sans", sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.tru-website-notice :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.tru-website-notice-content { display: flex; flex-direction: column; gap: 0.6rem; }
.tru-website-notice-in_page_banner { min-height: var(--notice-height, 0px); margin-block: 1rem; }
.tru-website-notice-header_banner, .tru-website-notice-footer_banner {
    min-height: var(--notice-height, 60px);
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: 0;
    background: linear-gradient(115deg, #0d4e7d, #1368a6);
    color: #fff;
}
.tru-website-notice-header_banner .tru-website-notice-content,
.tru-website-notice-footer_banner .tru-website-notice-content {
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
}
.tru-website-notice:is(.tru-website-notice-header_banner, .tru-website-notice-footer_banner) .tru-website-notice-text > :is(strong, p) {
    display: inline;
}
.tru-website-notice:is(.tru-website-notice-header_banner, .tru-website-notice-footer_banner) .tru-website-notice-text > strong {
    margin-block: 0;
    margin-inline-end: 0.4em;
}
.tru-website-notice-text { min-width: 0; max-width: 100%; }
.tru-website-notice-track { min-width: 0; max-width: 100%; overflow: hidden; }
.tru-website-notice-dialog, .tru-website-notice-sidebar {
    height: var(--notice-height);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    overscroll-behavior: contain;
}
dialog.tru-website-notice-dialog {
    position: fixed;
    inset: 50% 0 auto;
    translate: 0 -50%;
    width: min(var(--notice-width), calc(100% - 2rem));
    margin: 0 auto;
}
.tru-website-notice-dialog::backdrop { background: rgb(10 10 15 / 70%); backdrop-filter: blur(4px); }
.tru-website-notice-dialog { container-type: inline-size; }
.tru-website-notice-dialog .tru-popup-layout { display: grid; gap: 1rem; }
.tru-website-notice-dialog .tru-website-notice-content {
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    text-align: center;
}
.tru-website-notice-dialog :is(h2, strong) { font-size: clamp(1.4rem, 5cqi, 2rem); }
.tru-website-notice-dialog .tru-popup-image {
    display: block;
    width: min(100%, 14rem);
    max-height: 12rem;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
}
.tru-popup-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: #ecf4ff;
    font-size: 1.65rem;
}
.tru-website-notice-dialog .tru-popup-dismiss {
    position: absolute;
    inset: 0.5rem 0.5rem auto auto;
    margin: 0;
    padding: 0.25rem 0.6rem;
    background: #f1f3f6;
    font-size: 1.15rem;
    z-index: 1;
}
@container (min-width: 28rem) {
    .tru-website-notice-dialog[data-popup-style="split_image"] .tru-popup-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .tru-website-notice-dialog[data-popup-style="split_image"] .tru-website-notice-content {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
        text-align: start;
    }
    .tru-website-notice-dialog[data-popup-style="split_image"] .tru-popup-image {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        height: 100%;
        min-height: 14rem;
        max-height: 18rem;
        object-fit: cover;
    }
}
aside.tru-website-notice-sidebar {
    position: fixed;
    z-index: 1025;
    inset: auto var(--notice-sidebar-right, max(1rem, env(safe-area-inset-right))) max(1rem, env(safe-area-inset-bottom)) var(--notice-sidebar-left, auto);
    width: min(var(--notice-width), calc(100% - 2rem));
}
.tru-website-notice[hidden] { display: none !important; }
.tru-website-notice-sidebar {
    padding: 0.9rem 1rem;
    border: 1px solid #dce3ee;
    border-radius: 16px;
    background: #f4f7fd;
    color: #202124;
    box-shadow: 0 6px 24px rgb(32 33 36 / 18%);
    font: 400 0.875rem/1.4 system-ui, sans-serif;
}
.tru-website-notice-sidebar .tru-sidebar-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.75rem;
    padding-inline-end: 2rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
}
.tru-sidebar-source img { width: 16px; height: 16px; }
.tru-website-notice-sidebar .tru-website-notice-content { gap: 0.45rem; }
.tru-website-notice-sidebar strong {
    font: 600 0.9375rem/1.35 system-ui, sans-serif;
}
.tru-website-notice-sidebar .tru-website-notice-action {
    background: #e3edff;
    color: #174ea6;
    font: 600 0.8125rem/1.35 system-ui, sans-serif;
}
.tru-website-notice-sidebar .tru-sidebar-dismiss {
    position: absolute;
    inset-block-start: 0.6rem;
    inset-inline-end: 0.6rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #475569;
    font: 400 1.25rem/1 system-ui, sans-serif;
}
.tru-website-notice-sidebar .tru-sidebar-dismiss:hover { background: #e4eaf4; }
.tru-website-notice[data-motion="fade"] { animation: tru-notice-fade 350ms ease-out both; }
.tru-website-notice[data-motion="ease_up"] { animation: tru-notice-up 450ms ease-out both; }
[data-motion="slide"] .tru-website-notice-text { animation: tru-notice-slide 700ms ease-out both; }
[data-motion="ticker"] .tru-website-notice-text { animation: tru-notice-ticker 9s linear infinite; }
[data-motion="ticker"][data-paused="true"] .tru-website-notice-text { animation: none; }
.main-nav.tru-website-notice-nav { position: sticky; top: 0; }

@keyframes tru-notice-fade { from { opacity: 0; } }
@keyframes tru-notice-up { from { opacity: 0; transform: translateY(1rem); } }
@keyframes tru-notice-slide { from { opacity: 0; transform: translateX(-1.25rem); } }
@keyframes tru-notice-ticker { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
    .tru-website-notice[data-motion], .tru-website-notice[data-motion] .tru-website-notice-text { animation: none; }
    .tru-website-notice [data-notice-pause] { display: none; }
}
