.msweb-ui.modal-small > h3:empty,
.msweb-ui.modal-wide > h3:empty,
.msweb-ui.modal-full > h3:empty {
    display: none;
}

.msweb-ui.ui-component.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 1;
    width: 32px;
    height: 32px;
    min-width: unset;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    color: #6b7280;
    flex-shrink: 0;
}

.msweb-ui.ui-component.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
}

.modal-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 0 4px;
    text-align: center;
}

.modal-message-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.modal-message-icon svg {
    width: 100%;
    height: 100%;
}

.modal-message-icon--success {
    color: #22c55e;
}

.modal-message-icon--failed {
    color: #ef4444;
}

.modal-message-icon--warning {
    color: #d97706;
}

.modal-message-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.theme-dark .msweb-ui.modal-small,
.theme-dark .msweb-ui.modal-wide,
.theme-dark .msweb-ui.modal-full,
[data-theme="dark"] .msweb-ui.modal-small,
[data-theme="dark"] .msweb-ui.modal-wide,
[data-theme="dark"] .msweb-ui.modal-full {
    background: #2a2a3c;
    color: #e2e8f0;
    border: 1px solid #3f3f5c;
}

.theme-dark .msweb-ui.modal-small > h3,
.theme-dark .msweb-ui.modal-wide > h3,
.theme-dark .msweb-ui.modal-full > h3,
[data-theme="dark"] .msweb-ui.modal-small > h3,
[data-theme="dark"] .msweb-ui.modal-wide > h3,
[data-theme="dark"] .msweb-ui.modal-full > h3 {
    color: #e2e8f0;
    border-color: #3f3f5c;
    background: #2a2a3c;
}

.theme-dark .msweb-ui.modal-small > .msweb-ui.modal-body,
.theme-dark .msweb-ui.modal-wide > .msweb-ui.modal-body,
.theme-dark .msweb-ui.modal-full > .msweb-ui.modal-body,
[data-theme="dark"] .msweb-ui.modal-small > .msweb-ui.modal-body,
[data-theme="dark"] .msweb-ui.modal-wide > .msweb-ui.modal-body,
[data-theme="dark"] .msweb-ui.modal-full > .msweb-ui.modal-body {
    background: #2a2a3c;
    color: #e2e8f0;
}

.theme-dark .msweb-ui.modal-small > .buttons,
.theme-dark .msweb-ui.modal-wide > .buttons,
.theme-dark .msweb-ui.modal-full > .buttons,
[data-theme="dark"] .msweb-ui.modal-small > .buttons,
[data-theme="dark"] .msweb-ui.modal-wide > .buttons,
[data-theme="dark"] .msweb-ui.modal-full > .buttons {
    background: #1e1e2e;
    border-color: #3f3f5c;
}

.theme-dark .msweb-ui.modal-close-btn,
[data-theme="dark"] .msweb-ui.modal-close-btn {
    color: #cbd5e1;
}

.theme-dark .msweb-ui.modal-close-btn:hover,
[data-theme="dark"] .msweb-ui.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
