/* دیالوگ پیام/تأیید: عنوان راست نوار، دکمه‌ها همیشه چپ فیزیکی (مثل chrome XP) */

.heyat-msg-dialog-shell.mud-dialog {
    border-radius: 8px;
    overflow: hidden;
}

.heyat-msg-dialog-title {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.heyat-msg-dialog-ltr .heyat-msg-dialog-title {
    direction: ltr;
    text-align: left;
    justify-content: flex-start;
}

.heyat-msg-dialog-title__inner {
    max-width: 100%;
    justify-content: flex-end !important;
}

.heyat-msg-dialog-ltr .heyat-msg-dialog-title__inner {
    justify-content: flex-start !important;
}

.heyat-msg-dialog-title__text {
    min-width: 0;
    text-align: right;
}

.heyat-msg-dialog-ltr .heyat-msg-dialog-title__text {
    text-align: left;
}

.heyat-msg-dialog-title__primary {
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.heyat-msg-dialog-title__warning {
    color: rgba(255, 252, 220, 0.95) !important;
    line-height: 1.4 !important;
    margin-top: 2px;
}

.heyat-msg-dialog-title__icon {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.22) !important;
}

.heyat-msg-dialog-body {
    direction: rtl;
    text-align: right;
}

.heyat-msg-dialog-ltr .heyat-msg-dialog-body {
    direction: ltr;
    text-align: left;
}

.heyat-msg-dialog-message {
    line-height: 1.75;
    color: var(--mud-palette-text-primary);
}

.heyat-msg-dialog-chip {
    max-width: 100%;
    align-self: flex-end;
}

.heyat-msg-dialog-ltr .heyat-msg-dialog-chip {
    align-self: flex-start;
}

.heyat-msg-dialog-chip__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
    display: inline-block;
}

.heyat-msg-dialog-progress {
    height: 6px !important;
}

.heyat-msg-dialog-countdown {
    text-align: inherit;
    opacity: 0.85;
}

/* پاورقی: همیشه چپ فیزیکی — انصراف سپس تأیید */
.mud-dialog-container .mud-dialog.heyat-msg-dialog-shell .mud-dialog-actions,
.mud-dialog-container .mud-dialog.heyat-msg-dialog-shell .mud-dialog-actions .heyat-msg-dialog-actions,
.heyat-msg-dialog-actions {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    width: 100% !important;
    direction: ltr !important;
    justify-content: flex-start !important;
    gap: 8px;
    padding: 4px 8px 8px;
    box-sizing: border-box;
}

.mud-dialog-container .mud-dialog.heyat-msg-dialog-shell .mud-dialog-actions .mud-button-root {
    margin-inline: 0 8px !important;
}

/* نوار عنوان MudEx: متن TitleContent سمت راست فیزیکی */
.mud-dialog-container .mud-dialog.heyat-msg-dialog-shell .mud-dialog-title > *:not(.mud-ex-dialog-header-actions):not(.mud-button-close):not(.mud-dialog-chrome-lock) {
    order: 10 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 140px) !important;
    margin: 0 0 0 auto !important;
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
    padding: 0 8px 0 4px !important;
    direction: rtl !important;
    text-align: right !important;
    justify-content: flex-end !important;
    display: flex !important;
}

.mud-dialog-container .mud-dialog.heyat-msg-dialog-shell.heyat-msg-dialog-ltr .mud-dialog-title > *:not(.mud-ex-dialog-header-actions):not(.mud-button-close):not(.mud-dialog-chrome-lock) {
    margin: 0 auto 0 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
    direction: ltr !important;
    text-align: left !important;
    justify-content: flex-start !important;
}
