/* Styles for the booking-selection component: the selected booking card, scoped by the component's host element,
   and the associate booking modal, which is rendered outside it and hangs from the '.booking-selection-modal' root. */

/* Selected booking card */
booking-selection .booking-selection__card {
  display: flex;
  flex-direction: column;
  gap: var(--md-spacing-3xs);
  margin-top: var(--md-spacing-xs);
}

booking-selection .booking-selection__card-panel {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: var(--md-spacing-xs) var(--md-spacing-sm);
}

booking-selection .booking-selection__booking,
.booking-selection-modal .booking-selection-modal__booking,
.booking-selection-modal .booking-selection-modal__user-content {
  display: flex;
  align-items: stretch;
  gap: var(--md-spacing-xs);
}

/* 2.5rem on the 10px root of Bootstrap 3 is 25px: the closest token is 24px */
booking-selection .booking-selection__booking-icon,
.booking-selection-modal .booking-selection-modal__booking-icon {
  font-size: var(--md-font-size-7);
  color: var(--md-content-brand-secondary);
}

booking-selection .booking-selection__booking-data,
.booking-selection-modal .booking-selection-modal__booking-data,
.booking-selection-modal .booking-selection-modal__user-data {
  display: flex;
  flex-direction: column;
  gap: var(--md-spacing-3xs);
}

booking-selection .booking-selection__booking-id,
.booking-selection-modal .booking-selection-modal__booking-id,
.booking-selection-modal .booking-selection-modal__user-name {
  font-weight: var(--md-font-weight-semibold);
}

booking-selection .booking-selection__booking-place,
.booking-selection-modal .booking-selection-modal__booking-place {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

booking-selection .booking-selection__tag,
.booking-selection-modal .booking-selection-modal__tag {
  font-weight: var(--md-font-weight-bold);
}

/* Associate booking modal */
.booking-selection-modal {
  display: flex;
  flex-direction: column;
  gap: var(--md-spacing-sm);
  padding: var(--md-spacing-sm);
  font-size: var(--md-font-size-4);
}

.booking-selection-modal .booking-selection-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-selection-modal .booking-selection-modal__title {
  font-size: var(--md-font-size-7);
  font-weight: var(--md-font-weight-semibold);
}

.booking-selection-modal .booking-selection-modal__body {
  display: flex;
  flex-direction: column;
  gap: var(--md-spacing-xs);
}

.booking-selection-modal .booking-selection-modal__user-label {
  margin-bottom: var(--md-spacing-3xs);
}

.booking-selection-modal .booking-selection-modal__user {
  padding: var(--md-spacing-xs) var(--md-spacing-sm);
  background: var(--md-background-secondary);
}

/* 2rem on the 10px root of Bootstrap 3 */
.booking-selection-modal .booking-selection-modal__user-icon {
  font-size: var(--md-font-size-6);
  color: var(--md-content-brand-secondary);
}

/* no token: the booking list scrolls past a third of the viewport */
.booking-selection-modal .booking-selection-modal__required {
  color: var(--md-content-negative);
}

.booking-selection-modal .booking-selection-modal__options {
  display: flex;
  flex-direction: column;
  max-height: 32vh;
  overflow: auto;
}

.booking-selection-modal .booking-selection-modal__option {
  padding: var(--md-spacing-xs) var(--md-spacing-sm);
  text-align: left;
  font-size: var(--md-font-size-4);
}

.booking-selection-modal .booking-selection-modal__buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--md-spacing-xs);
}

/* Buttons of the booking panel */
booking-selection .booking-selection__associate-button,
booking-selection .booking-selection__book-icon {
  font-size: var(--md-font-size-4);
}
