@media screen and (max-width: 1024px) {
  html body[data-service="timber"] .work-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #calculator-workspace,
  #results,
  #fencePreview,
  .job-summary,
  .tablewrap,
  .cost-scroll,
  .mfe-compare-scroll {
    min-width: 0;
    max-width: 100%;
  }

  .tablewrap,
  .cost-scroll,
  .mfe-compare-scroll {
    overflow-x: auto;
  }

  body[data-service="timber"] button,
  body[data-service="timber"] select,
  body[data-service="timber"] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    min-height: 44px;
    touch-action: manipulation;
  }

  html body[data-service="timber"] .mfe-base-visual-field .mfe-base-menu {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  #mfe-timber-share-box {
    max-height: 100%;
    overflow-y: auto;
  }

  dialog {
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    overflow-y: auto;
  }
}

@media screen and (max-width: 1024px) and (pointer: coarse), screen and (max-width: 700px) {
  html body[data-service="timber"] :is(select, textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])) {
    font-size: 16px;
  }
}

@media screen and (max-width: 600px) {
  body[data-service="timber"] .mfe-timber-heading #page-title {
    overflow-wrap: anywhere;
  }

  body[data-service="timber"] .mfe-timber-topnav button {
    flex: 1 1 120px;
    white-space: normal;
  }

  body[data-service="timber"] .mfe-timber-gate-inline-details,
  body[data-service="timber"] .mfe-timber-quote-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-service="timber"] .bottom-export-actions {
    flex-wrap: wrap;
  }

  body[data-service="timber"] .bottom-export-actions button {
    max-width: 100%;
    white-space: normal;
  }
}
