/**
 * bebarefoot.eu — category SEO description
 * Global, responsive styling for Shoptet category bottom descriptions.
 */

body.type-category .category__secondDescription {
  width: min(100%, 1080px);
  max-width: 1080px;
  margin: 72px auto 0;
  padding: 52px 24px 68px;
  border: 0 !important;
  border-top: 1px solid #dedad4 !important;
  background: #fff !important;
  color: #6b6762 !important;
  font-family: "Rolen DT", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  text-align: left;
}

/* Neutralise legacy colours and backgrounds without affecting the rest of the shop. */
body.type-category .category__secondDescription :where(
  article,
  section,
  div,
  header,
  footer,
  p,
  span,
  font,
  ul,
  ol,
  li
) {
  background-color: transparent !important;
  color: inherit !important;
  font-family: inherit !important;
}

body.type-category .category__secondDescription :where(h2, h3, h4) {
  max-width: 920px;
  color: #211f1d !important;
  font-family: "Rolen DT", sans-serif !important;
  text-align: left !important;
  text-transform: none !important;
}

body.type-category .category__secondDescription h2 {
  margin: 56px 0 18px;
  font-size: clamp(29px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.16;
}

body.type-category .category__secondDescription h2:first-child,
body.type-category .category__secondDescription > :first-child h2:first-child {
  margin-top: 0;
}

body.type-category .category__secondDescription h3 {
  margin: 40px 0 14px;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}

body.type-category .category__secondDescription h4 {
  margin: 30px 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

body.type-category .category__secondDescription p {
  max-width: 920px;
  margin: 0 0 20px;
}

body.type-category .category__secondDescription :where(strong, b) {
  color: #211f1d !important;
  font-weight: 600;
}

body.type-category .category__secondDescription a {
  color: #211f1d !important;
  font-weight: 500;
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: #8a857f !important;
  text-underline-offset: 4px;
  transition: color .16s ease, text-decoration-color .16s ease;
}

body.type-category .category__secondDescription a:hover,
body.type-category .category__secondDescription a:focus-visible {
  color: #c93622 !important;
  text-decoration-color: currentColor !important;
}

body.type-category .category__secondDescription :where(ul, ol) {
  max-width: 920px;
  margin: 18px 0 28px;
  padding-left: 25px;
}

body.type-category .category__secondDescription li {
  margin: 0 0 8px;
  padding-left: 4px;
}

body.type-category .category__secondDescription img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 34px 0;
  border-radius: 0 !important;
}

body.type-category .category__secondDescription blockquote {
  max-width: 920px;
  margin: 38px 0;
  padding: 4px 0 4px 24px;
  border: 0 !important;
  border-left: 2px solid #211f1d !important;
  background: transparent !important;
  color: #211f1d !important;
  font-size: 20px;
  line-height: 1.5;
}

/* Convert legacy coloured callouts with inline left borders to the new visual language. */
body.type-category .category__secondDescription [style*="border-left"] {
  margin: 32px 0 !important;
  padding: 8px 0 8px 22px !important;
  border: 0 !important;
  border-left: 2px solid #211f1d !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #6b6762 !important;
}

body.type-category .category__secondDescription table {
  width: 100% !important;
  margin: 34px 0;
  border: 0 !important;
  border-collapse: collapse;
  background: #fff !important;
  color: #211f1d !important;
  font-family: inherit !important;
}

body.type-category .category__secondDescription :where(th, td) {
  padding: 13px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #dedad4 !important;
  background: transparent !important;
  color: inherit !important;
  text-align: left !important;
}

body.type-category .category__secondDescription th {
  color: #211f1d !important;
  font-weight: 600;
}

body.type-category .category__secondDescription hr {
  height: 1px;
  margin: 48px 0;
  border: 0 !important;
  background: #dedad4 !important;
}

@media (min-width: 992px) {
  body.type-category .category__secondDescription {
    margin-top: 96px;
    padding: 64px 0 88px;
  }

  body.type-category .category__secondDescription > p:first-of-type,
  body.type-category .category__secondDescription > :where(div, section, article) > h2:first-child + p {
    max-width: 980px;
    color: #211f1d !important;
    font-size: 21px;
    line-height: 1.48;
  }
}

@media (max-width: 767px) {
  body.type-category .category__secondDescription {
    margin-top: 60px;
    padding: 42px 20px 60px;
    font-size: 15px;
    line-height: 1.68;
  }

  body.type-category .category__secondDescription h2 {
    margin-top: 44px;
  }

  body.type-category .category__secondDescription h3 {
    margin-top: 34px;
  }

  body.type-category .category__secondDescription table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
