/* CMS Foam Studio 1.5.1 — CMS site palette. All styles are scoped to the calculator. */
.cmsfs {
  --ink:#0f1c30;
  --muted:#596579;
  --action:#0f1c30;
  --accent:#80502b;
  --line:#ddd5ca;
  --field-line:#8391a5;
  --paper:#faf9f6;
  --soft:#f3f0ea;
  --white:#fff;
  font-family:inherit;
  color:var(--ink);
  font-size:15px;
  line-height:1.55;
  max-width:1440px;
  margin:48px auto;
  padding:0 24px;
  color-scheme:light;
}

.cmsfs *,.cmsfs *:before,.cmsfs *:after {
  box-sizing:border-box;
}

.cmsfs [hidden] {
  display:none!important;
}

.cmsfs h2,.cmsfs h3,.cmsfs h4,.cmsfs p {
  margin:0;
}

.cmsfs button,.cmsfs input,.cmsfs select,.cmsfs textarea {
  font:inherit;
  color:inherit;
  letter-spacing:normal;
  text-transform:none;
  border-radius:0;
  box-shadow:none;
}

.cmsfs button {
  cursor:pointer;
  border:1px solid var(--line);
  background:var(--white);
  padding:10px 14px;
  line-height:1.4;
  min-height:42px;
  font-weight:600;
  color:var(--ink);
  transition:background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cmsfs button:hover:not(:disabled) {
  background:var(--soft);
  border-color:var(--ink);
  color:var(--ink);
  box-shadow:0 6px 16px #0f1c3010;
  transform:translateY(-2px);
}

.cmsfs button:disabled {
  opacity:.48;
  cursor:default;
}

.cmsfs :is(button,input,select,textarea,a):focus-visible {
  outline:3px solid var(--accent);
  outline-offset:3px;
}

.cmsfs input:not([type=checkbox]):not([type=file]),.cmsfs select,.cmsfs textarea {
  width:100%;
  border:1px solid var(--field-line);
  background:#fff;
  padding:11px 12px;
  min-height:46px;
  line-height:1.4;
}

.cmsfs textarea {
  resize:vertical;
}

.cmsfs input[type=checkbox] {
  accent-color:var(--action);
  width:19px;
  height:19px;
  margin:0;
  flex-shrink:0;
}

.cmsfs a {
  color:var(--action);
  text-decoration:underline;
}

.cmsfs h2 {
  font-size:clamp(30px,3.4vw,46px);
  line-height:1.12;
  letter-spacing:-1.1px;
  font-weight:700;
  color:var(--ink);
}

.cmsfs h2 span {
  color:var(--ink);
}

.cmsfs h3 {
  font-size:27px;
  font-weight:700;
  line-height:1.15;
  letter-spacing:-.8px;
  margin:9px 0 13px;
  color:var(--ink);
}

.cmsfs h4 {
  font-size:17px;
  line-height:1.3;
  color:var(--ink);
  font-weight:700;
}

.cmsfs-eyebrow {
  color:var(--accent);
  text-transform:uppercase;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.8px;
  line-height:1.5;
}

.cmsfs-header {
  border:1px solid var(--line);
  background:var(--paper);
  padding:28px 30px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:32px;
}

.cmsfs-header h2 {
  margin:14px 0;
}

.cmsfs-header p:not(.cmsfs-eyebrow) {
  color:var(--muted);
  max-width:630px;
}

.cmsfs-header-note {
  font-size:13px;
  white-space:nowrap;
  padding-bottom:6px;
}

.cmsfs-header-note small {
  color:var(--muted);
  padding-left:15px;
}

.cmsfs-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  margin-right:5px;
}

.cmsfs-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:34px;
  align-items:start;
}

.cmsfs-preview-panel {
  position:sticky;
  top:24px;
  background:var(--paper);
  border:1px solid var(--line);
  min-width:0;
}

.cmsfs-preview-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 24px;
  gap:12px;
}

.cmsfs-model-name {
  font-size:12px;
  color:var(--muted);
}

.cmsfs-viewer {
  position:relative;
  height:370px;
  background:var(--paper);
}

.cmsfs-webgl {
  width:100%;
  height:100%;
}

.cmsfs-webgl canvas {
  display:block;
  touch-action:none;
  width:100%;
  height:100%;
}

.cmsfs-drag-hint {
  position:absolute;
  left:0;
  right:0;
  bottom:12px;
  text-align:center;
  font-size:11px;
  color:var(--muted);
  pointer-events:none;
}

.cmsfs-fallback {
  position:absolute;
  inset:0;
  padding:25px 60px;
}

.cmsfs-fallback svg {
  width:100%;
  height:100%;
}

.cmsfs-view-tools {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:5px;
  padding:8px 14px 24px;
}

.cmsfs-view-tools button {
  font-size:11px;
  padding:7px 11px;
  min-height:36px;
  background:var(--white);
}

.cmsfs-view-tools button[aria-pressed=true] {
  background:var(--soft);
  color:var(--ink);
  border-color:var(--ink);
}

.cmsfs-layer-key {
  padding:0 24px;
}

.cmsfs-layer-key>div {
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 0;
  border-top:1px solid var(--line);
  font-size:11px;
}

.cmsfs-layer-key i {
  display:block;
  width:12px;
  height:12px;
  border:1px solid #0002;
}

.cmsfs-layer-key span {
  flex:1;
  color:var(--muted);
}

.cmsfs-layer-key strong {
  font-size:12px;
  color:var(--ink);
  margin-left:9px;
}

.cmsfs-layer-key b {
  font-size:12px;
}

.cmsfs-total-thickness {
  padding:13px 24px 18px;
  text-align:right;
  font-size:12px;
  font-weight:700;
}

.cmsfs-preview-foot {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:18px 24px;
  font-size:10px;
  color:var(--muted);
}

.cmsfs .cmsfs-text-button {
  background:transparent;
  border:0;
  padding:4px 0;
  min-height:32px;
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:4px;
  color:var(--action);
}

.cmsfs-save-tools {
  background:#fff;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:12px 18px;
}

.cmsfs-save-tools button {
  border:1px solid var(--line);
  min-height:32px;
  background:var(--white);
  font-size:10px;
  padding:7px;
}

.cmsfs-config-panel {
  min-width:0;
  overflow-anchor:none;
  border:1px solid var(--line);
  padding:24px;
  background:var(--white);
}

.cmsfs-steps {
  scroll-margin-top:96px;
}

.cmsfs-steps {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-bottom:1px solid var(--line);
  margin-bottom:26px;
}

.cmsfs-steps button {
  border:0;
  border-bottom:3px solid transparent;
  background:transparent;
  padding:12px 4px 18px;
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.cmsfs-steps button span {
  border:1px solid var(--line);
  border-radius:0;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  font-size:10px;
}

.cmsfs-steps button.is-active {
  border-bottom-color:var(--action);
  color:var(--ink);
}

.cmsfs-steps button.is-active span {
  background:var(--action);
  color:#fff;
  border-color:var(--action);
}

.cmsfs-muted {
  color:var(--muted);
  font-size:13px;
}

.cmsfs-shape-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:24px;
}

.cmsfs .cmsfs-shape {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
  padding:11px 5px;
  min-height:118px;
  position:relative;
}

.cmsfs-shape svg {
  width:48px;
  height:48px;
  fill:var(--soft);
  stroke:var(--ink);
  stroke-width:1.5;
  stroke-linejoin:round;
}

.cmsfs-shape strong {
  font-size:12px;
  font-weight:600;
  line-height:1.3;
}

.cmsfs-shape small {
  color:var(--muted);
  font-size:10px;
  font-weight:400;
}

.cmsfs .cmsfs-shape.is-selected {
  background:var(--soft);
  border:1px solid var(--action);
  padding:11px 5px;
  box-shadow:0 3px 10px #0f1c3009;
}

.cmsfs-shape.is-selected:after {
  content:'✓';
  position:absolute;
  top:5px;
  right:8px;
  font-size:11px;
  color:var(--action);
}

.cmsfs-tip {
  background:var(--paper);
  border-left:2px solid var(--accent);
  padding:14px 16px;
  font-size:12px;
  color:var(--muted);
  margin-top:20px!important;
}

.cmsfs-tip p {
  margin-top:7px;
}

.cmsfs-step-nav {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin:22px 0;
}

.cmsfs-step-nav [data-next] {
  margin-left:auto;
  background:var(--white);
  border-color:var(--line);
  color:var(--ink);
  padding:12px 21px;
  font-size:12px;
}

.cmsfs-step-nav [data-back] {
  border:0;
  font-size:12px;
}

.cmsfs-price-panel {
  border-top:1px solid var(--line);
  padding:24px 0 8px;
  display:grid;
  grid-template-columns:1fr auto;
  column-gap:16px;
  align-items:center;
  margin-top:26px;
}

.cmsfs-price-caption {
  color:var(--accent);
  font-size:9px;
  font-weight:700;
  letter-spacing:1.5px;
}

.cmsfs-price {
  font-size:29px;
  font-weight:700;
  line-height:1.3;
  margin:4px 0;
  letter-spacing:-.5px;
}

.cmsfs-tax {
  font-size:11px;
  color:var(--muted);
}

.cmsfs .cmsfs-buy {
  background:var(--white);
  color:var(--ink);
  border-color:var(--line);
  padding:15px 20px;
  font-size:12px;
  min-width:164px;
}

.cmsfs .cmsfs-buy:hover:not(:disabled) {
  background:var(--soft);
  border-color:var(--ink);
  color:var(--ink);
}

.cmsfs-price-note {
  font-size:10px;
  color:var(--muted);
  grid-column:1/-1;
  margin-top:13px!important;
}

.cmsfs-ask {
  grid-column:1/-1;
  justify-self:start;
}

.cmsfs-status {
  font-size:12px;
  color:var(--action);
  margin-top:10px!important;
}

.cmsfs-status:empty {
  display:none;
}

.cmsfs-status.is-error {
  background:#fff2ed;
  border:1px solid #ebcbbd;
  color:#984621;
  padding:12px;
}

.cmsfs-units {
  display:flex;
  flex-shrink:0;
}

.cmsfs-units button {
  font-size:11px;
  min-height:34px;
  padding:7px 11px;
  margin-left:-1px;
}

.cmsfs-units .is-selected {
  background:var(--soft);
  color:var(--ink);
  border-color:var(--ink);
}

.cmsfs-compare-button {
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  min-height:58px!important;
  margin-top:16px!important;
  padding:15px 18px!important;
  border-color:var(--ink)!important;
  background:var(--ink)!important;
  color:var(--white)!important;
  text-align:left;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:800!important;
  letter-spacing:.02em;
  box-shadow:0 10px 24px rgba(15,28,48,.12)!important;
}

.cmsfs-compare-button::after {
  content:"→";
  flex:0 0 auto;
  font-size:18px;
  line-height:1;
  font-weight:500;
}

.cmsfs-layers {
  margin-top:20px;
  display:grid;
  gap:14px;
}

.cmsfs-layer-card {
  border:1px solid var(--line);
  padding:18px;
}

.cmsfs-layer-card.is-on {
  background:var(--paper);
}

.cmsfs-layer-heading {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  margin-bottom:13px;
}

.cmsfs-layer-heading small {
  font-size:9px;
  font-weight:700;
  letter-spacing:1.3px;
  color:var(--muted);
  display:block;
  margin-bottom:5px;
}

.cmsfs-required {
  color:var(--accent);
  border:1px solid var(--line);
  font-size:8px;
  padding:5px 7px;
  background:var(--soft);
  letter-spacing:1px;
  white-space:nowrap;
}

.cmsfs-switch {
  position:relative;
  display:inline-flex;
  align-items:center;
}

.cmsfs-switch input {
  position:absolute;
  inset:0;
  opacity:0;
  width:42px!important;
  height:24px!important;
  z-index:1;
  cursor:pointer;
}

.cmsfs-switch span {
  display:block;
  width:42px;
  height:24px;
  border-radius:15px;
  background:var(--line);
  position:relative;
  transition:background .15s;
}

.cmsfs-switch span:after {
  content:'';
  position:absolute;
  left:3px;
  top:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  transition:transform .15s;
}

.cmsfs-switch input:checked+span {
  background:var(--action);
}

.cmsfs-switch input:checked+span:after {
  transform:translateX(18px);
}

.cmsfs-switch input:focus-visible+span {
  outline:3px solid var(--accent);
  outline-offset:3px;
}

.cmsfs-field-label {
  font-size:11px;
  display:block;
  margin-bottom:5px;
}

.cmsfs-layer-card select {
  font-size:12px!important;
}

.cmsfs-grade-info {
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin:14px 0;
}

.cmsfs-colour-chip {
  width:32px;
  height:32px;
  flex-shrink:0;
  background:var(--foam);
  border:1px solid #0001;
  box-shadow:inset 0 0 12px #ffffff20;
}

.cmsfs-grade-info strong {
  font-size:11px;
}

.cmsfs-grade-info p {
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
  margin-top:4px;
}

.cmsfs-extras {
  display:grid;
  gap:12px;
  margin-top:22px;
}

.cmsfs-extra {
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:18px;
  border:1px solid var(--line);
  cursor:pointer;
}

.cmsfs-extra:has(input:checked) {
  background:var(--soft);
  border-color:var(--ink);
}

.cmsfs-extra>span {
  flex:1;
}

.cmsfs-extra strong {
  font-size:13px;
  display:block;
}

.cmsfs-extra small {
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
  display:block;
  margin-top:6px;
}

.cmsfs-extra-price {
  font-size:12px;
  white-space:nowrap;
}

.cmsfs-quantity {
  display:grid;
  grid-template-columns:1fr 100px;
  align-items:center;
  gap:20px;
  margin-top:20px;
  font-size:12px;
  font-weight:600;
}

.cmsfs-review {
  border-top:1px solid var(--line);
  padding:22px 0 0;
  margin-top:22px;
}

.cmsfs-review dl {
  display:grid;
  grid-template-columns:140px 1fr;
  gap:8px;
  font-size:11px;
  margin:13px 0;
}

.cmsfs-review dt {
  color:var(--muted);
}

.cmsfs-review dd {
  margin:0;
  text-align:right;
}

.cmsfs-dialog {
  width:min(850px,calc(100% - 32px));
  max-height:90vh;
  padding:0;
  border:1px solid var(--line);
  color:var(--ink);
  background:#fff;
  font:inherit;
}

.cmsfs-dialog::backdrop {
  background:#0f1c30b8;
}

.cmsfs-dialog-inner {
  padding:36px;
  position:relative;
}

.cmsfs-dialog-close {
  position:sticky;
  top:0;
  float:right;
  font-size:24px!important;
  line-height:1!important;
  z-index:2;
  padding:5px 10px!important;
  background:#fff!important;
}

.cmsfs-dialog-body {
  padding-top:8px;
}

.cmsfs-dialog h3 {
  padding-right:35px;
}

.cmsfs-dialog-body>p {
  font-size:13px;
  margin:12px 0;
  color:var(--muted);
}

.cmsfs-grade-comparison {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:24px;
}

.cmsfs-grade-comparison article {
  border:1px solid var(--line);
  display:flex;
  gap:12px;
  padding:16px;
}

.cmsfs-grade-swatch {
  display:block;
  width:34px;
  flex-shrink:0;
  background:var(--foam);
  min-height:70px;
}

.cmsfs-grade-comparison article small {
  font-size:9px;
  color:var(--muted);
}

.cmsfs-grade-comparison h4 {
  font-size:14px;
  margin:5px 0;
}

.cmsfs-grade-comparison article strong {
  font-size:11px;
}

.cmsfs-grade-comparison p {
  font-size:11px;
  color:var(--muted);
  margin:10px 0;
}

.cmsfs-grade-comparison button {
  font-size:10px;
  min-height:35px;
  padding:6px 9px;
}

.cmsfs-help {
  padding-left:22px;
}

.cmsfs-help li {
  font-size:13px;
  margin:15px 0;
}

.cmsfs-quote-form {
  display:grid;
  gap:16px;
  margin-top:24px;
}

.cmsfs-quote-form label {
  font-size:12px;
  display:grid;
  gap:6px;
}

.cmsfs-quote-form input[type=file] {
  padding:12px;
  border:1px dashed var(--line);
  width:100%;
  font-size:12px;
}

.cmsfs-quote-form input::file-selector-button {
  background:var(--white);
  border:1px solid var(--line);
  padding:8px 10px;
  margin-right:10px;
  color:var(--ink);
}

.cmsfs-contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

.cmsfs-quote-form>small {
  font-size:11px;
  color:var(--muted);
  margin-top:-12px;
}

.cmsfs .cmsfs-consent {
  display:flex;
  align-items:flex-start;
  font-size:11px;
  gap:10px;
}

.cmsfs .cmsfs-send {
  background:var(--white);
  color:var(--ink);
  border-color:var(--line);
  padding:14px;
}

.cmsfs-quote-status {
  font-size:12px;
}

.cmsfs-honeypot {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

.cmsfs-demo {
  background:var(--paper);
  border:1px solid var(--line);
  font-size:11px;
  padding:12px 16px;
  margin-bottom:24px;
  color:var(--muted);
}

.cmsfs-loading {
  padding:30px;
  text-align:center;
}

@media(min-width:1400px) {
  .cmsfs-viewer {
    height:430px;
  }

  .cmsfs-workspace {
    gap:48px;
  }

  .cmsfs-shape-grid {
    gap:12px;
  }

  .cmsfs .cmsfs-shape {
    min-height:125px;
  }

}

@media(max-width:1000px) {
  .cmsfs {
    padding:0 18px;
  }

  .cmsfs-workspace {
    gap:22px;
    grid-template-columns:minmax(0,.95fr) minmax(0,1fr);
  }

  .cmsfs-viewer {
    height:310px;
  }

  .cmsfs-preview-top {
    padding:18px;
  }

  .cmsfs-header-note {
    display:none;
  }

  .cmsfs h3 {
    font-size:25px;
  }

  .cmsfs-price-panel {
    grid-template-columns:1fr;
  }

  .cmsfs-buy {
    width:100%;
    margin-top:14px;
  }

  .cmsfs-preview-foot {
    padding:14px;
    flex-wrap:wrap;
  }

  .cmsfs .cmsfs-shape {
    min-height:110px;
  }

  .cmsfs-shape strong {
    font-size:10px;
  }

  .cmsfs-shape small {
    font-size:8px;
  }

  .cmsfs-layer-key {
    padding:0 14px;
  }

  .cmsfs-layer-key strong {
    display:block;
    margin-left:0;
  }

}

@media(max-width:740px) {
  .cmsfs {
    padding:0 12px;
    margin:28px auto;
  }

  .cmsfs-header {
    margin-bottom:22px;
  }

  .cmsfs-header h2 {
    font-size:32px;
  }

  .cmsfs-header p:not(.cmsfs-eyebrow) {
    font-size:13px;
  }

  .cmsfs-workspace {
    display:flex;
    flex-direction:column;
    gap:22px;
  }

  .cmsfs-preview-panel {
    position:relative;
    top:0;
    width:100%;
  }

  .cmsfs-viewer {
    height:260px;
  }

  .cmsfs-preview-top {
    padding:16px;
  }

  .cmsfs-view-tools {
    padding-bottom:16px;
  }

  .cmsfs-view-tools button {
    min-height:36px;
  }

  .cmsfs-layer-key>div {
    padding:8px 0;
  }

  .cmsfs-layer-key strong {
    display:inline;
    margin-left:7px;
  }

  .cmsfs-total-thickness {
    padding:10px 16px;
    font-size:11px;
  }

  .cmsfs-preview-foot {
    padding:11px 16px;
  }

  .cmsfs-save-tools {
    padding:8px 10px;
    justify-content:space-around;
  }

  .cmsfs-config-panel {
    width:100%;
  }

  .cmsfs-steps {
    position:sticky;
    top:0;
    background:white;
    z-index:3;
    padding-top:5px;
    margin-bottom:22px;
  }

  .cmsfs-steps button {
    padding:10px 0 13px;
  }

  .cmsfs-shape-grid {
    gap:10px;
  }

  .cmsfs .cmsfs-shape {
    min-height:117px;
  }

  .cmsfs-shape strong {
    font-size:11px;
  }

  .cmsfs-shape small {
    font-size:9px;
  }

  .cmsfs-price-panel {
    grid-template-columns:1fr auto;
  }

  .cmsfs .cmsfs-buy {
    width:auto;
    margin-top:0;
    min-width:150px;
    padding:13px;
  }

  .cmsfs-price {
    font-size:25px;
  }

  .cmsfs-grade-comparison {
    grid-template-columns:1fr;
  }

  .cmsfs-dialog-inner {
    padding:22px;
  }

  .cmsfs-dialog {
    max-height:94vh;
  }

  .cmsfs-contact-grid {
    grid-template-columns:1fr;
  }

}

@media(max-width:380px) {
  .cmsfs-preview-top {
    flex-wrap:wrap;
    gap:4px;
  }

  .cmsfs-shape-grid {
    gap:6px;
  }

  .cmsfs .cmsfs-shape {
    min-height:111px;
  }

  .cmsfs-shape strong {
    font-size:10px;
  }

  .cmsfs-shape small {
    font-size:8px;
  }

  .cmsfs-steps button {
    font-size:11px;
    gap:5px;
  }

  .cmsfs-price-panel {
    grid-template-columns:1fr;
  }

  .cmsfs .cmsfs-buy {
    width:100%;
    margin-top:12px;
  }

  .cmsfs-layer-key strong {
    display:block;
    margin:0;
  }

  .cmsfs-extra {
    padding:13px;
    gap:8px;
  }

  .cmsfs-review dl {
    grid-template-columns:110px 1fr;
  }

  .cmsfs-quantity {
    grid-template-columns:1fr 80px;
  }

  .cmsfs-viewer {
    height:240px;
  }

}

@media(prefers-reduced-motion:reduce) {
  .cmsfs * {
    transition:none!important;
    scroll-behavior:auto!important;
  }

}

@media print {
  .cmsfs-header,.cmsfs-steps,.cmsfs-step-nav,.cmsfs-view-tools,.cmsfs-save-tools,.cmsfs-price-panel,.cmsfs-status {
    display:none;
  }

  .cmsfs-workspace {
    display:block;
  }

  .cmsfs-preview-panel {
    position:static;
  }

  .cmsfs-dialog {
    display:none;
  }

}

/* Size: one reading order, with lettered guides linked to labelled fields. */
.cmsfs-measure-intro {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin:16px 0 24px;
}

.cmsfs-measure-intro>p {
  max-width:350px;
}

.cmsfs .cmsfs-unit-fieldset {
  border:0;
  padding:0;
  margin:0;
  min-width:0;
  flex-shrink:0;
}

.cmsfs-unit-fieldset legend {
  font-size:11px;
  font-weight:600;
  margin-bottom:7px;
  padding:0;
}

.cmsfs .cmsfs-units button {
  min-height:40px;
}

.cmsfs-measure-section {
  border:1px solid var(--line);
  padding:20px;
  margin-top:20px;
  background:#fff;
}

.cmsfs-guide-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.cmsfs-guide-heading h4 {
  font-size:16px;
}

.cmsfs-guide-heading>span {
  font-size:9px;
  letter-spacing:1.4px;
  color:var(--muted);
  white-space:nowrap;
}

.cmsfs-guide-heading+.cmsfs-muted {
  margin-top:9px;
  font-size:12px;
}

.cmsfs-plan-guide,.cmsfs-side-guide {
  background:var(--paper);
  margin:18px 0;
  border:1px solid var(--line);
}

.cmsfs-plan-svg,.cmsfs-section-svg {
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
}

.cmsfs-guide-outline {
  fill:var(--line);
  stroke:var(--ink);
  stroke-width:1.8;
  stroke-linejoin:round;
}

.cmsfs-measure-line {
  cursor:pointer;
  fill:var(--ink);
  stroke:var(--ink);
  stroke-width:1.6;
  stroke-linecap:round;
  outline:none;
}

.cmsfs-measure-line .cmsfs-witness {
  stroke:var(--field-line);
  stroke-width:1;
  stroke-dasharray:3 3;
}

.cmsfs-measure-line .cmsfs-dim-letter {
  fill:#fff;
  stroke:var(--ink);
  stroke-width:1.7;
}

.cmsfs .cmsfs-measure-line .cmsfs-dim-letter-text {
  font-family:Arial,Helvetica,sans-serif;
  fill:var(--ink);
  stroke:none;
  font-size:16px;
  font-weight:700;
  text-anchor:middle;
}

.cmsfs-measure-line:is(:hover,:focus,.is-highlighted) {
  stroke-width:2.4;
}

.cmsfs-measure-line:is(:hover,:focus,.is-highlighted) .cmsfs-dim-letter {
  fill:var(--ink);
  stroke:var(--ink);
  stroke-width:3;
}

.cmsfs .cmsfs-measure-line:is(:hover,:focus,.is-highlighted) .cmsfs-dim-letter-text {
  fill:#fff;
}

.cmsfs-measure-line:focus .cmsfs-dim-letter {
  stroke:var(--accent);
  stroke-width:5;
}

.cmsfs .cmsfs-orientation {
  font:600 10px Arial,Helvetica,sans-serif;
  letter-spacing:1.2px;
  text-anchor:middle;
  fill:var(--muted);
  stroke:none;
}

.cmsfs-measure-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.cmsfs-one-field {
  grid-template-columns:1fr;
}

.cmsfs-measure-field {
  border:1px solid var(--line);
  padding:13px;
  min-width:0;
  scroll-margin-top:90px;
}

.cmsfs-measure-field.is-highlighted {
  border-color:var(--ink);
  background:var(--paper);
  box-shadow:inset 0 0 0 1px var(--ink);
}

.cmsfs-measure-field>label {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 11px;
  font-size:12px;
  font-weight:600;
  line-height:1.3;
  min-height:26px;
}

.cmsfs-field-letter {
  display:inline-grid;
  place-items:center;
  flex-shrink:0;
  width:26px;
  height:26px;
  border-radius:50%;
  border:1px solid var(--ink);
  background:white;
  color:var(--action);
  font-size:12px;
  font-weight:700;
}

.cmsfs-measure-field.is-highlighted .cmsfs-field-letter {
  background:var(--action);
  color:white;
}

.cmsfs-number-unit {
  display:flex;
  border:1px solid var(--field-line);
  background:white;
  align-items:center;
}

.cmsfs .cmsfs-number-unit input[type=number] {
  border:0;
  min-width:0;
  min-height:48px;
  padding:10px;
  font-size:18px;
  font-weight:600;
  background:transparent;
}

.cmsfs-number-unit>span {
  padding:0 10px 0 4px;
  font-size:12px;
  color:var(--muted);
  flex-shrink:0;
}

.cmsfs-measure-field>small {
  display:block;
  font-size:11px;
  line-height:1.55;
  color:var(--muted);
  margin-top:8px;
}

.cmsfs .cmsfs-shape-advice {
  font-size:12px;
  color:var(--muted);
  line-height:1.6;
  margin-top:15px;
}

.cmsfs .cmsfs-layer-note {
  font-size:12px;
  color:var(--muted);
  margin-top:16px;
}

.cmsfs-split-heading {
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:22px;
}

.cmsfs-split-heading h4 {
  font-size:14px;
}

.cmsfs-split-heading p {
  font-size:12px;
  color:var(--muted);
  margin-top:7px;
}

.cmsfs-split-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.cmsfs-split-fields>label {
  font-size:12px;
  font-weight:600;
}

.cmsfs-split-fields input {
  margin-top:7px;
  font-size:16px!important;
}

.cmsfs-main-allocation {
  grid-column:1/-1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:12px 14px;
  background:var(--paper);
  border:1px solid var(--line);
  font-size:12px;
}

.cmsfs-main-allocation strong {
  font-size:16px;
}

.cmsfs .cmsfs-layer-equation {
  font-size:11px;
  color:var(--muted);
  margin-top:12px;
  font-weight:600;
}

.cmsfs-layer-size-readout {
  border-top:1px solid var(--line);
  padding-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
}

.cmsfs .cmsfs-layer-size-readout button {
  font-size:11px;
  flex-shrink:0;
}

.cmsfs-size-confirmation {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:17px 19px;
  margin-top:20px;
  background:var(--soft);
  border:1px solid var(--line);
}

.cmsfs-size-confirmation small {
  display:block;
  font-size:9px;
  letter-spacing:1.3px;
  font-weight:700;
}

.cmsfs-size-confirmation strong {
  font-size:26px;
  line-height:1.4;
  display:block;
  margin:4px 0;
}

.cmsfs-size-confirmation span {
  display:block;
  font-size:11px;
  color:var(--muted);
}

.cmsfs-size-confirmation button {
  white-space:nowrap;
}

@media(min-width:741px) and (max-width:1100px) {
  .cmsfs-measure-intro {
    display:block;
  }

  .cmsfs .cmsfs-unit-fieldset {
    margin-top:14px;
  }

  .cmsfs-measure-section {
    padding:14px;
  }

  .cmsfs-measure-fields {
    gap:10px;
  }

  .cmsfs-measure-field {
    padding:10px;
  }

  .cmsfs-measure-field>label {
    align-items:flex-start;
  }

  .cmsfs-guide-heading>span {
    font-size:8px;
    letter-spacing:.7px;
  }

  .cmsfs-layer-size-readout {
    flex-wrap:wrap;
  }

}

@media(max-width:480px) {
  .cmsfs-measure-intro {
    display:block;
    margin-bottom:18px;
  }

  .cmsfs .cmsfs-unit-fieldset {
    margin-top:14px;
  }

  .cmsfs-measure-section {
    padding:12px;
  }

  .cmsfs-guide-heading h4 {
    font-size:15px;
  }

  .cmsfs-guide-heading>span {
    font-size:8px;
    letter-spacing:.7px;
  }

  .cmsfs-measure-fields {
    grid-template-columns:1fr;
    gap:12px;
  }

  .cmsfs-measure-field {
    padding:12px;
  }

  .cmsfs-number-unit input[type=number] {
    font-size:18px;
  }

  .cmsfs-layer-size-readout {
    flex-wrap:wrap;
  }

  .cmsfs-split-fields {
    gap:10px;
  }

  .cmsfs-size-confirmation {
    padding:14px;
  }

  .cmsfs-plan-guide,.cmsfs-side-guide {
    margin:14px -4px;
  }

  .cmsfs-plan-svg {
    min-height:230px;
  }

  .cmsfs-section-svg {
    min-height:155px;
  }

}

.cmsfs-cart-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.cmsfs .cmsfs-cart-actions a {
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:10px 16px;
  border:1px solid var(--action);
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  background:var(--white);
  color:var(--ink);
  border-color:var(--line);
  transition:background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cmsfs .cmsfs-cart-actions a+ a {
  background:#fff;
  color:var(--action);
}

.cmsfs .cmsfs-cart-actions a:hover {
  background:var(--soft);
  color:var(--ink);
  border-color:var(--ink);
  box-shadow:0 6px 16px #0f1c3010;
  transform:translateY(-2px);
}

.cmsfs-extra-price small {
  display:block;
  font-size:10px;
  font-weight:400;
  white-space:nowrap;
}

/* CMS site styling: navy, warm cream, beige rules and bronze labels. */
.cmsfs h2,.cmsfs h3,.cmsfs h4 {
  font-family:inherit;
}

.cmsfs .cmsfs-shape.is-selected svg {
  fill:var(--line);
  stroke:var(--ink);
}

.cmsfs .cmsfs-step-nav [data-next]:hover:not(:disabled),
.cmsfs .cmsfs-send:hover:not(:disabled),
.cmsfs .cmsfs-units button.is-selected:hover:not(:disabled),
.cmsfs .cmsfs-view-tools button[aria-pressed=true]:hover:not(:disabled) {
  background:var(--soft);
  border-color:var(--ink);
  color:var(--ink);
}

.cmsfs .cmsfs-steps button:hover:not(:disabled) {
  background:var(--soft);
  box-shadow:none;
  transform:none;
}

.cmsfs .cmsfs-steps button.is-active {
  border-bottom-color:var(--ink);
}

.cmsfs .cmsfs-units .is-selected,.cmsfs .cmsfs-view-tools button[aria-pressed=true] {
  border-color:var(--ink);
}

.cmsfs .cmsfs-save-tools button:hover:not(:disabled) {
  background:var(--soft);
  color:var(--ink);
}

.cmsfs .cmsfs-text-button:hover:not(:disabled) {
  color:var(--accent);
  background:transparent;
  text-decoration-thickness:2px;
  box-shadow:none;
  transform:none;
}

.cmsfs .cmsfs-compare-button:hover:not(:disabled) {
  border-color:#1c2b42!important;
  background:#1c2b42!important;
  color:var(--white)!important;
  box-shadow:0 14px 28px rgba(15,28,48,.17)!important;
  transform:translateY(-1px);
}

.cmsfs .cmsfs-layer-heading small,.cmsfs .cmsfs-size-confirmation small,.cmsfs .cmsfs-guide-heading>span {
  color:var(--accent);
}

.cmsfs .cmsfs-number-unit:focus-within {
  border-color:var(--ink);
}

.cmsfs .cmsfs-review dd {
  overflow-wrap:anywhere;
}

.cmsfs .cmsfs-grade-info>div,.cmsfs .cmsfs-layer-heading>div {
  min-width:0;
}

.cmsfs .cmsfs-grade-info p {
  overflow-wrap:anywhere;
}

.cmsfs .cmsfs-plan-svg marker path,.cmsfs .cmsfs-section-svg marker path {
  fill:var(--ink);
}

.cmsfs .cmsfs-plan-svg pattern line {
  stroke:var(--field-line);
}

.cmsfs .cmsfs-plan-svg rect[stroke-dasharray] {
  stroke:var(--muted);
}

.cmsfs .cmsfs-section-svg rect,.cmsfs .cmsfs-fallback svg path {
  stroke:var(--ink);
}

.cmsfs .cmsfs-dialog-close:hover:not(:disabled) {
  color:var(--accent);
}

.cmsfs .cmsfs-quote-form input::file-selector-button {
  font:inherit;
  cursor:pointer;
}

.cmsfs .cmsfs-quote-form input::file-selector-button:hover {
  background:var(--soft);
  border-color:var(--ink);
}

.cmsfs .cmsfs-webgl canvas:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:-4px;
}

@media(min-width:741px) and (max-width:1100px) {
  .cmsfs-config-panel {
    padding:18px;
  }

  .cmsfs-header {
    padding:24px;
  }

  .cmsfs-steps button {
    gap:5px;
  }

}

@media(max-width:740px) {
  .cmsfs-header {
    padding:22px 20px;
  }

  .cmsfs-config-panel {
    padding:18px;
  }

  .cmsfs .cmsfs-price-panel {
    grid-template-columns:1fr;
  }

  .cmsfs .cmsfs-buy {
    width:100%;
    margin-top:14px;
  }

  .cmsfs .cmsfs-steps button {
    gap:5px;
  }

}

@media(max-width:380px) {
  .cmsfs-header {
    padding:20px 16px;
  }

  .cmsfs-config-panel {
    padding:14px;
  }

  .cmsfs-header h2 {
    font-size:29px;
  }

  .cmsfs-steps button span {
    width:22px;
    height:22px;
  }

  .cmsfs-size-confirmation {
    flex-wrap:wrap;
  }

}

/* Catalogue entry and unpriced-material enquiries. */
.cmsfs .cmsfs-catalogue-context {padding:16px 22px;background:var(--soft);border:1px solid var(--line);margin:0 0 20px;font-weight:600;}
.cmsfs .cmsfs-material-enquiry {display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.7fr);gap:40px;border:1px solid var(--line);padding:32px;background:var(--paper);}
.cmsfs .cmsfs-material-enquiry aside {display:flex;flex-direction:column;align-items:flex-start;gap:18px;}
.cmsfs .cmsfs-material-enquiry h3 {font-size:24px;line-height:1.2;}
.cmsfs .cmsfs-material-enquiry form {background:white;border:1px solid var(--line);padding:24px;}
.cmsfs .cmsfs-material-enquiry input:not([type=checkbox]),.cmsfs .cmsfs-material-enquiry select,.cmsfs .cmsfs-material-enquiry textarea {width:100%;min-width:0;}
@media(max-width:720px){.cmsfs .cmsfs-material-enquiry {grid-template-columns:1fr;padding:18px;gap:22px;}.cmsfs .cmsfs-material-enquiry form {padding:16px;}}
