.hdps-loader {
    display: none !important;
}

.hdps-mount {
    width: 100%;
    box-sizing: border-box;
}

.hdps-bar {
    position: relative;
    z-index: 50;
    width: 100%;
    box-sizing: border-box;
    background: var(--hdps-bg, #111111);
    color: var(--hdps-text, #ffffff);
    border-top: 1px solid var(--hdps-soft-border, rgba(255,255,255,.12));
    border-bottom: 1px solid var(--hdps-soft-border, rgba(255,255,255,.12));
    font-family: inherit;
}

.hdps-inner {
    position: relative;
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 14px 44px 15px 0;
    box-sizing: border-box;
}

.hdps-title {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.hdps-offers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.hdps-offer {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 84px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: var(--hdps-soft-bg, rgba(255,255,255,.06));
    border: 1px solid var(--hdps-soft-border, rgba(255,255,255,.14));
    text-align: center;
}

.hdps-offer-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.hdps-offer-link:hover,
.hdps-offer-link:focus,
.hdps-offer-link:visited {
    color: inherit;
    text-decoration: none;
}

.hdps-offer-link:focus-visible,
.hdps-copy:focus-visible,
.hdps-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.hdps-offer-text {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.hdps-usage,
.hdps-countdown {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    opacity: .86;
}

.hdps-code-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
}

.hdps-code {
    padding: 4px 6px;
    border-radius: 3px;
    background: var(--hdps-code-bg, rgba(255,255,255,.12));
    color: inherit;
    font-size: 12px;
}

.hdps-copy {
    appearance: none;
    border: 1px solid var(--hdps-strong-border, rgba(255,255,255,.28));
    border-radius: 3px;
    padding: 5px 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
}

.hdps-copy:hover {
    background: var(--hdps-hover-bg, rgba(255,255,255,.1));
}

.hdps-close {
    position: absolute;
    top: 9px;
    right: 0;
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.hdps-mobile-text {
    display: none;
}

@media (max-width: 1024px) {
    .hdps-offers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hdps-inner {
        width: min(100% - 24px, 1380px);
        padding: 12px 34px 12px 0;
    }

    .hdps-title {
        font-size: 15px;
    }

    .hdps-offers {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .hdps-offer {
        min-height: 0;
        padding: 9px 10px;
    }

    .hdps-offer-text {
        font-size: 12px;
    }

    .hdps-desktop-text {
        display: none;
    }

    .hdps-mobile-text {
        display: inline;
    }
}

/* Blokk / futószalag megjelenés */
.hdps-display-ticker .hdps-inner {
    overflow: hidden;
}

.hdps-display-ticker .hdps-offers {
    display: flex;
    width: max-content;
    max-width: none;
    gap: 10px;
    animation: hdpsTicker 20s linear infinite;
    will-change: transform;
}

.hdps-display-ticker .hdps-offer {
    flex: 0 0 auto;
    width: max-content;
    max-width: min(88vw, 520px);
    min-width: 240px;
    min-height: 0;
    white-space: normal;
}

.hdps-display-ticker .hdps-offers:hover,
.hdps-display-ticker .hdps-offers:focus-within {
    animation-play-state: paused;
}

@keyframes hdpsTicker {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 10px)); }
}

@media (max-width: 640px) {
    .hdps-display-ticker .hdps-inner {
        width: 100%;
        padding-left: 12px;
    }

    .hdps-display-ticker .hdps-offers {
        display: flex;
        grid-template-columns: none;
        gap: 8px;
    }

    .hdps-display-ticker .hdps-offer {
        min-width: 260px;
        max-width: 88vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdps-display-ticker .hdps-inner {
        overflow-x: auto;
    }

    .hdps-display-ticker .hdps-offers {
        animation: none;
        transform: none;
    }
}

/* A szerver által meghatározott nézet az irányadó, nem kizárólag a CSS viewport. */
.hdps-viewport-mobile .hdps-desktop-text {
    display: none;
}
.hdps-viewport-mobile .hdps-mobile-text {
    display: inline;
}
.hdps-viewport-desktop .hdps-desktop-text,
.hdps-viewport-tablet .hdps-desktop-text {
    display: inline;
}
.hdps-viewport-desktop .hdps-mobile-text,
.hdps-viewport-tablet .hdps-mobile-text {
    display: none;
}

/* Kompakt asztali megjelenés: kisebb függőleges helyigény. */
.hdps-viewport-desktop .hdps-inner {
    padding-top: 8px;
    padding-bottom: 9px;
}

.hdps-viewport-desktop .hdps-title {
    margin-bottom: 5px;
    font-size: 15px;
}

.hdps-display-block.hdps-viewport-desktop .hdps-offers {
    gap: 8px;
}

.hdps-display-block.hdps-viewport-desktop .hdps-offer {
    min-height: 62px;
    padding: 7px 10px;
}

.hdps-viewport-desktop .hdps-code-row {
    margin-top: 5px;
}

.hdps-viewport-desktop .hdps-usage,
.hdps-viewport-desktop .hdps-countdown {
    margin-top: 4px;
}

/* Blokk módban csak az éppen aktív ajánlatok foglalnak oszlopot. */
.hdps-display-block.hdps-viewport-desktop.hdps-active-1 .hdps-offers { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.hdps-display-block.hdps-viewport-desktop.hdps-active-2 .hdps-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hdps-display-block.hdps-viewport-desktop.hdps-active-3 .hdps-offers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hdps-display-block.hdps-viewport-desktop.hdps-active-4 .hdps-offers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hdps-display-block.hdps-viewport-desktop.hdps-active-5 .hdps-offers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hdps-display-block.hdps-viewport-desktop.hdps-active-6 .hdps-offers { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.hdps-display-block.hdps-viewport-tablet.hdps-active-1 .hdps-offers { grid-template-columns: 1fr; }
.hdps-display-block.hdps-viewport-tablet.hdps-active-2 .hdps-offers,
.hdps-display-block.hdps-viewport-tablet.hdps-active-3 .hdps-offers,
.hdps-display-block.hdps-viewport-tablet.hdps-active-4 .hdps-offers,
.hdps-display-block.hdps-viewport-tablet.hdps-active-5 .hdps-offers,
.hdps-display-block.hdps-viewport-tablet.hdps-active-6 .hdps-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hdps-display-block.hdps-viewport-mobile .hdps-offers { grid-template-columns: 1fr; }

