#product-dialog{width:min(920px,calc(100vw - 32px));max-width:none;max-height:min(90vh,860px);padding:0;overflow:auto;border:0;border-radius:18px;background:#fff;color:var(--ink)}
#product-dialog[open]{display:grid;grid-template-columns:minmax(260px,.78fr) minmax(0,1.22fr);gap:0;align-items:stretch}
#product-dialog::backdrop{background:#102317b8;backdrop-filter:blur(3px)}
#product-dialog .order-visual{display:grid;place-items:center;min-height:100%;padding:24px;background:#f6f5f0}
#product-dialog .order-visual img{width:100%;max-height:620px;aspect-ratio:1;object-fit:contain}
#product-dialog .order-content{min-width:0;padding:34px 38px 36px}
#product-dialog h2{max-width:calc(100% - 35px);margin:0 0 5px;font-size:28px;line-height:1.2;font-weight:600;letter-spacing:-.03em}
#product-dialog .order-price{margin:0 0 22px;color:#577355;font-size:19px;font-weight:700}
#product-dialog .dialog-close{position:absolute;top:15px;right:15px;z-index:2;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#eef2e9;color:#1d3d22;font-size:25px;line-height:1}
#product-dialog .dialog-close:hover{background:#dfe9d7}
.order-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.order-fields label{display:flex;flex-direction:column;gap:6px;min-width:0;color:#263e2b;font-size:13px;font-weight:600}
.order-fields .order-field-wide{grid-column:1/-1}
.order-fields input,.order-fields select,.order-fields textarea{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #d6dfd3;border-radius:7px;background:#fff;color:#172b1b;font:400 14px/1.35 'Manrope',Arial,sans-serif;outline:none}
.order-fields textarea{min-height:76px;resize:vertical}
.order-fields input::placeholder,.order-fields textarea::placeholder{color:#8a9588}
.order-fields input:focus,.order-fields select:focus,.order-fields textarea:focus{border-color:#648861;box-shadow:0 0 0 3px #78915326}
.order-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.order-actions .btn{min-width:170px}
.order-actions .order-cart{background:#fff;color:#1d3d22;border-color:#1d3d22;box-shadow:none}
.order-actions .order-cart:hover{background:#eef3e9;color:#1d3d22;border-color:#1d3d22}
.order-result[hidden],#order-form[hidden]{display:none!important}
.order-result h3{margin:0 0 16px;font-size:22px;font-weight:600}
.order-result dl{display:grid;grid-template-columns:minmax(100px,.6fr) 1fr;gap:10px 16px;margin:0 0 20px;font-size:14px}
.order-result dt{color:#6b7768}
.order-result dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.order-result p{padding:12px 14px;border-radius:8px;background:#f5f3e8;color:#526048;font-size:13px;line-height:1.5}
@media(max-width:700px){
  #product-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
  #product-dialog[open]{grid-template-columns:1fr;grid-template-rows:170px auto}
  #product-dialog .order-visual{position:relative;display:block;min-height:0;height:170px;max-height:170px;overflow:hidden;padding:0}
  #product-dialog .order-visual img{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
  #product-dialog .order-content{padding:22px}
  #product-dialog h2{font-size:23px}
  #product-dialog .order-price{margin-bottom:16px}
}
@media(max-width:420px){
  .order-fields{grid-template-columns:1fr;gap:11px}
  .order-fields .order-field-wide{grid-column:auto}
  .order-actions .btn{width:100%}
}
#product-dialog h2{letter-spacing:.005em}
