.wms-centered-message-popup.wms-alert-popup:not(.wms-alert-popup-with-header) .dxbl-popup-header {
    display: none !important;
}

.wms-centered-message-popup.wms-alert-popup-with-header .wms-alert-body,
.wms-centered-message-popup.wms-alert-popup-with-header .wms-alert-primary {
    text-align: left;
}

.wms-centered-message-popup.wms-alert-popup-with-header .wms-alert-primary {
    font-size: 1.1rem;
    font-weight: 400;
}

.wms-centered-message-popup.wms-alert-popup .dxbl-popup-body {
    padding: 0;
}

.wms-centered-message-popup.wms-alert-popup.dxbl-popup,
.wms-centered-message-popup.wms-alert-popup .dxbl-modal-content {
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
}

.wms-centered-message-popup.wms-alert-popup .dxbl-modal-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wms-centered-message-popup.wms-alert-popup .dxbl-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.wms-centered-message-popup.wms-alert-popup .dxbl-modal-header,
.wms-centered-message-popup.wms-alert-popup .dxbl-modal-footer {
    flex: 0 0 auto;
}

.wms-centered-message-popup.wms-alert-popup .dxbl-popup-footer {
    padding: 8px 18px 16px;
    background: #fff;
    border-top: 1px solid #e5e7ef;
}

.wms-alert-body {
    padding: 22px 28px 32px;
    text-align: center;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.wms-alert-primary {
    color: #242932;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    text-align: center;
    width: 100%;
    overflow-wrap: anywhere;
}

.wms-alert-details {
    background: #f7f8fb;
    border: 1px solid #e5e7ef;
    border-radius: 14px;
    padding: 10px 12px;
    text-align: left;
}

.wms-alert-context {
    margin-bottom: 18px;
}

.wms-alert-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 2px;
    border-bottom: 1px solid #e8eaf1;
}

.wms-alert-detail-row:last-child {
    border-bottom: 0;
}

.wms-alert-detail-label {
    color: #626b7a;
    font-size: .93rem;
    font-weight: 700;
    white-space: nowrap;
}

.wms-alert-detail-value {
    color: #20242c;
    font-size: 1rem;
    font-weight: 800;
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}

.wms-alert-detail-note {
    color: #20242c;
    font-weight: 700;
    line-height: 1.35;
    padding: 7px 2px;
    overflow-wrap: anywhere;
}

.wms-alert-footer {
    display: flex;
    width: 100%;
    padding: 0 4px;
}

.wms-alert-button {
    min-height: 56px;
    border-radius: 12px;
    flex-grow: 1;
    color: #fff;
    background: #63359a;
    border: none;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 6px 12px rgba(83, 45, 130, .22);
}

.wms-alert-button:hover,
.wms-alert-button:focus {
    color: #fff;
    background: #552d86;
}

@media (max-width: 520px) {
    .wms-alert-body {
        padding: 20px 18px 28px;
    }

    .wms-centered-message-popup.wms-alert-popup .dxbl-popup-footer {
        padding: 8px 14px 14px;
    }
}
