:root {
  --wwk-blue: #1f3bd9;
  --wwk-ink: #0f172a;
  --wwk-muted: #566176;
  --wwk-soft: #f3f6fc;
  --wwk-line: #d7deeb;
  --wwk-radius: 16px;
}

.wwk-booking {
  color: var(--wwk-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 1120px;
  margin: 2rem auto;
}

.wwk-intro > span,
.wwk-eyebrow {
  color: var(--wwk-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wwk-intro h2,
.wwk-intro h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
  margin: 0.35rem 0 0.7rem;
}

.wwk-intro p,
.wwk-help,
.wwk-privacy {
  color: var(--wwk-muted);
}

.wwk-session-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: 1.5rem;
}

.wwk-booking-embedded .wwk-session-grid {
  margin-top: 1rem;
  grid-template-columns: 1fr;
}

.wwk-booking-embedded .wwk-compact-session { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 1rem; border-radius: 12px; background: var(--wwk-soft); min-width: 0; overflow-wrap: anywhere; }
.wwk-booking-embedded .wwk-compact-session h3 { margin: 0; font-size: 1.1rem; line-height: 1.4; }
.wwk-booking-embedded .wwk-compact-session p { margin: 0; }
.wwk-booking-embedded .wwk-compact-end { color: var(--wwk-muted); font-size: .9rem; }
.wwk-booking-embedded .wwk-compact-session dl { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.wwk-booking-embedded .wwk-compact-session dl > div { min-width: 0; }
.wwk-booking-embedded .wwk-compact-session dt { color: var(--wwk-muted); font-size: .875rem; }
.wwk-booking-embedded .wwk-compact-session dd { margin: .15rem 0 0; font-weight: 700; }
.wwk-booking-embedded .wwk-compact-session > .wwk-button { box-sizing: border-box; min-height: 48px; max-width: 100%; white-space: normal; text-align: center; }
.wwk-booking-embedded .wwk-more-dates-link { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 48px; max-width: 100%; padding: .5rem 0; color: var(--wwk-blue); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .wwk-booking-embedded .wwk-compact-session > .wwk-button { justify-self: start; }
}
.wwk-more-dates { margin: 1rem 0; }
.wwk-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.wwk-filter-hint { flex-basis: 100%; margin: 0; color: var(--wwk-muted); font-size: .85rem; }
.wwk-filters [hidden] { display: none !important; }

.wwk-session-card,
.wwk-summary,
.wwk-form fieldset {
  background: #fff;
  border: 1px solid var(--wwk-line);
  border-radius: var(--wwk-radius);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.wwk-session-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: space-between;
  padding: 1.15rem;
}

.wwk-course-image {
  border-radius: 12px;
  display: block;
  height: clamp(8.5rem, 16vw, 11rem);
  object-fit: cover;
  width: 100%;
}

.wwk-course-image-fallback {
  align-items: center;
  background: linear-gradient(135deg, var(--wwk-blue), #0f172a);
  color: #fff;
  display: flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
}

.wwk-filters {
  align-items: end;
  background: var(--wwk-soft);
  border-radius: var(--wwk-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
  padding: 1rem;
}

.wwk-filters label {
  display: grid;
  font-weight: 700;
  gap: 0.35rem;
}

.wwk-filters select {
  background: #fff;
  border: 1px solid #64748b;
  border-radius: 10px;
  font: inherit;
  min-height: 46px;
  padding: 0.55rem 2.2rem 0.55rem 0.7rem;
}

.wwk-button-secondary {
  min-height: 46px;
}

.wwk-session-card h3,
.wwk-attendee h3 {
  margin: 0.55rem 0 0;
}

.wwk-pill {
  background: var(--wwk-soft);
  border-radius: 999px;
  color: var(--wwk-blue);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.3rem 0.65rem;
}

.wwk-session-card dl {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.wwk-session-card dl > div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.wwk-session-card dt {
  color: var(--wwk-muted);
}

.wwk-session-card dd {
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.wwk-button {
  align-items: center;
  background: var(--wwk-blue);
  border: 2px solid var(--wwk-blue);
  border-radius: 999px;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 760;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  text-decoration: none !important;
}

.wwk-button:hover,
.wwk-button:focus-visible {
  background: #142bb0;
  border-color: #142bb0;
  outline: 3px solid #1f3bd9;
  outline-offset: 2px;
}

.wwk-back {
  color: var(--wwk-blue);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.wwk-summary {
  display: grid;
  gap: 0.3rem;
  margin: 1.3rem 0;
  padding: 1rem 1.2rem;
}

.wwk-summary span {
  color: var(--wwk-muted);
}

.wwk-form {
  display: grid;
  gap: 1rem;
}

.wwk-form fieldset {
  margin: 0;
  padding: 1.2rem;
}

.wwk-form legend {
  color: var(--wwk-ink);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0 0.3rem;
}

.wwk-field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wwk-field-grid label {
  color: var(--wwk-ink);
  display: grid;
  font-weight: 700;
  gap: 0.4rem;
}

.wwk-field-grid label small {
  color: var(--wwk-muted);
  font-weight: 400;
}

.wwk-field-grid input,
.wwk-field-grid select {
  border: 1px solid #64748b;
  border-radius: 10px;
  box-sizing: border-box;
  font: inherit;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.wwk-field-grid input:focus,
.wwk-field-grid select:focus {
  border-color: var(--wwk-blue);
  box-shadow: 0 0 0 3px rgba(31, 59, 217, 0.18);
  outline: none;
}

.wwk-wide {
  grid-column: 1 / -1;
}

.wwk-inline-check {
  align-items: center;
  display: flex !important;
  gap: 0.6rem !important;
}

.wwk-inline-check input {
  min-height: 24px;
  width: 24px;
}

.wwk-booking :focus-visible {
  outline: 3px solid #1f3bd9;
  outline-offset: 3px;
  scroll-margin: 6rem;
}

.wwk-attendee + .wwk-attendee {
  border-top: 1px solid var(--wwk-line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.wwk-payment-options {
  display: grid;
  gap: 0.65rem;
}

.wwk-payment-options label {
  align-items: flex-start;
  border: 1px solid var(--wwk-line);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem;
}

.wwk-payment-options label:has(input:checked) {
  background: var(--wwk-soft);
  border-color: var(--wwk-blue);
}

.wwk-payment-options span {
  display: grid;
  gap: 0.15rem;
}

.wwk-payment-options small {
  color: var(--wwk-muted);
}

.wwk-sold-out {
  color: #8f1d25;
  font-weight: 800;
}

.wwk-error-summary {
  background: #fff1f2;
  border-left: 5px solid #8f1d25;
  border-radius: 10px;
  margin: 1rem 0;
  padding: 1rem;
}

.wwk-error-summary p {
  margin-bottom: 0;
}

.wwk-error-link {
  display: inline-block;
  font-weight: 700;
  margin-top: 0.75rem;
}

.woocommerce nav.wwk-progress, nav.wwk-progress { height: auto !important; min-height: 0; max-height: none; margin: 1.25rem 0 !important; padding: 0; float: none; clear: both; width: 100%; box-sizing: border-box; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; color: #566176; font-family: system-ui, sans-serif; }
.wwk-progress ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; list-style: none; padding: 0; margin: 0; }
.wwk-progress li { display: flex; align-items: flex-start; min-width: 0; margin: 0; gap: .4rem; border-bottom: 3px solid #D7DEEB; padding: .65rem .2rem; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; box-sizing: border-box; }
.wwk-progress li span:last-child { min-width: 0; }
.wwk-progress li[aria-current="step"] { color: #1F3BD9; border-color: #1F3BD9; font-weight: 700; }
.wwk-progress-number { flex: 0 0 auto; }
.wwk-edit-booking { margin: 0 !important; padding: 0 !important; }
.wwk-checkout-back { clear: both; margin-top: .25rem; text-align: center; }
.woocommerce .wwk-checkout-back .wwk-back-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; height: auto; max-width: 100%; padding: .5rem .75rem; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #1F3BD9; font: inherit; font-size: .875rem; font-weight: 400; line-height: 1.4; text-decoration: underline; text-underline-offset: .2em; white-space: normal; cursor: pointer; }
.wwk-back-link:focus-visible { outline: 3px solid #1F3BD9; outline-offset: 2px; }
@media (min-width: 640px) {
  .wwk-progress ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wwk-booking { margin: 1rem auto; }
  .wwk-course-image { height: 8.5rem; }
  .wwk-session-card { padding: 1rem; }
  .wwk-field-grid { grid-template-columns: 1fr; }
  .wwk-wide { grid-column: auto; }
  .wwk-filters { align-items: stretch; display: grid; }
  .wwk-session-card dl > div { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
  .wwk-session-card dd { text-align: left; }
}

/* Only the four integrated course pages, and only while their new embed exists. */
@media (max-width: 640px) {
  body:is(.page-id-1939,.page-id-3022,.page-id-5206,.page-id-8425):has(.wwk-booking-embedded) { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body:is(.page-id-1939,.page-id-3022,.page-id-5206,.page-id-8425):has(.wwk-booking-embedded) :is(.kn-sticky,.bls-sticky) { display: none !important; }
  body:is(.page-id-1939,.page-id-3022,.page-id-5206,.page-id-8425):has(.wwk-booking-embedded) #whatsapp-float { display: flex !important; align-items: center; justify-content: center; box-sizing: border-box; width: 56px !important; height: 56px !important; min-width: 56px; min-height: 56px; padding: 0 !important; gap: 0; border-radius: 50%; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  body:is(.page-id-1939,.page-id-3022,.page-id-5206,.page-id-8425):has(.wwk-booking-embedded) #whatsapp-float img { width: 28px !important; height: 28px !important; flex: 0 0 28px; }
  body:is(.page-id-1939,.page-id-3022,.page-id-5206,.page-id-8425):has(.wwk-booking-embedded) #whatsapp-float span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
