:root {
  --tkc-accent: #6d28d9;
  --tkc-accent-hover: #5b21b6;
  --tkc-accent-soft: #ede9fe;
  --tkc-accent-text: #4c1d95;
  --tkc-warm: #f97316;
  --tkc-warm-soft: #ffedd5;
  --tkc-warm-text: #9a3412;
}

.tkc-loading,
.tkc-error,
.tkc-empty {
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f4f4f6;
  color: #1f2937;
  font-size: 0.95rem;
}

.tkc-error {
  background: #fff1f2;
  color: #9f1239;
}

.tkc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.42rem 0 0;
}

.tkc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 700;
}

.tkc-badge--price {
  background: var(--tkc-warm-soft);
  color: var(--tkc-warm-text);
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.tkc-badge--tinker_level {
  background: #dbeafe;
  color: #1d4ed8;
}

.tkc-badge--visibility {
  background: #fef3c7;
  color: #92400e;
}

.tkc-badge--age {
  background: #ecfeff;
  color: #155e75;
}

.tkc-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.tkc-card--featured {
  min-height: 100%;
}

.tkc-card__image img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.tkc-card__body {
  padding: 1rem;
}

.tkc-card__datetime,
.tkc-list-item__when {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.tkc-card__title,
.tkc-list-item__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #111827;
}

.tkc-card__session,
.tkc-list-item__session,
.tkc-event-modal__session,
.tkc-day-list__session {
  margin-top: 0.2rem;
  color: #4b5563;
  font-size: 0.82rem;
}

.tkc-card__location,
.tkc-list-item__location,
.tkc-event-modal__location {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0.35rem;
}

.tkc-card__excerpt,
.tkc-list-item__excerpt,
.tkc-event-modal__excerpt,
.tkc-card__teaser,
.tkc-list-item__teaser,
.tkc-modal__teaser {
  margin: 0.55rem 0 0;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.45;
}

.tkc-card__link,
.tkc-btn,
.tkc-inline-button,
.tkc-inline-link,
.tkc-btn--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--tkc-accent);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(109, 40, 217, 0.12);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.16);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tkc-inline-link,
.tkc-btn--small {
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
}

.tkc-card__link:hover,
.tkc-card__link:focus,
.tkc-btn:hover,
.tkc-btn:focus,
.tkc-inline-button:hover,
.tkc-inline-button:focus,
.tkc-inline-link:hover,
.tkc-inline-link:focus,
.tkc-btn--small:hover,
.tkc-btn--small:focus {
  background: var(--tkc-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(109, 40, 217, 0.22);
}

.tkc-card__link.is-muted,
.tkc-btn.is-muted,
.tkc-btn--small.is-muted {
  background: #e5e7eb;
  color: #374151;
  cursor: default;
}

.tkc-upcoming__list {
  display: grid;
  gap: 1rem;
}

.tkc-featured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tkc-list-item {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
}

.tkc-list-item__main {
  min-width: 0;
}

.tkc-modal-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(17, 24, 39, 0.55);
  padding: clamp(1rem, 4vh, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tkc-modal-root.is-open {
  display: flex;
}

body.tkc-modal-open {
  overflow: hidden;
}

.tkc-modal {
  position: relative;
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.tkc-modal--large {
  max-width: 900px;
}

.tkc-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.tkc-modal__header,
.tkc-modal__body {
  padding: 1.2rem 1.2rem 1rem;
}

.tkc-modal__header {
  border-bottom: 1px solid #e5e7eb;
}

.tkc-modal__eyebrow {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.tkc-modal__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #111827;
}

.tkc-modal__time {
  margin-top: 0.35rem;
  color: #374151;
  font-size: 0.95rem;
}

.tkc-modal__image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 0.85rem;
  display: block;
}

.tkc-modal__section {
  margin-top: 1rem;
}

.tkc-modal__section h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #111827;
}

.tkc-modal__actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  align-items: center;
}

.tkc-day-list {
  display: grid;
  gap: 0.75rem;
}

.tkc-day-list__item {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 0.9rem;
  cursor: pointer;
}

.tkc-day-list__time {
  color: #111827;
  font-weight: 700;
  font-size: 0.9rem;
}

.tkc-day-list__title {
  font-weight: 700;
  color: #111827;
}

@media (max-width: 800px) {
  .tkc-list-item,
  .tkc-day-list__item {
    grid-template-columns: 1fr;
  }

  .tkc-modal-root {
    padding: 1rem;
  }

  .tkc-modal__actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .tkc-featured__grid {
    grid-template-columns: 1fr;
  }

  .tkc-card__image img {
    height: 160px;
  }
}


.tkc-registration__meta{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 1rem;}
.tkc-registration__pill{display:inline-flex;align-items:center;padding:.25rem .6rem;border-radius:999px;background:#f3f4f6;color:#374151;font-size:.8rem;}
.tkc-registration__message{margin:.5rem 0 1rem;color:#374151;}
.tkc-registration__embedded{margin:1rem 0;}
.tkc-btn--secondary{background:#fff;color:var(--tkc-accent-text);border:1px solid #c4b5fd;box-shadow:none;}
.tkc-btn--secondary:hover,.tkc-btn--secondary:focus{background:var(--tkc-accent-soft);color:var(--tkc-accent-text);box-shadow:none;}

.tkc-event-registration{margin:1rem 0;padding:1rem;border:1px solid #e5e7eb;border-radius:1rem;background:#fff;}
.tkc-event-registration__meta{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 1rem;}
.tkc-event-registration__pill{display:inline-flex;align-items:center;padding:.25rem .6rem;border-radius:999px;background:#f3f4f6;color:#374151;font-size:.8rem;}
.tkc-event-registration__message{margin:.5rem 0 1rem;color:#374151;}
.tkc-event-registration__embedded{margin:1rem 0;}
.tkc-event-registration__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem;}

.tkc-event-detail-block{display:grid;gap:1rem;}
.tkc-event-summary{display:grid;gap:.75rem;padding:1rem;border:1px solid #e5e7eb;border-radius:1rem;background:#fff;}
.tkc-event-summary__datetime{font-size:.95rem;font-weight:700;color:#111827;}
.tkc-event-summary__session{font-size:.9rem;color:#4b5563;}
.tkc-event-summary__pills{display:flex;flex-wrap:wrap;gap:.5rem;}
.tkc-detail-pill{display:inline-flex;align-items:center;padding:.3rem .7rem;border-radius:999px;background:#eef2ff;color:#312e81;font-size:.8rem;line-height:1.2;font-weight:600;}
.tkc-detail-pill--price{background:var(--tkc-warm-soft);color:var(--tkc-warm-text);border:1px solid rgba(249,115,22,.22);}
.tkc-detail-pill--tinker_level{background:#e0f2fe;color:#075985;}
.tkc-detail-pill--age{background:#ecfccb;color:#3f6212;}
.tkc-detail-pill--visibility{background:#fef3c7;color:#92400e;}
.tkc-event-summary__location{font-size:.95rem;color:#374151;}
.tkc-event-details{display:grid;gap:1rem;}
.tkc-event-details__row{padding:1rem;border:1px solid #e5e7eb;border-radius:1rem;background:#fff;}
.tkc-event-details__label{font-size:.85rem;font-weight:700;color:#6b7280;margin-bottom:.35rem;text-transform:uppercase;letter-spacing:.02em;}
.tkc-event-details__value p:last-child{margin-bottom:0;}

/* 0.5.13 content-model fix: standard excerpt/thumbnail in lists, real post content in modal */
.tkc-list-item {
  grid-template-columns: 96px minmax(105px, 150px) 1fr;
  align-items: start;
}

.tkc-list-item__image {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #f3f4f6;
}

.tkc-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tkc-list-item__image--empty {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.tkc-list-item__date {
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}

.tkc-list-item__time {
  margin-top: 0.2rem;
  color: #6b7280;
  line-height: 1.3;
}

.tkc-modal--large {
  max-width: 980px;
}

.tkc-modal__content {
  color: #111827;
  font-size: 1rem;
  line-height: 1.6;
}



.tkc-modal__content p,
.tkc-modal__content ul,
.tkc-modal__content ol,
.tkc-modal__content h2,
.tkc-modal__content h3,
.tkc-modal__content h4 {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.tkc-modal__content ul,
.tkc-modal__content ol {
  display: block;
  padding-inline-start: 1.5rem !important;
}

.tkc-modal__content ul { list-style: disc outside !important; }
.tkc-modal__content ol { list-style: decimal outside !important; }
.tkc-modal__content li {
  display: list-item !important;
  margin: 0.3rem 0;
}

.tkc-modal__content > *:first-child {
  margin-top: 0;
}

.tkc-modal__content > *:last-child {
  margin-bottom: 0;
}

.tkc-modal__content .wp-block-columns {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.tkc-modal__content .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

.tkc-modal__content .wp-block-image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 800px) {
  .tkc-list-item {
    grid-template-columns: 72px 1fr;
  }

  .tkc-list-item__image {
    width: 72px;
  }

  .tkc-list-item__when {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .tkc-modal__content .wp-block-columns {
    display: block;
  }
}


/* 0.5.14 list/modal polish: two-column latest items and price only in main pills */
.tkc-list-item {
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 1rem;
  align-items: start;
}

.tkc-list-item__image {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.tkc-list-item__main {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tkc-list-item__date {
  font-size: 0.88rem;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1.25;
}

.tkc-list-item__title {
  font-size: 1.08rem;
}

.tkc-list-item__teaser {
  margin-top: 0.15rem;
  font-size: 0.93rem;
  line-height: 1.4;
  color: #374151;
}

.tkc-list-item__time {
  margin-top: 0.1rem;
  font-size: 0.87rem;
  font-weight: 700;
  color: #111827;
}

.tkc-list-item .tkc-badges {
  margin-top: 0.25rem;
}

@media (max-width: 800px) {
  .tkc-list-item {
    grid-template-columns: 84px 1fr;
    gap: 0.8rem;
  }

  .tkc-list-item__image {
    width: 84px;
    aspect-ratio: 1 / 1;
  }
}


/* 0.5.15 CTA + palette polish */
.tkc-list-item__actions {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tkc-list-item__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: var(--tkc-accent);
  color: #ffffff;
  border: 1px solid rgba(109, 40, 217, 0.14);
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(109, 40, 217, 0.16);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tkc-list-item__cta:hover,
.tkc-list-item__cta:focus {
  background: var(--tkc-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.22);
}

.tkc-card__actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tkc-registration .tkc-btn,
.tkc-modal__actions .tkc-btn,
.tkc-event-registration__actions .tkc-btn {
  background: var(--tkc-accent);
}

.tkc-registration .tkc-btn:hover,
.tkc-registration .tkc-btn:focus,
.tkc-modal__actions .tkc-btn:hover,
.tkc-modal__actions .tkc-btn:focus,
.tkc-event-registration__actions .tkc-btn:hover,
.tkc-event-registration__actions .tkc-btn:focus {
  background: var(--tkc-accent-hover);
}

/* 0.5.16 visual harmony: calmer shared palette + list CTA column */
:root {
  --tkc-accent: #6b46c1;
  --tkc-accent-hover: #553c9a;
  --tkc-accent-soft: #f3efff;
  --tkc-accent-text: #44337a;
  --tkc-warm: #ea8a22;
  --tkc-warm-soft: #fff4e6;
  --tkc-warm-text: #8a4b10;
  --tkc-line: #e6e8ef;
  --tkc-muted-bg: #f8fafc;
}

.tkc-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-weight: 750;
}

.tkc-badge--price,
.tkc-detail-pill--price {
  background: var(--tkc-warm-soft);
  color: var(--tkc-warm-text);
  border-color: rgba(234, 138, 34, 0.24);
}

.tkc-badge--tinker_level,
.tkc-detail-pill--tinker_level {
  background: #eef2ff;
  color: #4338ca;
  border-color: #d8ddff;
}

.tkc-badge--age,
.tkc-detail-pill--age {
  background: #ecfeff;
  color: #155e75;
  border-color: #c8f2f6;
}

.tkc-badge--visibility,
.tkc-detail-pill--visibility {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.tkc-list-item {
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  border-color: var(--tkc-line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tkc-list-item.has-cta {
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
}

.tkc-list-item:hover,
.tkc-list-item:focus-within {
  border-color: #d8ddff;
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.08);
}

.tkc-list-item__main {
  min-width: 0;
}

.tkc-list-item__cta-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 108px;
  align-self: stretch;
}

.tkc-list-item__cta-cell .tkc-list-item__actions {
  margin-top: 0;
}

.tkc-list-item__cta {
  white-space: nowrap;
  background: var(--tkc-accent);
  border-color: rgba(107, 70, 193, 0.16);
  box-shadow: 0 6px 14px rgba(107, 70, 193, 0.14);
}

.tkc-list-item__cta:hover,
.tkc-list-item__cta:focus {
  background: var(--tkc-accent-hover);
  box-shadow: 0 8px 18px rgba(107, 70, 193, 0.2);
}

.tkc-card__link,
.tkc-btn,
.tkc-inline-button,
.tkc-inline-link,
.tkc-btn--small {
  background: var(--tkc-accent);
  border-color: rgba(107, 70, 193, 0.14);
  box-shadow: 0 7px 16px rgba(107, 70, 193, 0.14);
}

.tkc-card__link:hover,
.tkc-card__link:focus,
.tkc-btn:hover,
.tkc-btn:focus,
.tkc-inline-button:hover,
.tkc-inline-button:focus,
.tkc-inline-link:hover,
.tkc-inline-link:focus,
.tkc-btn--small:hover,
.tkc-btn--small:focus {
  background: var(--tkc-accent-hover);
  box-shadow: 0 9px 20px rgba(107, 70, 193, 0.2);
}

@media (max-width: 900px) {
  .tkc-list-item.has-cta {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .tkc-list-item__cta-cell {
    grid-column: 2;
    justify-content: flex-start;
    min-width: 0;
    margin-top: 0.25rem;
  }
}

@media (max-width: 640px) {
  .tkc-list-item,
  .tkc-list-item.has-cta {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .tkc-list-item__image {
    width: 72px;
    aspect-ratio: 1 / 1;
  }
}

/* 0.5.17 card/list collection view + modal hero layout */
.tkc-view-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
}

.tkc-view-toggle__button {
  border: 1px solid var(--tkc-line, #e6e8ef);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 800;
  cursor: pointer;
}

.tkc-view-toggle__button.is-active {
  background: var(--tkc-accent-soft, #f3efff);
  border-color: #d8ccfb;
  color: var(--tkc-accent-text, #44337a);
}

.tkc-upcoming__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tkc-collection-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--tkc-line, #e6e8ef);
  border-radius: 1.1rem;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tkc-collection-card:hover,
.tkc-collection-card:focus-within {
  border-color: #d8ddff;
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.09);
  transform: translateY(-1px);
}

.tkc-collection-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  overflow: hidden;
}

.tkc-collection-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tkc-collection-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  padding: 1rem;
  min-width: 0;
}

.tkc-collection-card__date {
  font-size: 0.86rem;
  font-weight: 850;
  color: #4f46e5;
  line-height: 1.25;
}

.tkc-collection-card__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.28;
  color: #111827;
}

.tkc-collection-card__session {
  color: #475569;
  font-size: 0.86rem;
}

.tkc-collection-card__teaser {
  color: #374151;
  font-size: 0.94rem;
  line-height: 1.42;
  margin-top: 0.08rem;
}

.tkc-collection-card__time {
  color: #111827;
  font-size: 0.88rem;
  font-weight: 750;
}

.tkc-collection-card__actions {
  margin-top: 0.42rem;
}

.tkc-list-item__cta,
.tkc-collection-card__actions .tkc-list-item__cta,
.tkc-card__actions .tkc-btn--small {
  background: var(--tkc-accent, #6b46c1);
  color: #fff;
}

.tkc-list-item__cta:hover,
.tkc-list-item__cta:focus,
.tkc-collection-card__actions .tkc-list-item__cta:hover,
.tkc-collection-card__actions .tkc-list-item__cta:focus,
.tkc-card__actions .tkc-btn--small:hover,
.tkc-card__actions .tkc-btn--small:focus {
  background: var(--tkc-accent-hover, #553c9a);
  color: #fff;
}

.tkc-modal__header--hero {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1rem;
}

.tkc-modal__header--hero .tkc-modal__title {
  max-width: calc(100% - 3rem);
}

.tkc-modal__hero {
  border-radius: 1rem;
  overflow: hidden;
  background: #f3f4f6;
}

.tkc-modal__hero img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.tkc-modal__event-info {
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--tkc-line, #e6e8ef);
  border-radius: 1rem;
  background: #fbfaff;
}

.tkc-modal__event-info .tkc-badges {
  margin-top: 0.55rem;
}

@media (max-width: 700px) {
  .tkc-upcoming__cards {
    grid-template-columns: 1fr;
  }

  .tkc-view-toggle {
    justify-content: flex-start;
  }

  .tkc-modal__header--hero .tkc-modal__title {
    max-width: 100%;
  }
}


/* 0.5.18 compact modal header + WooCommerce new-tab CTA source */
.tkc-modal__header--compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: start;
  gap: 1rem;
}

.tkc-modal__header--compact-hero .tkc-modal__title {
  max-width: none;
  margin-bottom: 0.75rem;
}

.tkc-modal__header--compact-hero .tkc-modal__event-info {
  margin-top: 0;
}

.tkc-modal__header--compact-hero .tkc-modal__hero {
  width: 180px;
  aspect-ratio: 4 / 3;
  border-radius: 0.95rem;
  align-self: start;
}

.tkc-modal__header--compact-hero .tkc-modal__hero img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

@media (max-width: 700px) {
  .tkc-modal__header--compact-hero {
    grid-template-columns: 1fr;
  }

  .tkc-modal__header--compact-hero .tkc-modal__hero {
    width: 100%;
    max-width: 220px;
  }
}

/* 0.5.19: modal view reverted to 0.5.15 structure, with compact header thumbnail */
.tkc-modal__header--with-thumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 1rem;
  align-items: start;
}

.tkc-modal__header-content {
  min-width: 0;
}

.tkc-modal__thumb {
  width: 150px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #f3f4f6;
  border: 1px solid var(--tkc-line, #e6e8ef);
}

.tkc-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .tkc-modal__header--with-thumb {
    grid-template-columns: 1fr;
  }

  .tkc-modal__thumb {
    width: 100%;
    max-width: 180px;
  }
}


/* 0.5.23: safer desktop modal centering without body scroll freeze */
@media (min-width: 701px) {
  .tkc-modal-root {
    align-items: center;
    padding-top: max(2rem, 6vh);
    padding-bottom: max(2rem, 6vh);
  }

  .tkc-modal {
    max-height: calc(100vh - max(4rem, 12vh));
    display: flex;
    flex-direction: column;
  }

  .tkc-modal__body {
    overflow-y: auto;
  }
}

@media (max-height: 720px) and (min-width: 701px) {
  .tkc-modal-root {
    align-items: flex-start;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .tkc-modal {
    max-height: calc(100vh - 3.5rem);
  }
}

/* Filter architecture */
.tkc-filterbar {
  margin: 0 0 1rem;
  padding: 0.85rem;
  border: 1px solid #e7e0f2;
  border-radius: 1rem;
  background: #fbf9ff;
}

.tkc-filterbar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.tkc-filterbar__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #312e81;
}

.tkc-filterbar__reset {
  border: 0;
  background: transparent;
  color: #6d28d9;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.25rem 0.35rem;
}

.tkc-filterbar__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.tkc-filterbar__group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.tkc-filterbar__legend {
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #6b7280;
}

.tkc-filterbar__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tkc-filterbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #ffffff;
  color: #4c1d95;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.32rem 0.55rem;
  user-select: none;
}

.tkc-filterbar__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tkc-filterbar__chip.is-active,
.tkc-filterbar__chip:has(input:checked) {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #312e81;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.18);
}

@media (max-width: 700px) {
  .tkc-filterbar__groups {
    flex-direction: column;
  }
}

/* WooCommerce participant fields */
.tkc-participants {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e7e0f2;
  border-radius: 0.85rem;
  background: #fbf9ff;
  display: grid;
  gap: 0.65rem;
}

.tkc-participants__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #312e81;
}

.tkc-participants__help {
  margin-top: -0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6b7280;
}

.tkc-participants__row {
  display: grid;
  gap: 0.45rem;
}

.tkc-participants__row-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b5563;
}

.tkc-participants__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(90px, 0.65fr);
  gap: 0.55rem;
}

.tkc-participants__field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}

.tkc-participants__field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  padding: 0.42rem 0.55rem;
  font-size: 0.92rem;
  background: #fff;
}

.tkc-participants__field input:focus {
  outline: 2px solid rgba(124, 58, 237, 0.25);
  border-color: #a78bfa;
}

@media (max-width: 700px) {
  .tkc-participants__grid {
    grid-template-columns: 1fr;
  }
}


/* WooCommerce participant fields - robust cart/checkout panel */
.woocommerce .tkc-participants-panel,
.tkc-participants-panel {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid #e7e0f2;
  border-radius: 1rem;
  background: #fbf9ff;
  box-shadow: 0 8px 20px rgba(49, 46, 129, 0.04);
  clear: both;
}

.woocommerce .tkc-participants-panel__head,
.tkc-participants-panel__head {
  margin-bottom: 0.85rem;
}

.woocommerce .tkc-participants-panel__title,
.tkc-participants-panel__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.3;
  color: #312e81;
}

.woocommerce .tkc-participants-panel__help,
.tkc-participants-panel__help {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
}

.woocommerce .tkc-participants-panel__items,
.tkc-participants-panel__items {
  display: grid;
  gap: 0.85rem;
}

.woocommerce .tkc-participants,
.tkc-participants {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid #eee7f8;
  border-radius: 0.85rem;
  background: #ffffff;
  display: grid;
  gap: 0.7rem;
}

.woocommerce .tkc-participants__product,
.tkc-participants__product {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
}

.woocommerce .tkc-participants__grid,
.tkc-participants__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 0.65fr);
  gap: 0.65rem;
  align-items: end;
}

.woocommerce .tkc-participants__field,
.tkc-participants__field {
  display: grid !important;
  gap: 0.28rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}

.woocommerce .tkc-participants__field span,
.tkc-participants__field span {
  display: block;
}

.woocommerce .tkc-participants__field input.tkc-participants__input,
.woocommerce .tkc-participants input.tkc-participants__input,
.tkc-participants__field input.tkc-participants__input {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0.55rem 0.65rem !important;
  border: 1px solid #cfd4dc !important;
  border-radius: 0.65rem !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}

.woocommerce .tkc-participants__field input.tkc-participants__input:focus,
.tkc-participants__field input.tkc-participants__input:focus {
  outline: 2px solid rgba(124, 58, 237, 0.22) !important;
  border-color: #a78bfa !important;
}

@media (max-width: 700px) {
  .woocommerce .tkc-participants__grid,
  .tkc-participants__grid {
    grid-template-columns: 1fr;
  }
}

/* Participant fields v0.6.5: cart-first flow + checkout summary */
.woocommerce .tkc-participants-panel__status,
.tkc-participants-panel__status {
  min-height: 1.1em;
  margin: 0.25rem 0 0;
  color: #7c3aed;
  font-size: 0.82rem;
  line-height: 1.35;
}

.woocommerce .tkc-participants--summary,
.tkc-participants--summary {
  background: #ffffff;
  border-color: #e9ddfb;
}

.woocommerce .tkc-participants__summary-list,
.tkc-participants__summary-list {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.5;
}

.woocommerce .tkc-participants__summary-list li,
.tkc-participants__summary-list li {
  margin: 0.15rem 0;
}

.woocommerce .tkc-participants-panel__help a,
.tkc-participants-panel__help a {
  color: #6d28d9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Participant fields v0.6.6: checkout confirmation summary */
.woocommerce .tkc-participants-panel__items--summary,
.tkc-participants-panel__items--summary {
  margin-top: 0.75rem;
}

.woocommerce .tkc-participants-panel--checkout .tkc-participants--summary,
.tkc-participants-panel--checkout .tkc-participants--summary {
  border-style: solid;
  background: #ffffff;
}

/* Parent dashboard (1.2.7.1) */
.tkc-parent-dashboard {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
    color: #1f1f2e;
}
.tkc-parent-dashboard h1,
.tkc-parent-dashboard h2,
.tkc-parent-dashboard h3,
.tkc-parent-dashboard h4,
.tkc-parent-dashboard h5,
.tkc-parent-dashboard h6,
.tkc-parent-dashboard p,
.tkc-parent-dashboard li,
.tkc-parent-dashboard dt,
.tkc-parent-dashboard dd,
.tkc-parent-dashboard th,
.tkc-parent-dashboard td,
.tkc-parent-dashboard label {
    color: #1f1f2e;
}
.tkc-parent-dashboard a:not(.tkc-dashboard-button) {
    color: #5f3faa;
}
.tkc-parent-dashboard .tkc-muted {
    color: #5f5a6d;
}
.tkc-parent-dashboard__header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid rgba(40, 31, 72, 0.14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(25, 15, 56, 0.06);
    margin-bottom: 1.5rem;
}
.tkc-parent-dashboard__header h2 {
    margin: 0.15rem 0 0.35rem;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
}
.tkc-parent-dashboard__header p {
    margin: 0;
}
.tkc-parent-dashboard__account {
    min-width: 220px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(93, 57, 166, 0.08);
    font-size: 0.92rem;
}
.tkc-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.78rem;
    color: #5f3faa;
}
.tkc-dashboard-section {
    margin-top: 1.5rem;
}
.tkc-dashboard-section > h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}
.tkc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.tkc-dashboard-list {
    display: grid;
    gap: 1rem;
}
.tkc-dashboard-card {
    padding: 1rem;
    border: 1px solid rgba(40, 31, 72, 0.14);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(25, 15, 56, 0.045);
}
.tkc-dashboard-card h3,
.tkc-dashboard-card h4 {
    margin-top: 0;
}
.tkc-dashboard-card--notice {
    border-color: rgba(138, 104, 0, 0.25);
    background: #fff9e8;
}
.tkc-dashboard-card--success {
    border-color: rgba(19, 112, 69, 0.22);
    background: #effaf4;
}
.tkc-dashboard-card--muted {
    background: #f8f7fb;
}
.tkc-dashboard-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.tkc-dashboard-card__top h4,
.tkc-dashboard-card__top p {
    margin-bottom: 0.15rem;
}
.tkc-dashboard-dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.65rem 1rem;
    margin: 0;
}
.tkc-dashboard-dl div {
    min-width: 0;
}
.tkc-dashboard-dl dt {
    font-size: 0.78rem;
    color: #666276;
    margin-bottom: 0.1rem;
}
.tkc-dashboard-dl dd {
    margin: 0;
    font-weight: 600;
}
.tkc-dashboard-actionbar {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(40, 31, 72, 0.1);
}
.tkc-dashboard-actionbar p {
    margin: 0 0 0.75rem;
}
.tkc-inline-form {
    display: inline-block;
    margin: 0;
}
.tkc-dashboard-button {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: #5f3faa;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}
.tkc-dashboard-button--secondary {
    background: #2f2a3d;
}
.tkc-muted {
    color: #666276;
}
.tkc-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: #eeeaf8;
    color: #3a2c66;
    white-space: nowrap;
}
.tkc-status-pill--active,
.tkc-status-pill--paid {
    background: #e8f7ef;
    color: #11643b;
}
.tkc-status-pill--failed,
.tkc-status-pill--payment_issue,
.tkc-status-pill--blocked {
    background: #fdecec;
    color: #8a1f1f;
}
.tkc-status-pill--collecting,
.tkc-status-pill--open,
.tkc-status-pill--scheduled,
.tkc-status-pill--pending {
    background: #fff5dc;
    color: #7a4d00;
}
.tkc-dashboard-message {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: #eef4ff;
    border: 1px solid rgba(50, 88, 170, 0.18);
    margin-bottom: 1rem;
}
.tkc-dashboard-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(40, 31, 72, 0.14);
    border-radius: 14px;
    background: #fff;
}
.tkc-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.tkc-dashboard-table th,
.tkc-dashboard-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(40, 31, 72, 0.1);
    text-align: left;
}
.tkc-parent-dashboard--login .tkc-dashboard-card {
    max-width: 520px;
    margin: 2rem auto;
}
.tkc-parent-dashboard--login input[type="text"],
.tkc-parent-dashboard--login input[type="password"] {
    width: 100%;
}
@media (max-width: 720px) {
    .tkc-parent-dashboard__header,
    .tkc-dashboard-card__top {
        display: block;
    }
    .tkc-parent-dashboard__account {
        margin-top: 1rem;
    }
}

/* Parent dashboard request forms (1.2.8) */
.tkc-dashboard-form {
    display: grid;
    gap: 0.9rem;
}
.tkc-dashboard-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem 1rem;
}
.tkc-dashboard-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}
.tkc-dashboard-form input,
.tkc-dashboard-form select,
.tkc-dashboard-form textarea {
    width: 100%;
    border: 1px solid rgba(40, 31, 72, 0.18);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #fff;
    color: #1f1f2e;
    font: inherit;
    font-weight: 500;
}
.tkc-dashboard-form textarea {
    min-height: 90px;
    resize: vertical;
}

/* Parent membership flow cleanup (1.2.9.1) */
.tkc-dashboard-grid--tinkers {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tkc-dashboard-card--participant .tkc-dashboard-actionbar {
    margin-top: 1rem;
}
.tkc-participant-memberships {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: #f8f7fb;
}
.tkc-participant-memberships ul {
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
}
.tkc-participant-memberships li {
    margin: 0.25rem 0;
}
.tkc-dashboard-form--compact {
    gap: 0.65rem;
}
.tkc-dashboard-form--compact .tkc-dashboard-form-grid {
    grid-template-columns: 1fr;
}
.tkc-form-intro {
    margin: 0 0 0.25rem;
    font-weight: 600;
}
.tkc-dashboard-message--error {
    background: #fdecec;
    border-color: rgba(138, 31, 31, 0.22);
    color: #8a1f1f;
}

/* Parent membership flow clarity (1.2.9.3) */
.tkc-membership-start {
    margin-top: 0.75rem;
}
.tkc-membership-start > summary {
    list-style: none;
    width: fit-content;
}
.tkc-membership-start > summary::-webkit-details-marker {
    display: none;
}
.tkc-membership-start__panel {
    margin-top: 0.85rem;
    padding: 0.9rem;
    border: 1px solid rgba(40, 31, 72, 0.12);
    border-radius: 14px;
    background: #fbfafc;
}

/* 1.2.10 parent event signup */
.tkc-event-signup {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(40, 28, 70, 0.14);
  border-radius: 16px;
  background: #fff;
  color: #1f1b2e;
}
.tkc-event-signup h4,
.tkc-event-signup p,
.tkc-event-signup label,
.tkc-event-signup legend,
.tkc-event-signup small,
.tkc-event-signup span {
  color: #1f1b2e;
}
.tkc-event-signup__moment,
.tkc-event-signup__help,
.tkc-event-signup__empty,
.tkc-event-signup__price-note {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.95rem;
}
.tkc-event-signup__fieldset {
  margin: 1rem 0;
  padding: 0;
  border: 0;
}
.tkc-event-signup__fieldset legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.tkc-event-signup__choices {
  display: grid;
  gap: 0.5rem;
}
.tkc-event-signup__choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem;
  border: 1px solid rgba(40, 28, 70, 0.12);
  border-radius: 12px;
  background: #faf9fc;
}
.tkc-event-signup__choice small {
  display: block;
  opacity: 0.75;
}
.tkc-event-signup__guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}
.tkc-event-signup__guest-grid label span {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.tkc-event-signup__guest-grid input {
  width: 100%;
  border: 1px solid rgba(40, 28, 70, 0.18);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: #1f1b2e;
}
.tkc-event-signup__actions {
  margin-top: 1rem;
}

/* 1.2.10.4 subtle account route for event signup */
.tkc-event-signup__login-hint {
  margin: 0.85rem 0 0.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(40, 28, 70, 0.10);
  border-radius: 12px;
  background: #fbfafc;
  font-size: 0.92rem;
}
.tkc-event-signup__login-hint span {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.tkc-event-signup__login-hint a {
  color: #5f3faa;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tkc-event-signup__login-hint--quiet {
  background: transparent;
}

/* 1.2.10.5 cart participant slot flow */
.woocommerce .tkc-participants-panel__login-hint,
.tkc-participants-panel__login-hint {
  margin: 0.45rem 0 0;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.45;
}

.woocommerce .tkc-participants-panel__login-hint a,
.tkc-participants-panel__login-hint a {
  color: #6d28d9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce .tkc-participants__product,
.tkc-participants__product {
  display: grid;
  gap: 0.15rem;
}

.woocommerce .tkc-participants__product small,
.tkc-participants__product small {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 500;
}

.woocommerce .tkc-participants__row-title,
.tkc-participants__row-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.woocommerce .tkc-participants__member-badge,
.tkc-participants__member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  min-height: 1.3rem;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 0.95rem;
  line-height: 1;
}

.woocommerce .tkc-participants__field select.tkc-participants__input,
.woocommerce .tkc-participants select.tkc-participants__input,
.tkc-participants__field select.tkc-participants__input {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0.55rem 0.65rem !important;
  border: 1px solid #cfd4dc !important;
  border-radius: 0.65rem !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}

.woocommerce .tkc-participants__field select.tkc-participants__input:focus,
.tkc-participants__field select.tkc-participants__input:focus {
  outline: 2px solid rgba(124, 58, 237, 0.22) !important;
  border-color: #a78bfa !important;
}

.woocommerce .tkc-participants__row.is-existing-participant input[readonly],
.tkc-participants__row.is-existing-participant input[readonly] {
  background: #f9fafb !important;
  color: #4b5563 !important;
}

.woocommerce .tkc-participants__add-slot,
.tkc-participants__add-slot {
  margin: 0.15rem 0 0;
}

.woocommerce .tkc-participants__add-button,
.tkc-participants__add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  border: 1px dashed rgba(109, 40, 217, 0.45);
  border-radius: 0.7rem;
  background: #fbf9ff;
  color: #4c1d95;
  cursor: pointer;
  font-weight: 700;
}

.woocommerce .tkc-participants__add-button:hover,
.woocommerce .tkc-participants__add-button:focus,
.tkc-participants__add-button:hover,
.tkc-participants__add-button:focus {
  background: #ede9fe;
  color: #312e81;
}

.woocommerce .tkc-cart-slot-quantity,
.tkc-cart-slot-quantity {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 700;
}

/* 1.2.10.7 event quantity routing */
.woocommerce .tkc-cart-slot-quantity-controls,
.tkc-cart-slot-quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
}

.woocommerce .tkc-cart-slot-quantity-controls__form,
.tkc-cart-slot-quantity-controls__form {
  display: inline-flex;
  margin: 0;
}

.woocommerce .tkc-cart-slot-quantity-controls__button,
.tkc-cart-slot-quantity-controls__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(75, 85, 99, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.woocommerce .tkc-cart-slot-quantity-controls__button:hover,
.woocommerce .tkc-cart-slot-quantity-controls__button:focus,
.tkc-cart-slot-quantity-controls__button:hover,
.tkc-cart-slot-quantity-controls__button:focus {
  background: #f3f4f6;
}

.woocommerce .tkc-cart-slot-quantity-controls__value,
.tkc-cart-slot-quantity-controls__value {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.woocommerce .tkc-participants__waitlist-badge,
.tkc-participants__waitlist-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.3rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}
.woocommerce a.tkc-cart-slot-quantity-controls__button,
a.tkc-cart-slot-quantity-controls__button,
.woocommerce a.tkc-participants__add-button,
a.tkc-participants__add-button {
  text-decoration: none;
}

/* 1.2.10.8 cart participant event grouping */
.woocommerce .tkc-participants-event-group,
.tkc-participants-event-group {
  border: 1px solid rgba(75, 85, 99, 0.12);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
}

.woocommerce .tkc-participants-event-group + .tkc-participants-event-group,
.tkc-participants-event-group + .tkc-participants-event-group {
  margin-top: 1rem;
}

.woocommerce .tkc-participants__product--group,
.tkc-participants__product--group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
}

.woocommerce .tkc-participants__product--group small,
.tkc-participants__product--group small {
  flex-basis: 100%;
}

.woocommerce .tkc-participants__product--group em,
.tkc-participants__product--group em {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.woocommerce .tkc-participants-event-group__slots,
.tkc-participants-event-group__slots {
  display: grid;
  gap: 0.75rem;
}

.woocommerce .tkc-participants__remove-slot,
.tkc-participants__remove-slot {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce .tkc-participants__remove-slot:hover,
.woocommerce .tkc-participants__remove-slot:focus,
.tkc-participants__remove-slot:hover,
.tkc-participants__remove-slot:focus {
  color: #991b1b;
}

/* 1.2.10.9 inline cart participant rows */
.woocommerce .tkc-participants-panel--inline,
.tkc-participants-panel--inline {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(75, 85, 99, 0.14);
  border-radius: 0.9rem;
  background: #fbfbfd;
}

.woocommerce .tkc-participants-panel--inline .tkc-participants-panel__help,
.tkc-participants-panel--inline .tkc-participants-panel__help {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  color: #4b5563;
}

.woocommerce .tkc-participants-panel--inline .tkc-participants-panel__login-hint,
.tkc-participants-panel--inline .tkc-participants-panel__login-hint {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
}

.woocommerce .tkc-participants-panel--inline .tkc-participants,
.tkc-participants-panel--inline .tkc-participants {
  display: grid;
  gap: 0.7rem;
}

/* 1.2.10.12 participant cart integrity + pricing clarity */
.woocommerce .tkc-participants__price-note,
.tkc-participants__price-note {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.woocommerce button.tkc-participants__add-button,
button.tkc-participants__add-button {
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}

/* 1.2.10.13 cart discount badges */
.woocommerce .tkc-participants__row-title,
.tkc-participants__row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}

.woocommerce .tkc-participants__discount-badge,
.tkc-participants__discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.woocommerce .tkc-participants__discount-badge--member,
.tkc-participants__discount-badge--member {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid rgba(6, 95, 70, 0.16);
}

.woocommerce .tkc-participants__discount-badge--friend,
.tkc-participants__discount-badge--friend {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid rgba(154, 52, 18, 0.16);
}

.woocommerce .tkc-participants__discount-badge--normal,
.tkc-participants__discount-badge--normal {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid rgba(55, 65, 81, 0.12);
}

.woocommerce .tkc-participants__discount-badge--pending,
.tkc-participants__discount-badge--pending {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.14);
}

.woocommerce .tkc-participants__price-summary,
.tkc-participants__price-summary {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(75, 85, 99, 0.14);
  display: grid;
  gap: 0.35rem;
}

.woocommerce .tkc-participants__price-summary--pending,
.tkc-participants__price-summary--pending {
  color: #4b5563;
  font-size: 0.84rem;
  font-weight: 650;
}

.woocommerce .tkc-participants__price-summary-row,
.tkc-participants__price-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
}

.woocommerce .tkc-participants__price-summary-row--discount,
.tkc-participants__price-summary-row--discount {
  color: #065f46;
}

.woocommerce .tkc-participants__price-summary-row--total,
.tkc-participants__price-summary-row--total {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(75, 85, 99, 0.12);
  font-size: 0.9rem;
}

/* 1.2.10.14: event type accents and clearer visibility segmented filter */
.tkc-list-item,
.tkc-collection-card,
.tkc-card--featured,
.tkc-day-list__item {
  --tkc-event-accent: var(--tkc-accent, #6b46c1);
}

.tkc-list-item {
  border-left: 4px solid var(--tkc-event-accent, var(--tkc-accent, #6b46c1));
}

.tkc-collection-card,
.tkc-card--featured {
  border-top: 4px solid var(--tkc-event-accent, var(--tkc-accent, #6b46c1));
}

.tkc-day-list__item {
  border-left: 4px solid var(--tkc-event-accent, var(--tkc-accent, #6b46c1));
}

.tkc-list-item__date,
.tkc-collection-card__date,
.tkc-card__datetime {
  color: var(--tkc-event-accent, var(--tkc-accent, #6b46c1));
}

.tkc-filterbar__group--segmented {
  flex: 1 1 280px;
}

.tkc-filterbar__segmented {
  display: inline-flex;
  flex-wrap: nowrap;
  padding: 0.18rem;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #ffffff;
  gap: 0.12rem;
}

.tkc-filterbar__segment {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  color: #4c1d95;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  user-select: none;
  white-space: nowrap;
}

.tkc-filterbar__segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tkc-filterbar__segment.is-active,
.tkc-filterbar__segment:has(input:checked) {
  background: var(--tkc-accent-soft, #f3efff);
  color: var(--tkc-accent-text, #44337a);
  box-shadow: inset 0 0 0 1px rgba(107, 70, 193, 0.14);
}

@media (max-width: 700px) {
  .tkc-filterbar__segmented {
    width: 100%;
  }

  .tkc-filterbar__segment {
    flex: 1 1 0;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

/* 1.2.10.16: cart participant polish */
.woocommerce-cart-form tr.tkc-cart-item--participant-event td.product-price,
.woocommerce-cart-form tr.tkc-cart-item--participant-event td.product-quantity,
.woocommerce-cart-form tr.tkc-cart-item--participant-event td.product-subtotal {
  vertical-align: bottom;
}

.tkc-event-signup__member-link {
  color: #047857;
  font-weight: 800;
  text-decoration: none;
  margin-left: 0.35rem;
}

.tkc-event-signup__member-link:hover,
.tkc-event-signup__member-link:focus {
  text-decoration: underline;
}

.tkc-event-signup__login-hint {
  font-size: 0.82rem;
  line-height: 1.35;
}

.tkc-event-signup__login-hint span {
  font-weight: 750;
}

.tkc-participants__grid {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(145px, 1fr) minmax(160px, 1fr);
}

.tkc-participants__field--picker {
  grid-column: span 1;
}

.tkc-participants__remove-slot {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
}

.tkc-participants__remove-slot:hover,
.tkc-participants__remove-slot:focus {
  color: #4c1d95;
}

.tkc-checkout-moment,
.woocommerce-checkout .wc-item-meta .tkc-checkout-moment,
.woocommerce-checkout dl.variation .tkc-checkout-moment {
  color: var(--tkc-accent, #6b46c1);
  font-weight: 800;
}

@media (max-width: 900px) {
  .tkc-participants__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .tkc-participants__grid {
    grid-template-columns: 1fr;
  }
}

/* 1.2.10.16: agenda search field also available outside month/week calendar CSS */
.tkc-filterbar__search {
  margin-top: 0.65rem;
}

.tkc-filterbar__search label {
  display: grid;
  gap: 0.25rem;
  max-width: 420px;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 800;
}

.tkc-filterbar__search input[type="search"] {
  width: 100%;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 0.58rem 0.85rem;
  background: #fff;
  color: #111827;
  font-size: 0.92rem;
  line-height: 1.2;
}

.tkc-filterbar__search input[type="search"]:focus {
  outline: 2px solid rgba(107, 70, 193, 0.18);
  border-color: var(--tkc-accent, #6b46c1);
}


/* 1.2.10.17: compact filter/search layout and participant form polish */
.tkc-filterbar__top {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.tkc-filterbar__top .tkc-filterbar__group--segmented {
  flex: 0 1 auto;
}
.tkc-filterbar__top .tkc-filterbar__search {
  margin-top: 0;
  flex: 1 1 280px;
}
.tkc-filterbar__search-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.tkc-filterbar__search-button {
  border: 0;
  border-radius: 999px;
  background: var(--tkc-accent, #6b46c1);
  color: #fff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
}
.tkc-filterbar__search-result {
  margin-top: 0.22rem;
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 700;
}
.tkc-filterbar__reset {
  margin-left: auto;
}
.tkc-badge--visibility,
.tkc-month__badge--visibility {
  background: #fff7d6 !important;
  border-color: #f3d36b !important;
  color: #7c4a03 !important;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.12), 0 0 14px rgba(250, 204, 21, 0.24);
}
.tkc-event-signup__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tkc-event-signup__login-link {
  color: var(--tkc-accent, #6b46c1);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}
.tkc-event-signup__login-link:hover,
.tkc-event-signup__login-link:focus {
  text-decoration: underline;
}
.tkc-participants__grid {
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 1fr) minmax(145px, 0.8fr);
}
.tkc-participants__field--picker,
.tkc-participants__field--note {
  grid-column: 1 / -1;
}
.tkc-participants__field textarea,
.tkc-participants__field select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  padding: 0.42rem 0.55rem;
  font-size: 0.92rem;
  background: #fff;
  resize: vertical;
}
.tkc-participants__field textarea {
  min-height: 38px;
  line-height: 1.35;
}
.tkc-participants__field textarea:focus,
.tkc-participants__field select:focus {
  outline: 2px solid rgba(124, 58, 237, 0.25);
  border-color: #a78bfa;
}
.tkc-participants__row.is-existing-participant input[data-tkc-participant-name],
.tkc-participants__row.is-existing-participant input[data-tkc-participant-birthdate] {
  background: #f3f4f6;
  color: #6b7280;
}
@media (max-width: 700px) {
  .tkc-filterbar__top { align-items: stretch; }
  .tkc-filterbar__search-row { flex-direction: column; align-items: stretch; }
  .tkc-filterbar__reset { margin-left: 0; align-self: flex-start; }
}

/* 1.2.10.18: quieter Guild-only accent and global agenda search suggestions */
.tkc-filterbar__search {
  position: relative;
}

.tkc-search-suggestions {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  padding: 0.45rem;
}

.tkc-search-suggestions[hidden] {
  display: none !important;
}

.tkc-search-suggestions__status {
  padding: 0.45rem 0.55rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 800;
}

.tkc-search-suggestions__list {
  display: grid;
  gap: 0.2rem;
}

.tkc-search-suggestion {
  display: grid;
  gap: 0.12rem;
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.tkc-search-suggestion:hover,
.tkc-search-suggestion:focus {
  background: #f5f3ff;
  outline: none;
}

.tkc-search-suggestion__title {
  color: #111827;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
}

.tkc-search-suggestion__meta {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.25;
}

.tkc-badge--visibility,
.tkc-month__badge--visibility {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #7c4a03 !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08), 0 0 8px rgba(245, 158, 11, 0.10) !important;
}

.is-tkc-highlighted {
  outline: 2px solid rgba(109, 40, 217, 0.38) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.10), 0 10px 22px rgba(15, 23, 42, 0.10) !important;
}

/* 1.2.10.19: subtler event modal benefit UI and event quantity label */
.tkc-event-signup__price-note {
  display: grid;
  gap: 0.22rem;
}

.tkc-event-signup__price-line {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.tkc-event-signup__member-link {
  color: #047857;
  font-size: 0.78rem;
  font-weight: 750;
  opacity: 0.88;
  margin-left: 0.15rem;
}

.tkc-event-signup__login-link {
  font-size: 0.74rem;
  font-weight: 750;
  opacity: 0.86;
}

.tkc-event-signup__login-hint {
  margin: 0.1rem 0 0;
  color: #6b7280;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.35;
}

.tkc-event-signup__login-hint a {
  color: var(--tkc-accent, #6b46c1);
  font-weight: 750;
  text-decoration: none;
}

.tkc-event-signup__login-hint a:hover,
.tkc-event-signup__login-hint a:focus {
  text-decoration: underline;
}

.woocommerce .tkc-event-quantity,
.tkc-event-quantity {
  display: inline-grid;
  justify-items: start;
  gap: 0.18rem;
}

.woocommerce .tkc-event-quantity__label,
.tkc-event-quantity__label {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

/* Keep Guild-only as a quiet signal, not a golden warning. */
.tkc-badge--visibility,
.tkc-month__badge--visibility {
  background: #fffdf0 !important;
  border-color: #f8e9a6 !important;
  color: #80620d !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.045), 0 0 4px rgba(245, 158, 11, 0.055) !important;
}

/* 1.2.10.20: pagination for list/card event collections */
.tkc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.15rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--tkc-line, #e6e8ef);
}

.tkc-pagination__summary {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
}

.tkc-pagination__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.tkc-pagination__button {
  border: 1px solid var(--tkc-line, #e6e8ef);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  padding: 0.42rem 0.72rem;
  font-size: 0.84rem;
  line-height: 1.1;
  font-weight: 800;
  cursor: pointer;
}

.tkc-pagination__button:hover,
.tkc-pagination__button:focus {
  border-color: #d8ccfb;
  color: var(--tkc-accent-text, #44337a);
  background: var(--tkc-accent-soft, #f3efff);
}

.tkc-pagination__button.is-active {
  color: var(--tkc-accent-text, #44337a);
  background: var(--tkc-accent-soft, #f3efff);
  border-color: #c4b5fd;
}

.tkc-pagination__button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: #f8fafc;
}

@media (max-width: 640px) {
  .tkc-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .tkc-pagination__controls {
    justify-content: flex-start;
  }
}

/* 1.2.10.22: public include/exclude facet chips */
.tkc-filterbar__chip--tri {
  border: 1px solid #ddd6fe;
  font-family: inherit;
}

.tkc-filterbar__chip--tri.is-active {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #312e81;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.16);
}

.tkc-filterbar__chip--tri.is-excluded {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* 1.2.10.27: mobile go-live polish for modals and agenda lists */
@media (max-width: 760px) {
  .tkc-modal-root {
    align-items: stretch;
    padding: 0;
  }

  .tkc-modal {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .tkc-modal__header,
  .tkc-modal__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tkc-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .tkc-modal__title {
    font-size: 1.2rem;
    padding-right: 2.7rem;
  }

  .tkc-modal__close {
    top: 0.65rem;
    right: 0.65rem;
    width: 44px;
    height: 44px;
  }

  .tkc-modal__actions,
  .tkc-list-item__actions,
  .tkc-collection-card__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .tkc-modal__actions .tkc-btn,
  .tkc-modal__actions .tkc-btn--secondary,
  .tkc-list-item__cta,
  .tkc-card__link {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .tkc-day-list__item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.78rem;
  }
}

/* 1.2.15.0 — Parent Experience v1 */
.tkc-parent-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.tkc-parent-overview__card {
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    background: #fff;
}
.tkc-parent-overview__card strong,
.tkc-parent-overview__card span {
    display: block;
}
.tkc-parent-overview__card strong {
    font-size: 24px;
    line-height: 1.1;
}
.tkc-parent-overview__card span {
    margin-top: 4px;
    opacity: .75;
}
.tkc-parent-overview__card--attention {
    border-color: rgba(34, 113, 177, .45);
}
.tkc-parent-overview__card--warning {
    border-color: rgba(214, 54, 56, .45);
}
.tkc-parent-upcoming-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.tkc-parent-upcoming-card .tkc-inline-form {
    margin-top: 10px;
}
.tkc-participant-planning {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,.035);
}
.tkc-participant-planning ul {
    margin: 6px 0 0 18px;
}
.tkc-inline-form--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* 1.2.17.4 role UI separation: parent dashboard has no right-side rail */
.tkc-parent-dashboard__header {
    display: block;
}
.tkc-parent-dashboard__account {
    min-width: 0;
    margin-top: 0.85rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid rgba(40, 31, 72, 0.12);
    background: transparent;
}
.tkc-parent-dashboard--staff-frontdoor .tkc-dashboard-card {
    max-width: 720px;
    margin: 2rem auto;
}

/* Public membership signup confirmation flow (1.2.28.6) */
.tkc-dashboard-fieldset {
  margin: 1rem 0;
  padding: 0;
  border: 0;
}
.tkc-dashboard-fieldset legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.tkc-payment-mode-radios__choices {
  display: grid;
  gap: 0.65rem;
}
.tkc-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid rgba(40, 28, 70, 0.14);
  border-radius: 14px;
  background: #fbfafc;
}
.tkc-radio-card input {
  margin-top: 0.18rem;
}
.tkc-radio-card small {
  display: block;
  margin-top: 0.2rem;
  opacity: 0.78;
}
.tkc-membership-price-preview,
.tkc-membership-review .tkc-dashboard-card {
  line-height: 1.45;
}
.tkc-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.tkc-review-card {
  padding: 1rem;
  border: 1px solid rgba(40, 28, 70, 0.12);
  border-radius: 16px;
  background: #fbfafc;
}
.tkc-review-card h3 {
  margin-top: 0;
}
.tkc-review-card--wide {
  grid-column: 1 / -1;
}
.tkc-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}


/* 1.2.29.1 — parent portal task flow polish */
.tkc-parent-task-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.35fr);
  gap: 18px;
  align-items: stretch;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.tkc-parent-task-start h3 {
  margin: 0 0 6px;
}
.tkc-parent-task-start p {
  margin: 0;
}
.tkc-parent-task-start__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.tkc-parent-task-start__links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  text-decoration: none;
  background: rgba(248, 250, 252, 0.8);
}
.tkc-parent-task-start__links a:hover,
.tkc-parent-task-start__links a:focus {
  border-color: rgba(15, 23, 42, 0.26);
  background: #fff;
}
.tkc-parent-task-start__links strong {
  color: #111827;
}
.tkc-parent-task-start__links span {
  color: #6b7280;
  font-size: 0.92em;
}
@media (max-width: 720px) {
  .tkc-parent-task-start {
    grid-template-columns: 1fr;
  }
}


/* 1.2.30.3 — membership group cards */
.tkc-membership-group-choice { margin: 1rem 0 1.25rem; }
.tkc-membership-group-cards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: .75rem; }
.tkc-membership-group-card { appearance: none; border: 1px solid rgba(15,23,42,.16); border-radius: 14px; background: #fff; color: inherit; text-align: left; padding: .9rem 1rem; display: grid; gap: .25rem; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.tkc-membership-group-card:hover { border-color: rgba(15,23,42,.32); }
.tkc-membership-group-card.is-selected { border-color: currentColor; box-shadow: 0 0 0 2px rgba(15,23,42,.08); }
.tkc-membership-group-card[hidden] { display: none; }
.tkc-membership-group-card strong { font-size: 1rem; }
.tkc-membership-group-card span { color: #475569; font-size: .92rem; }
.tkc-membership-group-card em { color: #0f172a; font-style: normal; font-weight: 600; margin-top: .25rem; }
.tkc-membership-group-empty { margin-top: .75rem; }


/* 1.2.30.4 — compact parent portal */
.tkc-portal-next-action { border: 1px solid rgba(15,23,42,.10); border-radius: 12px; background: rgba(15,23,42,.03); padding: .75rem .9rem; margin: .75rem 0; display: grid; gap: .2rem; }
.tkc-portal-next-action strong { font-size: .95rem; }
.tkc-portal-next-action span { color: #475569; font-size: .92rem; }
.tkc-participant-details { margin-top: .75rem; border-top: 1px solid rgba(15,23,42,.08); padding-top: .6rem; }
.tkc-participant-details > summary { cursor: pointer; font-weight: 700; color: #334155; }
.tkc-participant-details[open] > summary { margin-bottom: .6rem; }


/* 1.2.32.1 — action-first parent portal top */
.tkc-parent-action-summary { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 1rem; margin: 1.25rem 0 1.5rem; }
.tkc-parent-action-summary__main { padding: 1.15rem 1.25rem; border: 1px solid rgba(15,23,42,.10); border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.05); }
.tkc-parent-action-summary__main--attention { border-color: rgba(214,54,56,.28); }
.tkc-parent-action-summary__main h3 { margin: .15rem 0 .35rem; }
.tkc-parent-action-summary__main p { margin: 0; color: #475569; }
.tkc-parent-action-summary__items { display: grid; gap: .65rem; }
.tkc-parent-action-item { display: flex; justify-content: space-between; gap: .85rem; padding: .85rem 1rem; border: 1px solid rgba(15,23,42,.10); border-radius: 14px; text-decoration: none; background: rgba(248,250,252,.85); color: inherit; }
.tkc-parent-action-item:hover, .tkc-parent-action-item:focus { background: #fff; border-color: rgba(15,23,42,.28); }
.tkc-parent-action-item strong { color: #0f172a; }
.tkc-parent-action-item span { color: #64748b; font-size: .92rem; text-align: right; }
.tkc-parent-action-item--warning { border-color: rgba(214,54,56,.24); }
@media (max-width: 760px) { .tkc-parent-action-summary { grid-template-columns: 1fr; } .tkc-parent-action-item { align-items: flex-start; flex-direction: column; } .tkc-parent-action-item span { text-align: left; } }


/* 1.2.32.2 — child-centered parent portal cards */
.tkc-child-card-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .65rem; margin: .9rem 0; }
.tkc-child-card-summary > div { padding: .7rem .8rem; border-radius: 12px; background: rgba(248,250,252,.9); border: 1px solid rgba(15,23,42,.08); }
.tkc-child-card-summary span { display: block; color: #64748b; font-size: .82rem; margin-bottom: .2rem; }
.tkc-child-card-summary strong { display: block; color: #0f172a; font-size: .92rem; line-height: 1.25; }
.tkc-dashboard-card--participant { display: grid; gap: .35rem; }


/* 1.2.32.3 — parent administration IA */
.tkc-parent-admin-section > .tkc-muted { margin-top: -.25rem; }
.tkc-parent-admin-details { border: 1px solid rgba(15,23,42,.10); border-radius: 14px; padding: .85rem 1rem; background: #fff; margin: .75rem 0; }
.tkc-parent-admin-details > summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.tkc-parent-admin-details[open] > summary { margin-bottom: .85rem; }
.tkc-parent-admin-payments { margin-top: 1rem; }
.tkc-parent-admin-payments h4 { margin: 0 0 .6rem; }


/* 1.2.32.4 — safety info IA */
.tkc-practical-info-form > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.tkc-practical-info-form--missing { border-color: rgba(214,54,56,.22); }
.tkc-status-pill--missing { background: rgba(214,54,56,.10); color: #8a2424; }
.tkc-status-pill--complete { background: rgba(16,185,129,.12); color: #065f46; }
.tkc-status-pill--info { background: rgba(37,99,235,.10); color: #1d4ed8; }


/* 1.2.32.5 — requests and change-flow cleanup */
.tkc-parent-request-details { border: 1px solid rgba(15,23,42,.10); border-radius: 14px; padding: .85rem 1rem; background: #fff; margin: .75rem 0; }
.tkc-parent-request-details > summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.tkc-parent-request-details[open] > summary { margin-bottom: .85rem; }
.tkc-parent-open-requests { margin: .75rem 0 1rem; }

.tkc-public-project-wall__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.tkc-public-project-card {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: .75rem;
    padding: 1rem;
    background: #fff;
}
.tkc-public-project-card__image img {
    width: 100%;
    height: auto;
    border-radius: .5rem;
    display: block;
    margin-bottom: .75rem;
}
.tkc-public-project-card__topics,
.tkc-public-project-card__tools {
    font-size: .95em;
}

/* 1.7 — supervised participant project flow */
.tkc-project-submission,
.tkc-participant-portfolio {
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
    margin: 1rem 0;
}
.tkc-project-submission__form {
    display: grid;
    gap: .85rem;
}
.tkc-project-submission__form label {
    display: grid;
    gap: .25rem;
    font-weight: 600;
}
.tkc-project-submission__form input,
.tkc-project-submission__form select,
.tkc-project-submission__form textarea {
    max-width: 100%;
}
.tkc-project-submission__topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .4rem .75rem;
}
.tkc-project-submission__topics label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-weight: 400;
}
.tkc-participant-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.tkc-participant-portfolio__card {
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 14px;
    padding: .9rem;
    background: rgba(248,250,252,.85);
}
.tkc-participant-portfolio__card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin-bottom: .6rem;
}

.tkc-modal__session-summary {
  margin-top: 0.35rem;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* 1.9.10.0 — stable, independently configurable agenda controls */
.tkc-filterbar,
.tkc-filterbar * {
  box-sizing: border-box;
}

.tkc-filterbar {
  max-width: 100%;
}

.tkc-filterbar__top > *,
.tkc-filterbar__groups > *,
.tkc-filterbar__search,
.tkc-filterbar__search label,
.tkc-filterbar__search-row {
  min-width: 0;
}

.tkc-filterbar__options {
  max-width: 100%;
}

.tkc-filterbar__chip--tri {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

@media (max-width: 700px) {
  .tkc-filterbar {
    padding: 0.75rem;
    overflow: visible;
  }

  .tkc-filterbar__top,
  .tkc-filterbar__groups {
    width: 100%;
  }

  .tkc-filterbar__top .tkc-filterbar__group--segmented,
  .tkc-filterbar__top .tkc-filterbar__search,
  .tkc-filterbar__group {
    flex: 1 1 100%;
    width: 100%;
  }

  .tkc-filterbar__segmented {
    display: flex;
    flex-wrap: wrap;
    border-radius: 0.85rem;
  }

  .tkc-filterbar__segment {
    flex: 1 1 calc(50% - 0.12rem);
    min-width: 105px;
    white-space: normal;
    text-align: center;
  }

  .tkc-filterbar__search-row {
    width: 100%;
  }

  .tkc-filterbar__search input[type="search"],
  .tkc-filterbar__search-button {
    max-width: 100%;
    width: 100%;
  }
}

/* 1.9.11.0 — guarded direct product routes */
.tkc-product-route-panel {
    margin-top: 1rem;
}

.tkc-product-route-panel__events {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.tkc-product-route-panel__events li + li {
    margin-top: 0.35rem;
}

/* 1.9.13.1 — recoverable agenda runtime states */
.tkc-error--recoverable {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  border: 1px solid #fecdd3;
}

.tkc-error--recoverable strong,
.tkc-error--recoverable span {
  display: block;
}

.tkc-error--recoverable span {
  flex: 1 1 260px;
}

.is-tkc-loading[data-tkc-ready="1"] {
  opacity: 0.72;
  transition: opacity 120ms ease-in-out;
}

.is-tkc-loading[data-tkc-ready="1"] > * {
  pointer-events: none;
}

/* 1.9.14.0 — event registration overview */
.tkc-registration-overview {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

.tkc-registration-overview__intro h2 {
  margin: 0 0 4px;
}

.tkc-registration-overview__intro p {
  margin: 0;
  color: #5f6470;
}

.tkc-registration-card {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 32, 43, 0.06);
}

.tkc-registration-card__header {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #edf0f2;
}

.tkc-registration-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #f4f5f6;
}

.tkc-registration-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tkc-registration-card__heading h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.tkc-registration-card__heading p {
  margin: 5px 0 0;
  color: #6a707b;
  font-size: 0.92rem;
}

.tkc-registration-card__remove {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e2e5e9;
  border-radius: 999px;
  color: #6d737d;
  text-decoration: none;
  font-size: 16px;
}

.tkc-registration-card__remove:hover,
.tkc-registration-card__remove:focus {
  border-color: #b42318;
  color: #b42318;
}

.tkc-registration-card__section {
  padding: 16px;
}

.tkc-registration-card__section + .tkc-registration-card__section {
  border-top: 1px solid #edf0f2;
}

.tkc-registration-card__section h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.tkc-registration-card__dates > ul,
.tkc-registration-card__add-dates ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tkc-registration-card__dates > ul > li,
.tkc-registration-card__add-dates li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.tkc-registration-card__date-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.tkc-registration-card__date-price {
  font-weight: 700;
}

.tkc-registration-card__remove-date {
  color: #6d737d;
  font-size: 0.84rem;
}

.tkc-registration-card__add-dates {
  margin-top: 12px;
}

.tkc-registration-card__add-dates summary {
  cursor: pointer;
  font-weight: 700;
}

.tkc-registration-card__add-dates ul {
  margin-top: 10px;
  padding: 10px;
  border-radius: 9px;
  background: #f7f8fa;
}

.tkc-registration-card__add-dates a {
  font-weight: 700;
}

.tkc-participants--shared-group {
  padding: 0;
  border: 0;
  background: transparent;
}

.tkc-participants--shared-group .tkc-participants__row {
  padding: 12px;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  background: #fafbfc;
}

.tkc-participants--shared-group .tkc-participants__row + .tkc-participants__row {
  margin-top: 10px;
}

.tkc-participants__existing-summary {
  display: none;
  gap: 3px;
  align-content: center;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
}

.tkc-participants__existing-summary span {
  color: #6a707b;
  font-size: 0.86rem;
}

.tkc-participants__row.is-existing-participant .tkc-participants__existing-summary {
  display: grid;
}

.tkc-participants__row.is-existing-participant .tkc-participants__field--name,
.tkc-participants__row.is-existing-participant .tkc-participants__field--birthdate,
.tkc-participants__row.is-existing-participant .tkc-participants__field--note {
  display: none;
}

.tkc-registration-card__total {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e4e7eb;
}

.tkc-registration-card__total strong {
  font-size: 1.15rem;
}

.tkc-cart-has-event-overview .woocommerce-cart-form tr.tkc-cart-item--participant-event {
  display: none;
}

.tkc-cart-event-only .woocommerce-cart-form > table.shop_table.cart {
  display: none;
}

.tkc-checkout-registration-summary {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  background: #fafbfc;
}

.tkc-checkout-registration-summary + .tkc-checkout-registration-summary {
  margin-top: 10px;
}

.tkc-checkout-registration-summary > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

.tkc-checkout-registration-summary > div span {
  color: #6a707b;
}

.tkc-checkout-registration-summary.has-missing-data {
  border-color: #d92d20;
  background: #fff6f5;
}

@media (max-width: 680px) {
  .tkc-registration-card__header {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 12px;
  }

  .tkc-registration-card__section {
    padding: 12px;
  }

  .tkc-registration-card__dates > ul > li,
  .tkc-registration-card__add-dates li {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .tkc-registration-card__date-actions {
    width: 100%;
    justify-content: space-between;
  }

  .tkc-registration-card__total {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* 1.9.15.0 — event-only checkout and confirmation */
.tkc-event-thankyou {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 32, 43, 0.05);
}

.tkc-event-thankyou h2 {
  margin: 0 0 7px;
}

.tkc-event-thankyou > p {
  margin: 0 0 16px;
  color: #5f6470;
}

.tkc-event-order-summary {
  display: grid;
  gap: 10px;
}

.tkc-event-order-summary article {
  display: grid;
  gap: 7px;
  padding: 13px;
  border-radius: 10px;
  background: #f7f8fa;
}

.tkc-event-order-summary article > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

.tkc-event-order-summary article > div span {
  color: #6a707b;
}

@media (max-width: 520px) {
  .tkc-event-order-summary article > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 1.9.16.0 — collapsible agenda filters and availability badges */
.tkc-filterbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: auto;
  margin: 0;
  padding: 0.48rem 0.7rem;
  border: 1px solid #ddd6fe;
  border-radius: 0.75rem;
  background: #fff;
  color: #4c1d95;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.tkc-filterbar__toggle:hover,
.tkc-filterbar__toggle:focus-visible {
  border-color: #a78bfa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.tkc-filterbar__toggle-icon {
  display: inline-block;
  transition: transform 0.16s ease;
}

.tkc-filterbar.is-open .tkc-filterbar__toggle-icon {
  transform: rotate(180deg);
}

.tkc-filterbar__active-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #4c1d95;
  font-size: 0.72rem;
  font-weight: 800;
}

.tkc-filterbar__active-count[hidden],
.tkc-filterbar__panel[hidden] {
  display: none !important;
}

.tkc-filterbar__toggle + .tkc-filterbar__panel {
  margin-top: 0.75rem;
}

.tkc-badge--availability,
.tkc-detail-pill--availability,
.tkc-month__badge--availability {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

@media (max-width: 719px) {
  .tkc-filterbar__toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .tkc-filterbar__active-count {
    margin-left: auto;
  }
}

/* 1.9.17.0 — dedicated event registration experience */
.tkc-registration-experience {
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.tkc-registration-experience__header {
  display: grid;
  gap: 8px;
}

.tkc-registration-experience__header h1,
.tkc-registration-experience__section > h2 {
  margin: 0;
}

.tkc-registration-experience__header > p {
  max-width: 720px;
  margin: 0;
  color: #626975;
}

.tkc-registration-experience__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #6d28d9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tkc-registration-experience__section {
  display: grid;
  gap: 14px;
}

.tkc-registration-experience__groups {
  display: grid;
  gap: 18px;
}

.tkc-registration-experience .tkc-registration-card {
  overflow: hidden;
  border: 1px solid #dfe4e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(27, 36, 48, 0.06);
}

.tkc-registration-card__missing {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #f7c8c4;
  border-radius: 9px;
  background: #fff5f4;
  color: #8a241c;
}

.tkc-registration-card__missing span {
  font-size: 0.9rem;
}

.tkc-registration-card__remove-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid #d8dde3;
  border-radius: 999px;
  color: #59616d;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
}

.tkc-registration-card__remove-date:hover,
.tkc-registration-card__remove-date:focus-visible {
  border-color: #b42318;
  color: #b42318;
}

.tkc-registration-card__split-date {
  color: #5b21b6;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.tkc-participants__member-badge {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border: 1px solid #ead9a6;
  border-radius: 999px;
  background: #fff8dc;
  color: #614d0d;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.tkc-registration-experience__products {
  padding-top: 4px;
}

.tkc-registration-products {
  display: grid;
  gap: 10px;
}

.tkc-registration-product {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto 32px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  background: #fff;
}

.tkc-registration-product__image img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.tkc-registration-product__body {
  display: grid;
  gap: 3px;
}

.tkc-registration-product__quantity {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
}

.tkc-registration-product__quantity input {
  width: 74px;
}

.tkc-registration-product__subtotal {
  font-weight: 800;
  white-space: nowrap;
}

.tkc-registration-product__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #626975;
  font-size: 1.25rem;
  text-decoration: none;
}

.tkc-registration-products-form__actions {
  margin-top: 10px;
}

.tkc-registration-experience__summary {
  display: grid;
  gap: 14px;
  justify-self: end;
  width: min(100%, 480px);
  padding: 18px;
  border: 1px solid #dfe4e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(27, 36, 48, 0.06);
}

.tkc-registration-coupon {
  display: flex;
  gap: 8px;
  align-items: end;
}

.tkc-registration-coupon label {
  display: grid;
  flex: 1;
  gap: 4px;
  font-size: 0.8rem;
}

.tkc-registration-coupons-applied {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tkc-registration-coupons-applied span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  font-size: 0.8rem;
}

.tkc-registration-totals {
  display: grid;
  gap: 8px;
}

.tkc-registration-totals > div {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.tkc-registration-totals__note {
  color: #626975;
  font-size: 0.88rem;
}

.tkc-registration-totals__total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #e2e6ea;
  font-size: 1.12rem;
}

.tkc-registration-experience__incomplete {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff5f4;
  color: #8a241c;
}

.tkc-registration-experience .checkout-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tkc-mini-registration-groups {
  display: grid;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.tkc-mini-registration-groups > a {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
}

.tkc-mini-registration-groups small {
  color: #69707c;
}

@media (max-width: 720px) {
  .tkc-registration-experience {
    gap: 20px;
  }

  .tkc-registration-product {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .tkc-registration-product__image img {
    width: 52px;
    height: 52px;
  }

  .tkc-registration-product__quantity,
  .tkc-registration-product__subtotal {
    grid-column: 2;
  }

  .tkc-registration-product__remove {
    grid-column: 3;
    grid-row: 1;
  }

  .tkc-registration-coupon {
    align-items: stretch;
    flex-direction: column;
  }

  .tkc-registration-experience__summary {
    justify-self: stretch;
  }
}

/* 1.9.18.1 — compact filter launcher and expanded filter surface */
.tkc-filterbar {
  position: relative;
}

.tkc-filterbar__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #d8dde5;
  border-radius: 999px;
  background: #fff;
  color: #45238a;
  box-shadow: 0 4px 14px rgba(32, 25, 55, 0.07);
}

.tkc-filterbar__toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.16s ease;
}

.tkc-filterbar.is-open .tkc-filterbar__toggle-icon {
  transform: scale(0.92);
}

.tkc-filterbar__active-count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  padding: 0 0.28rem;
  border: 2px solid #fff;
  background: #6d28d9;
  color: #fff;
}

.tkc-filterbar__toggle + .tkc-filterbar__panel {
  margin-top: 0.65rem;
}

.tkc-filterbar__panel {
  width: 100%;
  padding: 18px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 32, 43, 0.1);
}

.tkc-loading--detail {
  min-height: 150px;
  display: grid;
  place-items: center;
}

@media (max-width: 719px) {
  .tkc-filterbar__toggle {
    width: 2.75rem;
    justify-content: center;
  }

  .tkc-filterbar__active-count {
    margin-left: 0;
  }

  .tkc-filterbar__panel {
    padding: 14px;
    border-radius: 14px;
  }
}

/* 1.9.19.1 — reliable registration entry feedback */
.tkc-event-signup__feedback {
  display: block;
  min-height: 0;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.tkc-event-signup__feedback:empty {
  display: none;
}

.tkc-event-signup__feedback.is-error {
  color: #8a1f11;
}

.tkc-event-signup__actions .tkc-btn.is-busy {
  cursor: progress;
  opacity: 0.72;
}

.tkc-registration-experience--empty {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

/* 1.9.19.2 — registration runtime stabilization */
.tkc-registration-state-warning,
.tkc-registration-experience--error {
  display: grid;
  gap: .45rem;
}

.tkc-registration-experience--error {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(20, 24, 31, .14);
  border-radius: 1rem;
  background: #fff;
}

.tkc-registration-experience--error h2,
.tkc-registration-experience--error p {
  margin: 0;
}

.tkc-registration-experience--error .button {
  justify-self: start;
  margin-top: .5rem;
}


/* 1.9.19.3 — registration interaction and completion feedback */
.tkc-registration-login-hint {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd2f5;
  border-radius: 0.9rem;
  background: #f8f5ff;
  color: #382368;
}

.tkc-registration-login-hint > div {
  display: grid;
  gap: 0.15rem;
}

.tkc-registration-login-hint__link {
  flex: none;
  color: #5b21b6;
  font-weight: 800;
}

.tkc-registration-card__dates > ul > li > span:first-child {
  display: block;
  color: var(--tkc-accent-text);
  font-weight: 750;
}

.tkc-participants__row-title > [data-tkc-participant-title-index] {
  display: block;
  color: var(--tkc-accent-text);
  font-weight: 800;
}

.tkc-participants__field.is-missing {
  padding: 0.45rem;
  border: 1px solid #d92d20;
  border-radius: 0.65rem;
  background: #fff5f4;
}

.tkc-participants__field.is-missing > span {
  color: #9f2218;
  font-weight: 750;
}

.tkc-participants__field.is-missing .tkc-participants__input {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.12);
}

.tkc-participants__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
}

.tkc-participants__actions .tkc-participants__add-slot {
  margin: 0;
}

.tkc-save-participants[disabled] {
  opacity: 0.55;
  cursor: default;
}

.tkc-save-participants.is-dirty {
  opacity: 1;
}

.tkc-registration-experience__summary .checkout-button.alt,
.tkc-registration-experience__summary a.checkout-button,
.tkc-registration-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.25rem !important;
  border: 1px solid #6d28d9 !important;
  border-radius: 0.75rem !important;
  background: #6d28d9 !important;
  color: #fff !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.2);
}

.tkc-registration-experience__summary .checkout-button.alt:hover,
.tkc-registration-experience__summary .checkout-button.alt:focus-visible,
.tkc-registration-home-button:hover,
.tkc-registration-home-button:focus-visible {
  background: #5720ad !important;
  border-color: #5720ad !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .tkc-registration-login-hint {
    align-items: flex-start;
    flex-direction: column;
  }

  .tkc-participants__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tkc-save-participants,
  .tkc-registration-experience__summary .checkout-button.alt {
    width: 100%;
  }
}


/* 1.9.19.4 — event content and checkout clarity */
.woocommerce-checkout .wc-item-meta .tkc-checkout-meta-lines,
.woocommerce-checkout dl.variation .tkc-checkout-meta-lines,
.tkc-event-summary-lines {
  display: grid;
  gap: 0.25rem;
  color: var(--tkc-accent, #6b46c1);
  font-weight: 750;
}

.woocommerce-checkout .wc-item-meta .tkc-checkout-meta-lines > span,
.woocommerce-checkout dl.variation .tkc-checkout-meta-lines > span,
.tkc-event-summary-lines > span {
  display: block;
}

.tkc-checkout-registration-edit {
  color: var(--tkc-accent, #6b46c1);
  font-weight: 750;
}


/* 1.9.19.5 — registration autosave and inline validation */
.tkc-participants-panel__status {
  min-height: 1.35em;
  margin: 0 0 .45rem;
  font-size: .86rem;
  font-weight: 650;
}
.tkc-participants-panel__status.is-saving { color: #6b5b95; }
.tkc-participants-panel__status.is-saved { color: #25734a; }
.tkc-participants-panel__status.is-error { color: #a52626; }
.tkc-participants__field-error {
  display: block;
  min-height: 1.25em;
  margin-top: .3rem;
  color: #a52626;
  font-size: .82rem;
  line-height: 1.3;
}
.tkc-participants__field.has-error .tkc-participants__input,
.tkc-participants__field.is-missing .tkc-participants__input {
  border-color: #b22d2d !important;
  box-shadow: 0 0 0 2px rgba(178,45,45,.12);
}
.tkc-participants__field.has-error .tkc-participants__input:focus,
.tkc-participants__field.is-missing .tkc-participants__input:focus {
  box-shadow: 0 0 0 3px rgba(178,45,45,.18);
}
.tkc-registration-experience__summary [aria-busy="true"] {
  opacity: .72;
  pointer-events: none;
}
