.tour-widget {
  --tfw-blue: var(--blue, #273ed3);
  --tfw-navy: var(--navy, #111139);
  --tfw-pink: var(--pink, #ff5da9);
  --tfw-yellow: var(--yellow, #ffdf24);
  --tfw-cream: var(--cream, #fffaf0);
  --tfw-display: var(--display, 'Archivo Black', Impact, sans-serif);
  --tfw-body: var(--body, 'DM Sans', Arial, sans-serif);
  --tfw-mono: var(--mono, 'Space Mono', monospace);
  width: 100%;
  color: var(--tfw-navy);
  font-family: var(--tfw-body);
}

.tour-widget *,
.tour-widget *::before,
.tour-widget *::after { box-sizing: border-box; }

.tour-widget button,
.tour-widget a { font: inherit; }

.tour-widget button:focus-visible,
.tour-widget a:focus-visible { outline: 3px solid var(--tfw-blue); outline-offset: 4px; }

.tour-widget .tfw-show-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.tour-widget.tfw-mode-preview .tfw-show-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.tour-widget .tfw-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 3px solid var(--tfw-navy);
  box-shadow: 5px 5px 0 var(--tfw-navy);
}

.tour-widget .tfw-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 3px solid var(--tfw-navy);
  background: var(--tfw-blue);
}

.tour-widget .tfw-poster::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: '';
  opacity: .14;
  background: radial-gradient(var(--tfw-yellow) 1.4px, transparent 1.6px) 0 0 / 12px 12px;
}

.tour-widget .tfw-poster-image { display: block; width: 100%; height: 100%; object-fit: cover; }

.tour-widget .tfw-poster--empty {
  display: grid;
  place-items: center;
  background: var(--tfw-pink);
}

.tour-widget .tfw-poster--empty::before {
  position: absolute;
  width: 72%;
  height: 72%;
  content: '';
  border: 2px dashed var(--tfw-navy);
  transform: rotate(-7deg);
}

.tour-widget .tfw-poster-placeholder {
  position: relative;
  z-index: 2;
  max-width: 80%;
  text-align: center;
  font: 700 11px/1.5 var(--tfw-mono);
  letter-spacing: .09em;
}

.tour-widget .tfw-card-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.tour-widget .tfw-date-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--tfw-blue); font: 700 10px/1.4 var(--tfw-mono); letter-spacing: .04em; text-transform: uppercase; }
.tour-widget .tfw-time { color: #51516a; }
.tour-widget .tfw-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; margin-top: 13px; }
.tour-widget .tfw-title { margin: 0; font: 400 clamp(20px, 2vw, 27px)/1.02 var(--tfw-display); letter-spacing: -.055em; overflow-wrap: anywhere; text-transform: uppercase; }
.tour-widget .tfw-status { flex: none; padding: 6px 7px; background: var(--tfw-yellow); border: 1.5px solid var(--tfw-navy); font: 700 8px/1.3 var(--tfw-mono); letter-spacing: .04em; }
.tour-widget .tfw-status--sold-out { color: #fff; background: var(--tfw-navy); }
.tour-widget .tfw-location { margin: 11px 0 0; color: #4a4a60; font-size: 13px; font-weight: 700; line-height: 1.45; }
.tour-widget .tfw-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 11px; margin-top: auto; padding-top: 18px; }
.tour-widget .tfw-pricing { font: 700 9px/1.4 var(--tfw-mono); letter-spacing: .04em; }
.tour-widget .tfw-pricing--free { color: var(--tfw-blue); }
.tour-widget .tfw-ticket-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--tfw-navy);
  background: var(--tfw-yellow);
  border: 2px solid var(--tfw-navy);
  box-shadow: 3px 3px 0 var(--tfw-navy);
  cursor: pointer;
  font: 800 9px/1.25 var(--tfw-body);
  letter-spacing: .055em;
  text-align: center;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.tour-widget .tfw-ticket-link:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tfw-navy); }
.tour-widget .tfw-ticket-link--disabled { color: #59596b; background: #efedf0; box-shadow: none; cursor: not-allowed; }

.tour-widget .tfw-schedule-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 14px 18px;
  color: var(--tfw-navy);
  background: var(--tfw-yellow);
  border: 2px solid var(--tfw-navy);
  box-shadow: 4px 4px 0 var(--tfw-navy);
  font: 800 10px/1.2 var(--tfw-body);
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.tour-widget .tfw-schedule-link:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--tfw-navy); }
.tour-widget .tfw-schedule-link span { color: var(--tfw-blue); font-size: 18px; line-height: .7; }

.tour-widget .tfw-view-controls { display: flex; width: fit-content; gap: 0; margin: 0 0 28px; border: 2px solid var(--tfw-navy); box-shadow: 3px 3px 0 var(--tfw-navy); }
.tour-widget .tfw-view-button { min-height: 44px; padding: 11px 17px; color: var(--tfw-navy); background: var(--tfw-cream); border: 0; cursor: pointer; font: 700 10px/1.2 var(--tfw-mono); letter-spacing: .04em; }
.tour-widget .tfw-view-button + .tfw-view-button { border-left: 2px solid var(--tfw-navy); }
.tour-widget .tfw-view-button.is-active { background: var(--tfw-yellow); }
.tour-widget .tfw-list-container { width: 100%; }
.tour-widget .tfw-filter-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.tour-widget .tfw-filter-header h3 { margin: 0; font: 400 clamp(22px, 3vw, 34px)/1.05 var(--tfw-display); letter-spacing: -.05em; }
.tour-widget .tfw-clear-filter { padding: 9px 12px; color: var(--tfw-navy); background: transparent; border: 1.5px solid var(--tfw-navy); cursor: pointer; font: 700 9px/1.3 var(--tfw-mono); }

.tour-widget .tfw-calendar { background: #fff; border: 3px solid var(--tfw-navy); box-shadow: 6px 6px 0 var(--tfw-navy); }
.tour-widget .tfw-month-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px; background: var(--tfw-yellow); border-bottom: 3px solid var(--tfw-navy); }
.tour-widget .tfw-month-label { margin: 0; font: 400 clamp(21px, 3vw, 34px)/1 var(--tfw-display); letter-spacing: -.055em; text-align: center; text-transform: uppercase; }
.tour-widget .tfw-month-nav { display: grid; width: 42px; height: 42px; flex: none; place-items: center; color: var(--tfw-navy); background: var(--tfw-pink); border: 2px solid var(--tfw-navy); box-shadow: 2px 2px 0 var(--tfw-navy); cursor: pointer; font: 700 24px/1 var(--tfw-body); }
.tour-widget .tfw-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 18px 20px 22px; }
.tour-widget .tfw-weekday { padding: 8px 2px 12px; color: #57576a; font: 700 9px/1.2 var(--tfw-mono); text-align: center; }
.tour-widget .tfw-calendar-blank { min-height: 64px; }
.tour-widget .tfw-calendar-cell { display: grid; min-width: 0; min-height: 64px; place-items: stretch; }
.tour-widget .tfw-day { position: relative; display: grid; min-width: 0; min-height: 64px; place-items: center; margin: 3px; color: var(--tfw-navy); background: transparent; border: 1px solid transparent; cursor: pointer; font: 700 13px/1 var(--tfw-body); }
.tour-widget .tfw-day:hover { background: #f4f1ea; border-color: var(--tfw-navy); }
.tour-widget .tfw-day--has-shows { background: var(--tfw-pink); border: 1.5px solid var(--tfw-navy); box-shadow: 2px 2px 0 var(--tfw-navy); }
.tour-widget .tfw-day.is-selected { color: #fff; background: var(--tfw-blue); border-color: var(--tfw-navy); box-shadow: 2px 2px 0 var(--tfw-navy); }
.tour-widget .tfw-day-dot { position: absolute; right: 6px; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--tfw-blue); }
.tour-widget .tfw-day.is-selected .tfw-day-dot { background: var(--tfw-yellow); }
.tour-widget .tfw-calendar-results,
.tour-widget .tfw-calendar-undated { padding: 20px; background: var(--tfw-cream); border-top: 3px solid var(--tfw-navy); }
.tour-widget .tfw-results-heading { margin: 0 0 16px; font: 400 clamp(20px, 2.5vw, 28px)/1.1 var(--tfw-display); letter-spacing: -.05em; }
.tour-widget .tfw-calendar-results .tfw-show-list,
.tour-widget .tfw-calendar-undated .tfw-show-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tour-widget .tfw-empty,
.tour-widget .tfw-state {
  padding: 27px;
  background: #fff;
  border: 2px solid var(--tfw-navy);
  box-shadow: 4px 4px 0 var(--tfw-navy);
  font-size: 15px;
  line-height: 1.55;
}
.tour-widget .tfw-empty { grid-column: 1 / -1; }
.tour-widget .tfw-venue-link { display: block; width: fit-content; margin-top: 14px; color: var(--tfw-blue); font: 700 10px/1.4 var(--tfw-mono); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tour-widget .tfw-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; }
.tour-widget .tfw-state--loading { background: var(--tfw-yellow); }
.tour-widget .tfw-state--unconnected { background: var(--tfw-pink); }
.tour-widget .tfw-state--error { background: #fff; }
.tour-widget .tfw-state-message { margin: 0; font-weight: 700; }
.tour-widget .tfw-retry { min-height: 42px; padding: 10px 16px; color: #fff; background: var(--tfw-blue); border: 2px solid var(--tfw-navy); box-shadow: 3px 3px 0 var(--tfw-navy); cursor: pointer; font: 700 10px/1.2 var(--tfw-mono); letter-spacing: .04em; }
.tour-widget .tfw-retry:disabled { opacity: .55; box-shadow: none; cursor: wait; }

.tour-widget .tfw-checkout-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 900px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--tfw-navy);
  background: #fff;
  border: 3px solid var(--tfw-navy);
  box-shadow: 8px 8px 0 var(--tfw-navy);
}
.tour-widget .tfw-checkout-dialog::backdrop { background: rgb(17 17 57 / 78%); }
.tour-widget .tfw-checkout-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--tfw-yellow); border-bottom: 3px solid var(--tfw-navy); }
.tour-widget .tfw-checkout-title { margin: 0; font: 400 clamp(18px, 2.6vw, 27px)/1.05 var(--tfw-display); letter-spacing: -.05em; }
.tour-widget .tfw-checkout-close { flex: none; min-height: 40px; padding: 9px 12px; color: var(--tfw-navy); background: var(--tfw-pink); border: 2px solid var(--tfw-navy); box-shadow: 2px 2px 0 var(--tfw-navy); cursor: pointer; font: 700 9px/1.2 var(--tfw-mono); }
.tour-widget .tfw-checkout-frame { display: block; width: 100%; height: min(76vh, 760px); border: 0; background: #fff; }

@media (max-width: 850px) {
  .tour-widget.tfw-mode-preview .tfw-show-list,
  .tour-widget .tfw-show-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .tour-widget.tfw-mode-preview .tfw-show-list,
  .tour-widget .tfw-show-list,
  .tour-widget .tfw-calendar-results .tfw-show-list,
  .tour-widget .tfw-calendar-undated .tfw-show-list { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .tour-widget .tfw-card { display: grid; grid-template-columns: minmax(110px, .78fr) 1.22fr; }
  .tour-widget .tfw-poster { height: 100%; min-height: 205px; aspect-ratio: auto; border-right: 3px solid var(--tfw-navy); border-bottom: 0; }
  .tour-widget .tfw-card-content { padding: 14px; }
  .tour-widget .tfw-title { font-size: clamp(18px, 5vw, 23px); }
  .tour-widget .tfw-title-row { flex-direction: column; }
  .tour-widget .tfw-status { max-width: 100%; }
  .tour-widget .tfw-card-actions { align-items: flex-start; flex-direction: column; }
  .tour-widget .tfw-ticket-link { width: 100%; }
  .tour-widget .tfw-calendar-grid { padding: 12px 8px 16px; }
  .tour-widget .tfw-calendar-blank,
  .tour-widget .tfw-calendar-cell,
  .tour-widget .tfw-day { min-height: 48px; }
  .tour-widget .tfw-day { margin: 2px; }
  .tour-widget .tfw-weekday { font-size: 8px; }
  .tour-widget .tfw-calendar-results,
  .tour-widget .tfw-calendar-undated { padding: 16px 12px; }
  .tour-widget .tfw-month-bar { padding: 12px; }
  .tour-widget .tfw-month-nav { width: 38px; height: 38px; }
  .tour-widget .tfw-view-controls { width: 100%; }
  .tour-widget .tfw-view-button { flex: 1; padding-inline: 9px; font-size: 9px; }
  .tour-widget .tfw-state { padding: 20px; }
}

@media (max-width: 370px) {
  .tour-widget .tfw-card { grid-template-columns: minmax(95px, .7fr) 1.3fr; }
  .tour-widget .tfw-card-content { padding: 11px; }
  .tour-widget .tfw-date-line { font-size: 9px; }
  .tour-widget .tfw-weekday { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-widget .tfw-ticket-link,
  .tour-widget .tfw-schedule-link { transition: none; }
}
