/* Виджет онлайн-записи боулинга. Всё остальное на странице — стили mychibi.ru. */
.bowling-page .bw { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.bowling-page .bw .vv-section-heading { margin-bottom: clamp(20px, 3vw, 32px); }

.bw-hero-art img:first-child { object-fit: cover; object-position: 38% 78%; aspect-ratio: 4 / 5; width: 100%; height: auto; }
@media (min-width: 768px) { .bw-hero-art img:first-child { aspect-ratio: 9 / 11; } }

.bw-card {
  background: #fff;
  border-radius: var(--radius, 12px);
  padding: clamp(20px, 3.2vw, 36px);
  box-shadow: 0 1px 0 var(--line, #ddd7e5);
  display: grid;
  gap: clamp(22px, 3vw, 30px);
}
.bw-loading { color: var(--muted); margin: 0; }

.bw-step { display: grid; gap: 12px; min-width: 0; }
.bw-step-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bw-step-title small { font-weight: 600; font-size: .8125rem; color: var(--muted); }

.bw-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-choices .visit-choice { min-height: 44px; cursor: pointer; font-family: var(--font-body); color: var(--ink); line-height: 1.2; }
.bw-choices .visit-choice[aria-pressed=true] { background: var(--violet, #60409d); border-color: var(--violet, #60409d); color: #fff; }
.bw-choices .visit-choice[aria-pressed=true] .bw-day { opacity: .85; }
.bw-choices .visit-choice:disabled { opacity: .45; cursor: not-allowed; }
.bw-choices .visit-choice:focus-visible { outline: 3px solid var(--lime, #d9ee32); outline-offset: 2px; }

.bw-dates { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: -2px -2px -8px; scrollbar-width: thin; }
.bw-dates .visit-choice { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; padding: 8px 14px; min-width: 72px; scroll-snap-align: start; }
.bw-dates .bw-day { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.bw-dates .bw-num { font-size: .9375rem; }

.bw-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bw-times .visit-choice { padding: 10px 6px; text-align: center; font-variant-numeric: tabular-nums; }

.bw-stepper { display: inline-flex; align-items: center; gap: 4px; }
.bw-stepper button {
  width: 44px; height: 44px; border-radius: var(--control-radius, 6px); border: 1px solid #d7cfe1; background: transparent;
  font-size: 1.375rem; line-height: 1; color: var(--violet-dark); cursor: pointer;
}
.bw-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.bw-stepper button:focus-visible { outline: 3px solid var(--lime, #d9ee32); outline-offset: 2px; }
.bw-stepper output { min-width: 52px; text-align: center; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--ink); }
.bw-hint { margin: 0; font-size: .875rem; color: var(--muted); }

.bw-empty { margin: 0; padding: 14px 16px; border-radius: var(--control-radius, 6px); background: var(--surface-soft, #eee8f6); color: var(--ink); font-size: .9375rem; }

.bw-form { display: grid; gap: 14px; border-top: 1px solid var(--line, #ddd7e5); padding-top: clamp(20px, 3vw, 28px); }
.bw-form .bw-fields { display: grid; gap: 6px 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bw-form .bw-fields { grid-template-columns: 1fr 1fr; } .bw-form .bw-wide { grid-column: 1 / -1; } }
.bw-form .field { display: grid; gap: 2px; }
.bw-form .field label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.bw-form .field input, .bw-form .field textarea { font-size: 1rem; font-family: var(--font-body); }
.bw-form .field textarea { min-height: 43px; resize: vertical; }
.bw-form .check { font-size: .8125rem; }
.bw-form .check a { color: var(--violet-dark); }
.bw-summary { margin: 0; padding: 14px 16px; border-radius: var(--control-radius, 6px); background: var(--surface-soft, #eee8f6); font-weight: 600; color: var(--ink); }
.bw-summary span { display: block; margin-top: 4px; font-weight: 400; font-size: .875rem; color: var(--muted); }
.bw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.bw-actions .button { min-height: 50px; }
.bw-error { margin: 0; color: #b42318; font-weight: 600; font-size: .9375rem; }
.bw-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bw-state { display: grid; gap: 14px; justify-items: start; }
.bw-state h3 { margin: 0; font-family: var(--font-display); font-size: var(--type-card, 1.9rem); line-height: 1.1; color: var(--ink); }
.bw-state h3 em { font-style: normal; color: var(--violet); }
.bw-state p { margin: 0; color: var(--ink); max-width: 46ch; }
.bw-state .bw-state-mark {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--lime, #d9ee32); color: var(--violet-dark);
}
.bw-state.is-wait .bw-state-mark { background: var(--surface-soft, #eee8f6); }
.bw-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #d7cfe1; border-top-color: var(--violet); animation: bw-spin .9s linear infinite; }
@keyframes bw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bw-spin { animation-duration: 3s; } }

.bw-notes { list-style: none; margin: clamp(18px, 3vw, 26px) 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: .9375rem; }
.bw-notes li { position: relative; padding-left: 22px; }
.bw-notes li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime, #d9ee32); box-shadow: 0 0 0 2px var(--violet); }
.bw-notes a { color: var(--violet-dark); font-weight: 600; white-space: nowrap; }
