/* assets/style.css */

.imgw-warning-scroll-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: #ffeb3b;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    padding: 10px 0;
    box-sizing: border-box;
    margin: 0 !important;
    position: relative;
    /* CSS variables for animation durations */
    --scroll-speed-desktop: 60s;
    --scroll-speed-mobile: 90s;
}

.imgw-warning-scroll-marquee span {
    display: inline-block;
    min-width: max-content;
    white-space: nowrap;
    animation: imgw-marquee-scroll var(--scroll-speed-desktop) linear infinite;
}

.imgw-warning-scroll-marquee:hover span {
    animation-play-state: paused;
}

@keyframes imgw-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.imgw-warning-single {
    white-space: normal;
    padding: 10px;
    border: 1px solid #ddd;
    background: #ffeb3b;
    margin-bottom: 12px;
    color: #000;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .imgw-warning-scroll-marquee span {
        animation-duration: var(--scroll-speed-mobile);
    }
}
