/* Toborlife scrolling announcement bar (marquee) */

:root {
    --tobor-marquee-height: 56px;
}

.tobor-marquee {
    background-color: #171717;
    height: var(--tobor-marquee-height);
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101; /* above .header-phone (100) / .header-lg (98), below .header-sm (1000) */
}

/* The site headers are position:fixed at top:0 — push them below the bar
   and add the same offset to the page wrapper. */
.header-phone,
.header-lg {
    top: var(--tobor-marquee-height);
}

#boxed-layout-pro {
    margin-top: calc(84px + var(--tobor-marquee-height)) !important;
}

@media (max-width: 1024px) {
    .header-sm {
        top: var(--tobor-marquee-height) !important;
    }

    #boxed-layout-pro {
        margin-top: var(--tobor-marquee-height) !important;
    }
}

.tobor-marquee__track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    will-change: transform;
    animation: tobor-marquee-scroll 40s linear infinite;
}

.tobor-marquee__group {
    display: flex;
    align-items: center;
    gap: 64px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
}

.tobor-marquee__item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.tobor-marquee__dot {
    display: block;
    width: 6px;
    height: 6px;
    flex-shrink: 0;
}

.tobor-marquee__icon {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tobor-marquee__text,
a.tobor-marquee__text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: #ffffff;
    white-space: nowrap;
    text-decoration: none;
    margin: 0;
}

a.tobor-marquee__text:hover,
a.tobor-marquee__text:focus {
    color: #ffffff;
    text-decoration: underline;
}

.tobor-marquee__item--accent .tobor-marquee__text,
a.tobor-marquee__text.tobor-marquee__text--accent,
a.tobor-marquee__text.tobor-marquee__text--accent:hover,
a.tobor-marquee__text.tobor-marquee__text--accent:focus {
    color: #99c300;
}

/* Phone item keeps icon + number glued together */
.tobor-marquee__phone {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.tobor-marquee:hover .tobor-marquee__track,
.tobor-marquee:focus-within .tobor-marquee__track {
    animation-play-state: paused;
}

@keyframes tobor-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        /* one full group + one track gap */
        transform: translateX(calc(-50% - 32px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tobor-marquee {
        overflow-x: auto;
    }

    .tobor-marquee__track {
        animation: none;
    }

    .tobor-marquee__group[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 767px) {
    .tobor-marquee__track {
        animation-duration: 28s;
    }
}
