.mg57-custom{max-width:min(100%,1050px);margin:0 auto;padding:clamp(12px,2vw,28px);color:#263831}
.mg57-custom-head{border-radius:20px;padding:clamp(18px,4vw,38px);color:#fff8e9;background:radial-gradient(circle at 12% 0,#367568 0,transparent 54%),#133b34}
.mg57-custom-head h2{margin:0 0 5px;font-size:clamp(23px,4vw,36px)}.mg57-custom-head p{margin:0;line-height:1.7}.mg57-custom-kicker{color:#f8d7a2;font-size:.78rem;font-weight:800;letter-spacing:.04em}
.mg57-custom-body{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.4fr);gap:16px;margin-top:16px;align-items:start}
.mg57-custom-preview,.mg57-custom-form,.mg57-custom-empty{min-width:0;background:#f8f4e8;border:1px solid #dcd5be;border-radius:16px;padding:clamp(12px,3vw,22px)}
.mg57-custom-preview h3{margin:7px 0}.mg57-custom-image,.mg57-custom-placeholder{width:100%;max-height:286px;aspect-ratio:4/3;object-fit:contain;background:#e8e0cf;border-radius:10px}.mg57-custom-placeholder{display:grid;place-items:center;color:#47675b;font-weight:850;font-size:1.5rem}
.mg57-custom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}.mg57-custom-field{display:grid;gap:5px;min-width:0;font-weight:750}.mg57-custom-field :is(input,select,textarea),.mg57-custom-draft textarea{display:block;box-sizing:border-box;width:100%;padding:8px;border:1px solid #aea991;border-radius:8px;background:#fffdf6;color:#23362e;font:inherit;font-size:16px;min-height:43px}
.mg57-custom-estimate{margin:12px 0;padding:10px;border:1px solid #cfbf92;border-radius:8px;background:#fff5d9;font-weight:800;line-height:1.55}
.mg57-custom-estimate[data-known=true]{background:#dff1e7;border-color:#9bcbb6}
.mg57-custom-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.mg57-custom-wa,.mg57-custom-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:6px 12px;border:1px solid #286952;border-radius:9px;background:#1d624d;color:#fff;font:inherit;font-weight:800;cursor:pointer;text-decoration:none}
.mg57-custom [hidden]{display:none!important}.mg57-custom-note,.mg57-custom-code{color:#4c6157}.mg57-custom-draft{margin-top:11px}.mg57-custom-draft summary{cursor:pointer;font-weight:750;margin-bottom:6px}.mg57-custom-draft textarea{margin-bottom:7px}
@media(max-width:680px){.mg57-custom-body{grid-template-columns:minmax(0,1fr)}.mg57-custom-image,.mg57-custom-placeholder{aspect-ratio:7/4;max-height:147px}}
@media(max-width:410px){.mg57-custom-grid{grid-template-columns:minmax(0,1fr)}}

/* V5.8: use the real product gallery and a transparent, actionable request summary. */
.mg57-custom{container-type:inline-size;inline-size:100%;min-inline-size:0;max-width:min(100%,74rem);padding:0}
.mg57-custom-body{grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);gap:clamp(.55rem,2vw,1rem)}
.mg57-custom-preview,.mg57-custom-form{background:#fffcf4;padding:clamp(.6rem,1.7vw,1rem);border-color:#d9c7a8}
.mg57-custom-head{padding:clamp(.95rem,2.5vw,1.6rem)}
.mg57-custom-still{position:relative;margin:0;border:1px solid #ccbfa8;border-radius:.8rem;background:#eee7d9}
.mg57-custom-still .mg57-custom-image,.mg57-custom-still .mg57-custom-placeholder{display:block;width:100%;height:min(33vw,23rem);max-height:none;aspect-ratio:auto;border-radius:inherit;object-fit:contain;background:#eee7d9}
.mg57-custom-still .mg57-custom-placeholder{display:grid;place-items:center;margin:0;font-size:1rem}
.mg57-custom-picture-count{position:absolute;inset-inline-end:.48rem;inset-block-end:.5rem;border-radius:99px;padding:.22rem .65rem;color:#fff;background:#153b33;font-variant-numeric:tabular-nums;font-size:.78rem;pointer-events:none}
.mg57-custom-angles{display:flex;gap:.42rem;overflow:auto;padding:.45rem .1rem;scroll-snap-type:inline proximity}
.mg57-custom-angle{box-sizing:border-box;flex:none;width:56px;height:55px;padding:3px;border:1px solid #9a896b;border-radius:8px;background:#fffaf0;cursor:pointer;scroll-snap-align:start}
.mg57-custom-angle img{width:100%;height:100%;object-fit:contain;border-radius:5px}
.mg57-custom-angle[aria-pressed=true]{border:2px solid #2a6855;box-shadow:inset 0 0 0 1px #2a6855}
.mg57-custom-pname{display:grid;gap:.1rem;margin:.4rem 0 .28rem}
.mg57-custom-pname h3,.mg57-custom-code{margin:0;overflow-wrap:anywhere}
.mg57-custom-photo-note,.mg57-custom-step-note{margin:.35rem 0 .7rem;line-height:1.5;color:#625744;font-size:.84rem}
.mg57-custom-quick{display:flex;gap:.5rem;flex-wrap:wrap}
.mg57-custom-mobile-go{display:none}
.mg57-custom-step{margin:.75rem 0 .38rem;font-size:1.03rem}
.mg57-custom-field :is(input,select,textarea),.mg57-custom-button,.mg57-custom-wa{min-height:46px}
.mg57-custom-counter{display:grid;grid-template-columns:2.7rem minmax(0,1fr) 2.7rem;gap:.32rem;direction:ltr}
.mg57-custom-counter input{text-align:center;min-width:0}
.mg57-custom-counter button{padding:0}
.mg57-custom-counter button:disabled{opacity:.5;cursor:not-allowed}
.mg57-custom-summary{margin-top:.8rem;border:1px solid #c9b791;border-radius:12px;padding:.65rem .72rem;background:#f7efdd}
.mg57-custom-summary .mg57-custom-step{margin-top:0}
.mg57-custom-selections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.38rem .75rem;margin:.5rem 0 0}
.mg57-custom-selections div{min-width:0}
.mg57-custom-selections dt{font-size:.74rem;color:#625744;font-weight:750}
.mg57-custom-selections dd{font-weight:750;margin:0;overflow-wrap:anywhere;line-height:1.35}
.mg57-custom-angle:focus-visible,.mg57-custom-button:focus-visible,.mg57-custom-wa:focus-visible{outline:3px solid #168bff;outline-offset:2px}
@container (max-width:640px){
 .mg57-custom-body{grid-template-columns:minmax(0,1fr)}
 .mg57-custom-still .mg57-custom-image,.mg57-custom-still .mg57-custom-placeholder{height:clamp(12rem,54vw,24rem)}
 .mg57-custom-mobile-go{display:inline-flex}
 .mg57-custom-quick :is(a,button){flex:1 0 auto}
}
@media(max-width:410px){.mg57-custom-still .mg57-custom-image,.mg57-custom-still .mg57-custom-placeholder{height:55vw;min-height:11rem}}
