/* Arizona Testers switch button v2 — compact sidebar fix */
.testing-mode-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 50px;
    margin: 10px 0 18px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 159, 46, 0.28);
    border-radius: 14px;
    background: rgba(255, 159, 46, 0.11);
    color: #ffb15a !important;
    text-decoration: none !important;
    font-weight: 900;
    overflow: hidden;
}

.testing-mode-switch:hover {
    background: rgba(255, 159, 46, 0.17);
}

.testing-mode-switch i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 159, 46, 0.24);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    color: #ffb15a;
    font-size: 0.95rem;
}

.testing-mode-switch span {
    min-width: 0;
    display: grid;
    gap: 2px;
    line-height: 1.05;
}

.testing-mode-switch strong,
.testing-mode-switch span > b {
    display: block;
    overflow: hidden;
    color: #ffb15a;
    font-size: 0.9rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.testing-mode-switch small {
    display: block;
    overflow: hidden;
    color: rgba(255, 230, 204, 0.76);
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* fallback if the HTML still has plain text inside span */
.testing-mode-switch span {
    overflow: hidden;
    color: #ffb15a;
    font-size: 0.9rem;
    text-overflow: ellipsis;
}

.testing-mode-switch span small {
    margin-top: 1px;
}

.az-sidebar-compact .testing-mode-switch,
.sidebar.is-collapsed .testing-mode-switch,
body.sidebar-collapsed .testing-mode-switch {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 7px;
}

.az-sidebar-compact .testing-mode-switch span,
.sidebar.is-collapsed .testing-mode-switch span,
body.sidebar-collapsed .testing-mode-switch span {
    display: none;
}
