/* The cue belongs to the next unanswered choice in a marketing demo. */
[data-demo-choices] {
  --cue-green: #287b60;
  --cue-amber: #9a6519;
  --cue-coral: #b2534e;
  --cue-ink: var(--cue-green);
  --cue-tint: 12%;
  --cue-cycle: demo-choice-pair;
  --cue-period: 6s;
  --cue-second: -3s;
}
:is([data-theme="dark"], .dark-widget) [data-demo-choices] {
  --cue-green: #75d5ac;
  --cue-amber: #e6b96d;
  --cue-coral: #ed9b90;
  --cue-tint: 17%;
}
[data-demo-choices]:has(> :nth-child(3 of :not(:disabled))) {
  --cue-cycle: demo-choice-trio;
  --cue-period: 9s;
  --cue-second: -6s;
}
[data-demo-choices] > :is(button, label) {position: relative}
[data-demo-choices] > :nth-child(2 of :not(:disabled)) {
  --cue-ink: var(--cue-amber);
  --cue-delay: var(--cue-second);
}
[data-demo-choices] > :nth-child(3 of :not(:disabled)) {
  --cue-ink: var(--cue-coral);
  --cue-delay: -3s;
}
[data-demo-choices] > :is(button:enabled, label:has(input:enabled))::after {
  content: "";
  display: var(--cue-display, block);
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid var(--cue-ink);
  border-inline-start-width: 3px;
  border-radius: inherit;
  pointer-events: none;
  background-color: color-mix(in srgb, var(--cue-ink) var(--cue-tint), transparent);
  opacity: .72;
}
[data-demo-choices] > .cut-slot {border-radius: 9px}
[data-demo-choices]:is(:focus-within, :has(:checked, [aria-pressed="true"])),
.cut-picker:not(:has(input[name="booking-time"]:checked)) [data-demo-choices="detail"],
[hidden] [data-demo-choices] {--cue-display: none}
@media (hover: hover) {
  [data-demo-choices]:has(> :hover) {--cue-display: none}
}
/* One invitation every three seconds. A lone available option keeps a steady tint. */
@media (prefers-reduced-motion: no-preference) {
  [data-demo-choices]:has(> :nth-child(2 of :not(:disabled))) > :is(button:enabled, label:has(input:enabled))::after {
    animation: var(--cue-cycle) var(--cue-period) ease-in-out var(--cue-delay, 0s) infinite;
  }
  @keyframes demo-choice-trio {
    0%, 28%, 100% {opacity: 1}
    33.333%, 95% {opacity: 0}
  }
  @keyframes demo-choice-pair {
    0%, 42%, 100% {opacity: 1}
    50%, 92% {opacity: 0}
  }
}
@media (forced-colors: active) {
  [data-demo-choices] {--cue-display: none}
}
