/* Scoped to the shortcode: the theme's other pages keep their own styles. */
.jmt-calculator {
  --jmt-orange: #f06731;
  --jmt-ink: #111112;
  --jmt-muted: #646862;
  --jmt-paper: #f7f6f2;
  --jmt-line: #dfdfd6;
  --jmt-dark: #202521;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 36px auto;
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid #e6e4dc;
  border-radius: 24px;
  background: var(--jmt-paper);
  color: var(--jmt-ink);
  font: 400 16px/1.6 Roboto, Arial, Helvetica, sans-serif;
  text-align: left;
  box-shadow: 0 16px 48px rgba(35, 32, 26, .045);
  isolation: isolate;
  container: jmt / inline-size;
}
.jmt-calculator *, .jmt-calculator *::before, .jmt-calculator *::after { box-sizing: border-box; }
.jmt-calculator [hidden] { display: none !important; }
.jmt-calculator h2, .jmt-calculator h3, .jmt-calculator p, .jmt-calculator dl, .jmt-calculator dd { margin: 0; padding: 0; }
.jmt-calculator a { color: inherit; text-decoration: none; box-shadow: none; }
.jmt-calculator button, .jmt-calculator input, .jmt-calculator textarea { font: inherit; text-transform: none; letter-spacing: normal; }
.jmt-calculator button { cursor: pointer; }
/* Renowise dims every label and gives inputs highly specific pill styles. */
.jmt-calculator label { opacity: 1; }
.jmt-calculator button::before, .jmt-calculator button::after { content: none; }
.jmt-calculator :focus-visible { outline: 3px solid #92340f; outline-offset: 4px; }
.jmt-calculator .jmt-header { max-width: 750px; margin-bottom: 32px; }
.jmt-calculator .jmt-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; line-height: 1.6; color: #a43d16; }
.jmt-calculator .jmt-header .jmt-eyebrow { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.jmt-calculator .jmt-header .jmt-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--jmt-orange); }
.jmt-calculator .jmt-header h2 { color: var(--jmt-ink); font: 600 clamp(27px, 3.4vw, 37px)/1.18 Montserrat, Arial, Helvetica, sans-serif; letter-spacing: -1.4px; }
.jmt-calculator .jmt-intro { max-width: 610px; margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--jmt-muted); }
.jmt-calculator .jmt-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--jmt-line); border-radius: 17px; background: white; overflow: hidden; }
.jmt-calculator .jmt-input-panel { padding: clamp(22px, 3vw, 36px); min-width: 0; }
.jmt-calculator .jmt-input-panel form { margin: 0; padding: 0; }
.jmt-calculator .jmt-mode-switch { padding: 0; border: 0; margin: 0 0 27px; min-width: 0; }
.jmt-calculator .jmt-mode-switch legend { float: none; width: auto; padding: 0; border: 0; margin: 0 0 12px; color: var(--jmt-ink); font-size: 14px; font-weight: 600; }
.jmt-calculator .jmt-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 10px; background: #f1f2ee; }
.jmt-calculator .jmt-mode-choice { display: block; position: relative; margin: 0; cursor: pointer; min-width: 0; }
.jmt-calculator .jmt-mode-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; padding: 0; top: 50%; left: 50%; }
.jmt-calculator .jmt-mode-choice span { display: flex; align-items: center; justify-content: center; min-height: 58px; height: 100%; padding: 10px; border: 1px solid transparent; border-radius: 7px; color: #5b625b; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.45; transition: background .15s, color .15s; }
.jmt-calculator .jmt-mode-choice input:checked + span { background: #fff; border-color: #e2e4dd; color: var(--jmt-ink); box-shadow: 0 2px 4px #11111208; }
.jmt-calculator .jmt-mode-choice input:focus-visible + span { outline: 3px solid #92340f; outline-offset: 2px; }
.jmt-calculator .jmt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0 0 28px; }
.jmt-calculator .jmt-fields-single { grid-template-columns: 1fr; }
.jmt-calculator .jmt-field { min-width: 0; }
.jmt-calculator .jmt-field label { display: block; color: var(--jmt-ink); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.jmt-calculator .jmt-input-wrap { position: relative; }
.jmt-calculator .jmt-fields .jmt-input-wrap input { display: block; width: 100%; max-width: none; height: 62px; margin: 0; padding: 12px 42px 12px 16px; border: 1px solid #858e80; border-radius: 8px; background: #fff; color: var(--jmt-ink); font-size: 23px; font-weight: 500; line-height: normal; font-variant-numeric: tabular-nums; box-shadow: none; opacity: 1; }
.jmt-calculator .jmt-fields .jmt-input-wrap input::placeholder { color: #6c7467; opacity: 1; font-weight: 400; }
.jmt-calculator .jmt-fields .jmt-input-wrap input:focus { border-color: #bd4e22; box-shadow: 0 0 0 3px #f0673114; }
.jmt-calculator .jmt-fields .jmt-input-wrap input[aria-invalid=true] { border-color: #b02919; }
.jmt-calculator .jmt-unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #6b7368; font-size: 15px; pointer-events: none; }
.jmt-calculator .jmt-field-hint { grid-column: 1/-1; font-size: 12px; line-height: 1.6; color: var(--jmt-muted); }
.jmt-calculator .jmt-margin-note { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid #e9e9e2; margin-bottom: 16px; }
.jmt-calculator .jmt-margin-badge { flex: 0 0 auto; border: 1px solid #eddacc; border-radius: 7px; background: #fcf2eb; padding: 7px 10px; color: #8c3817; font-size: 16px; font-weight: 700; white-space: nowrap; }
.jmt-calculator .jmt-margin-note p { color: var(--jmt-muted); font-size: 12px; line-height: 1.6; }
.jmt-calculator .jmt-margin-note strong { color: #333b32; font-weight: 600; }
.jmt-calculator .jmt-button-primary, .jmt-calculator .jmt-button-contact { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 14px 19px; margin: 0; border: 0; border-radius: 7px; background: var(--jmt-orange); color: #23170e; text-align: left; font-size: 14px; font-weight: 700; line-height: 1.5; box-shadow: none; transition: background .18s, transform .18s; }
.jmt-calculator .jmt-button-primary:hover, .jmt-calculator .jmt-button-contact:hover { background: #ff814e; color: #23170e; transform: translateY(-1px); }
.jmt-calculator .jmt-button-primary span, .jmt-calculator .jmt-button-contact span { font-size: 22px; font-weight: 400; line-height: 1; }
.jmt-calculator .jmt-button-primary:disabled { cursor: wait; opacity: .65; transform: none; }
.jmt-calculator .jmt-form-note { margin-top: 12px; color: var(--jmt-muted); text-align: center; font-size: 11px; }
.jmt-calculator .jmt-output-panel { min-width: 0; position: relative; padding: clamp(24px, 3vw, 36px); background: var(--jmt-dark); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.jmt-calculator .jmt-output-panel::before { content: ''; position: absolute; width: 100%; height: 3px; top: 0; left: 0; background: linear-gradient(90deg, #f06731, #c7916c); }
.jmt-calculator .jmt-output-panel :focus-visible { outline-color: #ffc5a0; }
.jmt-calculator .jmt-output-panel .jmt-eyebrow { color: #e6b090; font-size: 9px; letter-spacing: 1.6px; }
.jmt-calculator .jmt-empty { text-align: left; }
.jmt-calculator .jmt-tile-art { display: grid; grid-template-columns: 42px 42px; gap: 4px; width: max-content; margin: 0 0 30px 8px; transform: rotate(-8deg); }
.jmt-calculator .jmt-tile-art span { width: 42px; height: 42px; background: #ba704e; border-radius: 3px 4px 3px 2px; box-shadow: inset 0 0 0 1px #d79c6e44; }
.jmt-calculator .jmt-tile-art span:nth-child(2) { background: #d59870; transform: rotate(2deg); }
.jmt-calculator .jmt-tile-art span:nth-child(3) { background: #92583f; transform: rotate(-2deg); }
.jmt-calculator .jmt-tile-art span:nth-child(4) { background: #cd835b; transform: rotate(1deg); }
.jmt-calculator .jmt-empty h3 { margin: 14px 0; color: #fff; font: 500 clamp(22px, 2.4vw, 28px)/1.3 Montserrat, Arial, Helvetica, sans-serif; letter-spacing: -.7px; }
.jmt-calculator .jmt-empty h3 em { color: #d5d8cf; font-style: normal; font-weight: 400; }
.jmt-calculator .jmt-empty > p:not(.jmt-eyebrow) { color: #c5cbc0; font-size: 13px; line-height: 1.75; }
.jmt-calculator .jmt-empty-example { margin-top: 25px; padding-top: 17px; border-top: 1px solid #ffffff26; font-size: 12px; line-height: 1.7; color: #b8c0b2; }
.jmt-calculator .jmt-result { outline: none; }
.jmt-calculator .jmt-result h3 { color: #e0e5db; font: 400 17px/1.5 Roboto, Arial, Helvetica, sans-serif; margin-top: 15px; }
.jmt-calculator .jmt-result-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; margin: 8px 0 0; font-variant-numeric: tabular-nums; line-height: 1.2; }
.jmt-calculator .jmt-result-total strong { color: #fff; font: 600 clamp(40px, 4.6vw, 60px)/1.15 Montserrat, Arial, Helvetica, sans-serif; letter-spacing: -2px; overflow-wrap: anywhere; }
.jmt-calculator .jmt-result-total > span { color: #d6dfcf; font-size: 23px; font-weight: 300; }
.jmt-calculator .jmt-result-caption { color: #bcc6b6; font-size: 12px; line-height: 1.7; margin-top: 8px; }
.jmt-calculator .jmt-result-breakdown { display: grid; gap: 9px; border-top: 1px solid #ffffff26; border-bottom: 1px solid #ffffff26; padding: 18px 0; margin: 22px 0 14px; }
.jmt-calculator .jmt-result-breakdown > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.jmt-calculator .jmt-result-breakdown dt { color: #c4ccbe; font-weight: 400; }
.jmt-calculator .jmt-result-breakdown dd { color: #fff; font-variant-numeric: tabular-nums; font-weight: 500; }
.jmt-calculator .jmt-result-note { color: #b6c0af; font-size: 11px; line-height: 1.7; }
.jmt-calculator .jmt-result-actions { margin-top: 24px; display: grid; gap: 10px; }
.jmt-calculator .jmt-button-secondary { display: block; width: 100%; min-height: 46px; border: 1px solid #73806b; background: transparent; color: #e2e8dd; border-radius: 7px; padding: 10px 15px; margin: 0; font-size: 12px; font-weight: 500; box-shadow: none; line-height: 1.5; }
.jmt-calculator .jmt-button-secondary:hover { background: #ffffff0c; color: #fff; border-color: #c4ccbe; }
.jmt-calculator .jmt-copy-status { font-size: 12px; line-height: 1.6; color: #f5c6a6; }
.jmt-calculator .jmt-contact-hint { color: #c4ccbe; font-size: 11px; line-height: 1.7; margin-top: 12px; }
.jmt-calculator .jmt-copy-status:not(:empty) { margin-top: 12px; }
.jmt-calculator .jmt-copy-fallback { margin-top: 12px; width: 100%; border: 1px solid #85907d; border-radius: 6px; padding: 12px; background: #f9faf7; color: #1e251b; font-size: 16px; line-height: 1.5; }
.jmt-calculator .jmt-alternative-contact { margin-top: 17px; font-size: 11px; line-height: 1.6; }
.jmt-calculator .jmt-alternative-contact a { color: #c7d0c1; text-decoration: underline; text-underline-offset: 4px; }
.jmt-calculator .jmt-alternative-contact a:hover { color: #fff; }
.jmt-calculator .jmt-reset { background: transparent; border: 0; border-radius: 4px; color: #b6c0af; font-size: 11px; font-weight: 400; padding: 10px 0; margin: 8px 0 -10px; min-height: 40px; line-height: 1.5; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.jmt-calculator .jmt-reset:hover { color: #fff; }
.jmt-calculator .jmt-reassurance { position: relative; margin-top: 25px; padding-left: 20px; border-left: 2px solid #dcdace; color: var(--jmt-muted); font-size: 15px; line-height: 1.75; }
.jmt-calculator .jmt-reassurance strong { color: #41493c; font-weight: 600; }
.jmt-calculator .jmt-format-note { margin-top: 5px; font-size: 11px; }
.jmt-calculator .jmt-phone { margin-top: 12px; color: #454c40; }
.jmt-calculator .jmt-phone a { display: inline-block; padding: 3px 0; margin-left: 6px; color: #873617; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.jmt-calculator .jmt-error, .jmt-calculator .jmt-noscript { padding: 12px 14px; border: 1px solid #edb4a8; border-radius: 7px; background: #fff2ed; color: #922c19; margin: 0 0 15px; font-size: 13px; line-height: 1.6; }
.jmt-calculator .jmt-noscript { margin-top: 20px; }
.jmt-calculator .jmt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .jmt-calculator { padding: 28px; }
  .jmt-calculator .jmt-grid { grid-template-columns: 1fr; }
  .jmt-calculator .jmt-input-panel { padding: 27px; }
  .jmt-calculator .jmt-output-panel { padding: 30px; }
  .jmt-calculator .jmt-tile-art { display: none; }
  .jmt-calculator .jmt-empty { max-width: 440px; }
  .jmt-calculator .jmt-result-total strong { font-size: 50px; }
}
@media (max-width: 420px) {
  .jmt-calculator { padding: 20px 14px; margin: 20px auto; border-radius: 15px; }
  .jmt-calculator .jmt-header { padding: 0 5px; margin-bottom: 24px; }
  .jmt-calculator .jmt-header h2 { font-size: 26px; letter-spacing: -.9px; }
  .jmt-calculator .jmt-intro { font-size: 14px; }
  .jmt-calculator .jmt-input-panel, .jmt-calculator .jmt-output-panel { padding: 20px 16px; }
  .jmt-calculator .jmt-mode-choice span { font-size: 11px; padding: 9px 6px; }
  .jmt-calculator .jmt-fields { gap: 12px; }
  .jmt-calculator .jmt-fields .jmt-input-wrap input { font-size: 21px; padding-left: 12px; }
  .jmt-calculator .jmt-margin-note { gap: 10px; align-items: flex-start; }
  .jmt-calculator .jmt-margin-badge { padding: 7px 8px; font-size: 14px; }
  .jmt-calculator .jmt-reassurance { padding-left: 13px; }
  .jmt-calculator .jmt-result-total strong { font-size: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  .jmt-calculator *, .jmt-calculator *::before, .jmt-calculator *::after { transition: none !important; scroll-behavior: auto !important; }
}
/* A shortcode can also live in a narrow column on a wide desktop screen. */
@container jmt (max-width: 700px) {
  .jmt-calculator .jmt-grid { grid-template-columns: 1fr; }
  .jmt-calculator .jmt-input-panel, .jmt-calculator .jmt-output-panel { padding: 24px; }
  .jmt-calculator .jmt-tile-art { display: none; }
  .jmt-calculator .jmt-empty { max-width: 480px; }
  .jmt-calculator .jmt-result-total strong { font-size: 50px; }
}
@container jmt (max-width: 330px) {
  .jmt-calculator .jmt-input-panel, .jmt-calculator .jmt-output-panel { padding: 20px 16px; }
  .jmt-calculator .jmt-result-total strong { font-size: 40px; }
}
