/* The WIM gate is React-owned. This stylesheet only aligns its presentation
   and repairs the Tarot dialog backdrop; it does not intercept any action. */
.wim-delete-gate,
.tarot-dashboard-main .qpostal-dialog:is([aria-label="Удалить пользователя?"], [aria-label="Delete user?"]) {
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 100vmax rgba(5, 24, 45, .42), 0 24px 80px rgba(0, 0, 0, .25);
}

.wim-delete-gate::before,
.tarot-dashboard-main .qpostal-dialog:is([aria-label="Удалить пользователя?"], [aria-label="Delete user?"])::before {
  content: none !important;
  display: none !important;
}

.wim-delete-gate > p,
.tarot-dashboard-main .qpostal-dialog:is([aria-label="Удалить пользователя?"], [aria-label="Delete user?"]) > h2 {
  flex: 0 0 100%;
  margin: 0 0 6px;
  color: #202d3c;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.wim-delete-gate > button,
.tarot-dashboard-main .qpostal-dialog:is([aria-label="Удалить пользователя?"], [aria-label="Delete user?"]) > button {
  min-height: 40px;
  margin: 0;
  padding: 9px 18px;
  border: 1px solid #ccd7e4;
  border-radius: 8px;
  background: #fff;
  color: #202d3c;
  font: inherit;
  cursor: pointer;
}

.wim-delete-gate > button:first-of-type,
.tarot-dashboard-main .qpostal-dialog:is([aria-label="Удалить пользователя?"], [aria-label="Delete user?"]) > button:first-of-type {
  background: #bd2638;
  border-color: #bd2638;
  color: #fff;
}

.wim-delete-gate > button:first-of-type:hover:not(:disabled),
.tarot-dashboard-main .qpostal-dialog:is([aria-label="Удалить пользователя?"], [aria-label="Delete user?"]) > button:first-of-type:hover:not(:disabled) {
  background: #a51f30;
  border-color: #a51f30;
}

.wim-delete-gate > button:disabled,
.tarot-dashboard-main .qpostal-dialog:is([aria-label="Удалить пользователя?"], [aria-label="Delete user?"]) > button:disabled {
  cursor: not-allowed;
  opacity: .6;
}
