/* Shared screen-size adaptation without clipping overflowing content. */
body { overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }
.grid > *, .flex > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
nav[aria-label='Breadcrumb'] svg { flex-shrink: 0; }
#mobile-menu { width: min(20rem, calc(100vw - 3rem)); }
#mobile-side-menu > div:last-child { width: min(20rem, calc(100vw - 3rem)); overscroll-behavior: contain; }
.form-actions > a, .form-actions > button { display: flex; justify-content: center; align-items: center; }
#bookingModal { overscroll-behavior: contain; }
#bookingModal > div { min-height: 100svh; padding: 1rem; display: flex; align-items: flex-start; justify-content: center; }
.responsive-table .table-cell-value > .flex, .responsive-table td form { flex-wrap: wrap; }
.pagination-controls > a, .pagination-controls > span { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 767px) {
  input:not([type='checkbox']):not([type='radio']):not([type='hidden']), select, textarea { font-size: 16px; }
  button, input:not([type='checkbox']):not([type='radio']):not([type='hidden']), select { min-height: 44px; }
  nav a[href], .form-actions a, .responsive-table a[title] { min-height: 44px; }
  .responsive-table a[title] { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
  input[type='checkbox'], input[type='radio'] { width: 20px; height: 20px; flex-shrink: 0; }
  input[type='file'] { width: 100%; }
  .form-actions { width: 100%; }

  /* Keep every table field and action available as a labelled card on phones. */
  .responsive-table, .responsive-table tbody { display: block; width: 100%; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .responsive-table tbody > tr { display: block; margin: .75rem; border: 1px solid #D5DDD6; border-radius: 8px; padding: .25rem 1rem; background: #FFFFFF; }
  .responsive-table td { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); align-items: center; gap: .5rem 1rem; padding: .65rem 0; border-bottom: 1px solid #E4EAE5; max-width: none; white-space: normal; overflow: visible; font-size: .875rem; }
  .responsive-table td::before { content: attr(data-label); color: #4A5E56; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table td > * { max-width: 100%; }
  .responsive-table .table-cell-value { min-width: 0; justify-self: end; text-align: right; }
  .responsive-table .table-cell-value > .flex { justify-content: flex-end; }
  .responsive-table td[colspan] { display: block; text-align: center; }
  .responsive-table td[colspan]::before { content: none; }
}
