#estimate-form .estimate-form__note{margin:10px 0 0;padding:12px 14px;border-left:5px solid var(--red);background:#fff7f7;border-radius:12px;font-size:14px;font-weight:700;color:#333}
#estimate-form .estimate-form__master-status{margin:10px 0 0;color:#555;font-size:13px;line-height:1.7}
#estimate-form .estimate-form__item-entry{display:grid;grid-template-columns:1.3fr 1fr 1fr 120px auto;gap:10px;align-items:end;margin:12px 0;padding:12px;border:1px solid #eee;border-radius:14px;background:#fafafa}
#estimate-form .estimate-form__item-list{display:grid;gap:8px;margin:10px 0 12px}
#estimate-form .estimate-form__item-line{display:grid;grid-template-columns:1.4fr 1fr 100px 110px 120px auto;gap:8px;align-items:center;padding:10px;border:1px solid #eee;border-radius:12px;background:#fff}
#estimate-form .estimate-form__item-line strong{font-size:14px}#estimate-form .estimate-form__stock-note{font-size:11px;color:#777;line-height:1.5;margin-top:4px}#estimate-form .estimate-form__color-list{margin-top:6px;font-size:12px;color:#444;line-height:1.6}.estimate-form__small-note{font-size:12px;color:#666;line-height:1.5}.estimate-form__alert--warning{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff7e6;border-left:5px solid #f59e0b;color:#5b3a00;font-weight:700}.estimate-form__alert--success{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f2fff5;border-left:5px solid #13a538;color:#064d1f;font-weight:700}
#estimate-form .print-row{grid-template-columns:120px 1fr 1fr 1fr 1fr 1.3fr auto}
#estimate-form .print-row .estimate-form__layer-field{display:none}#estimate-form .print-row.estimate-form__print-row--blouson .estimate-form__layer-field{display:block}
#estimate-form .estimate-form__calculation-details{margin-top:10px;font-size:13px;color:#444;line-height:1.6}.estimate-form__calculation-details ul{margin:6px 0 0 18px;padding:0}
@media (max-width:760px){#estimate-form .estimate-form__item-entry,#estimate-form .estimate-form__item-line,#estimate-form .print-row{grid-template-columns:1fr}#estimate-form .estimate-form__item-line{gap:4px}#estimate-form .estimate-form__item-line button{width:100%}}

#estimate-form .estimate-form__step-lead{margin:10px 0 14px;padding:12px 14px;border-radius:12px;background:#f7f7f7;border-left:5px solid var(--red);font-size:13px;line-height:1.7;color:#333}
#estimate-form .estimate-form__print-row{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr 1fr 1fr 1.15fr auto;gap:8px;align-items:end;margin:10px 0;padding:12px;border:1px solid #eee;border-radius:14px;background:#fff}
#estimate-form .estimate-form__print-row .print-row-title{grid-column:1/-1;font-weight:900;color:#b40000;border-bottom:1px solid #f2d0d0;padding-bottom:6px;margin-bottom:2px}
#estimate-form .estimate-form__design-field{display:block}
#estimate-form .estimate-form__print-help{margin:10px 0;padding:10px 12px;border-radius:10px;background:#fff7f7;font-size:12px;line-height:1.6;color:#444}
#estimate-form .estimate-form__target-note{font-size:11px;color:#666;line-height:1.4;margin-top:4px}
#estimate-form .estimate-form__alert--warning{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff7e6;border-left:5px solid #f59e0b;color:#5b3a00;font-weight:700;line-height:1.7}
#estimate-form .estimate-form__alert--success{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f2fff5;border-left:5px solid #13a538;color:#064d1f;font-weight:700}
@media (max-width:980px){#estimate-form .estimate-form__print-row{grid-template-columns:1fr 1fr}}
@media (max-width:760px){#estimate-form .estimate-form__print-row{grid-template-columns:1fr}}

#estimate-form .estimate-form__stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 16px}
#estimate-form .estimate-form__stepper span{padding:10px 8px;border-radius:999px;background:#f3f3f3;color:#555;text-align:center;font-size:13px;font-weight:800;border:1px solid #e6e6e6}
#estimate-form .estimate-form__stepper span.estimate-form__step--active{background:var(--red);color:#fff;border-color:var(--red)}
#estimate-form .estimate-form__step-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 4px}
#estimate-form .estimate-form__guide{margin:12px 0;padding:14px 16px;border-radius:14px;background:#f8f8f8;border-left:5px solid var(--red);font-size:13px;line-height:1.8;color:#333}
#estimate-form .estimate-form__guide strong{color:#b40000}
#estimate-form .estimate-form__important{margin:12px 0;padding:14px 16px;border-radius:14px;background:#fff7e6;border-left:5px solid #f59e0b;font-size:13px;line-height:1.8;color:#4a3300}
#estimate-form .estimate-form__confirmation-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
#estimate-form .estimate-form__confirmation-card{border:1px solid #eee;border-radius:14px;background:#fff;padding:14px;line-height:1.7;font-size:13px}
#estimate-form .estimate-form__confirmation-card h4{margin:0 0 8px;font-size:15px;color:#b40000}
#estimate-form .estimate-form__copy-previous{justify-self:start;max-width:160px;font-size:12px;padding:8px 10px}
#estimate-form .estimate-form__disabled-note{font-size:12px;color:#777;line-height:1.6;margin-top:8px}
#estimate-form .estimate-form__print-confirm-note{margin-top:10px;font-size:12px;line-height:1.7;color:#555}
#estimate-form .estimate-form__final-note{margin:12px 0;padding:12px 14px;border-radius:12px;background:#fff7f7;border:1px solid #f2d0d0;font-size:13px;line-height:1.7;color:#333}
@media (max-width:760px){#estimate-form .estimate-form__stepper{grid-template-columns:1fr 1fr}#estimate-form .estimate-form__stepper span{font-size:12px;padding:9px 6px}#estimate-form .estimate-form__confirmation-grid{grid-template-columns:1fr}#estimate-form .estimate-form__step-actions .btn{width:100%;justify-content:center}#estimate-form .estimate-form__item-entry,#estimate-form .estimate-form__item-line,#estimate-form .estimate-form__print-row{padding:14px}}

#estimate-form .estimate-form__table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.45}
#estimate-form .estimate-form__table th,#estimate-form .estimate-form__table td{border-bottom:1px solid #eee;padding:6px 5px;text-align:left;vertical-align:top}
#estimate-form .estimate-form__table th{background:#fafafa;color:#333;font-weight:900}
#estimate-form .estimate-form__number{text-align:right;white-space:nowrap}
#estimate-form .estimate-form__totals{display:grid;gap:6px;font-size:14px}
#estimate-form .estimate-form__totals div{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding:6px 0}
#estimate-form .estimate-form__totals strong{color:#d00;font-size:18px}
#estimate-form .estimate-form__add-print-position{margin-top:8px;width:100%;font-size:12px}
#estimate-form .estimate-form__line-note{font-size:11px;color:#666;margin-top:4px;line-height:1.5}
@media (max-width:760px){#estimate-form .estimate-form__table{font-size:11px;display:block;overflow-x:auto;white-space:nowrap}#estimate-form .estimate-form__print-row label{min-width:0}#estimate-form .estimate-form__print-row input,#estimate-form .estimate-form__print-row select{width:100%}}

#estimate-form .estimate-form__product-help{grid-column:1/-1;margin:0;padding:12px 14px}
#estimate-form .estimate-form__item-entry{grid-template-columns:minmax(230px,2.2fr) minmax(170px,1.5fr) minmax(110px,.8fr) minmax(110px,.8fr) auto;gap:12px}
#estimate-form .estimate-form__item-entry label{font-weight:800}
#estimate-form .estimate-form__item-entry select,#estimate-form .estimate-form__item-entry input{min-height:48px;font-size:15px}
#estimate-form .estimate-form__print-row{grid-template-columns:minmax(280px,2.2fr) minmax(110px,.8fr) minmax(150px,1.1fr) minmax(90px,.7fr) minmax(170px,1.1fr) minmax(210px,1.4fr);gap:12px;align-items:end}
#estimate-form .estimate-form__target{grid-column:1/-1}
#estimate-form .estimate-form__target-label{font-weight:900;margin-bottom:6px}
#estimate-form .estimate-form__target-card{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;padding:13px 15px;border:2px solid #e8e8e8;border-radius:12px;background:#fafafa;line-height:1.45}
#estimate-form .estimate-form__target-name{font-size:15px;color:#111;flex:1 1 420px;white-space:normal;overflow-wrap:anywhere}
#estimate-form .estimate-form__target-meta{font-size:14px;font-weight:800;color:#b40000;flex:0 1 auto}
#estimate-form .estimate-form__target-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
#estimate-form .estimate-form__internal-field{display:none!important}
#estimate-form .estimate-form__add-print-position{grid-column:1/-1;margin-top:4px;min-height:46px;font-size:14px;font-weight:900;border:2px solid #111;background:#fff}
#estimate-form .estimate-form__copy-previous{grid-column:1/-1;justify-self:start;font-size:13px}
#estimate-form .remove-print-row{justify-self:start}
#estimate-form .print-row-title{font-size:16px}
#estimate-form .estimate-form__target-note,#estimate-form .estimate-form__line-note{display:none!important}
@media(max-width:980px){#estimate-form .estimate-form__item-entry{grid-template-columns:1fr 1fr}#estimate-form .estimate-form__item-entry button{grid-column:1/-1;width:100%}#estimate-form .estimate-form__print-row{grid-template-columns:1fr 1fr}#estimate-form .estimate-form__target,#estimate-form .estimate-form__add-print-position{grid-column:1/-1}}
@media(max-width:760px){#estimate-form .estimate-form__item-entry,#estimate-form .estimate-form__print-row{grid-template-columns:1fr}#estimate-form .estimate-form__target-card{display:block}#estimate-form .estimate-form__target-name,#estimate-form .estimate-form__target-meta{display:block}#estimate-form .estimate-form__target-meta{margin-top:6px}#estimate-form .estimate-form__copy-previous,#estimate-form .remove-print-row{width:100%}}

#estimate-form .estimate-form__product-panel{border:1px solid #e5e5e5;border-radius:16px;padding:16px;background:#fff;margin-top:10px}
#estimate-form .estimate-form__product-panel .estimate-form__subheading{margin:0 0 12px;background:transparent;padding:0;font-size:15px;font-weight:900}
#estimate-form .estimate-form__product-panel .form-grid{margin-bottom:12px}
#estimate-form .estimate-form__product-panel .estimate-form__item-entry{margin-top:0;border-top:1px solid #eee;padding-top:14px}
#estimate-form .estimate-form__print-group{border:1px solid #f0baba;border-radius:16px;background:#fff;padding:12px;margin:0 0 18px}
#estimate-form .estimate-form__print-group-title{font-size:16px;font-weight:900;color:#c00;padding:2px 4px 12px;border-bottom:1px solid #f3cccc;margin-bottom:10px}
#estimate-form .estimate-form__print-group .print-row{border:0!important;border-radius:0!important;margin:0!important;padding:12px 4px!important;background:transparent!important}
#estimate-form .estimate-form__print-group .print-row+.print-row{border-top:2px dashed #e2e2e2!important;margin-top:8px!important;padding-top:18px!important}
#estimate-form .estimate-form__print-group .print-row-title{color:#111;font-size:14px;background:#f7f7f7;border-radius:8px;padding:7px 10px;margin-bottom:8px}
#estimate-form .estimate-form__print-group .estimate-form__add-print-position{max-width:360px}
@media(max-width:760px){#estimate-form .estimate-form__product-panel{padding:12px}#estimate-form .estimate-form__print-group{padding:9px}#estimate-form .estimate-form__print-group .estimate-form__add-print-position{max-width:none;width:100%}}

#estimate-form .estimate-form__stepper{position:sticky;top:74px;z-index:30;background:#fff;padding:8px;border:1px solid #eee;border-radius:14px;box-shadow:0 3px 12px rgba(0,0,0,.06);display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin}
#estimate-form .estimate-form__stepper span{flex:1 0 150px;text-align:center;white-space:nowrap}
#estimate-form .estimate-form__shared-plate{grid-column:1/-1;display:flex;align-items:flex-start;gap:8px;background:#fff8e8;border:1px solid #efc36c;border-radius:9px;padding:10px 12px;font-weight:700;line-height:1.5}
#estimate-form .estimate-form__shared-plate input{width:auto;margin-top:3px}
#estimate-form .estimate-form__plate-note{grid-column:1/-1;font-size:12px;color:#755400;margin-top:-4px}
@media(max-width:760px){#estimate-form .estimate-form__stepper{top:0;margin-left:-4px;margin-right:-4px;padding:6px}#estimate-form .estimate-form__stepper span{flex-basis:120px;font-size:12px}}

#estimate-form .estimate-form__intro{margin:8px 0 14px;color:#333;line-height:1.7}
#estimate-form .estimate-form__step-help{margin:8px 0 16px;padding:12px 14px;background:#fff7f7;border-left:4px solid #e60012;border-radius:8px;line-height:1.7}
#estimate-form .required-mark{font-size:12px;color:#d60000;margin-left:4px}
#estimate-form .estimate-form__print-group-title{font-size:18px;font-weight:800;color:#c90012;margin-bottom:12px}
#estimate-form .print-row-title{font-size:15px;font-weight:800;color:#222;margin:0 0 10px}
#estimate-form .estimate-form__print-group .print-row + .print-row{margin-top:12px;padding-top:16px;border-top:2px dashed #efb5b9}
#estimate-form .estimate-form__add-print-position{display:block;margin-top:10px}
#estimate-form .estimate-form__internal-field{display:none!important}
#estimate-form .estimate-form__stepper{margin-top:12px}
@media(max-width:760px){#estimate-form .estimate-form__step-help{font-size:14px}#estimate-form .print-row label{min-width:0}#estimate-form .printSizeNote{width:100%}}

.estimate-form__plate-policy{margin:12px 0 0;border:1px solid #ddd;border-radius:10px;background:#fafafa;font-size:13px;color:#555}
.estimate-form__plate-policy summary{cursor:pointer;padding:10px 12px;font-weight:700;color:#333;list-style:none}
.estimate-form__plate-policy summary::-webkit-details-marker{display:none}
.estimate-form__plate-policy summary::after{content:"＋";float:right;color:#d40000}
.estimate-form__plate-policy[open] summary::after{content:"−"}
.estimate-form__plate-policy p{margin:0;padding:0 12px 12px;line-height:1.75}
@media(max-width:700px){.estimate-form__plate-policy{font-size:12px}.estimate-form__plate-policy summary{padding:9px 10px}.estimate-form__plate-policy p{padding:0 10px 10px}}

#estimate-form .form-step{border:3px solid #e7e7e7!important;border-radius:18px!important;padding:20px!important;background:#fff!important;box-shadow:0 4px 16px rgba(0,0,0,.04)}
#estimate-form .form-step>h3{margin:-20px -20px 18px!important;padding:15px 18px!important;border-radius:15px 15px 0 0;background:#111;color:#fff;font-size:20px}
#estimate-form .estimate-form__step-help{margin:0 0 16px!important;padding:12px 14px!important;border-left:5px solid #e60012!important;border-radius:8px;background:#fff7f7!important;line-height:1.55}
#estimate-form .estimate-form__help-text{display:block;margin-top:4px;color:#666;font-size:13px;font-weight:400}
#estimate-form .estimate-form__lead{display:flex;align-items:center;gap:16px;justify-content:space-between}
#estimate-form .estimate-form__guide-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:2px solid #111;border-radius:999px;color:#111;background:#fff;font-weight:800;text-decoration:none;white-space:nowrap}
#estimate-form .estimate-form__guide-link:hover{background:#111;color:#fff}
#estimate-form .estimate-form__product-panel,#estimate-form .estimate-form__print-group{border:3px solid #222!important;border-radius:16px!important;padding:16px!important;background:#fff}
#estimate-form .estimate-form__subheading{font-size:17px!important;font-weight:900!important;color:#111!important;margin:16px 0 10px!important}
#estimate-form label{font-weight:800;color:#222}
#estimate-form select,#estimate-form input,#estimate-form textarea{border:2px solid #d7d7d7!important;border-radius:10px!important;background:#fff!important}
#estimate-form select:focus,#estimate-form input:focus,#estimate-form textarea:focus{border-color:#e60012!important;box-shadow:0 0 0 3px rgba(230,0,18,.1)!important;outline:none}
#estimate-form .estimate-form__shared-plate{border:2px solid #f0b45a!important;background:#fff8e9!important;border-radius:10px!important;padding:10px 12px!important;font-weight:900}
#estimate-form .estimate-form__plate-note{font-size:12px!important;line-height:1.55!important;color:#765000!important;background:transparent!important;border:0!important;padding:5px 0 0!important}
#estimate-form .estimate-form__step-actions{gap:10px!important;flex-wrap:wrap}
#estimate-form .estimate-form__step-actions .btn{min-height:46px;font-weight:900}
#estimate-form .estimate-form__confirmation-card{border:3px solid #222!important;border-radius:14px!important;padding:14px!important}
#estimate-form .estimate-form__confirmation-card h4{font-size:18px!important;color:#c90012!important}
#estimate-form .estimate-form__plate-policy{border:2px solid #ddd!important}
@media(max-width:760px){
 #estimate-form .form-step{padding:14px!important;border-width:2px!important;border-radius:14px!important}
 #estimate-form .form-step>h3{margin:-14px -14px 14px!important;padding:13px 14px!important;font-size:18px}
 #estimate-form .estimate-form__lead{align-items:stretch;flex-direction:column;gap:8px}
 #estimate-form .estimate-form__guide-link{width:100%}
 #estimate-form .estimate-form__product-panel,#estimate-form .estimate-form__print-group{border-width:2px!important;padding:12px!important}
 #estimate-form .estimate-form__step-actions .btn{width:100%}
}

#estimate-form .estimate-form__search-field{position:relative}
#estimate-form .estimate-form__suggestions{position:absolute;z-index:30;left:0;right:0;top:calc(100% - 2px);max-height:280px;overflow:auto;background:#fff;border:2px solid #222;border-radius:10px;box-shadow:0 10px 24px rgba(0,0,0,.16);padding:6px;margin:0}
#estimate-form .estimate-form__suggestion{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e5e5e5;background:#fff;padding:10px 11px;font:inherit;line-height:1.35;cursor:pointer;color:#111}
#estimate-form .estimate-form__suggestion:last-child{border-bottom:0}
#estimate-form .estimate-form__suggestion:hover,#estimate-form .estimate-form__suggestion:focus{background:#fff2f3;outline:2px solid #e60012;outline-offset:-2px}
#estimate-form .estimate-form__suggestion strong{display:block;font-size:14px}
#estimate-form .estimate-form__suggestion small{display:block;margin-top:2px;color:#555;font-weight:600}
#estimate-form .estimate-form__suggestions-empty{padding:10px 11px;color:#666;font-weight:700}
@media(max-width:760px){#estimate-form .estimate-form__suggestions{position:static;margin-top:6px;max-height:240px}}

#estimate-form .estimate-form__mobile-note{display:none}
@media (max-width:760px){
  #estimate-form .estimate-form__confirmation-card{padding:12px;overflow:visible;min-width:0}
  #estimate-form .estimate-form__confirmation-grid{min-width:0}
  #estimate-form .estimate-form__table{display:block;width:100%;white-space:normal;overflow:visible;font-size:13px;border-collapse:separate}
  #estimate-form .estimate-form__table thead{display:none}
  #estimate-form .estimate-form__table tbody,#estimate-form .estimate-form__table tfoot{display:block;width:100%}
  #estimate-form .estimate-form__table tbody tr{display:block;margin:0 0 12px;padding:10px 12px;border:1px solid #e5e5e5;border-radius:12px;background:#fff;box-sizing:border-box}
  #estimate-form .estimate-form__table tbody td{display:grid;grid-template-columns:minmax(92px,38%) minmax(0,1fr);gap:10px;width:100%;box-sizing:border-box;padding:7px 0;border-bottom:1px solid #f0f0f0;text-align:left!important;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  #estimate-form .estimate-form__table tbody td:last-child{border-bottom:0}
  #estimate-form .estimate-form__table tbody td::before{content:attr(data-label);font-weight:800;color:#555}
  #estimate-form .estimate-form__table tfoot tr{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px;border-radius:12px;background:#fff7f7;border:1px solid #f2caca}
  #estimate-form .estimate-form__table tfoot th{display:block;padding:0;border:0;background:transparent;text-align:left}
  #estimate-form .estimate-form__table tfoot th[colspan]{grid-column:auto}
  #estimate-form .estimate-form__number{text-align:left!important;white-space:normal}
  #estimate-form .estimate-form__totals div{gap:12px;align-items:flex-start}
  #estimate-form .estimate-form__mobile-note{display:block;margin:0 0 10px;color:#555;font-size:12px;line-height:1.5}
  #estimate-form{padding-bottom:110px}
}

#estimate-form .estimate-form__stepper{
  display:none!important;
}
#estimate-form .estimate-form__current-step{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  z-index:9998;
  display:none;
  align-items:center;
  justify-content:center;
  max-width:calc(100vw - 24px);
  min-height:42px;
  padding:9px 18px;
  border-radius:999px;
  background:#e60012;
  color:#fff;
  border:2px solid #fff;
  box-shadow:0 5px 18px rgba(0,0,0,.22);
  font-size:14px;
  font-weight:900;
  line-height:1.35;
  white-space:nowrap;
}
#estimate-form .estimate-form__current-step.estimate-form__current-step--visible{display:flex}
#estimate-form .estimate-form__current-step .estimate-form__current-step-label{opacity:.86;margin-right:6px;font-size:12px}
@media(max-width:760px){
  #estimate-form .estimate-form__current-step{
    width:calc(100vw - 24px);
    min-height:40px;
    padding:8px 12px;
    font-size:14px;
  }
}

#estimate-form .form-step{border:3px solid #dedede;border-radius:18px;padding:22px;background:#fff}
#estimate-form .form-step:not([hidden]){box-shadow:0 5px 18px rgba(0,0,0,.055)}
#estimate-form .estimate-form__product-panel,#estimate-form .estimate-form__print-group{border:3px solid #e6e6e6;border-radius:16px}
#estimate-form .estimate-form__print-group{border-color:#efb5b9}
#estimate-form .estimate-form__print-group-title{font-size:18px;background:#fff5f5;border-radius:10px;padding:10px 12px;border-bottom:0}
#estimate-form .estimate-form__shared-plate{display:inline-flex!important;grid-column:auto!important;width:auto;min-height:42px;align-items:center;padding:8px 13px;border:2px solid #e60012;background:#fff;border-radius:999px;color:#111;font-weight:900}
#estimate-form .estimate-form__shared-plate input{width:20px;height:20px;margin:0 7px 0 0;accent-color:#e60012}
#estimate-form .estimate-form__plate-note{grid-column:1/-1;margin:0;padding:7px 2px;color:#555;font-size:12px}
#estimate-form .estimate-form__design-field{min-width:170px}
#estimate-form .estimate-form__step-help{padding:10px 13px;margin:6px 0 13px}
#estimate-form .estimate-form__confirmation-grid{grid-template-columns:1fr 1fr}
#estimate-form .estimate-form__confirmation-card:nth-child(3){grid-column:1/-1;border:3px solid #e60012}
#estimate-form .estimate-form__confirmation-card:nth-child(4){grid-column:1/-1}
#estimate-form .estimate-form__details{border:1px solid #ddd;border-radius:10px;padding:0;background:#fff}
#estimate-form .estimate-form__details>summary{cursor:pointer;padding:12px 14px;font-weight:900;color:#111;list-style:none}
#estimate-form .estimate-form__details>summary::after{content:'＋';float:right;color:#e60012}
#estimate-form .estimate-form__details[open]>summary::after{content:'－'}
#estimate-form .estimate-form__details>table,#estimate-form .estimate-form__details>div,#estimate-form .estimate-form__details>h4{margin:0 12px 12px}
#estimate-form .estimate-form__edit-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:10px;border:2px solid #ddd;border-radius:13px;background:#fafafa}
#estimate-form .estimate-form__edit-nav button{flex:1 1 150px;min-height:42px}
#estimate-form .estimate-form__disabled-note,#estimate-form .estimate-form__target-note{display:none!important}
@media(max-width:760px){
 #estimate-form .form-step{padding:14px 11px;border-width:2px}
 #estimate-form .estimate-form__confirmation-grid{grid-template-columns:1fr}
 #estimate-form .estimate-form__confirmation-card:nth-child(3),#estimate-form .estimate-form__confirmation-card:nth-child(4){grid-column:auto}
 #estimate-form .estimate-form__edit-nav{position:sticky;top:54px;z-index:22;padding:6px;background:rgba(255,255,255,.96)}
 #estimate-form .estimate-form__edit-nav button{font-size:12px;min-height:38px;padding:7px}
}

/* Confirmation: never let tables escape their cards. */
#estimate-form .estimate-form__confirmation-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
#estimate-form .estimate-form__confirmation-card{min-width:0!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box}
#estimate-form .estimate-form__details{min-width:0!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box}
#estimate-form .estimate-form__details>table{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;table-layout:fixed!important;box-sizing:border-box}
#estimate-form .estimate-form__table{width:100%!important;max-width:100%!important;table-layout:fixed!important;box-sizing:border-box}
#estimate-form .estimate-form__table th,#estimate-form .estimate-form__table td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;min-width:0!important}
#estimate-form .estimate-form__table th:nth-child(1),#estimate-form .estimate-form__table td:nth-child(1){width:5%}
#estimate-form .estimate-form__table th:nth-child(2),#estimate-form .estimate-form__table td:nth-child(2){width:22%}
#estimate-form .estimate-form__table th:last-child,#estimate-form .estimate-form__table td:last-child{max-width:24%}
#estimate-form .estimate-form__confirmation-card:nth-child(3),#estimate-form .estimate-form__confirmation-card:nth-child(4){grid-column:auto!important}
@media(max-width:760px){
 #estimate-form .estimate-form__details>table{width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;margin-left:8px!important;margin-right:8px!important}
}

.estimate-form__consult-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 16px;padding:12px 14px;border:2px solid #d9d9d9;border-radius:10px;background:#fafafa;font-weight:700}.estimate-form__consult-panel .btn{margin:0;white-space:nowrap}.estimate-form__plate-family{margin-top:8px;padding:7px 10px;border-radius:8px;background:#f3f3f3;color:#333;font-size:13px}.estimate-form__plate-family strong{color:#b30000}.estimate-form__staff-choice{display:block;margin-top:6px;padding:7px 9px;border:1px solid #b30000;border-radius:7px;background:#fff;color:#b30000;font-weight:700;cursor:pointer}.estimate-form__staff-note{margin:8px 0 0;padding:8px 10px;border-left:4px solid #b30000;background:#fff7f7;font-size:13px;font-weight:700}@media(max-width:700px){.estimate-form__consult-panel{align-items:stretch;flex-direction:column}.estimate-form__consult-panel .btn{width:100%}}

.estimate-form__consult-panel--print{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid #d9d9d9;border-left:5px solid #111;background:#fff;border-radius:10px;margin:12px 0 18px}.estimate-form__consult-panel--print span{display:flex;flex-direction:column;gap:3px;line-height:1.5}.estimate-form__consult-panel--print small{font-size:12px;color:#555}.estimate-form__consult-panel--print .btn{flex:0 0 auto;white-space:nowrap}@media(max-width:640px){.estimate-form__consult-panel--print{align-items:stretch;flex-direction:column}.estimate-form__consult-panel--print .btn{width:100%}}

/* The first product has no previous category item, so a copy button is never shown there. */
#estimate-form #printRows > .estimate-form__print-group:first-child .estimate-form__copy-previous{display:none!important;}
.estimate-form__consult-status{margin:12px 0 16px;padding:12px 14px;border:2px solid #e60012;border-radius:12px;background:#fff7f8;color:#222;font-weight:800;line-height:1.6;}
.estimate-form__plate-family{display:inline-flex!important;align-items:center;gap:4px;max-width:100%;flex-wrap:wrap;}

#estimate-form .estimate-form__field-help,#estimate-form .estimate-form__field-help{display:block;margin-top:6px;color:#666;font-size:12px;line-height:1.5;font-weight:700}
#estimate-form .estimate-form__product-search{width:100%;min-height:46px;border:1px solid #cfcfcf;border-radius:10px;padding:10px 12px;font:inherit;background:#fff;color:#111}
#estimate-form .estimate-form__product-search:focus{border-color:#E60012;outline:2px solid rgba(230,0,18,.12)}
#estimate-form .estimate-form__maker-select option[value="__recommended__"]{font-weight:900;color:#E60012}
@media(max-width:760px){#estimate-form .estimate-form__product-panel .form-grid{grid-template-columns:1fr!important}}

#estimate-form .estimate-form__product-grid{
  display:grid!important;
  grid-template-columns:minmax(180px,1.05fr) minmax(175px,.82fr) minmax(175px,.82fr) minmax(280px,1.55fr)!important;
  gap:12px!important;
  align-items:start!important;
}
#estimate-form .estimate-form__product-grid>label{min-width:0;margin:0!important}
#estimate-form .estimate-form__product-grid>.estimate-form__search-field{min-width:0;margin:0!important}
#estimate-form .estimate-form__product-grid select,
#estimate-form .estimate-form__product-grid input{width:100%!important;min-width:0!important;min-height:46px!important}
#estimate-form .estimate-form__search-field{font-weight:900;color:#111}
#estimate-form .estimate-form__search-field .estimate-form__product-search{border:2px solid #e60012!important;background:#fffdfd!important}
#estimate-form .estimate-form__product-select.estimate-form__product-select--open{height:auto!important;min-height:46px;max-height:300px;padding:4px 8px;background:#fff;border:2px solid #e60012;box-shadow:0 10px 26px rgba(0,0,0,.16);position:relative;z-index:20}
#estimate-form .estimate-form__search-field .estimate-form__field-help{color:#b00010!important}
#estimate-form .estimate-form__maker-field,#estimate-form .estimate-form__search-field{max-width:none!important}
#estimate-form .estimate-form__field-help,#estimate-form .estimate-form__field-help{min-height:36px;margin-top:5px!important}
#estimate-form .estimate-form__product-field select{font-weight:800}
@media(max-width:1100px){
 #estimate-form .estimate-form__product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #estimate-form .estimate-form__category-field{order:1}
 #estimate-form .estimate-form__maker-field{order:2}
 #estimate-form .estimate-form__search-field{order:3}
 #estimate-form .estimate-form__product-field{order:4}
}
@media(max-width:760px){
 #estimate-form .estimate-form__product-grid{grid-template-columns:1fr!important;gap:10px!important}
 #estimate-form .estimate-form__field-help,#estimate-form .estimate-form__field-help{min-height:0}
}

.estimate-form__field-note{display:block;margin-top:6px;color:#666;font-size:12px;line-height:1.6}
.estimate-total dt:nth-last-of-type(-n+3),.estimate-total dd:nth-last-of-type(-n+3){font-weight:900}
.estimate-total dd#resTotal{color:#e60012;font-size:1.25em}

/* 商品詳細・TOPから見積り条件を引き継いだ結果を明示 */
#estimate-form .estimate-form__prefill-status{
  margin:0 0 14px;
  padding:11px 13px;
  border:2px solid #16803c;
  border-radius:10px;
  background:#f1fff5;
  color:#0e612d;
  font-size:14px;
  font-weight:900;
  line-height:1.5;
}
#estimate-form .estimate-form__prefill-status--error{
  border-color:#e60012;
  background:#fff4f5;
  color:#a5000d;
}
