.rs-training-booking__drawer {
  width: min(42rem, calc(100% - 2rem));
  max-height: min(48rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: .75rem;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / .32);
}

.rs-training-booking__drawer::backdrop { background: rgb(0 0 0 / .48); }
.rs-training-booking__drawer-panel { background: #fff; color: #25292d; }
.rs-training-booking__drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid #ddd; }
.rs-training-booking__drawer-header h2 { margin: 0; font-size: 1.5rem; }
.rs-training-booking__close { min-width: 2.75rem; min-height: 2.75rem; border: 0; border-radius: 50%; background: #eee; font-size: 1.75rem; cursor: pointer; }
.rs-training-booking__drawer-body { max-height: calc(100dvh - 8rem); overflow: auto; padding: 1.5rem; }
.rs-training-booking__candidate { padding: 1.25rem 0; border-bottom: 1px solid #ddd; }
.rs-training-booking__candidate:first-child { padding-top: 0; }
.rs-training-booking__candidate-title { margin: 0 0 .75rem; font-size: 1.25rem; }
.rs-training-booking__candidate-facts { margin: 0 0 1rem; }
.rs-training-booking__candidate-facts div { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr; gap: .75rem; }
.rs-training-booking__candidate-facts dt { font-weight: 700; }
.rs-training-booking__candidate-facts dd { margin: 0; }
.rs-training-booking__coverage-note { font-weight: 700; }
.rs-training-booking__choose { width: 100%; min-height: 3rem; padding: .75rem 1rem; border: 0; border-radius: .4rem; background: #ee7125; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.rs-training-booking__choose:disabled { opacity: .55; cursor: wait; }
.rs-training-booking__error { min-height: 1.5em; color: #a20d1a; }
.rs-training-booking__fallback-main { width: min(46rem, calc(100% - 2rem)); margin: 3rem auto; font: 1rem/1.5 system-ui, sans-serif; color: #25292d; }

@media (max-width: 40rem) {
  .rs-training-booking__drawer { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: .9rem .9rem 0 0; }
  .rs-training-booking__drawer-body { max-height: calc(92dvh - 5rem); padding: 1rem; }
  .rs-training-booking__candidate-facts div { grid-template-columns: 1fr; gap: 0; margin-bottom: .5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .rs-training-booking__drawer[open] { animation: rs-training-booking-in .18s ease-out; }
  @keyframes rs-training-booking-in { from { opacity: 0; transform: translateY(1rem); } }
}
