.teb-page { max-width: 820px; margin: 32px auto; padding: clamp(20px,4vw,40px); }
.teb-contact, .teb-contact label, .teb-settings label { display: grid; gap: 8px; }
.teb-contact { gap: 18px; }
.teb-contact input, .teb-contact textarea, .teb-contact select, .teb-settings input, .teb-settings select { width: 100%; min-width: 0; box-sizing: border-box; }
.teb-ticket-prices { margin: 0 0 12px; }
.teb-ticket-prices summary { cursor: pointer; }
.teb-ticket-prices ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.teb-ticket-prices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.teb-contact fieldset { margin: 16px 0; border: 1px solid #8886; border-radius: var(--ui-card-radius, var(--radius, 8px)); padding: 16px; display: grid; gap: 12px; }
.teb-contact fieldset[hidden], .teb-promo[hidden] { display: none; }
.teb-settings { border: 1px solid #8886; border-radius: var(--ui-card-radius, var(--radius, 8px)); padding: 12px; margin: 12px 0; }
.teb-settings summary { cursor: pointer; margin-bottom: 12px; }
.teb-promo { border-top: 1px solid #8886; margin-top: 16px; padding-top: 12px; }
.teb-page button, .teb-page .btn-primary { margin: 6px 0; }
.teb-page [data-teb-booking] > .teb-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.teb-page [data-teb-attendees] { grid-column: 1 / -1; }

.teb-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(600px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-left: 1px solid var(--ui-field-border, #cfd8df);
  border-radius: 0;
  background: var(--surface, #fff);
  color: var(--text, #202020);
  box-shadow: -16px 0 48px rgba(0, 0, 0, .24);
}
.teb-drawer:not([open]) { display: none; }
.teb-drawer[open] { animation: teb-slide-in .28s ease-out both; }
.teb-drawer.is-closing { animation: teb-slide-out .22s ease-in both; }
.teb-drawer::backdrop { background: rgba(0, 0, 0, .58); }
.teb-drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  border-bottom: 1px solid var(--ui-field-border, #cfd8df);
  background: var(--surface, #fff);
}
.teb-drawer-head h2 { margin: 0; font-family: var(--font-headings); color: var(--heading, var(--text)); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.teb-drawer-eyebrow { margin: 0 0 8px; color: var(--muted, var(--text)); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.teb-drawer-close { flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--ui-field-border, #cfd8df); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.teb-drawer-content { padding: 24px clamp(20px, 4vw, 32px) 40px; }
.teb-drawer-meta { margin: 0 0 8px; color: var(--muted, var(--text)); }
.teb-drawer-price { margin: 0 0 24px; }
.teb-drawer-form, .teb-drawer [data-teb-booking] { display: grid; gap: 16px; }
.teb-drawer [data-teb-booking] > .btn-primary { width: 100%; margin: 0; }
.teb-drawer-total { margin: 4px 0 0; font-weight: 700; }
.teb-drawer-error { margin: 0; padding: 12px 14px; border-radius: var(--ui-card-radius, var(--radius, 8px)); background: #b4231820; color: var(--text, #202020); }
.teb-drawer-error[hidden] { display: none; }
.teb-drawer .helper-text { margin: 0; }
.teb-drawer [data-teb-booking] button:disabled { opacity: .65; cursor: wait; }
@keyframes teb-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes teb-slide-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
@media (max-width: 640px) {
  .teb-page { margin: 16px auto; }
  .teb-page [data-teb-booking] > .teb-contact { grid-template-columns: minmax(0, 1fr); }
  .teb-drawer { width: 100vw; border-left: 0; }
  .teb-drawer-head { align-items: center; padding: max(16px, env(safe-area-inset-top)) 20px 16px; }
  .teb-drawer-head h2 { font-size: clamp(20px, 6vw, 26px); }
  .teb-drawer-content { padding: 20px 20px calc(32px + env(safe-area-inset-bottom)); }
  .teb-drawer .teb-contact { min-width: 0; }
  .teb-drawer .teb-contact fieldset { min-width: 0; padding: 12px; }
  .teb-drawer .teb-contact input,
  .teb-drawer .teb-contact textarea { width: 100%; min-width: 0; box-sizing: border-box; }
  .teb-drawer [data-teb-booking] > .btn-primary { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .teb-drawer[open], .teb-drawer.is-closing { animation: none; }
}
