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

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #c8102e;
  outline-offset: 3px;
}

/* Empty approved child category, scoped to the Nass-Trockensauger archive. */
body.term-werkstatt-nass-trockensauger .jettools-vacuum-child {
  width: 100%;
  margin: 0 0 2rem;
}
body.term-werkstatt-nass-trockensauger .jettools-vacuum-child > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
body.term-werkstatt-nass-trockensauger .jettools-vacuum-child-list {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: 1rem;
}
body.term-werkstatt-nass-trockensauger .jettools-vacuum-child-card {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  color: #17191c;
  background: #fff;
  border: 1px solid #d9dde2;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
body.term-werkstatt-nass-trockensauger .jettools-vacuum-child-card:hover,
body.term-werkstatt-nass-trockensauger .jettools-vacuum-child-card:focus-visible {
  color: #17191c;
  border-color: #c8102e;
  outline: 3px solid rgba(200, 16, 46, .2);
  outline-offset: 2px;
}
body.term-werkstatt-nass-trockensauger .jettools-vacuum-child-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f5f6f7;
}
body.term-werkstatt-nass-trockensauger .jettools-vacuum-child-card span {
  font-weight: 700;
  line-height: 1.3;
}
@media (max-width: 480px) {
  body.term-werkstatt-nass-trockensauger .jettools-vacuum-child-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Static JET Europe entry, scoped to the Ersatzteile archive. */
body.term-ersatzteile .jettools-europe-child {
  width: 100%;
  margin: 0 0 2rem;
}
body.term-ersatzteile .jettools-europe-child > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
body.term-ersatzteile .jettools-europe-child-list {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: 1rem;
}
body.term-ersatzteile .jettools-europe-child-card {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  color: #17191c;
  background: #fff;
  border: 1px solid #d9dde2;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
body.term-ersatzteile .jettools-europe-child-card:hover,
body.term-ersatzteile .jettools-europe-child-card:focus-visible {
  color: #17191c;
  border-color: #c8102e;
  outline: 3px solid rgba(200, 16, 46, .2);
  outline-offset: 2px;
}
body.term-ersatzteile .jettools-europe-child-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: clamp(1rem, 5vw, 1.75rem);
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  background: #f5f6f7;
}
body.term-ersatzteile .jettools-europe-child-card span {
  font-weight: 700;
  line-height: 1.3;
}
body.term-ersatzteile .jettools-europe-child-card small {
  color: #4c5157;
  line-height: 1.4;
}
@media (max-width: 480px) {
  body.term-ersatzteile .jettools-europe-child-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.jt-compliance-product,
.jt-compliance-environment {
  width: min(100%, 1180px);
  margin: 2rem auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  color: #181818;
  background: #f7f7f7;
  border: 1px solid #d6d6d6;
}

.jt-compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.jt-compliance-grid article,
.jt-compliance-environment article {
  min-width: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dedede;
}

.jt-compliance-list {
  display: grid;
  grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
  gap: .45rem 1rem;
  margin: 0;
}

.jt-compliance-list dt { font-weight: 700; }
.jt-compliance-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.jt-compliance-warnings { margin-top: 1rem; }

.jt-whatsapp-privacy {
  width: min(calc(100% - 2rem), 34rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  color: #181818;
  background: #fff;
  border: 1px solid #888;
  border-radius: .25rem;
}

.jt-whatsapp-privacy::backdrop { background: rgb(0 0 0 / 65%); }
.jt-whatsapp-privacy form { padding: clamp(1.25rem, 4vw, 2rem); }
.jt-whatsapp-privacy h2 { margin-top: 0; }
.jt-whatsapp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.jt-whatsapp-actions > * {
  min-height: 44px;
  padding: .7rem 1rem;
  border: 2px solid #1c1c1c;
  border-radius: .2rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.jt-whatsapp-actions button { color: #181818; background: #fff; }
.jt-whatsapp-actions a { color: #fff; background: #181818; }

@media (max-width: 480px) {
  .jt-compliance-list { grid-template-columns: 1fr; gap: .15rem; }
  .jt-compliance-list dd { margin-bottom: .65rem; }
  .jt-whatsapp-actions { flex-direction: column; }
  .jt-whatsapp-actions > * { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .jt-compliance-product *,
  .jt-compliance-environment *,
  .jt-whatsapp-privacy * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Wide accessory detail layout. Machine pages are deliberately out of scope. */
body.jettools-accessory-layout .site-main,
body.jettools-accessory-layout .woocommerce-shell,
body.jettools-accessory-layout div.product {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

body.jettools-accessory-layout div.product .jettools-product-details {
  clear: both;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 32px 0 0;
  padding: 30px 0 max(140px, calc(96px + env(safe-area-inset-bottom)));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.jettools-accessory-layout .jettools-product-details > .jettools-product-nav,
body.jettools-accessory-layout .jettools-product-details > #jettools-overview,
body.jettools-accessory-layout .jettools-product-details > .jt-compliance-product {
  grid-column: 1 / -1;
}

body.jettools-accessory-layout .jettools-product-details > section,
body.jettools-accessory-layout .jettools-product-details > .jt-compliance-product,
body.jettools-accessory-layout .jettools-product-details .jettools-detail-grid > article,
body.jettools-accessory-layout .jettools-product-details .jt-compliance-grid > article {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

body.jettools-accessory-layout .jettools-product-details > .jt-compliance-product {
  padding: 32px;
  border: 1px solid #d9dde2;
  border-radius: 12px;
  background: #fff;
}

body.jettools-accessory-layout .jettools-lower-safety[hidden] { display: none !important; }

body.jettools-accessory-layout .jtcr-section-toggle {
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid #222;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

body.jettools-accessory-layout .jtcr-section-toggle:hover,
body.jettools-accessory-layout .jtcr-section-toggle:focus-visible {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
  outline: 3px solid #111;
  outline-offset: 3px;
}

@media (max-width: 820px) {
  body.jettools-accessory-layout div.product .jettools-product-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-bottom: max(150px, calc(110px + env(safe-area-inset-bottom)));
  }
  body.jettools-accessory-layout .jettools-product-details > * { grid-column: 1 / -1; }
  body.jettools-accessory-layout .jettools-product-details > .jt-compliance-product { padding: 22px; }
}
