.ui-dialog.portal-message {
    z-index: 10002;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 1px solid #dce5df;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 35, 24, .25);
    font-family: inherit;
}

.portal-message .ui-dialog-titlebar {
    padding: 24px 28px 0;
    border: 0;
    background: transparent;
    color: #20392e;
}

.portal-message .ui-dialog-title {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    overflow: visible;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
}

.portal-message .ui-dialog-titlebar-close {
    display: none;
}

.portal-message .ui-dialog-content {
    max-height: 60vh;
    padding: 20px 28px 8px;
    color: #37463e;
    text-align: center;
    overflow-wrap: break-word;
}

.portal-message-icon {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eaf2ee;
    color: #01704a;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 60px;
    text-align: center;
}

.portal-message #portal-message-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.portal-message-success .portal-message-icon {
    background: #e4f4eb;
    color: #01704a;
}

.portal-message-error .portal-message-icon {
    background: #fdeceb;
    color: #b5322a;
}

.portal-message-warning .portal-message-icon,
.portal-message-confirm .portal-message-icon {
    background: #fff2d7;
    color: #946100;
}

.portal-message .ui-dialog-buttonpane {
    margin: 0;
    padding: 16px 24px 24px;
    border: 0;
    background: transparent;
    text-align: center;
}

.portal-message .ui-dialog-buttonset {
    display: flex;
    float: none;
    justify-content: center;
    flex-wrap: wrap;
}

.portal-message .ui-dialog-buttonpane button {
    min-width: 110px;
    margin: 4px;
    padding: 10px 22px;
    border: 1px solid #cbd8d0;
    border-radius: 6px;
    background: #fff;
    color: #37463e;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: none;
}

.portal-message .ui-dialog-buttonpane .portal-message-primary {
    border-color: #01704a;
    background: #01704a;
    color: #fff;
}

.portal-message .ui-dialog-buttonpane .portal-message-primary:hover {
    border-color: #00583a;
    background: #00583a;
}

.portal-message .ui-dialog-buttonpane .portal-message-cancel:hover {
    background: #f0f5f2;
}

.portal-message .ui-dialog-buttonpane button:focus {
    outline: 3px solid #90bfa8;
    outline-offset: 2px;
}

.ui-widget-overlay.portal-message-overlay {
    z-index: 10001;
    background: #173c2e;
    opacity: .4;
}
