/**
 * @package     ModNewsticker
 * @subpackage  mod_newsticker
 * @copyright   Copyright (C) 2026. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

.mod_newsticker {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--mod-newsticker-bg, #f7f7f7);
    color: var(--mod-newsticker-text, inherit);
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

.mod_newsticker__label {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    align-self: center;
    margin-right: 14px;
    padding: 10px 14px;
    background-color: var(--mod-newsticker-label-bg, #b31217);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.mod_newsticker__label::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--mod-newsticker-label-bg, #b31217);
}

.mod_newsticker__track {
    flex: 1 1 auto;
    display: flex;
    min-width: 0;
    overflow: hidden;
}

.mod_newsticker__list {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    min-width: 0;
    white-space: nowrap;
    list-style: none;
    will-change: transform;
}

.mod_newsticker__item {
    display: inline-block;
    padding: 10px 24px;
    border-right: 1px solid #e0e0e0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.mod_newsticker__item:first-child {
    padding-left: 0;
}

.mod_newsticker__item--breaking {
    color: #b31217;
    font-weight: 700;
}

.mod_newsticker__item--info {
    color: #1f6fb2;
    font-weight: 700;
}

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

.mod_newsticker__item a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .mod_newsticker__label {
        display: none;
    }
}

.mod_newsticker.no-border {
    border: none;
    border-radius: 0;
}

.mod_newsticker--fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    margin: 0;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}
