/* sa-plus-ticker.css - recent Plus upgrades ticker
   Install at: /home/sweepsad/public_html/css/sa-plus-ticker.css
   Used on /upgrade2.php and the My Sweepstakes Plus teaser (tpl/fav_control.php).
   Hold-then-slide is driven by js/sa-plus-ticker.js: each name holds about 4s,
   then slides in about 0.4s. This stylesheet sizes the one-row viewport and
   provides the slide transition. */

.sa-ticker {
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 12px 16px 14px;
    border-radius: 10px;
    text-align: center;
}
.sa-ticker-kicker {
    margin: 0 0 2px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sa-ticker-count {
    margin: 0 0 8px;
    font-size: 0.98em;
    font-weight: 600;
    line-height: 1.3;
}
.sa-ticker-viewport {
    overflow: hidden;
    height: 1.5em;
    position: relative;
}
.sa-ticker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1.5em;
}
.sa-ticker-list li {
    height: 1.5em;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sa-ticker--roll .sa-ticker-list.sa-ticker-sliding {
    transition: transform 0.4s ease-in-out;
}

.sa-ticker-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    text-decoration: none;
}
.sa-ticker-link:hover,
.sa-ticker-link:focus {
    text-decoration: underline;
}

/* Upgrade page: green, matches the existing trial/price palette. */
.sa-ticker--upgrade2 {
    background: #f3faf5;
    border: 1px solid #c8e6d0;
    color: #1a1a1a;
    margin: 0 0 22px;
}
.sa-ticker--upgrade2 .sa-ticker-kicker { color: #1e7e34; }
.sa-ticker--upgrade2 .sa-ticker-count { color: #1a1a1a; }
.sa-ticker--upgrade2 .sa-ticker-viewport { font-size: 0.95em; }
.sa-ticker--upgrade2 .sa-ticker-list { color: #333; font-size: 0.95em; }
.sa-ticker--upgrade2 .sa-ticker-link { color: #1e7e34; }

/* My Sweepstakes Plus teaser: gold, matches the Plus block. */
.sa-ticker--mysweeps {
    background: #fff8e6;
    border: 1px solid #e6d7a8;
    margin: 0 0 12px;
    padding: 10px 12px 12px;
    text-align: left;
}
.sa-ticker--mysweeps .sa-ticker-kicker { color: #8a6500; font-size: 1.2rem; }
.sa-ticker--mysweeps .sa-ticker-count { color: #333; font-size: 1.45rem; margin-bottom: 6px; }
.sa-ticker--mysweeps .sa-ticker-viewport { height: 1.6em; font-size: 1.45rem; }
.sa-ticker--mysweeps .sa-ticker-list { color: #333; font-size: 1.45rem; line-height: 1.6em; }
.sa-ticker--mysweeps .sa-ticker-list li { height: 1.6em; }
.sa-ticker--mysweeps .sa-ticker-link { display: none; } /* the teaser already has Upgrade to Plus */

@media (prefers-reduced-motion: reduce) {
    .sa-ticker--roll .sa-ticker-list,
    .sa-ticker--roll .sa-ticker-list.sa-ticker-sliding {
        transition: none;
    }
}

@media (max-width: 640px) {
    .sa-ticker--upgrade2 { margin: 0 0 18px; padding: 12px 12px 13px; }
    .sa-ticker-list li { white-space: nowrap; }
}
