@use '../../../../styles/_globals.scss' as *;

:host,
:host * {
  -webkit-tap-highlight-color: transparent;
}

:host {
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  user-select: none;
  width: 400px;
  max-width: 100%;
  display: block;

  :host-context([dir='rtl']) {
    direction: rtl;
  }
}

mat-dialog-content {
  position: relative;
  padding: 0 !important;
  max-height: calc(
    100vh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  ) !important;
}

:host ::ng-deep mat-dialog-actions {
  padding: 0 0 var(--s2) 0 !important;
}

.dialog-actions-and-warnings {
  margin: 0 var(--s2) var(--s2);
}

.deadline-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  padding-bottom: var(--s);
}

.deadline-actions button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 38px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.deadline-actions button:not(:last-child) {
  margin-right: var(--s-quarter);
}

.dialog-cancel-btn {
  display: block;
  width: 100%;
}

.deadline-actions button,
.dialog-cancel-btn {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
