:root {
  --tf-pdp-v2-navy: #102a43;
  --tf-pdp-v2-blue: #0b63f3;
  --tf-pdp-v2-blue-dark: #084dbd;
  --tf-pdp-v2-ink: #172b3f;
  --tf-pdp-v2-muted: #5d6f80;
  --tf-pdp-v2-line: #d6e0e9;
  --tf-pdp-v2-surface: #ffffff;
  --tf-pdp-v2-canvas: #eef3f7;
  --tf-pdp-v2-focus: #ffbf47;
  --tf-pdp-v2-sticky-top: 0px;
}

body.admin-bar.tf-pdp-v2-enabled {
  --tf-pdp-v2-sticky-top: 32px;
}

body.tf-pdp-v2-enabled {
  color: var(--tf-pdp-v2-ink);
}

body.tf-pdp-v2-enabled .site-main {
  overflow: clip;
}

body.tf-pdp-v2-enabled .woocommerce-tabs,
body.tf-pdp-v2-enabled .related.products,
body.tf-pdp-v2-enabled .up-sells.upsells.products,
body.tf-pdp-v2-enabled .entry-summary > .product_meta,
body.tf-pdp-v2-enabled .entry-summary > .tebaoflex-product-action-row,
body.tf-pdp-v2-enabled .entry-summary > .tebaoflex-product-inquiry,
body.tf-pdp-v2-enabled .entry-summary > .Tebaoflex-product-inquiry,
body.tf-pdp-v2-enabled .entry-summary > a.product-pdf-btn,
body.tf-pdp-v2-enabled .entry-summary > p > a.product-pdf-btn,
body.tf-pdp-v2-enabled .entry-summary > .product-category-button-wrapper {
  display: none !important;
}

body.tf-pdp-v2-enabled div.product > .product-entry-wrapper,
body.tf-pdp-v2-enabled div.product .product-entry-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr) !important;
  align-items: start !important;
  gap: clamp(42px, 6vw, 86px) !important;
  max-width: 1240px;
  margin-inline: auto;
  padding-block: clamp(22px, 4vw, 58px) clamp(48px, 7vw, 88px);
}

body.tf-pdp-v2-enabled .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0 !important;
}

body.tf-pdp-v2-enabled .woocommerce-product-gallery__wrapper {
  margin: 0 !important;
  background: #f5f7f9;
  border: 1px solid var(--tf-pdp-v2-line);
}

body.tf-pdp-v2-enabled .woocommerce-product-gallery__image a {
  display: grid;
  min-height: clamp(460px, 48vw, 650px);
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
}

body.tf-pdp-v2-enabled .woocommerce-product-gallery__image img {
  width: 100% !important;
  max-height: 570px;
  object-fit: contain;
}

body.tf-pdp-v2-enabled .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 76px));
  gap: 10px;
  margin-top: 12px !important;
}

body.tf-pdp-v2-enabled .woocommerce-product-gallery .flex-control-thumbs li {
  width: auto !important;
  margin: 0 !important;
}

body.tf-pdp-v2-enabled .woocommerce-product-gallery .flex-control-thumbs img {
  border: 2px solid transparent;
}

body.tf-pdp-v2-enabled .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border-color: var(--tf-pdp-v2-blue);
}

body.tf-pdp-v2-enabled .summary.entry-summary {
  position: sticky;
  top: calc(var(--tf-pdp-v2-sticky-top) + 28px);
  width: 100% !important;
  margin: 0 !important;
}

.tf-pdp-v2-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 18px;
  color: var(--tf-pdp-v2-blue-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tf-pdp-v2-kicker span + span::before {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 14px;
  background: #9eafbf;
  content: "";
  vertical-align: middle;
}

body.tf-pdp-v2-enabled .entry-summary .product_title {
  max-width: 18ch;
  margin: 0 0 20px !important;
  color: var(--tf-pdp-v2-navy);
  font-size: clamp(34px, 3.35vw, 58px) !important;
  font-weight: 760 !important;
  letter-spacing: -0.035em;
  line-height: 1.06 !important;
  text-wrap: balance;
}

body.tf-pdp-v2-enabled .woocommerce-product-details__short-description {
  color: #334a5e;
  font-size: 16px;
  line-height: 1.7;
}

body.tf-pdp-v2-enabled .woocommerce-product-details__short-description > p:first-child {
  margin: 0 0 22px;
  font-size: 17px;
}

body.tf-pdp-v2-enabled .woocommerce-product-details__short-description ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tf-pdp-v2-line);
  list-style: none;
}

body.tf-pdp-v2-enabled .woocommerce-product-details__short-description li {
  min-width: 0;
  margin: 0;
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--tf-pdp-v2-line);
  color: var(--tf-pdp-v2-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.tf-pdp-v2-enabled .woocommerce-product-details__short-description li:nth-child(even) {
  padding-right: 0;
  padding-left: 14px;
  border-left: 1px solid var(--tf-pdp-v2-line);
}

body.tf-pdp-v2-enabled .woocommerce-product-details__short-description li strong {
  display: block;
  margin-bottom: 3px;
  color: var(--tf-pdp-v2-navy);
  font-size: 12px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.tf-pdp-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tf-pdp-v2-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 21px;
  border: 2px solid var(--tf-pdp-v2-blue);
  border-radius: 2px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tf-pdp-v2-button .dashicons {
  width: 19px;
  height: 19px;
  font-size: 19px;
}

.tf-pdp-v2-button--primary {
  min-width: 190px;
  background: var(--tf-pdp-v2-blue);
  color: #ffffff !important;
}

.tf-pdp-v2-button--primary:hover {
  border-color: var(--tf-pdp-v2-blue-dark);
  background: var(--tf-pdp-v2-blue-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.tf-pdp-v2-button--secondary {
  background: #ffffff;
  color: var(--tf-pdp-v2-navy) !important;
}

.tf-pdp-v2-button--secondary:hover {
  background: #edf4ff;
  color: var(--tf-pdp-v2-blue-dark) !important;
  transform: translateY(-1px);
}

.tf-pdp-v2-button:focus-visible,
.tf-pdp-v2-anchor-nav a:focus-visible,
.tf-pdp-v2-text-link:focus-visible,
.tf-pdp-v2-upsell-card a:focus-visible,
.tf-pdp-v2-meta summary:focus-visible,
.tf-pdp-v2-rfq input:focus-visible,
.tf-pdp-v2-rfq textarea:focus-visible,
.tf-pdp-v2-rfq button:focus-visible,
.tf-pdp-v2-rfq input[type="submit"]:focus-visible,
.tf-pdp-v2-table-wrap:focus-visible {
  outline: 3px solid var(--tf-pdp-v2-focus) !important;
  outline-offset: 3px;
}

.tf-pdp-v2-meta {
  margin-top: 18px;
  border-top: 1px solid var(--tf-pdp-v2-line);
}

.tf-pdp-v2-meta summary {
  position: relative;
  min-height: 44px;
  padding: 13px 28px 11px 0;
  color: var(--tf-pdp-v2-navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.tf-pdp-v2-meta summary::-webkit-details-marker {
  display: none;
}

.tf-pdp-v2-meta summary::after {
  position: absolute;
  top: 11px;
  right: 2px;
  color: var(--tf-pdp-v2-blue);
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.tf-pdp-v2-meta[open] summary::after {
  content: "−";
}

.tf-pdp-v2-meta dl {
  margin: 0 0 4px;
  padding: 4px 0 14px;
}

.tf-pdp-v2-meta dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid #e7edf2;
  font-size: 13px;
}

.tf-pdp-v2-meta dt {
  color: var(--tf-pdp-v2-muted);
  font-weight: 600;
}

.tf-pdp-v2-meta dd {
  margin: 0;
  color: var(--tf-pdp-v2-navy);
}

.tf-pdp-v2-content {
  width: 100%;
  max-width: none;
  margin-top: 0;
  clear: both;
}

.tf-pdp-v2-anchor-nav {
  position: sticky;
  z-index: 80;
  top: var(--tf-pdp-v2-sticky-top) !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid #cbd5df;
  border-bottom: 1px solid #c5d0dc;
  background: #e7ebef;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.16);
}

.tf-pdp-v2-anchor-nav__inner {
  display: flex;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  background: #2a72c4;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.55) #1c5faf;
}

.tf-pdp-v2-anchor-nav a {
  position: relative;
  display: inline-flex;
  flex: 1 0 178px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-right: 1px solid rgba(10, 45, 104, 0.68);
  background: #2a72c4;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-decoration: none !important;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 160ms ease;
}

.tf-pdp-v2-anchor-nav a:first-child {
  border-left: 1px solid rgba(10, 45, 104, 0.68);
}

.tf-pdp-v2-anchor-nav a:hover {
  background: #2368b5;
  color: #ffffff !important;
}

.tf-pdp-v2-anchor-nav a.is-active {
  background: #17388f;
  color: #ffffff !important;
}

.tf-pdp-v2-sections {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(48px, 7vw, 92px) 24px;
  background: var(--tf-pdp-v2-canvas);
}

.tf-pdp-v2-card {
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: clamp(28px, 5vw, 66px);
  border: 1px solid #dbe4ec;
  border-radius: 4px;
  background: var(--tf-pdp-v2-surface);
  box-shadow: 0 15px 40px rgba(30, 55, 77, 0.06);
  scroll-margin-top: calc(var(--tf-pdp-v2-sticky-top) + 78px);
}

.tf-pdp-v2-card:last-child {
  margin-bottom: 0;
}

.tf-pdp-v2-card__eyebrow,
.tf-pdp-v2-section-heading > span,
.tf-pdp-v2-rfq__copy > span {
  display: block;
  margin-bottom: 17px;
  color: var(--tf-pdp-v2-blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tf-pdp-v2-prose {
  color: #344b5e;
  font-size: 16px;
  line-height: 1.75;
}

.tf-pdp-v2-prose > :first-child {
  margin-top: 0 !important;
}

.tf-pdp-v2-prose > :last-child {
  margin-bottom: 0 !important;
}

.tf-pdp-v2-prose h2 {
  max-width: 28ch;
  margin: 48px 0 18px;
  color: var(--tf-pdp-v2-navy);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

.tf-pdp-v2-prose h3 {
  margin: 34px 0 12px;
  color: var(--tf-pdp-v2-navy);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
}

.tf-pdp-v2-prose p,
.tf-pdp-v2-prose ul,
.tf-pdp-v2-prose ol {
  max-width: 920px;
}

.tf-pdp-v2-prose ul,
.tf-pdp-v2-prose ol {
  padding-left: 22px;
}

.tf-pdp-v2-prose li {
  margin-bottom: 8px;
}

.tf-pdp-v2-table-wrap {
  max-width: 100%;
  margin: 24px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--tf-pdp-v2-line);
  -webkit-overflow-scrolling: touch;
}

.tf-pdp-v2-table-wrap table {
  width: 100%;
  min-width: 720px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
}

.tf-pdp-v2-table-wrap th,
.tf-pdp-v2-table-wrap td {
  padding: 13px 15px !important;
  border: 0 !important;
  border-right: 1px solid var(--tf-pdp-v2-line) !important;
  border-bottom: 1px solid var(--tf-pdp-v2-line) !important;
  vertical-align: top;
  line-height: 1.55 !important;
}

.tf-pdp-v2-table-wrap tr:last-child td {
  border-bottom: 0 !important;
}

.tf-pdp-v2-table-wrap th:last-child,
.tf-pdp-v2-table-wrap td:last-child {
  border-right: 0 !important;
}

.tf-pdp-v2-table-wrap th {
  background: #eaf1f7 !important;
  color: var(--tf-pdp-v2-navy) !important;
  font-weight: 750 !important;
}

.tf-pdp-v2-table-wrap tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.tf-pdp-v2-upsells {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(58px, 8vw, 104px) 24px;
  background: #ffffff;
}

.tf-pdp-v2-section-heading {
  max-width: 1180px;
  margin: 0 auto 34px;
}

.tf-pdp-v2-section-heading h2 {
  margin: 0 0 13px;
  color: var(--tf-pdp-v2-navy);
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.tf-pdp-v2-section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--tf-pdp-v2-muted);
  font-size: 16px;
  line-height: 1.65;
}

.tf-pdp-v2-upsells__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.tf-pdp-v2-upsell-card {
  min-width: 0;
  border: 1px solid var(--tf-pdp-v2-line);
  background: #ffffff;
}

.tf-pdp-v2-upsell-card__image {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--tf-pdp-v2-line);
  background: #f4f7f9;
}

.tf-pdp-v2-upsell-card__image img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
}

.tf-pdp-v2-upsell-card__body {
  padding: 24px;
}

.tf-pdp-v2-upsell-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.32;
}

.tf-pdp-v2-upsell-card h3 a {
  color: var(--tf-pdp-v2-navy);
  text-decoration: none;
}

.tf-pdp-v2-upsell-card h3 a:hover {
  color: var(--tf-pdp-v2-blue-dark);
}

.tf-pdp-v2-upsell-card p {
  min-height: 72px;
  margin: 0 0 18px;
  color: var(--tf-pdp-v2-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tf-pdp-v2-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--tf-pdp-v2-blue-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
}

.tf-pdp-v2-text-link .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.tf-pdp-v2-rfq {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(62px, 8vw, 112px) 24px;
  overflow: hidden;
  background: #0b223a;
  scroll-margin-top: calc(var(--tf-pdp-v2-sticky-top) + 78px);
}

.tf-pdp-v2-rfq::before,
.tf-pdp-v2-rfq::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.tf-pdp-v2-rfq::before {
  background-image: url("/wp-content/uploads/2026/07/tebaoflex-solutions-workshop-production.webp");
  background-position: center;
  background-size: cover;
  opacity: 0.85;
}

.tf-pdp-v2-rfq::after {
  background: rgba(7, 30, 53, 0.68);
}

.tf-pdp-v2-rfq__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  gap: clamp(48px, 7vw, 92px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.tf-pdp-v2-rfq__copy {
  padding-top: 20px;
  color: #d7e5f2;
}

.tf-pdp-v2-rfq__copy > span {
  color: #79afff;
}

.tf-pdp-v2-rfq__copy h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

.tf-pdp-v2-rfq__copy p,
.tf-pdp-v2-rfq__copy li {
  font-size: 16px;
  line-height: 1.7;
}

.tf-pdp-v2-rfq__copy ul {
  margin: 24px 0 0;
  padding-left: 20px;
}

.tf-pdp-v2-rfq__form {
  padding: clamp(26px, 4vw, 42px);
  border-top: 4px solid var(--tf-pdp-v2-blue);
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.tf-pdp-v2-rfq__form .wpcf7-form {
  display: block;
}

.tf-pdp-v2-rfq__form .tb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px;
}

.tf-pdp-v2-rfq__form .tb-form-field,
.tf-pdp-v2-rfq__form .tb-form-action,
.tf-pdp-v2-rfq__form .tb-form-field > p,
.tf-pdp-v2-rfq__form .tb-form-action > p {
  min-width: 0;
  margin: 0;
}

.tf-pdp-v2-rfq__form .tb-form-full {
  grid-column: 1 / -1;
}

.tf-pdp-v2-rfq__form .tb-form-field label,
.tf-pdp-v2-rfq__form .wpcf7-form-control-wrap {
  display: block;
}

.tf-pdp-v2-rfq__form .tb-form-label {
  display: block;
  margin-bottom: 7px;
  color: var(--tf-pdp-v2-navy);
  font-size: 13px;
  font-weight: 750;
}

.tf-pdp-v2-rfq__form .tb-form-action {
  margin-top: 18px;
}

.tf-pdp-v2-rfq__form .tb-form-note {
  margin: 12px 0 0;
  color: var(--tf-pdp-v2-muted);
  font-size: 12px;
  line-height: 1.55;
}

.tf-pdp-v2-rfq__form .wpcf7-response-output {
  margin-top: 16px !important;
}

.tf-pdp-v2-field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--tf-pdp-v2-navy);
  font-size: 13px;
  font-weight: 750;
}

.tf-pdp-v2-rfq input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.tf-pdp-v2-rfq textarea,
.tf-pdp-v2-rfq select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #b8c6d2;
  border-radius: 2px;
  background: #ffffff;
  color: var(--tf-pdp-v2-ink);
  font-size: 15px;
}

.tf-pdp-v2-rfq textarea {
  min-height: 132px;
  resize: vertical;
}

.tf-pdp-v2-rfq input:not([type="submit"]):focus,
.tf-pdp-v2-rfq textarea:focus,
.tf-pdp-v2-rfq select:focus {
  border-color: var(--tf-pdp-v2-blue);
  box-shadow: 0 0 0 3px rgba(11, 99, 243, 0.13);
}

.tf-pdp-v2-rfq input[type="submit"],
.tf-pdp-v2-rfq button[type="submit"] {
  min-height: 50px;
  margin: 0;
  padding: 12px 24px;
  border: 2px solid var(--tf-pdp-v2-blue) !important;
  border-radius: 2px;
  background: var(--tf-pdp-v2-blue) !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.tf-pdp-v2-rfq input[type="submit"]:hover,
.tf-pdp-v2-rfq button[type="submit"]:hover {
  border-color: var(--tf-pdp-v2-blue-dark) !important;
  background: var(--tf-pdp-v2-blue-dark) !important;
}

.tf-pdp-v2-rfq .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #a51d2d;
  font-size: 13px;
}

.tf-pdp-v2-rfq .wpcf7-response-output {
  margin: 0 !important;
  padding: 12px 14px !important;
  border-width: 1px !important;
  color: var(--tf-pdp-v2-navy);
}

@media (max-width: 1024px) {
  body.tf-pdp-v2-enabled .tf-header-quote {
    display: none !important;
  }

  body.tf-pdp-v2-enabled div.product > .product-entry-wrapper,
  body.tf-pdp-v2-enabled div.product .product-entry-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr) !important;
    gap: 38px !important;
  }

  body.tf-pdp-v2-enabled .entry-summary .product_title {
    font-size: clamp(32px, 4.2vw, 44px) !important;
  }

  body.tf-pdp-v2-enabled .woocommerce-product-details__short-description ul {
    grid-template-columns: 1fr;
  }

  body.tf-pdp-v2-enabled .woocommerce-product-details__short-description li,
  body.tf-pdp-v2-enabled .woocommerce-product-details__short-description li:nth-child(even) {
    padding: 12px 0;
    border-left: 0;
  }

  .tf-pdp-v2-rfq__inner {
    grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
    gap: 42px;
  }
}

@media (max-width: 767px) {
  body.tf-pdp-v2-enabled .buttonizer-button {
    display: none !important;
  }

  body.admin-bar.tf-pdp-v2-enabled {
    --tf-pdp-v2-sticky-top: 46px;
  }

  body.tf-pdp-v2-enabled div.product > .product-entry-wrapper,
  body.tf-pdp-v2-enabled div.product .product-entry-wrapper {
    display: block !important;
    padding-block: 18px 54px;
  }

  body.tf-pdp-v2-enabled .woocommerce-product-gallery {
    margin-bottom: 34px !important;
  }

  body.tf-pdp-v2-enabled .woocommerce-product-gallery__image a {
    min-height: 360px;
    padding: 24px;
  }

  body.tf-pdp-v2-enabled .summary.entry-summary {
    position: static;
  }

  body.tf-pdp-v2-enabled .entry-summary .product_title {
    max-width: none;
    font-size: clamp(32px, 10vw, 42px) !important;
  }

  .tf-pdp-v2-actions {
    align-items: stretch;
  }

  .tf-pdp-v2-button {
    flex: 1 1 100%;
    width: 100%;
  }

  .tf-pdp-v2-anchor-nav__inner {
    padding-inline: 0;
  }

  .tf-pdp-v2-anchor-nav a {
    flex: 0 0 152px;
    min-height: 52px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .tf-pdp-v2-sections,
  .tf-pdp-v2-upsells,
  .tf-pdp-v2-rfq {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tf-pdp-v2-card {
    margin-bottom: 16px;
    padding: 26px 20px;
  }

  .tf-pdp-v2-prose {
    font-size: 15px;
    line-height: 1.68;
  }

  .tf-pdp-v2-prose h2 {
    margin-top: 36px;
    font-size: 28px;
  }

  .tf-pdp-v2-table-wrap {
    width: calc(100% + 4px);
    margin-left: -2px;
  }

  .tf-pdp-v2-upsells__grid {
    grid-template-columns: 1fr;
  }

  .tf-pdp-v2-upsell-card {
    display: grid;
    grid-template-columns: minmax(115px, 0.7fr) minmax(0, 1.3fr);
  }

  .tf-pdp-v2-upsell-card__image {
    min-height: 100%;
    padding: 14px;
    border-right: 1px solid var(--tf-pdp-v2-line);
    border-bottom: 0;
  }

  .tf-pdp-v2-upsell-card__body {
    padding: 20px;
  }

  .tf-pdp-v2-upsell-card p {
    min-height: 0;
  }

  .tf-pdp-v2-rfq__inner {
    display: block;
  }

  .tf-pdp-v2-rfq__copy {
    margin-bottom: 34px;
    padding-top: 0;
  }

  .tf-pdp-v2-rfq__form {
    padding: 24px 18px;
  }

  .tf-pdp-v2-rfq__form .wpcf7-form {
    display: block;
  }

  .tf-pdp-v2-rfq__form .tb-form-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .tf-pdp-v2-rfq__form .tb-form-full {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  body.tf-pdp-v2-enabled .woocommerce-product-gallery__image a {
    min-height: 320px;
  }

  .tf-pdp-v2-upsell-card {
    display: block;
  }

  .tf-pdp-v2-upsell-card__image {
    min-height: 200px;
    border-right: 0;
    border-bottom: 1px solid var(--tf-pdp-v2-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  .tf-pdp-v2-button {
    transition: none;
  }
}

/* In-page HD YouTube Video Modal for Product Detail V2 */
body.tf-pdp-v2-modal-open {
  overflow: hidden;
}

.tf-pdp-v2-video-modal[hidden] {
  display: none !important;
}

.tf-pdp-v2-video-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 20, 36, 0.86);
  backdrop-filter: blur(3px);
}

.tf-pdp-v2-video-modal__dialog {
  width: min(1160px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #07192b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.tf-pdp-v2-video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b223a;
  color: #ffffff;
}

.tf-pdp-v2-video-modal__heading {
  min-width: 0;
  flex: 1;
}

.tf-pdp-v2-video-modal__title {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-pdp-v2-video-modal__subtitle {
  display: block;
  margin-top: 3px;
  color: #a8c2da;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.tf-pdp-v2-video-modal__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tf-pdp-v2-video-modal__yt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce9f5 !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}

.tf-pdp-v2-video-modal__yt:hover,
.tf-pdp-v2-video-modal__yt:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.tf-pdp-v2-video-modal__yt .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

.tf-pdp-v2-video-modal__close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tf-pdp-v2-video-modal__close:hover,
.tf-pdp-v2-video-modal__close:focus-visible {
  background: var(--tf-pdp-v2-blue);
  border-color: var(--tf-pdp-v2-blue);
}

.tf-pdp-v2-video-modal__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #091d31;
}

.tf-pdp-v2-video-modal__choice {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #d5e4f2;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tf-pdp-v2-video-modal__choice:hover {
  border-color: #79afff;
  background: rgba(11, 99, 243, 0.22);
  color: #ffffff;
}

.tf-pdp-v2-video-modal__choice.is-active {
  border-color: var(--tf-pdp-v2-blue);
  background: var(--tf-pdp-v2-blue);
  color: #ffffff;
}

.tf-pdp-v2-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.tf-pdp-v2-video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tf-pdp-v2-video-modal__frame--hdscale iframe {
  width: var(--tf-pdp-v2-target-w, 1280px) !important;
  height: var(--tf-pdp-v2-target-h, 720px) !important;
  max-width: none !important;
  max-height: none !important;
  inset: 0 auto auto 0 !important;
  transform: scale(var(--tf-pdp-v2-iframe-scale, 1));
  transform-origin: 0 0;
}

.tf-pdp-v2-video-modal__frame--hdscale iframe:fullscreen,
.tf-pdp-v2-video-modal__frame--hdscale iframe:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

@media (max-width: 767px) {
  .tf-pdp-v2-video-modal {
    padding: 10px;
  }

  .tf-pdp-v2-video-modal__dialog {
    width: calc(100vw - 20px);
  }

  .tf-pdp-v2-video-modal__header {
    padding: 12px 14px;
  }

  .tf-pdp-v2-video-modal__choices {
    padding: 8px 14px;
  }
}
