/* ============================================================================
   desktop-topbar.css — layout/appearance for the admin-managed Offer Status
   Bar rendered INSIDE the existing .top-bar strip (see _LayoutPublic.cshtml
   and js/common/desktop-topbar.js). The transition-specific rules (per the
   admin's chosen rotate effect/direction/duration) are injected as an inline
   <style> by that script, mirroring js/common/mobile-topbar.js's own pattern;
   this file only holds the static layout/appearance.
   ========================================================================== */

/* index.css has `@media (max-width:767px) { .top-bar { display:block !important }
   .top-bar .d-none { display:block !important } }`, written for a different,
   unrelated element - but it also matches anything under .top-bar carrying
   Bootstrap's generic .d-none, which is exactly how this bar's pieces get
   hidden/shown. Every hide rule below is deliberately its own class (never
   .d-none) with specificity that beats those two rules on any viewport. */
.top-bar.atr-dtb-hidden {
    display: none !important;
}

#atr-desktop-topbar #atr-dtb-static.atr-dtb-hidden {
    display: none !important;
}

#atr-desktop-topbar .atr-dtb-dynamic.atr-dtb-hidden {
    display: none !important;
}

#atr-desktop-topbar .atr-dtb-arrow.atr-dtb-hidden {
    display: none !important;
}

.atr-dtb-dynamic {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 20px;
}

.atr-dtb-track {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.atr-dtb-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.atr-dtb-slide.is-active {
    pointer-events: auto;
    z-index: 2;
}

.atr-dtb-slide.is-exit {
    z-index: 1;
}

/* Single active slide: no transform/opacity state needed. */
.atr-dtb-track:only-child .atr-dtb-slide:only-child {
    position: relative;
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.atr-dtb-shadow-host {
    width: 100%;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.atr-dtb-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .atr-dtb-arrow:hover {
        background: rgba(255, 255, 255, 0.32);
    }

    .atr-dtb-arrow:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 1px;
    }

@media (max-width: 767px) {
    .atr-dtb-dynamic {
        gap: 6px;
    }

    .atr-dtb-arrow {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}
