.system-message-popin {
    width: min(36rem, calc(100% - 2rem));
    padding: 0;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.system-message-popin::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.system-message-popin__content {
    position: relative;
    padding: 2.75rem 1.5rem 1.5rem;
}

.system-message-popin__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    padding: 0.25rem;
    border: 0;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #555;
    cursor: pointer;
}

.system-message-popin__close:hover,
.system-message-popin__close:focus-visible {
    color: #000;
}

/* The popin already has its own close button. */
.system-message-popin .joomla-alert--close {
    display: none;
}

.system-message-popin joomla-alert:last-child,
.system-message-popin .alert:last-child {
    margin-bottom: 0;
}
