/**
 * Shop widgets — structural only; colors inherit host theme.
 */
.tcm-shop,
.tcm-event-booking,
.tcm-product-buy {
  /*
   * Kein Theme-Primary: Enfold/Achental setzt --wp--preset--color--primary oft auf #fff
   * → Buttons sonst weiß auf weiß. Shop/Buchung immer grün mit weißem Text.
   */
  --tcm-accent: #1a5c3a;
  --tcm-accent-strong: #134a2e;
  --tcm-accent-contrast: #fff;
  --tcm-muted: color-mix(in srgb, currentColor 55%, transparent);
  --tcm-border: color-mix(in srgb, currentColor 18%, transparent);
  --tcm-surface: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  font-family: inherit;
}

.tcm-shop {
  max-width: 640px;
  margin: 1rem 0;
}

/*
 * Warenkorb + Kasse: volle Inhaltsbreite.
 * Enfold floated .entry-content shrink-wraps ohne explizite Breite — deshalb body-Klasse.
 */
body.tcm-shop-page .container .template-page.content.av-content-full,
body.tcm-shop-page .container_wrap_first,
body.tcm-shop-page #main .container,
body.tcm-shop-page .entry-content-wrapper,
body.tcm-shop-page .entry-content,
body.tcm-shop-page .post-entry {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body.tcm-shop-page .entry-content > .tcm-shop--full,
.tcm-shop.tcm-shop--full,
.tcm-shop.tcm-shop-cart--page,
.tcm-shop.tcm-shop-checkout {
  max-width: none !important;
  width: 100% !important;
  margin: 0 0 2rem;
}

/* Volle Warenkorb-Seite (wie shop.achental.com/warenkorb/) */
.tcm-shop.tcm-shop-cart--page {
  max-width: none;
  width: 100%;
  margin: 0 0 2rem;
}

/*
 * Kasse zweispaltig: Formular links, Bestellung+Rechtliches+Button rechts.
 * Grid statt Flex — Enfold float/form-display bricht Flex oft.
 */
.tcm-shop.tcm-shop-checkout form.tcm-shop-checkout-layout,
.tcm-shop-checkout form.tcm-shop-checkout-layout,
form.tcm-shop-form.tcm-shop-checkout-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px) !important;
  align-items: start !important;
  gap: 2rem 2.75rem !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  float: none !important;
}

.tcm-shop.tcm-shop-checkout .tcm-shop-checkout-main,
.tcm-shop-checkout-layout > .tcm-shop-checkout-main {
  grid-column: 1 !important;
  min-width: 0 !important;
  max-width: none !important;
  float: none !important;
  width: 100% !important;
}

.tcm-shop.tcm-shop-checkout .tcm-shop-checkout-aside,
.tcm-shop-checkout-layout > .tcm-shop-checkout-aside,
.tcm-shop-checkout-layout > [data-tcm-order-aside] {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  position: sticky !important;
  top: 1rem !important;
  align-self: start !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  /* Enfold/Avia: Sidebar-aside-Styles abschalten */
  display: block !important;
}

.tcm-shop-checkout-main h3,
.tcm-shop-shipping h3 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tcm-shop-section {
  margin: 0 0 1.65rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tcm-shop-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.tcm-shop-order-review {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.tcm-shop-order-review > .tcm-shop-totals {
  order: 1 !important;
}

.tcm-shop-order-review > .tcm-shop-legal-section {
  order: 2 !important;
}

.tcm-shop-order-review > .tcm-shop-error {
  order: 3 !important;
}

.tcm-shop-order-review > .tcm-shop-submit {
  order: 4 !important;
}

.tcm-shop-order-review > .tcm-shop-pay-hint {
  order: 5 !important;
}

.tcm-shop-legal-section {
  border-bottom: 0;
  padding-bottom: 0;
  margin: 1rem 0 0;
}

/* Rechtliches nur rechts, direkt über „Zahlungspflichtig bestellen“ */
.tcm-shop-checkout-main .tcm-shop-legal,
.tcm-shop-checkout-main .tcm-shop-legal-section {
  display: none !important;
}

.tcm-shop-checkout-aside .tcm-shop-legal,
.tcm-shop-order-review .tcm-shop-legal {
  display: block !important;
  margin: 0;
  padding: 0.85rem 0 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
}

.tcm-shop-checkout-aside .tcm-shop-legal-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

.tcm-shop-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--tcm-muted);
  font-size: 0.85em;
}

.tcm-shop-field-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem 0.9rem !important;
}

.tcm-shop-field-row .tcm-shop-field--zip {
  flex: 0 0 7rem !important;
  max-width: 7.5rem !important;
}

.tcm-shop-field-row .tcm-shop-field--city {
  flex: 1 1 10rem !important;
  min-width: 0 !important;
}

.tcm-shop-ship-diff {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 4%, #fff);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.tcm-shop-ship-diff input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #1a5c3a;
  appearance: auto;
  -webkit-appearance: checkbox;
}

/* Versandart: Radios gegen Enfold/Theme klickbar + Kosten sichtbar */
.tcm-shop-ship-methods {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  margin: 0 !important;
}

.tcm-shop-ship-method {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  margin: 0 !important;
  padding: 0.85rem 1rem !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, currentColor 4%, #fff) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  user-select: none;
}

.tcm-shop-ship-method[hidden] {
  display: none !important;
}

.tcm-shop-ship-method.is-selected {
  border-color: #1a5c3a !important;
  box-shadow: inset 0 0 0 1px #1a5c3a;
}

.tcm-shop-ship-method input[type='radio'] {
  width: 1.2rem !important;
  height: 1.2rem !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  accent-color: #1a5c3a !important;
  appearance: auto !important;
  -webkit-appearance: radio !important;
  opacity: 1 !important;
  position: static !important;
  left: auto !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: inline-block !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
}

.tcm-shop-ship-method-body {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  min-width: 0 !important;
  pointer-events: none;
}

.tcm-shop-ship-method-price {
  font-weight: 650 !important;
  color: var(--tcm-muted, #556);
  white-space: nowrap;
}

.tcm-shop-shipping {
  margin-top: 1.15rem;
  padding: 1.1rem 1.15rem 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 3%, #fafafa);
}

.tcm-shop-shipping[hidden] {
  display: none !important;
}

.tcm-shop-order-review {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #f7f7f5;
  background: color-mix(in srgb, currentColor 5%, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tcm-shop-checkout-aside .tcm-shop-totals {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.tcm-shop-pay-hint {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--tcm-muted, #666);
  line-height: 1.45;
}

.tcm-shop-checkout .tcm-shop-submit {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.85rem;
}

@media (max-width: 780px) {
  .tcm-shop.tcm-shop-checkout form.tcm-shop-checkout-layout,
  .tcm-shop-checkout form.tcm-shop-checkout-layout,
  form.tcm-shop-form.tcm-shop-checkout-layout {
    grid-template-columns: 1fr !important;
  }

  .tcm-shop.tcm-shop-checkout .tcm-shop-checkout-main,
  .tcm-shop-checkout-layout > .tcm-shop-checkout-main,
  .tcm-shop.tcm-shop-checkout .tcm-shop-checkout-aside,
  .tcm-shop-checkout-layout > .tcm-shop-checkout-aside {
    grid-column: 1 !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
  }
}

.tcm-shop-cart-page-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1.75rem 2rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 900px) {
  .tcm-shop-cart-page-inner {
    grid-template-columns: 1fr;
  }
}

.tcm-shop-cart-product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tcm-shop-cart-thumb {
  display: inline-flex;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 6%, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tcm-shop-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tcm-shop-cart-thumb--empty {
  background: color-mix(in srgb, currentColor 8%, #f0f0f0);
}

.tcm-shop-lines--sidebar .tcm-shop-cart-thumb,
.tcm-shop-lines--checkout .tcm-shop-cart-thumb {
  width: 52px;
  height: 52px;
}

.tcm-shop-line--product {
  align-items: center;
}

/* Stripe Zahlungs-Layer */
.tcm-pay-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tcm-pay-layer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 20, 0.55);
}

.tcm-pay-layer-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  padding: 1.15rem 1.15rem 1.35rem;
}

.tcm-pay-layer-title {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.2rem;
}

.tcm-pay-layer-hint {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--tcm-muted, #556);
  line-height: 1.4;
}

.tcm-pay-resume {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #c9a227;
  border-radius: 12px;
  background: #fff8e6;
}

.tcm-pay-resume p {
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.tcm-pay-resume-btn {
  width: auto;
  margin: 0;
}

.tcm-pay-layer-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

html.tcm-pay-layer-open,
html.tcm-pay-layer-open body {
  overflow: hidden;
}

.tcm-thank-layer-panel {
  width: min(440px, 100%);
  text-align: left;
}

.tcm-thank-layer-text {
  margin: 0 0 1.1rem;
  line-height: 1.5;
  color: #333;
}

.tcm-thank-layer .tcm-shop-submit {
  margin-top: 0;
}

.tcm-shop-cart-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.tcm-shop-cart-table th,
.tcm-shop-cart-table td {
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  vertical-align: middle;
}

.tcm-shop-cart-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tcm-muted, #666);
}

.tcm-shop-cart-col-price,
.tcm-shop-cart-col-qty,
.tcm-shop-cart-col-subtotal,
.tcm-shop-cart-col-remove {
  white-space: nowrap;
}

.tcm-shop-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--tcm-border, rgba(0, 0, 0, 0.15));
  border-radius: 8px;
  padding: 0.15rem;
}

.tcm-shop-qty-btn {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 6px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.tcm-shop-qty-input {
  width: 2.6rem;
  border: 0;
  text-align: center;
  font: inherit;
  background: transparent;
}

.tcm-shop-cart-collaterals {
  display: block;
  width: 100%;
}

.tcm-shop-cart-totals {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.15rem;
  background: #f5f5f5;
  background: color-mix(in srgb, currentColor 5%, #fff);
  position: sticky;
  top: 1rem;
}

.tcm-shop-cart-totals-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.tcm-shop-cart-actions {
  margin-top: 1rem;
}

.tcm-shop-cart-actions .tcm-shop-checkout-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 0;
}

.tcm-shop-cart-empty {
  padding: 1.25rem 0;
}

.tcm-shop-cart-empty-msg {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--tcm-accent, #1a5c3a);
  background: color-mix(in srgb, currentColor 5%, #fff);
}

.tcm-shop-return-shop {
  margin: 0;
}

.tcm-shop-btn-secondary {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--tcm-border, rgba(0, 0, 0, 0.2));
  border-radius: 8px;
  background: transparent;
  color: inherit !important;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.tcm-shop-btn-secondary:hover {
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Produktliste: Inhalt links, Mini-Warenkorb rechts */
.tcm-shop-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.5rem 1.75rem;
  align-items: start;
  margin: 0 0 1.5rem;
}

.tcm-shop-list-main {
  min-width: 0;
}

.tcm-shop-list-aside {
  position: sticky;
  top: 1rem;
}

.tcm-shop-list-cart-card {
  border: 1px solid var(--tcm-border, rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  padding: 1rem 1.05rem 1.1rem;
  background: #fff;
  background: color-mix(in srgb, currentColor 3%, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tcm-shop-list-cart-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.tcm-shop-cart--sidebar {
  max-width: none;
  margin: 0 0 0.85rem;
}

.tcm-shop-lines--sidebar .tcm-shop-line {
  align-items: flex-start;
  padding: 0.55rem 0;
  font-size: 0.9rem;
}

.tcm-shop-line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.tcm-shop-line-remove {
  border: 0;
  background: transparent;
  color: var(--tcm-muted, #666);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.tcm-shop-line-remove:hover {
  color: #b00020;
}

.tcm-shop-mini-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tcm-shop-mini-actions .tcm-shop-cart-link,
.tcm-shop-mini-actions .tcm-shop-checkout-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  text-align: center;
}

.tcm-shop-checkout-link.is-disabled,
.tcm-shop-cart-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .tcm-shop-list-layout {
    grid-template-columns: 1fr;
  }

  .tcm-shop-list-aside {
    position: static;
    order: -1;
  }

  .tcm-shop-cart-table thead {
    display: none;
  }

  .tcm-shop-cart-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .tcm-shop-cart-table td {
    border: 0;
    padding: 0;
  }

  .tcm-shop-cart-col-product {
    grid-column: 1 / -1;
  }

  .tcm-shop-cart-collaterals {
    justify-content: stretch;
  }

  .tcm-shop-cart-totals {
    width: 100%;
  }
}

.tcm-shop-muted {
  color: var(--tcm-muted);
  font-size: 0.9rem;
}

.tcm-shop-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tcm-shop-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tcm-shop-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.tcm-shop-field {
  margin-bottom: 0.75rem;
}

.tcm-shop-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  color: var(--tcm-muted);
}

.tcm-shop-field input,
.tcm-shop-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tcm-shop-field input:focus,
.tcm-shop-field select:focus {
  outline: none;
  border-color: #1a5c3a;
  box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.14);
}

.tcm-shop-legal {
  border: 0;
  margin: 0.85rem 0 0.35rem;
  padding: 0.75rem 0 0.15rem;
  display: flex !important;
  flex-direction: column;
  gap: 0.65rem;
  visibility: visible !important;
  opacity: 1 !important;
}

.tcm-shop-legal-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.tcm-shop-legal-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: inherit;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  visibility: visible !important;
}

.tcm-shop-legal-row input[type='checkbox'] {
  width: 1.1rem !important;
  height: 1.1rem !important;
  min-width: 1.1rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: #1a5c3a;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  opacity: 1 !important;
  position: static !important;
  clip: auto !important;
}

.tcm-shop-legal-row a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tcm-shop-legal-row a:hover,
.tcm-shop-legal-row a:focus-visible {
  color: #1a5c3a;
}

.tcm-shop-submit,
.tcm-shop-add,
.tcm-event-booking .tcm-shop-submit,
.tcm-event-booking .tcm-shop-add,
.tcm-event-booking-actions .tcm-shop-submit,
.tcm-event-booking-actions .tcm-shop-add,
.tcm-product-buy .tcm-shop-submit,
.tcm-product-buy .tcm-product-add-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 0 !important;
  border-radius: 8px;
  background: #1a5c3a !important;
  background-color: #1a5c3a !important;
  color: #fff !important;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
}

.tcm-shop-submit:hover,
.tcm-shop-add:hover,
.tcm-event-booking .tcm-shop-submit:hover,
.tcm-event-booking .tcm-shop-add:hover,
.tcm-product-buy .tcm-shop-submit:hover,
.tcm-product-buy .tcm-product-add-btn:hover {
  background: #134a2e !important;
  background-color: #134a2e !important;
  color: #fff !important;
  filter: none;
}

.tcm-shop-submit:disabled,
.tcm-shop-add:disabled,
.tcm-event-booking .tcm-shop-submit:disabled,
.tcm-event-booking .tcm-shop-add:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed;
  filter: none;
}

.tcm-shop-error {
  color: #b00020;
  margin: 0.5rem 0;
}

.tcm-shop-ship {
  margin: 1rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tcm-event-booking {
  max-width: none;
  margin: 0;
}

.tcm-event-booking-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

/* Enfold setzt oft display:!important auf select → [hidden] sonst wirkungslos */
.tcm-event-booking select[hidden],
.tcm-event-booking .tcm-slot-chip-list[hidden],
.tcm-event-booking .tcm-slot-calendar[hidden],
.tcm-event-booking #tcm-list-date-wrap[hidden],
.tcm-shop select[hidden],
.tcm-shop .tcm-slot-chip-list[hidden] {
  display: none !important;
}

.tcm-event-booking select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--tcm-border);
  border-radius: 8px;
  font: inherit;
  background: var(--tcm-surface);
}

.tcm-event-ticket-types {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.tcm-event-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.tcm-event-ticket-label {
  font-weight: 600;
}

.tcm-event-ticket-row input[type='number'] {
  width: 4.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--tcm-border);
  border-radius: 8px;
  font: inherit;
  text-align: center;
}

.tcm-event-ticket-total {
  display: flex;
  justify-content: space-between;
  margin: 0.75rem 0;
  font-size: 1.05rem;
}

.tcm-event-booking-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tcm-event-booking-actions .tcm-shop-add,
.tcm-event-booking-actions .tcm-shop-submit {
  width: 100%;
  margin-top: 0;
  text-align: center;
  background: #1a5c3a !important;
  background-color: #1a5c3a !important;
  color: #fff !important;
}

.tcm-event-booking-actions .tcm-shop-add:disabled,
.tcm-event-booking-actions .tcm-shop-submit:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
}

.tcm-shop-ok {
  color: #1a7f37;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.tcm-shop-totals-rows {
  margin-top: 0.75rem;
}

.tcm-shop-totals-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  margin: 0.2rem 0;
}

.tcm-event-vat-note {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.85rem;
}

.tcm-product-buy {
  max-width: none;
  margin: 0;
}

.tcm-product-buy-price {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.15rem;
}

.tcm-product-buy .tcm-shop-submit,
.tcm-product-buy .tcm-product-add-btn {
  width: 100%;
  margin-top: 0.75rem;
  min-height: 2.75rem;
  background: #1a5c3a !important;
  background-color: #1a5c3a !important;
  color: #fff !important;
}

.tcm-slot-view-toggle {
  display: inline-flex;
  width: 100%;
  max-width: 22rem;
  border: 1px solid var(--tcm-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--tcm-surface);
  margin-bottom: 0.75rem;
}

.tcm-slot-view-toggle button {
  flex: 1;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  color: var(--tcm-muted);
  cursor: pointer;
}

.tcm-slot-view-toggle button.is-active {
  /* Theme primary can be white — force readable selected state */
  background: #1a5c3a;
  color: #fff;
}

.tcm-slot-calendar {
  margin-bottom: 0.75rem;
}

.tcm-slot-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.tcm-slot-calendar-title {
  font-weight: 700;
  text-transform: capitalize;
}

.tcm-slot-cal-prev,
.tcm-slot-cal-next {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--tcm-border);
  border-radius: 8px;
  background: var(--tcm-surface);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.tcm-slot-calendar-weekdays,
.tcm-slot-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.tcm-slot-calendar-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--tcm-muted);
  text-transform: uppercase;
}

.tcm-slot-cal-day {
  aspect-ratio: 1;
  min-height: 2.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  padding: 0;
  color: var(--tcm-muted);
  cursor: default;
}

.tcm-slot-cal-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.tcm-slot-cal-day.is-available:not(.is-past) {
  background: rgba(26, 127, 55, 0.12);
  color: inherit;
  border-color: rgba(26, 127, 55, 0.28);
  cursor: pointer;
  font-weight: 700;
}

.tcm-slot-cal-day.is-full:not(.is-past) {
  background: rgba(180, 60, 40, 0.1);
  color: var(--tcm-muted);
  text-decoration: line-through;
}

.tcm-slot-cal-day.is-blackout,
.tcm-slot-cal-day.is-out_of_season,
.tcm-slot-cal-day.is-closed,
.tcm-slot-cal-day.is-past {
  opacity: 0.45;
}

.tcm-slot-cal-day.is-selected {
  outline: 2px solid #1a5c3a;
  outline-offset: 1px;
  background: rgba(26, 92, 58, 0.12);
  color: #1a2e24;
  font-weight: 700;
}

.tcm-slot-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.tcm-slot-cal-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.tcm-slot-cal-dot.is-available {
  background: rgba(26, 127, 55, 0.55);
}

.tcm-slot-cal-dot.is-full {
  background: rgba(180, 60, 40, 0.45);
}

.tcm-slot-cal-dot.is-blocked {
  background: rgba(26, 46, 36, 0.25);
}

.tcm-slot-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tcm-slot-chip,
.tcm-event-booking .tcm-slot-chip,
.tcm-shop .tcm-slot-chip {
  border: 1px solid rgba(26, 46, 36, 0.22) !important;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: #fff !important;
  background-color: #fff !important;
  color: #1a2e24 !important;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: none;
}

.tcm-slot-chip.is-selected,
.tcm-event-booking .tcm-slot-chip.is-selected,
.tcm-shop .tcm-slot-chip.is-selected {
  /* Theme-Primary oft #fff → Auswahl sonst unsichtbar; aktiv immer Blau */
  background: #2563eb !important;
  background-color: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
  font-weight: 600;
}

.tcm-slot-chip.is-disabled,
.tcm-slot-chip:disabled,
.tcm-event-booking .tcm-slot-chip:disabled,
.tcm-shop .tcm-slot-chip:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f3f4f6 !important;
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
}

@media (max-width: 480px) {
  .tcm-slot-cal-day {
    min-height: 2.1rem;
    font-size: 0.8rem;
  }

  .tcm-slot-chip {
    flex: 1 1 calc(50% - 0.4rem);
    text-align: center;
  }
}

/* Eisstock / hourly: Bahn buchen statt Anzahl */
.tcm-event-ticket-row--hourly {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tcm-border, rgba(0, 0, 0, 0.1));
}

.tcm-event-ticket-price--lg {
  margin-top: 0.25rem;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: inherit;
}

.tcm-bahn-toggle {
  display: inline-flex;
  border: 1px solid var(--tcm-border, rgba(0, 0, 0, 0.15));
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.tcm-bahn-toggle-btn {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--tcm-muted, #555);
}

.tcm-bahn-toggle-btn + .tcm-bahn-toggle-btn {
  border-left: 1px solid var(--tcm-border, rgba(0, 0, 0, 0.15));
}

.tcm-bahn-toggle-btn.is-active {
  background: var(--tcm-accent, #1a2e24);
  color: var(--tcm-accent-contrast, #fff);
  font-weight: 600;
}

/* Floating cart drawer (right) — hoher z-index gegen Enfold sticky header / overlays */
.tcm-cart-drawer {
  position: relative;
  z-index: 2147483000;
}

.tcm-cart-drawer[hidden],
.tcm-cart-drawer.is-empty {
  display: none !important;
}

.tcm-cart-drawer-tab {
  pointer-events: auto;
  position: fixed;
  top: 42%;
  right: 0;
  z-index: 2147483001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.85rem 0.55rem 0.95rem;
  border: 1px solid var(--tcm-border, rgba(0, 0, 0, 0.12));
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font: inherit;
  color: inherit;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.tcm-cart-drawer.is-open .tcm-cart-drawer-tab {
  right: min(22rem, 92vw);
  z-index: 2147483003;
}

.tcm-cart-drawer-tab-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-radius: 2px 2px 3px 3px;
  position: relative;
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
}

.tcm-cart-drawer-tab-icon::before {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  top: -0.35rem;
  height: 0.35rem;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.tcm-cart-drawer-tab-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tcm-cart-drawer-count {
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--tcm-accent, #1a2e24);
  color: var(--tcm-accent-contrast, #fff);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
}

.tcm-cart-drawer-backdrop {
  pointer-events: auto;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(0, 0, 0, 0.28);
  border: 0;
}

.tcm-cart-drawer-panel {
  pointer-events: auto;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2147483002;
  display: flex;
  flex-direction: column;
  width: min(22rem, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  box-sizing: border-box;
}

.tcm-cart-drawer.is-open .tcm-cart-drawer-panel {
  transform: translateX(0);
}

.tcm-cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--tcm-border, rgba(0, 0, 0, 0.1));
  flex-shrink: 0;
}

.tcm-cart-drawer-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.tcm-cart-drawer-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--tcm-muted, #666);
  padding: 0.15rem 0.35rem;
}

.tcm-cart-drawer-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.75rem 1.1rem;
  margin: 0;
}

.tcm-cart-drawer-actions {
  flex-shrink: 0;
  padding: 0.85rem 1.1rem 1.15rem;
  border-top: 1px solid var(--tcm-border, rgba(0, 0, 0, 0.1));
}

body.tcm-shop-page--checkout .tcm-cart-drawer,
body.tcm-shop-page--cart .tcm-cart-drawer {
  display: none !important;
}
