.pdbt-box-tools {
  color: #202b35;
  background: #f5f7f8;
  border: 1px solid #c5cdd3;
  border-radius: 6px;
  margin: 16px 0 24px;
  padding: 16px;
  max-width: 100%;
  box-sizing: border-box;
}
.pdbt-box-tools .pdbt-heading { color: #202b35; font-size: 20px; margin: 0 0 12px; }
.pdbt-box-tools .pdbt-volume { color: #202b35; margin: 0 0 8px; }
.pdbt-box-tools summary, .pdbt-faq summary { color: #202b35; cursor: pointer; font-weight: 600; }
.pdbt-box-tools .pdbt-calculator-details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 0;
  color: var(--wd-primary-color, #ff5f00);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  list-style: none;
}
.pdbt-calculator-details > summary::marker { content: ""; }
.pdbt-calculator-details > summary::-webkit-details-marker { display: none; }
.pdbt-box-tools .pdbt-calculator-details > summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: 0 3px 4px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.pdbt-box-tools .pdbt-calculator-details[open] > summary::after {
  margin-top: 5px;
  margin-bottom: 0;
  transform: rotate(225deg);
}
.pdbt-box-tools .pdbt-calculator-details > summary:hover { color: var(--btn-accented-bgcolor-hover, #e55f11); }
.pdbt-box-tools .pdbt-help { color: #364550; font-size: 14px; margin: 12px 0; }
.pdbt-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pdbt-fields label { color: #202b35; font-size: 14px; min-width: 0; margin: 0; }
.pdbt-fields input, .pdbt-fields select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 4px 0 0;
  border: 1px solid #667783;
  border-radius: 4px;
  padding: 8px;
  color: #202b35;
  background: #fff;
  font-size: 16px;
}
.pdbt-fields input[aria-invalid="true"] { border-color: #a51d2d; }
.pdbt-box-tools .pdbt-calculate {
  margin-top: 12px;
  min-height: 44px;
  padding: 5px 20px;
  border: 0;
  border-radius: var(--btn-accented-brd-radius, 0px);
  color: var(--btn-accented-color, #fff);
  background: var(--btn-accented-bgcolor, #f68f33);
  box-shadow: var(--btn-accented-box-shadow, none);
  text-transform: uppercase;
  white-space: normal;
}
.pdbt-box-tools .pdbt-calculate:hover { color: var(--btn-accented-color-hover, #fff); background: var(--btn-accented-bgcolor-hover, #e55f11); box-shadow: var(--btn-accented-box-shadow-hover, none); }
.pdbt-box-tools :focus-visible, .pdbt-faq summary:focus-visible { outline: 3px solid #b84300; outline-offset: 3px; }
.pdbt-box-tools .pdbt-result { display: block; color: #202b35; margin-top: 12px; font-weight: 600; overflow-wrap: anywhere; }
.pdbt-faq { color: #202b35; background: #fff; }
.pdbt-faq details { border-bottom: 1px solid #c5cdd3; padding: 12px 0; }
.pdbt-faq p { color: #202b35; margin: 10px 0 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .pdbt-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdbt-box-tools { padding: 12px; }
}


.pdbt-rotation { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: #202b35; font-size: 14px; }
.pdbt-rotation input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--wd-primary-color, #ff5f00); }
.pdbt-finder-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pdbt-reset { display: inline-flex; align-items: center; min-height: 44px; color: var(--wd-primary-color, #ff5f00); text-decoration: underline; }
.pdbt-reset:hover { color: var(--btn-accented-bgcolor-hover, #e55f11); }
/* The existing Woodmart anchor stays inside its native gallery. In normal flow
   after the figure it cannot cover the infographic, even while JS is delayed. */
.pdbt-pilot-gallery .product-additional-galleries {
  position: static;
  inset: auto;
  display: flex;
  width: 100%;
  padding: 0;
  transform: none;
}
.pdbt-pilot-gallery .wd-show-product-gallery-wrap.wd-style-icon-bg-text .wd-action-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  background: transparent;
  color: inherit;
}
.pdbt-pilot-gallery .wd-show-product-gallery-wrap {
  position: static;
  inset: auto;
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 12px 0 0;
  transform: none;
}
.pdbt-pilot-gallery .wd-show-product-gallery-wrap.wd-style-icon-bg-text > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 44px;
  height: auto;
  padding: 8px 16px;
  border-radius: var(--btn-accented-brd-radius, 0px);
  color: var(--btn-accented-color, #fff);
  background: var(--btn-accented-bgcolor, #f68f33);
  box-shadow: var(--btn-accented-box-shadow, none);
  line-height: 1.4;
}
.pdbt-pilot-gallery .wd-show-product-gallery-wrap.wd-style-icon-bg-text > a:hover {
  color: var(--btn-accented-color-hover, #fff);
  background: var(--btn-accented-bgcolor-hover, #e55f11);
  box-shadow: var(--btn-accented-box-shadow-hover, none);
}
.pdbt-pilot-gallery .wd-show-product-gallery-wrap.wd-style-icon-bg-text .wd-action-text {
  position: static;
  display: inline;
  visibility: visible;
  opacity: 1;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: inherit;
  transform: none;
  font-size: 14px;
  max-width: none;
  margin: 0;
  white-space: normal;
}
.pdbt-pilot-gallery .woodmart-show-product-gallery:focus-visible { outline: 3px solid #b84300; outline-offset: 3px; }