@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;
  }
}

:host h4 {
  text-align: center;
  padding-top: var(--s2);
  font-size: 14px;
  font-weight: bold;
}

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);
}

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

.schedule-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;
}

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

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

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

.schedule-info {
  display: flex;
  align-items: flex-start;
  gap: var(--s-half);
  margin: 0 0 var(--s) 0;
  padding: var(--s-half) var(--s);
  border-radius: var(--card-border-radius);
  border: 1px solid color-mix(in srgb, var(--text-color-muted) 32%, transparent);
  background: color-mix(in srgb, var(--bg-lighter) 90%, var(--text-color-muted) 10%);
  color: var(--text-color-muted);
  font-size: 12px;
  line-height: 1.4;

  mat-icon {
    margin-top: 1px;
    flex: 0 0 auto;
  }
}

.schedule-info-text {
  min-width: 0;
}
