/* Keep icon-led warning/error panels consistent with the existing information cards. */
.mud-alert:is(.mud-alert-text-warning, .mud-alert-outlined-warning, .mud-alert-filled-warning,
    .mud-alert-text-error, .mud-alert-outlined-error, .mud-alert-filled-error):not(.mud-snackbar):not(.mud-snackbar *)
    > .mud-alert-position:has(> .mud-alert-icon) {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
}

.mud-alert:is(.mud-alert-text-warning, .mud-alert-outlined-warning, .mud-alert-filled-warning,
    .mud-alert-text-error, .mud-alert-outlined-error, .mud-alert-filled-error):not(.mud-snackbar):not(.mud-snackbar *)
    > .mud-alert-position:has(> .mud-alert-icon) > .mud-alert-icon {
    display: grid;
    width: 30px;
    margin: 0;
    padding: 0;
    align-self: center;
    place-items: center;
    color: inherit;
}

.mud-alert:is(.mud-alert-text-warning, .mud-alert-outlined-warning, .mud-alert-filled-warning,
    .mud-alert-text-error, .mud-alert-outlined-error, .mud-alert-filled-error):not(.mud-snackbar):not(.mud-snackbar *)
    > .mud-alert-position:has(> .mud-alert-icon) > .mud-alert-icon > .mud-icon-root {
    width: 28px;
    height: 28px;
}

.mud-alert:is(.mud-alert-text-warning, .mud-alert-outlined-warning, .mud-alert-filled-warning,
    .mud-alert-text-error, .mud-alert-outlined-error, .mud-alert-filled-error):not(.mud-snackbar):not(.mud-snackbar *)
    > .mud-alert-position:has(> .mud-alert-icon) > .mud-alert-message {
    min-width: 0;
    padding-inline-start: 0.85rem;
    border-inline-start: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    overflow-wrap: anywhere;
}

/* Standard phone information notices share the card layout; wider screens retain their current design. */
@media (max-width: 599.98px) {
    .mud-alert:is(.mud-alert-text-info, .mud-alert-outlined-info, .mud-alert-filled-info):not(.mud-snackbar):not(.mud-snackbar *)
        > .mud-alert-position:has(> .mud-alert-icon) {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        align-items: center;
        gap: 0.85rem;
    }

    .mud-alert:is(.mud-alert-text-info, .mud-alert-outlined-info, .mud-alert-filled-info):not(.mud-snackbar):not(.mud-snackbar *)
        > .mud-alert-position:has(> .mud-alert-icon) > .mud-alert-icon {
        display: grid;
        width: 30px;
        margin: 0;
        padding: 0;
        align-self: center;
        place-items: center;
        color: inherit;
    }

    .mud-alert:is(.mud-alert-text-info, .mud-alert-outlined-info, .mud-alert-filled-info):not(.mud-snackbar):not(.mud-snackbar *)
        > .mud-alert-position:has(> .mud-alert-icon) > .mud-alert-icon > .mud-icon-root {
        width: 28px;
        height: 28px;
    }

    .mud-alert:is(.mud-alert-text-info, .mud-alert-outlined-info, .mud-alert-filled-info):not(.mud-snackbar):not(.mud-snackbar *)
        > .mud-alert-position:has(> .mud-alert-icon) > .mud-alert-message {
        min-width: 0;
        padding-inline-start: 0.85rem;
        border-inline-start: 1px solid color-mix(in srgb, currentColor 30%, transparent);
        overflow-wrap: anywhere;
    }
}
