@media (max-width: 980px) {
  body:has(#et_mobile_nav_menu .mobile_nav.opened) .trp-floating-switcher,
  body:has(#et_mobile_nav_menu .mobile_nav.opened) #trp-floater-ls {
    display: none !important;
  }
}

@media (max-width: 767px) {
  html body.postid-1270 #main-content > .container {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
  }

  /* Divi's module-level physical margins override logical-margin resets. */
  html body.single-product.et-db #et-boc .et-l .et_pb_wc_tabs.et_pb_tabs {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-product .et_pb_wc_tabs {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  body.single-product .et_pb_wc_tabs :is(
    .et_pb_tabs_controls,
    .et_pb_all_tabs,
    .et_pb_tab,
    .et_pb_tab_content
  ) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  body.single-product #jp-relatedposts {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
    overflow: hidden;
  }

  body.single-product #jp-relatedposts .jp-relatedposts-items.jp-relatedposts-items-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
  }

  body.single-product #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 !important;
  }

  body.single-product #jp-relatedposts .jp-relatedposts-items-visual img.jp-relatedposts-post-img {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: #fff;
  }

  body.single-product #jp-relatedposts .jp-relatedposts-post-title {
    margin: 10px 0 0;
    overflow-wrap: anywhere;
  }
}

body.single-product #jp-relatedposts .jp-relatedposts-post-img {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

body.single-product .ywtm_faqs_content .ywtm_faq_item {
  background: #fff;
  border: 1px solid #dfe9df;
}

body.single-product .ywtm_faqs_content .ywtm_faq_item.opened {
  background: #f6fbf3;
}

body.single-product .ywtm_faqs_content .ywtm_faq_item .ywtm_faq_header {
  color: #187d3b;
}

body.single-product .ywtm_faqs_content .ywtm_faq_item .ywtm_faq_header:hover {
  background: #edf6e8;
}

body .comment_container .cr-avatar.tcmvet-review-initials {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ccd1d4;
  color: #4d5d64;
  font: 500 24px/1 Arial, sans-serif;
  user-select: none;
}

/* AffiliateWP retains its native form fields, nonces and submit processing. */
body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) #main-content > .container {
  width: calc(100% - 32px);
  max-width: 760px;
  padding-bottom: 40px;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #dfe9df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px #163e2310;
  box-sizing: border-box;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form legend {
  width: 100%;
  margin-bottom: 20px;
  color: #187d3b;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form p {
  margin: 0 0 18px;
  padding: 0;
  line-height: 1.55;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form label {
  display: block;
  margin-bottom: 7px;
  color: #243e2a;
  font-weight: 600;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form :is(
  input[type="text"], input[type="email"], input[type="url"],
  input[type="password"], textarea, select
) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c8d7ca;
  border-radius: 8px;
  background: #fff;
  color: #25362a;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form textarea {
  min-height: 130px;
  resize: vertical;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form :is(input, textarea, select):focus-visible {
  outline: 2px solid #187d3b;
  outline-offset: 2px;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  accent-color: #187d3b;
  vertical-align: middle;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form input[readonly] {
  background: #f4f7f3;
}

body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form input[type="submit"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid #7cc644;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
}

.tcmvet-affiliate-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px;
}

.tcmvet-affiliate-nav a,
.tcmvet-affiliate-return a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px solid #7cc644;
  border-radius: 8px;
  line-height: 1.5;
}

.tcmvet-affiliate-nav a[aria-current="page"] {
  background-color: #187d3b !important;
  border-color: #187d3b !important;
  color: #fff !important;
}

body.page-id-20760 .entry-content {
  padding-bottom: 28px;
  overflow-wrap: break-word;
}

.tcmvet-affiliate-return {
  margin: 24px 0;
}

.tcmvet-affiliate-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tcmvet-affiliate-entry .affwp-form {
  margin: 0 !important;
}

.tcmvet-affiliate-section {
  min-width: 0;
  scroll-margin-top: 96px;
}

body.page-id-20786 .tcmvet-affiliate-nav {
  position: relative;
}

/* The consent label must wrap, not form one oversized tap target on mobile. */
body:is(.page-id-20786, .page-id-20750, .tcmvet-affiliate-page) .affwp-form label[for*="tos"] {
  line-height: 1.6;
  overflow-wrap: break-word;
}

.tcmvet-affiliate-intro {
  margin: 8px 0 24px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #dfe9df;
  border-radius: 16px;
  background: #f6fbf3;
  color: #293f2e;
  line-height: 1.7;
}
.tcmvet-affiliate-intro h2, .tcmvet-affiliate-intro h3 { color: #187d3b; }
.tcmvet-affiliate-intro ul { padding-inline-start: 24px; }
.tcmvet-affiliate-intro li { margin-bottom: 10px; }
body.tcmvet-affiliate-page #main-content > .container { padding-top: 36px; }