/* Keep the storefront typography and palette; the fields and action share a grid baseline. */
#shopForm .calc-top{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin-bottom:12px}
#shopForm .quote-v3813-head{align-self:center;padding:0;min-width:0}
#shopForm .quote-v3813-head h2{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 10px;margin:0}
#shopForm .quote-title-icon-v3815{grid-column:1;grid-row:1}
#shopForm .phase5-calc-title-text{grid-column:2;grid-row:1}
#shopForm .phase5-calc-subtitle{grid-column:2;grid-row:2;max-width:100%;width:auto!important}
#shopForm .size-mode-row,#shopForm .size-help-label{display:flex;align-items:center;min-width:0}
#shopForm .size-mode-row{gap:4px 8px;flex-wrap:wrap}
#shopForm .size-type-v3813{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;padding:0;border:0;min-width:0}
#shopForm #sizeHelpButton{width:32px;height:40px;display:inline-grid;place-items:center;padding:0;line-height:1;background:transparent;color:var(--accent-hover);border:0;cursor:help;border-radius:6px}
#shopForm .size-help-mark{display:grid;place-items:center;width:18px;height:18px;box-sizing:border-box;border:1px solid var(--line-strong);border-radius:50%;background:var(--surface);font:700 12px/1 var(--font-sans)}
#shopForm #sizeHelpButton:focus-visible{outline:2px solid var(--accent-hover);outline-offset:-2px}
#shopForm #sizeHelpButton[aria-expanded=true] .size-help-mark{background:var(--accent-pale);border-color:var(--accent)}
#shopForm .calc-entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,22%);align-items:end;gap:14px}
#shopForm .quick-fields{grid-column:auto;grid-row:auto;min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#shopForm .quick-fields label{min-width:0}
#shopForm .quick-fields label>span{white-space:normal;line-height:1.25}
#shopForm .quick-fields label{display:flex;flex-direction:column;justify-content:flex-end}
#shopForm .quick-fields input,#shopForm #findBoxesButton{box-sizing:border-box;height:48px;min-height:48px}
#shopForm #findBoxesButton{grid-column:auto;grid-row:auto;position:static;translate:none;transform:none;align-self:end;margin:0;width:100%;min-width:0}
#shopFormError:empty{height:0;min-height:0;margin:0}
#sizeHelpPanel[hidden]{display:none}
#sizeHelpPanel{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);gap:14px;align-items:center;margin:4px 0 14px;padding:10px 14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px}
#sizeHelpPanel p{margin:0;max-width:72ch;color:var(--ink-soft);font:500 14px/1.45 var(--font-sans)}
.size-diagram{position:relative;height:74px;min-width:0}
.size-diagram .wall,.size-diagram .floor{position:absolute;border:1px solid var(--accent-hover);background:repeating-linear-gradient(55deg,var(--surface-warm) 0 3px,var(--line-strong) 3px 5px)}
.size-diagram .wall{width:12px;top:25px;bottom:5px;left:6%}.size-diagram .wall.right{left:auto;right:6%}
.size-diagram .floor{height:6px;bottom:5px;left:6%;right:6%}
.size-diagram .length-rule{position:absolute;top:48px;height:1px;left:calc(6% + 12px);right:calc(6% + 12px);background:var(--accent-hover)}
.size-diagram .length-rule::before,.size-diagram .length-rule::after{content:"";position:absolute;top:-3px;border-block:3.5px solid transparent}
.size-diagram .length-rule::before{left:0;border-right:6px solid var(--accent-hover)}.size-diagram .length-rule::after{right:0;border-left:6px solid var(--accent-hover)}
.size-diagram .length-rule b{position:absolute;left:50%;top:0;transform:translate(-50%,-100%);white-space:nowrap;color:var(--ink-soft);font:600 12px/1.4 var(--font-sans)}
#sizeHelpPanel[data-mode=outer] .length-rule{top:23px;left:6%;right:6%}
@media(max-width:900px){
  #shopForm .calc-entry{grid-template-columns:minmax(0,1fr)}
  #shopForm #findBoxesButton{justify-self:end;max-width:320px}
}
@media(max-width:780px){
  .store-intro{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"eyebrow" "heading" "description" "calc" "facts" "picture"}
  .store-intro .hero-v3813,.store-intro .hero-v3813-inner,.store-intro .hero-v3813-copy{display:contents}
  .store-intro .hero-v3813-copy>.section-eyebrow{grid-area:eyebrow;margin:16px 12px 8px}
  .store-intro .hero-v3813-copy>h1{grid-area:heading;margin:0 12px}
  .store-intro .hero-v3813-copy>p{grid-area:description;margin:9px 12px 12px}
  .store-intro #order{grid-area:calc;padding:0 0 8px}
  .store-intro #order>.page-shell-v3813{transform:none}
  .store-intro .hero-v3813-facts{grid-area:facts;margin:4px 12px 8px}
  .store-intro .hero-v3813-visual{grid-area:picture;margin:0 12px 12px}
}
@media(max-width:620px){
  #shopForm .calc-top{display:grid;gap:7px;margin-bottom:9px}
  #shopForm .quick-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}
  #shopForm .calc-entry{gap:11px}
  #shopForm #findBoxesButton{max-width:none}
  #shopForm .size-mode-row{gap:3px}
  #sizeHelpPanel{grid-template-columns:minmax(0,1fr);gap:3px;padding:8px 12px}
  .size-diagram{width:190px;max-width:100%;justify-self:center}
}



@media(max-width:359px){
 .store-intro .hero-v3813-copy>h1{font-size:clamp(29px,9.5vw,34px);line-height:1.05}
}

#shopForm{border-radius:12px;padding:18px 24px}
#shopForm .calc-top{margin-bottom:13px}
#shopForm .quote-v3813-head h2{display:block}
#shopForm .size-type-v3813{flex-wrap:nowrap;gap:0;padding:2px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}
#shopForm .size-type-v3813 label>span{display:flex;align-items:center;justify-content:center;min-height:33px;height:auto;padding:5px 12px;border:0;border-radius:5px;background:transparent;box-shadow:none}
#shopForm .size-type-v3813 input:checked+span{background:#29352d;color:white}
#shopForm .size-type-v3813 input:checked+span b{color:inherit}
#shopForm .size-type-v3813 input:checked+span b::before{content:none}
#shopForm .size-type-v3813 input:focus-visible+span{outline:2px solid var(--accent-hover);outline-offset:1px}
#shopForm #findBoxesButton{border-radius:8px;box-shadow:none}
#shopForm #findBoxesButton i{background:transparent}
#shopForm .calc-minimum-note{margin:10px 0 0;color:var(--ink-soft);font:500 13px/1.4 var(--font-sans)}
.buyer-edo>div{display:flex;align-items:center;gap:4px}
#edoHelpButton{display:grid;place-items:center;min-width:28px;min-height:28px;border:0;background:transparent;color:var(--accent-hover);font:700 13px/1 var(--font-sans);cursor:pointer}
#edoHelpButton>span{display:grid;place-items:center;width:17px;height:17px;border:1px solid var(--line-strong);border-radius:50%;font-size:11px}
#edoHelpButton:focus-visible{outline:2px solid var(--accent-hover)}
.buyer-edo input{width:100%;box-sizing:border-box}
#edoHelpText:not([hidden]){display:block;line-height:1.4;margin-top:6px}
@media(max-width:620px){#shopForm{padding:14px}#shopForm .size-type-v3813 label>span{padding:4px 9px}#shopForm .calc-minimum-note{font-size:12px}}

#shopForm .calc-top{justify-content:flex-start;column-gap:clamp(16px,2vw,32px);margin-bottom:6px}
#shopForm .quote-v3813-head{flex:0 0 auto}
#shopForm .quote-v3813-head h2{display:flex;align-items:center;gap:8px}
#shopForm .calc-heading-icon{width:1em;height:1em;flex:none;color:var(--accent-hover);fill:none;stroke:currentColor}
#shopForm .size-mode-row{margin-inline-start:auto}
@media(max-width:620px){#shopForm .calc-top{grid-template-columns:minmax(0,1fr);justify-content:stretch}#shopForm .size-mode-row{justify-self:end;justify-content:flex-end}}
@media(max-width:620px){#shopForm .calc-top{row-gap:4px;margin-bottom:6px}}

@media(max-width:620px){
 #shopForm .size-mode-row{gap:3px 6px}
 #shopForm .size-help-label{gap:0}
 #shopForm .size-type-v3813 label>span{min-height:38px;padding:4px 9px}
 #shopForm .size-type-v3813 label>span b{font-size:13px;line-height:1.25;font-weight:650}
}
@media(max-width:359px){
 #shopForm .size-mode-row{column-gap:3px}
 #shopForm .size-type-v3813 label>span{padding-inline:5px}
 #shopForm #sizeHelpButton{min-width:26px;width:26px}
}

@media(max-width:780px){
 #shopForm .phase5-size-label-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:-1px}
 #shopForm .calc-top{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;row-gap:10px;margin-bottom:15px}
 #shopForm .size-mode-row{justify-self:end}
}
