/* ════════════════════════════════════════════
   SCOPE ISOLATO: .t4sm-panel-actions
   PULSANTI MODALE PANNELLI DI ANALISI T4SM
   ════════════════════════════════════════════ */

.t4sm-panel-actions {
    --t4sm-actions-red: #b51627;
    --t4sm-actions-red-hover: #95111f;
    --t4sm-actions-white: #ffffff;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;

    width: 100%;
    margin: 24px 0 0;
    padding: 0;
}

/* Pulsanti */
.t4sm-panel-actions .t4sm-panel-actions__button,
.t4sm-panel-actions .t4sm-panel-actions__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-height: 40px;
    padding: 10px 18px;
    margin: 0;

    border: 0;
    border-radius: 0;

    background-color: var(--t4sm-actions-red);
    color: var(--t4sm-actions-white);

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    white-space: nowrap;
    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

/* Hover */
.t4sm-panel-actions .t4sm-panel-actions__button:hover {
    background-color: var(--t4sm-actions-red-hover);
    color: var(--t4sm-actions-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Accessibilità tastiera */
.t4sm-panel-actions .t4sm-panel-actions__button:focus-visible {
    outline: 2px solid var(--t4sm-actions-red);
    outline-offset: 4px;
}

/* Tablet */
@media (max-width: 991px) {
    .t4sm-panel-actions {
        gap: 12px;
        margin-top: 22px;
    }

    .t4sm-panel-actions .t4sm-panel-actions__button {
        font-size: 0.88rem;
        padding: 10px 14px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .t4sm-panel-actions {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 10px;
        margin-top: 20px;
    }

    .t4sm-panel-actions .t4sm-panel-actions__button {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
        font-size: 0.88rem;
        white-space: normal;
    }
}

/* Preferenze di movimento ridotto */
@media (prefers-reduced-motion: reduce) {
    .t4sm-panel-actions .t4sm-panel-actions__button {
        transition: none;
    }

    .t4sm-panel-actions .t4sm-panel-actions__button:hover {
        transform: none;
    }
}