/* All flows share tap, press and keyboard feedback. Selected state stays in controls. */
.booking-ui {
  /* Inherited by labels, summaries and their children as well as native controls. */
  -webkit-tap-highlight-color: transparent;
}

/* Press feedback ends on release/cancel; never use hover or persistent focus as selection. */
.booking-ui
  :where(
    button:not(:disabled):not([aria-disabled="true"]),
    a[href]:not([aria-disabled="true"]),
    summary,
    [role="button"]:not([aria-disabled="true"]),
    label:has(> input:is([type="radio"], [type="checkbox"]):not(:disabled))
  ):active {
  opacity: 0.72;
}

/* Keep keyboard and text-entry focus; touch must not clear or blur real focus. */
.booking-ui
  :where(
    button,
    a[href],
    input,
    textarea,
    select,
    summary,
    [tabindex]
  ):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* Keep the original label geometry while the guarded action is running. */
.booking-ui .button[aria-busy="true"] { position: relative; }
.booking-ui .booking-button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  min-width: 0;
}
.booking-ui .button[aria-busy="true"] > .booking-button-content { opacity: 0; }
.booking-ui .button > .booking-button-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  animation: booking-button-spin 0.8s linear infinite;
}
@keyframes booking-button-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .booking-ui .button > .booking-button-spinner { animation: none; }
}
