/**
 * TorobPay Sitewide Topbar — vertical slide-up ticker animation.
 * Colors: bg #9CE76A, text #003D01 (hardcoded brand). Heights/speeds via inline style.
 */

#torobpay-topbar {
    width: 100%;
    background-color: #9CE76A;
    box-sizing: border-box;
    overflow: hidden;
}

.torobpay-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    direction: rtl;
    padding: 0 16px;
    box-sizing: border-box;
    gap: 12px;
}

.torobpay-topbar-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.torobpay-topbar-logo {
    display: block;
    object-fit: contain;
}

.torobpay-topbar-ticker-wrap {
    overflow: hidden;
    height: var(--torobpay-topbar-h, 44px);
    display: flex;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
    max-width: var(--torobpay-topbar-w, 250px);
}

.torobpay-topbar-ticker-track {
    height: calc(var(--torobpay-topbar-h, 44px) * 4);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    animation: torobpay-topbar-ticker linear infinite;
    will-change: transform;
}

.torobpay-topbar-ticker-item {
    height: var(--torobpay-topbar-h, 44px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003D01;
    white-space: nowrap;
    direction: rtl;
    text-align: center;
}

/* Vertical 4-item seamless loop: item 1 → 2 → 3 → clone of 1 (seamless restart). */
@keyframes torobpay-topbar-ticker {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(0); }
    25%  { transform: translateY(calc(var(--torobpay-topbar-h, 44px) * -1)); }
    45%  { transform: translateY(calc(var(--torobpay-topbar-h, 44px) * -1)); }
    50%  { transform: translateY(calc(var(--torobpay-topbar-h, 44px) * -2)); }
    70%  { transform: translateY(calc(var(--torobpay-topbar-h, 44px) * -2)); }
    75%  { transform: translateY(calc(var(--torobpay-topbar-h, 44px) * -3)); }
    95%  { transform: translateY(calc(var(--torobpay-topbar-h, 44px) * -3)); }
    100% { transform: translateY(calc(var(--torobpay-topbar-h, 44px) * -3)); }
}
