.workshop-progress {
  position: fixed;
  z-index: 25;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  width: fit-content;
  max-width: calc(100% - 32px);
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-inline: auto;
  padding: 14px 20px;
  border: 1px solid #b8d4ff;
  border-radius: 10px;
  background: #101e34;
  color: #fff;
  box-shadow: 0 4px 20px #0d1d3a40;
  text-align: left;
  line-height: 1.5;
}

.workshop-progress[hidden] {
  display: none;
}

.workshop-progress strong,
.workshop-progress small {
  display: block;
}

.workshop-progress strong {
  font-size: 15px;
}

.workshop-progress small {
  margin-top: 3px;
  color: #dbe8ff;
  font-size: 13px;
}

.workshop-progress-spinner {
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid #87a2ca;
  border-top-color: #fff;
  border-radius: 50%;
  animation: workshop-progress-rotate 850ms linear infinite;
}

@keyframes workshop-progress-rotate {
  to { transform: rotate(1turn); }
}

.workshop-progress-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .workshop-progress-spinner {
    animation: none;
  }
}

/* 開いたままの申込画面で、選んでいた回が無くなったことを知らせる */
.calendar-notice {
  margin: 0 5px 12px;
  padding: 10px 12px;
  border: 1px solid #f0c36d;
  border-radius: 7px;
  background: #fff8e8;
  color: #102b4d;
  font-size: .9rem;
  line-height: 1.6;
}

.calendar-notice[hidden] {
  display: none;
}

/* Turnstile（自動送信の確認）。申込画面で有効にしたときだけ表示される。 */
.booking-check {
  margin-top: 20px;
}

.booking-check .cf-turnstile {
  min-height: 65px;
}

.booking-check .help {
  margin: 8px 5px 0;
}

.booking-check-status {
  margin: 8px 5px 0;
  color: #a3261c;
  font-weight: 700;
}

.booking-check-status[hidden] {
  display: none;
}

/* Turnstile は最小幅300px。幅の狭い画面では左右の余白を使って、カードの内側に収める。 */
@media (max-width: 345px) {
  .booking-check .cf-turnstile {
    margin-inline: -15px;
  }
}
