/* Le navigateur conserve les vrais liens de pagination dans le HTML.
   On ne masque leur présentation que si le chargement progressif est opérationnel. */
.tyshirt-stream-pagination {
    display: none !important;
}
.tyshirt-stream-footer {
    clear: both;
    width: 100%;
    padding: 26px 12px 38px;
    text-align: center;
    box-sizing: border-box;
}
.tyshirt-stream-count {
    color: #383b46;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto 12px;
}
.tyshirt-stream-progress {
    display: block;
    width: min(260px, 100%);
    height: 5px;
    margin: 0 auto 18px;
    border-radius: 8px;
    background: #e3e8ed;
    overflow: hidden;
}
.tyshirt-stream-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #13b6ba;
    border-radius: inherit;
    transition: width .2s ease;
}
.tyshirt-stream-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    background: #162161;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    text-decoration: none;
}
.tyshirt-stream-button:hover,
.tyshirt-stream-button:focus-visible {
    background: #243996;
    color: #fff;
}
.tyshirt-stream-button:disabled {
    cursor: progress;
    opacity: .9;
}
.tyshirt-stream-button[hidden],
.tyshirt-stream-progress[hidden],
.tyshirt-stream-fallback[hidden] {
    display: none !important;
}
.tyshirt-stream-status {
    margin: 10px auto 0;
    min-height: 20px;
    color: #656c75;
    font-size: 13px;
}
.tyshirt-stream-fallback {
    display: inline-block;
    margin-top: 10px;
    color: #162161;
    text-decoration: underline;
    cursor: pointer;
}
@media (max-width: 767px) {
    .tyshirt-stream-footer { padding: 22px 8px 32px; }
    .tyshirt-stream-button { width: 100%; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    .tyshirt-stream-progress-fill { transition: none; }
}

/* L'attente est toujours visible après chaque clic, même sur serveur lent. */
.tyshirt-stream-button.is-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border: 2px solid rgba(255,255,255,.40);
    border-top-color: white;
    border-radius: 50%;
    animation: tyshirt-spin .8s linear infinite;
}
@keyframes tyshirt-spin { to { transform: rotate(360deg); } }
.tyshirt-stream-status { max-width: 480px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
    .tyshirt-stream-button.is-loading::before { animation: none; border-color: white; }
}
