.order-section{border-top:1px solid var(--line);position:relative}
.order-entry{display:flex;justify-content:space-between;align-items:center;gap:32px;min-height:140px}
.order-entry .eyebrow{margin-bottom:16px}
.order-entry h2{font-size:clamp(2rem,3.5vw,3.3rem)}
.order-entry>div>p:last-child{margin-top:16px}
.order-popup-anchor{position:relative;flex-shrink:0}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.portal-primary{border:0;border-radius:16px;padding:12px 20px;min-height:44px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:white;font:900 14px/20px Arial,sans-serif;box-shadow:0 14px 24px -12px rgb(59 130 246 / .5)}
.new-order-popup{--portal-bg:#fff;--portal-text:#0f172a;--portal-muted:#64748b;--portal-border:#e2e8f0;--portal-input:#f8fafc;--portal-chooser:#f8fafc;position:absolute;right:0;top:calc(100% + 12px);z-index:30;width:min(94vw,760px);max-height:min(78vh,760px);overflow-y:auto;overscroll-behavior:contain;border-radius:24px;background:var(--portal-bg);color:var(--portal-text);padding:20px;text-align:left;box-shadow:0 25px 50px -12px rgb(148 163 184 / .6),0 0 0 1px var(--portal-border);font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;scroll-behavior:auto}
.new-order-popup{max-height:min(78vh,760px,calc(100dvh - 176px))}
.portal-top{display:flex;justify-content:space-between;align-items:center;gap:16px}
.portal-top h3{font-size:18px;line-height:28px;font-weight:900;letter-spacing:0;color:var(--portal-text)}
.portal-top p{margin-top:4px;font-size:12px;line-height:16px;font-weight:700;color:var(--portal-muted)}
.portal-close{border:0;border-radius:999px;background:var(--portal-chooser);color:var(--portal-muted);padding:4px 12px;font-size:14px;line-height:20px;font-weight:900;white-space:nowrap}
.general-order-form{display:grid;gap:16px;margin-top:20px}
.portal-fields{display:grid;gap:12px;grid-template-columns:1fr;min-width:0}
.portal-chooser{padding:16px;border-radius:16px;background:var(--portal-chooser);box-shadow:0 0 0 1px var(--portal-border)}
.portal-field{display:grid;gap:6px;min-width:0;align-content:start}
.portal-field label{font-size:14px;font-weight:700;line-height:20px;color:var(--portal-muted)}
.portal-required{color:#e11d48}
.portal-optional{font-weight:500;color:var(--portal-muted)}
.portal-input{width:100%;min-height:44px;border-radius:16px;border:1px solid var(--portal-border);background:var(--portal-input);padding:.72rem .9rem;color:var(--portal-text);font-family:inherit;font-size:14px;font-weight:700;line-height:20px;outline:none;max-width:100%}
.portal-input:focus{border-color:rgb(37 99 235 / .62);box-shadow:0 0 0 3px rgb(37 99 235 / .12);outline:none}
.portal-input:disabled{opacity:.55;cursor:not-allowed}
textarea.portal-input{min-height:96px;resize:vertical}
.portal-input[aria-invalid=true]{border-color:#e11d48}
.portal-field .input-error{font-size:12px;line-height:18px;color:#be123c}
.portal-field .input-error:empty{display:none}
#order-template-sections{display:grid;gap:16px}
#order-template-sections:empty{display:none}
.portal-section{border:1px solid var(--portal-border);background:var(--portal-bg);border-radius:16px;padding:16px}
.portal-section-heading{margin-bottom:16px}
.portal-section h4{margin:0;font-size:16px;font-weight:900;line-height:24px;color:var(--portal-text)}
.portal-section-heading p{font-size:12px;font-weight:700;line-height:20px;color:var(--portal-muted)}
.portal-wide{grid-column:1/-1}
.portal-file{display:grid;gap:6px}
.portal-helper{font-size:12px;font-weight:700;line-height:20px;color:var(--portal-muted)}
.portal-actions{display:flex;flex-direction:column;gap:12px;padding-top:8px}
.portal-actions p{font-size:12px;line-height:16px;font-weight:700;color:var(--portal-muted)}
.portal-actions .download-status{margin-top:8px;line-height:20px;color:#be123c}
.portal-actions .download-status:empty{display:none}
.portal-submit{border:0;min-height:44px;border-radius:16px;padding:12px 20px;background:#0f172a;color:#fff;font-size:14px;line-height:20px;font-weight:900;white-space:nowrap}
.portal-submit:disabled{opacity:.5;cursor:not-allowed}
[data-theme=dark] .new-order-popup{--portal-bg:#142332;--portal-text:#f1f5f9;--portal-muted:#b0becd;--portal-border:#35465a;--portal-input:#1d3042;--portal-chooser:#1a2b3c;box-shadow:0 25px 50px -12px rgb(0 0 0 / .65),0 0 0 1px var(--portal-border)}
[data-theme=dark] .portal-submit{background:#e2e8f0;color:#0f172a}
[data-theme=dark] .portal-field .input-error,[data-theme=dark] .portal-actions .download-status{color:#fda4af}
@media(min-width:640px){.portal-actions{flex-direction:row;justify-content:space-between;align-items:center}.portal-actions>div{max-width:460px}}
@media(min-width:768px){.portal-fields{grid-template-columns:1fr 1fr}}
@media(max-width:767px){.order-section{width:94vw}.order-entry{align-items:flex-start;flex-direction:column;gap:24px}.order-popup-anchor{align-self:flex-end}}
@media(prefers-reduced-motion:reduce){.new-order-popup{scroll-behavior:auto}}
