/* Componente compartido para todos los botones class="az-action danger". */
.az-action.danger {
    all: unset;
    transition: background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease,filter .18s ease;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    background: rgba(127,29,29,.24);
    color: #fecaca;
    border: 1px solid rgba(252,165,165,.28);
}

.az-action.danger::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    left: -145%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);
    transition: left .72s ease;
    pointer-events: none;
}

.az-action.danger:hover,
.az-action.danger:focus,
.az-action.danger:focus-visible,
.az-action.danger.is-focused,
.az-action.danger[data-focused="true"] {
    background: rgba(127,29,29,.24);
    color: #fecaca;
    border-color: rgba(252,165,165,.28);
    filter: brightness(1.06);
    box-shadow: 0 18px 38px rgba(127,29,29,.22);
    transform: none;
}

.az-action.danger:hover::before,
.az-action.danger:focus::before,
.az-action.danger:focus-visible::before,
.az-action.danger.is-focused::before,
.az-action.danger[data-focused="true"]::before {
    left: 145%;
}

.az-action.danger:focus-visible {
    outline: 2px solid rgba(254,202,202,.72);
    outline-offset: 3px;
}

.az-action.danger:active {
    background: rgba(127,29,29,.24);
    color: #fecaca;
    border-color: rgba(252,165,165,.28);
    filter: brightness(.98);
    box-shadow: 0 10px 20px rgba(127,29,29,.18);
    transform: translateY(0) scale(.985);
}

.az-action.danger:disabled,
.az-action.danger[aria-disabled="true"] {
    opacity: .65;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
    transform: none;
}
