/* Embedded editor only. Existing customer/result styles remain untouched. */
@font-face {font-family:'MT Entry';src:url('/entry/fonts/montserrat-400.ttf') format('truetype');font-weight:400;font-display:swap;}
@font-face {font-family:'MT Entry';src:url('/entry/fonts/montserrat-600.ttf') format('truetype');font-weight:600 900;font-display:swap;}
html:has(body.website-entry) { height:auto; }
body.website-entry { background:#fff; margin:0; height:auto; min-height:0; overflow-x:hidden; }
.website-entry, .website-entry button, .website-entry input { font-family:'MT Entry',Montserrat,Arial,sans-serif; letter-spacing:0; }
.website-entry .website-entry-footer .primary-button { background:var(--green); border-color:var(--green); color:#fff; }
.website-entry .website-entry-footer .primary-button:hover { background:var(--green-dark); }
.website-entry-direction { padding:8px 18px; border-bottom:1px solid #d5dfdc; }
.website-entry .website-entry-direction button { white-space:normal; min-height:44px; }
.website-entry-direct { display:block; padding:8px 18px 14px; color:#913442; font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.website-entry-direct[hidden] {display:none;}
.website-entry > .topbar, .website-entry > .order-contact-banner,
.website-entry #customerProgressSteps, .website-entry #selectedSystemBadge,
.website-entry .section-limit, .website-entry .json-block { display:none !important; }
.website-entry .workspace:not(.has-result) { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:0; padding:0; height:auto; min-height:0; }
.website-entry .canvas-panel, .website-entry .side-panel { border:0; border-radius:0; box-shadow:none; min-height:0; }
.website-entry .canvas-panel { grid-template-rows:auto 380px 36px; border-right:1px solid #d5dfdc; }
.website-entry .side-panel { max-height:650px; overflow:auto; }
.website-entry .canvas-wrap { min-height:0 !important; }
.website-entry .canvas-toolbar { min-height:50px; padding:8px 16px; }
.website-entry .sections-block { padding:16px; }
.website-entry .balcony-part-group { border-radius:4px; margin:0 0 12px; }
.website-entry .shape-options { display:flex; flex-wrap:wrap; gap:6px; }
.website-entry-shapes { display:flex; align-items:center; gap:16px; padding:14px 18px; border-bottom:1px solid #d5dfdc; flex-wrap:wrap; }
.website-entry-shapes .shape-picker { margin:0; gap:12px; }
.website-entry-shapes .active-part-label { margin:0; min-height:0; }
.website-entry-footer { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px; border-top:1px solid #d5dfdc; }
.website-entry-total { display:flex; align-items:baseline; gap:14px; }
.website-entry-total span { color:#536562; font-size:14px; }
.website-entry-total strong { color:#243b37; font-size:26px; }
.website-entry-footer .primary-button { min-height:50px; padding:12px 24px; }
.website-entry .website-entry-expand { display:none !important; }
.website-entry-error { color:#913c46; background:#fff1f1; padding:14px; margin:0; }
.website-entry-storage-note { color:#484e50; background:#f4f6f5; font-size:14px; line-height:1.5; padding:12px 18px; margin:0; }
.website-entry-storage-note[hidden] { display:none; }
.website-entry-mini { display:none; }
.website-entry #platformFlip, .website-entry #fitView { min-height:42px; }
@media(max-width:700px) {
  .website-entry .workspace:not(.has-result) { display:flex; flex-direction:column; }
  .website-entry-shapes { gap:8px; padding:12px; }
  .website-entry-shapes .active-part-label { flex-basis:100%; }
  .website-entry-shapes .shape-picker-label { display:none; }
  .website-entry .shape-picker .shape-options { width:auto; padding:0; background:transparent; border:0; }
  .website-entry .shape-picker .shape-button { width:44px; min-width:44px; height:44px; padding:4px; font-size:16px; }
  .website-entry .shape-picker .shape-button.text { width:auto; padding:4px 10px; font-size:14px; }
  .website-entry .website-entry-expand { display:none !important; }
  .website-entry .canvas-panel { display:none; order:2; border:0; }
  .website-entry .canvas-toolbar, .website-entry .canvas-status { display:none; }
  .website-entry .side-panel { order:1; max-height:none; overflow:visible; }
  .website-entry .sections-block { padding:12px; }
  .website-entry-direction { padding:6px 12px; }
  .website-entry .website-entry-direction button { width:100%; font-size:13px; }
  .website-entry .sections-block .section-header { margin-bottom:8px; }
  .website-entry .balcony-part-group { margin-bottom:8px; }
  .website-entry .edge-row { padding:8px; }
  .website-entry .edge-length-field input { font-size:18px; min-height:44px; }
  .website-entry:not(.website-entry-expanded) #pathCanvas { pointer-events:none; touch-action:pan-y; }
  .website-entry:not(.website-entry-expanded) #pointLayer,
  .website-entry:not(.website-entry-expanded) #growLayer { display:none; }
  .website-entry.website-entry-expanded .canvas-panel { display:grid; grid-template-rows:auto 360px 36px; }
  .website-entry.website-entry-expanded .canvas-toolbar { display:flex; }
  .website-entry.website-entry-expanded .canvas-status { display:flex; }
  .website-entry-footer { flex-wrap:wrap; gap:12px; padding:14px 12px; }
  .website-entry-footer .primary-button { width:100%; font-size:16px; white-space:normal; }
  .website-entry-total { width:100%; justify-content:space-between; }
  .website-entry:not(.website-entry-expanded) .website-entry-mini { display:block; order:2; padding:8px 16px; background:#f5f8f7; }
  .website-entry-mini .customer-geometry-total, .website-entry-mini .customer-geometry-lengths { display:none; }
  .website-entry-mini .customer-geometry-summary { border:0; margin:0; padding:0; }
  .website-entry-mini .customer-geometry-part { margin:0; padding:8px 0; }
  .website-entry-mini .customer-geometry-part svg { width:100%; height:110px; }
}

/* v4: reserve space for the parent page's fixed Cookie settings control. */
@media(max-width:700px) {
  .website-entry .website-entry-footer .primary-button { width:calc(100% - 112px); margin-left:112px; padding-inline:8px; font-size:14px; overflow-wrap:anywhere; }
}
@media(max-width:300px) {
  .website-entry .website-entry-footer .primary-button { font-size:13px; }
}

/* Only the embedded 102 editor uses the compact top toolbar. */
.website-entry-102-compact .website-entry-shapes { gap:10px; padding:10px 12px; }
.website-entry-102-compact .website-entry-shapes .shape-picker { gap:8px; }
.website-entry-102-compact .shape-options { height:auto; min-height:44px; gap:2px; }
.website-entry-102-compact .shape-button { min-width:40px; min-height:38px; padding:4px; }
.website-entry-102-compact .shape-button.text { padding-inline:10px; }
.website-entry-102-compact .website-entry-direction { padding:0; border:0; }
.website-entry-102-compact .website-entry-direction button { min-height:44px; font-size:13px; }
.website-entry-102-compact .canvas-toolbar { min-height:44px; padding:0; border:0; gap:6px; }
.website-entry-102-compact .canvas-fit-button { margin-left:0; }
.website-entry-102-compact #platformFlip,
.website-entry-102-compact .canvas-toolbar button { min-height:44px; }
.website-entry-102-compact .website-entry-shapes > .primary-button { margin-left:auto; flex-shrink:0; min-height:44px; padding:10px 18px; background:var(--green); border-color:var(--green); color:#fff; }
.website-entry-102-compact .website-entry-shapes > .primary-button:hover { background:var(--green-dark); }
.website-entry-102-compact .website-entry-footer,
.website-entry-102-compact .canvas-status:not(.error) { display:none !important; }
.website-entry-102-compact .canvas-status.error { display:flex; min-height:36px; height:auto; padding-block:8px; overflow-wrap:anywhere; }
.website-entry-102-compact .canvas-panel { grid-template-rows:380px; }
@media(min-width:1100px) {
  .website-entry-102-compact .website-entry-shapes { flex-wrap:nowrap; }
  .website-entry-102-compact .website-entry-shapes > * { flex-shrink:0; }
}
@media(max-width:1099px) {
  .website-entry-102-compact .website-entry-shapes { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
  .website-entry-102-compact .website-entry-shapes .active-part-label { grid-area:1 / 1; }
  .website-entry-102-compact .website-entry-shapes > .primary-button { grid-area:1 / 2; width:auto; }
  .website-entry-102-compact .shape-picker,
  .website-entry-102-compact .website-entry-direction,
  .website-entry-102-compact .canvas-toolbar,
  .website-entry-102-compact .website-entry-expand { grid-column:1 / -1; min-width:0; }
  .website-entry-102-compact .website-entry-expand { justify-self:end; }
}
@media(max-width:700px) {
  .website-entry-102-compact .shape-options { min-height:44px; gap:6px; }
  .website-entry-102-compact .website-entry-direction button { width:auto; max-width:100%; }
  .website-entry-102-compact.website-entry-expanded .canvas-panel { grid-template-rows:360px; }
}

/* Direct links share the compact drawing step; later views restore their own DOM. */
.website-entry-shapes[hidden] { display:none; }
.website-entry-direct-drawing .workspace:not(.has-result) { grid-template-columns:minmax(0,1fr) 300px; gap:0; padding:0; height:auto; min-height:0; }
.website-entry-direct-drawing .canvas-panel,
.website-entry-direct-drawing .side-panel { border:0; border-radius:0; box-shadow:none; min-height:0; }
.website-entry-direct-drawing .canvas-panel { grid-template-rows:380px; border-right:1px solid #d5dfdc; }
.website-entry-direct-drawing .canvas-panel > .canvas-toolbar,
.website-entry-direct-drawing .section-limit,
.website-entry-direct-drawing .json-block { display:none; }
.website-entry-direct-drawing .canvas-wrap { min-height:0 !important; }
.website-entry-direct-drawing .side-panel { max-height:650px; overflow:auto; }
.website-entry-direct-drawing .sections-block { padding:16px; }
.website-entry-direct-drawing .balcony-part-group { border-radius:4px; margin:0 0 12px; }
.website-entry-direct-drawing .shape-options { display:flex; flex-wrap:wrap; }
.website-entry-direct-drawing .website-entry-shapes { background:#fff; }
.website-entry-direct-drawing .website-entry-shapes .canvas-toolbar { display:flex; }
body.customer-drawing-mobile #pathCanvas { touch-action:pan-y pinch-zoom; cursor:default; }
.customer-drawing-mobile #pathCanvas .balcony-part-label,
.customer-drawing-mobile #pathCanvas .platform-side,
.customer-drawing-mobile #pathCanvas .path-edge,
.customer-drawing-mobile #pathCanvas .point-handle { cursor:default; }
.customer-drawing-mobile #pathCanvas .balcony-part-grip { display:none; }
@media(max-width:700px) {
  .website-entry-direct-drawing .workspace:not(.has-result) { display:flex; flex-direction:column; }
  .website-entry-direct-drawing .side-panel { order:1; max-height:none; overflow:visible; }
  .website-entry-direct-drawing .canvas-panel { order:2; grid-template-rows:360px; border:0; }
  .website-entry-direct-drawing .sections-block { padding:12px; }
  .website-entry-direct-drawing .edge-row { padding:8px; }
  .website-entry-direct-drawing .edge-length-field input { min-height:44px; font-size:18px; }
  .website-entry-direct-drawing .shape-picker .shape-options { width:auto; padding:0; background:transparent; border:0; }
  .website-entry-direct-drawing .shape-picker .shape-button { width:44px; min-width:44px; height:44px; padding:4px; font-size:16px; }
  .website-entry-direct-drawing .shape-picker .shape-button.text { width:auto; padding:4px 10px; font-size:14px; }
}
