.hbd-bar {
    position: relative;
    z-index: 9999;
    width: 100%;
    min-height: var(--hbd-height, 44px);
    overflow: hidden;
    border-bottom: 1px solid var(--hbd-border, #1b3558);
    background: var(--hbd-bg, #081e3f);
    color: var(--hbd-text, #fff);
    font-family: var(--hbd-font, inherit);
    font-size: var(--hbd-size, 13px);
    font-style: var(--hbd-style, normal);
    font-weight: var(--hbd-weight, 600);
    line-height: 1.2;
}

.hbd-bar--footer {
    border-top: 1px solid var(--hbd-border, #1b3558);
    border-bottom: 0;
}

.hbd-bar *,
.hbd-bar *::before,
.hbd-bar *::after {
    box-sizing: border-box;
}

.hbd-bar a {
    color: inherit;
    text-decoration: none;
}

.hbd-bar a:hover,
.hbd-bar a:focus-visible {
    color: var(--hbd-title, #f78a30);
}

.hbd-bar__inner {
    display: grid;
    grid-template-columns: max-content minmax(120px, 1fr) max-content;
    align-items: center;
    min-height: var(--hbd-height, 44px);
    width: min(100% - 36px, 1540px);
    margin: 0 auto;
    gap: 22px;
}

.hbd-bar__month,
.hbd-bar__meta,
.hbd-bar__offer,
.hbd-bar__offer > a,
.hbd-bar__offer > span {
    display: flex;
    align-items: center;
}

.hbd-bar__month {
    gap: 9px;
    white-space: nowrap;
    color: var(--hbd-title, #f78a30);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hbd-bar__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--hbd-accent, #f78a30);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hbd-accent, #f78a30) 18%, transparent);
}

.hbd-bar__ticker {
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.hbd-bar__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: hbd-marquee var(--hbd-speed, 34s) linear infinite;
}

.hbd-mode-fixed .hbd-bar__ticker {
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: none;
    -webkit-mask-image: none;
}

.hbd-mode-fixed .hbd-bar__ticker::-webkit-scrollbar {
    display: none;
}

.hbd-mode-fixed .hbd-bar__track {
    width: 100%;
    min-width: max-content;
    animation: none;
    will-change: auto;
}

.hbd-mode-fixed .hbd-bar__group {
    width: 100%;
    justify-content: center;
}

.hbd-bar__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hbd-bar__offer {
    min-height: var(--hbd-height, 44px);
    white-space: nowrap;
}

.hbd-bar__offer > a,
.hbd-bar__offer > span {
    gap: 8px;
    padding: 0 13px;
}

.hbd-bar__offer strong {
    color: var(--hbd-title, #f78a30);
    font-weight: 800;
}

.hbd-bar__separator {
    padding: 0 8px;
    color: var(--hbd-accent, #f78a30);
    font-size: .55em;
}

.hbd-bar__meta {
    justify-content: flex-end;
    gap: 18px;
    white-space: nowrap;
}

.hbd-bar__meta time {
    opacity: .86;
}

.hbd-bar__euribor a,
.hbd-bar__euribor {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hbd-bar__euribor strong {
    color: var(--hbd-title, #f78a30);
}

.hbd-bar__euribor span {
    font-weight: 800;
}

.hbd-pause-hover:hover .hbd-bar__track,
.hbd-pause-hover:focus-within .hbd-bar__track {
    animation-play-state: paused;
}

.hbd-euribor-shortcode strong {
    color: #f78a30;
}

@keyframes hbd-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hbd-bar__track {
        animation: none;
    }
    .hbd-bar__group[aria-hidden="true"] {
        display: none;
    }
    .hbd-bar__ticker {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

@media (max-width: 900px) {
    .hbd-bar__inner {
        grid-template-columns: max-content minmax(100px, 1fr) max-content;
        width: calc(100% - 24px);
        gap: 12px;
    }
    .hbd-bar__meta time {
        display: none;
    }
    .hbd-bar__offer > a,
    .hbd-bar__offer > span {
        padding-inline: 10px;
    }
}

@media (max-width: 640px) {
    .hbd-bar__inner {
        grid-template-columns: max-content minmax(70px, 1fr) max-content;
        width: calc(100% - 18px);
        gap: 8px;
    }
    .hbd-bar__month {
        max-width: 122px;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: .02em;
    }
    .hbd-bar__month .hbd-bar__dot {
        display: none;
    }
    .hbd-bar__euribor strong {
        display: none;
    }
    .hbd-bar__offer > a,
    .hbd-bar__offer > span {
        gap: 6px;
    }
    .hbd-mode-fixed .hbd-bar__ticker {
        scroll-snap-type: x proximity;
    }
    .hbd-mode-fixed .hbd-bar__offer {
        scroll-snap-align: start;
    }
}

@media (min-width: 769px) {
    .hbd-hide-desktop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hbd-hide-mobile {
        display: none !important;
    }
}
