/* Udi Workshops – front */
.uw-app {
  --uw-ink: #22201c;
  --uw-muted: #6f6a62;
  --uw-line: #e6e1d9;
  --uw-soft: #f6f5f3;
  --uw-crust: #9a5b2a;
  --uw-open: #2e7d4f;
  --uw-full: #b04a3a;
  --uw-radius: 14px;
  color: var(--uw-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  max-width: 860px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--uw-line);
  border-radius: 18px;
  padding: 18px 20px 8px;
  container-type: inline-size;
  container-name: uw;
}
.uw-app *, .uw-app *::before, .uw-app *::after { box-sizing: border-box; }
.uw-app button { font: inherit; cursor: pointer; padding: 0; margin: 0; min-width: 0; min-height: 0; line-height: 1.3; text-transform: none; letter-spacing: normal; box-shadow: none; border-radius: 0; border: 0; background: none; color: inherit; }
.uw-app button:hover, .uw-app button:focus { box-shadow: none; }
.uw-app :focus-visible { outline: 2px solid var(--uw-crust); outline-offset: 2px; }
.uw-loading, .uw-empty, .uw-hint { color: var(--uw-muted); text-align: center; padding: 24px 8px; margin: 0; }

/* view switch */
.uw-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--uw-soft); border-radius: 999px; margin-bottom: 18px; }
.uw-app .uw-tabs button { border: 0; background: transparent; color: var(--uw-muted); padding: 8px 18px; border-radius: 999px; font-weight: 500; }
.uw-app .uw-tabs button[aria-selected="true"] { background: #fff; color: var(--uw-ink); box-shadow: 0 1px 2px rgba(34, 32, 28, .12); }

/* list */
.uw-list { display: flex; flex-direction: column; }
.uw-list .uw-row:last-child { border-bottom: 0; }
.uw-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  grid-template-areas: "date info price action" "panel panel panel panel";
  align-items: center;
  column-gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--uw-line);
}
.uw-row.is-expanded { background: var(--uw-soft); padding-inline: 14px; border-radius: var(--uw-radius); border-bottom-color: transparent; margin: 6px 0; }
.uw-date { grid-area: date; text-align: center; line-height: 1; border-inline-start: 3px solid var(--uw-type, var(--uw-crust)); padding-inline-start: 10px; }
.uw-date b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.uw-date span { display: block; font-size: 14px; color: var(--uw-muted); margin-top: 4px; }
.uw-info { grid-area: info; min-width: 0; }
.uw-type { font-size: 14px; color: var(--uw-muted); }
.uw-when { font-weight: 600; font-size: 17px; }
.uw-avail { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 14px; color: var(--uw-muted); }
.uw-seats { display: inline-flex; gap: 3px; direction: rtl; }
.uw-seats i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--uw-open); }
.uw-seats i.is-taken { background: var(--uw-ink); border-color: var(--uw-ink); }
.is-full .uw-seats i { border-color: var(--uw-ink); }
.is-open .uw-seat-text { color: var(--uw-open); font-weight: 500; }
.is-full .uw-seat-text { color: var(--uw-full); font-weight: 500; }
.uw-price { grid-area: price; font-weight: 700; font-size: 18px; text-align: center; white-space: nowrap; }
.uw-price small { display: block; font-weight: 400; font-size: 13px; color: var(--uw-muted); }
.uw-app .uw-open { grid-area: action; border: 1.5px solid var(--uw-ink); background: var(--uw-ink); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 600; white-space: nowrap; }
.uw-app .is-full .uw-open { background: #fff; color: var(--uw-ink); }
.uw-app .uw-open[aria-expanded="true"] { background: #fff; color: var(--uw-ink); }
.uw-app .uw-open.is-disabled { border: 0; background: none; color: var(--uw-muted); padding: 10px 0; }
.is-closed { opacity: .65; }

/* panel */
.uw-panel { grid-area: panel; padding-top: 16px; }
.uw-book { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.uw-field { display: flex; align-items: center; gap: 12px; }
.uw-label { font-weight: 500; }
.uw-stepper { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--uw-line); border-radius: 999px; }
.uw-app .uw-stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; color: var(--uw-ink); border-radius: 50%; }
.uw-app .uw-stepper button:disabled { color: #c9c3ba; cursor: default; }
.uw-count { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }
.uw-total { font-size: 16px; color: var(--uw-muted); }
.uw-total b { color: var(--uw-ink); font-size: 20px; }
.uw-app .uw-go { margin-inline-start: auto; border: 0; background: var(--uw-crust); color: #fff; border-radius: 999px; padding: 12px 26px; font-weight: 700; font-size: 16px; }
.uw-app .uw-go:disabled { opacity: .6; cursor: default; }
.uw-note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--uw-muted); }
.uw-error { flex-basis: 100%; margin: 4px 0 0; color: var(--uw-full); font-weight: 500; }

.uw-wait .uw-lead { margin: 0 0 14px; }
.uw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 16px; }
.uw-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.uw-grid input, .uw-grid select { font: inherit; padding: 10px 12px; border: 1px solid var(--uw-line); border-radius: 10px; background: #fff; color: var(--uw-ink); width: 100%; }
.uw-hp { position: absolute !important; inset-inline-start: -9999px; }
.uw-done { background: #fff; border-radius: 10px; padding: 14px 16px; border-inline-start: 3px solid var(--uw-open); }

/* calendar */
.uw-cal { margin-bottom: 14px; }
.uw-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.uw-cal-head h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--uw-ink); }
.uw-app .uw-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--uw-line); background: #fff; font-size: 22px; line-height: 1; color: var(--uw-ink); }
.uw-app .uw-nav:disabled { opacity: .35; cursor: default; }
.uw-week, .uw-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.uw-week span { font-size: 13px; color: var(--uw-muted); padding-bottom: 6px; }
.uw-app .uw-cell { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; color: #b3ada4; font-size: 15px; border: 0; background: none; position: relative; }
.uw-app .uw-cell.is-today { color: var(--uw-ink); text-decoration: underline; text-underline-offset: 4px; }
.uw-app .uw-cell.has-session { color: var(--uw-ink); background: var(--uw-soft); }
.uw-cell.has-session b { font-weight: 700; }
.uw-app .uw-cell.is-selected { background: var(--uw-ink); color: #fff; }
.uw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.uw-legend { display: flex; gap: 18px; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--uw-muted); }
.uw-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; background: var(--uw-open); }
.uw-legend .is-full::before { background: var(--uw-full); }

@container uw (max-width: 600px) {
  .uw-app { padding: 12px 12px 4px; }
  .uw-row { grid-template-columns: 56px 1fr auto; grid-template-areas: "date info price" "date action action" "panel panel panel"; row-gap: 10px; column-gap: 14px; }
  .uw-date b { font-size: 28px; }
  .uw-app .uw-open { justify-self: stretch; text-align: center; }
  .uw-grid { grid-template-columns: 1fr; }
  .uw-app .uw-go { width: 100%; margin-inline-start: 0; }
  .uw-cal { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .uw-app * { scroll-behavior: auto !important; } }

.uw-app .uw-open:hover { background: #fff; color: var(--uw-ink); }
.uw-app .is-full .uw-open:hover, .uw-app .uw-open[aria-expanded="true"]:hover { background: var(--uw-ink); color: #fff; }
.uw-app .uw-go:hover:not(:disabled) { background: #85491d; color: #fff; }
.uw-app .uw-cell.has-session:hover { background: #ece8e2; color: var(--uw-ink); }
.uw-app .uw-cell.is-selected:hover { background: var(--uw-ink); color: #fff; }
.uw-app .uw-tabs button:hover { color: var(--uw-ink); background: transparent; }
.uw-app .uw-tabs button[aria-selected="true"]:hover { background: #fff; }
.uw-app .uw-stepper button:hover:not(:disabled) { background: var(--uw-soft); color: var(--uw-ink); }
.uw-app .uw-nav:hover:not(:disabled) { background: var(--uw-soft); color: var(--uw-ink); }

/* calendar day labels */
.uw-app .uw-cell { gap: 3px; padding: 4px 2px; }
.uw-tag { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.2; padding: 2px 6px; border-radius: 6px; }
.uw-tag.is-open { background: #e3f1e8; color: var(--uw-open); }
.uw-tag.is-full { background: #f6e4e1; color: var(--uw-full); }
.uw-tag.is-closed { background: #ebe8e3; color: var(--uw-muted); }
.uw-app .uw-cell.is-selected .uw-tag { background: rgba(255, 255, 255, .18); color: #fff; }
.uw-legend span::before { border-radius: 3px; width: 10px; height: 10px; background: #e3f1e8; border: 1px solid var(--uw-open); }
.uw-legend .is-full::before { background: #f6e4e1; border-color: var(--uw-full); }
@container uw (max-width: 600px) {
  .uw-tag { font-size: 10.5px; padding: 1px 3px; }
  .uw-app .uw-cell b { font-size: 14px; }
}

.uw-app .is-open .uw-seat-text.is-last { color: var(--uw-crust); font-weight: 700; }
