/* THOTIKA: individual brand page. */
#manufacturer #main .thotika-manufacturer__header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 12px 0 28px;
  padding: 28px;
  border: 1px solid #dce7e3;
  border-radius: 20px;
  background: #fff;
  color: #114343;
}

.thotika-manufacturer__logo-frame {
  display: flex;
  flex: 0 0 208px;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border: 1px solid #e0e8e4;
  border-radius: 14px;
  background: #fff;
}

.thotika-manufacturer__logo-frame[hidden] {
  display: none;
}

.thotika-manufacturer__logo {
  display: block;
  width: 176px;
  max-width: 100%;
  height: 88px;
  object-fit: contain;
}

.thotika-manufacturer__intro {
  flex: 1;
  min-width: 0;
}

body#manufacturer #main .thotika-manufacturer__header h1 {
  margin: 0;
  color: #114343;
  font-family: "CabinetGrotesk", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  text-transform: none;
  overflow-wrap: anywhere;
}

#manufacturer-short_description {
  margin-top: 12px;
}

#manufacturer #main .thotika-manufacturer__description {
  margin: 36px 0 48px;
  padding: 32px;
  border: 1px solid #dce7e3;
  border-radius: 20px;
  background: #fff;
}

#manufacturer #main .thotika-manufacturer__rich-text {
  color: #114343;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#manufacturer #main .thotika-manufacturer__rich-text p {
  margin: 0 0 16px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

#manufacturer #main .thotika-manufacturer__rich-text h2 {
  margin: 28px 0 12px;
  color: #114343;
  font-family: "CabinetGrotesk", sans-serif;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

#manufacturer #main .thotika-manufacturer__rich-text h3,
#manufacturer #main .thotika-manufacturer__rich-text h4 {
  margin: 22px 0 10px;
  color: #114343;
  font-family: "CabinetGrotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

/* Override the theme's flex layout on brand ULs only inside editorial text. */
#manufacturer #main .thotika-manufacturer__rich-text ul,
#manufacturer #main .thotika-manufacturer__rich-text ol {
  display: block;
  margin: 0 0 20px;
  padding: 0 0 0 24px;
  list-style-position: outside;
  text-align: left;
}

#manufacturer #main .thotika-manufacturer__rich-text ul {
  list-style-type: disc;
}

#manufacturer #main .thotika-manufacturer__rich-text ol {
  list-style-type: decimal;
}

#manufacturer #main .thotika-manufacturer__rich-text li {
  display: list-item;
  width: auto;
  margin: 0;
  padding: 0 0 0 4px;
  color: inherit;
  line-height: inherit;
}

#manufacturer #main .thotika-manufacturer__rich-text li + li {
  margin-top: 8px;
}

#manufacturer #main .thotika-manufacturer__rich-text li::marker {
  color: #238367;
  font-weight: 700;
}

#manufacturer #main .thotika-manufacturer__rich-text li > ul,
#manufacturer #main .thotika-manufacturer__rich-text li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}

#manufacturer #main .thotika-manufacturer__rich-text a {
  color: #114343;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#manufacturer #main .thotika-manufacturer__rich-text a:hover {
  color: #238367;
}

#manufacturer #main .thotika-manufacturer__rich-text a:focus-visible {
  outline: 2px solid #114343;
  outline-offset: 3px;
}

#manufacturer #main .thotika-manufacturer__rich-text img {
  max-width: 100%;
  height: auto;
}

#manufacturer #main .thotika-manufacturer__rich-text > :first-child {
  margin-top: 0;
}

#manufacturer #main .thotika-manufacturer__rich-text > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  #manufacturer #main .thotika-manufacturer__header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: 4px;
    padding: 20px;
    border-radius: 16px;
  }

  .thotika-manufacturer__logo-frame {
    flex: none;
    align-self: flex-start;
    max-width: 100%;
    padding: 12px;
  }

  .thotika-manufacturer__logo {
    width: 144px;
    height: 72px;
  }

  #manufacturer #main .thotika-manufacturer__description {
    margin: 28px 0 32px;
    padding: 20px;
    border-radius: 16px;
  }
}

@media (max-width: 359px) {
  /* Two existing product cards cannot fit the narrowest phone screens. */
  #manufacturer #products .products {
    grid-template-columns: minmax(0, 1fr);
  }
}
