.print-model-page {
  background: #f6f5ee;
}
.pmm-hero {
  padding: 55px 0 32px;
}
.pmm-hero h1 {
  font-size: clamp(42px, 6vw, 70px);
  max-width: 700px;
  font-weight: 850;
}
.pmm-hero > p:last-child {
  max-width: 640px;
  font-size: 17px;
  margin-top: 18px;
}
.pmm-app {
  padding-bottom: 80px;
}
.pmm-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.pmm-heading h2 {
  font-size: 34px;
}
.pmm-status {
  font-size: 13px;
}
.pmm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 26px;
  align-items: start;
}
.pmm-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  position: sticky;
  top: 105px;
}
.pmm-stage {
  height: min(63vw, 610px);
  min-height: 380px;
  background: radial-gradient(circle at 50% 40%, #f1f1e8, #dfe5db);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.pmm-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.pmm-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
.pmm-empty strong {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 8px;
}
.pmm-viewer-controls {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 11px;
  pointer-events: none;
}
.pmm-viewer-controls button {
  pointer-events: auto;
  border: 0;
  background: #19201ce8;
  color: #fff;
  border-radius: 7px;
  padding: 9px 12px;
  font-weight: 700;
}
.pmm-dimensions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.pmm-dimensions div {
  padding: 12px 5px 0;
}
.pmm-dimensions div + div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.pmm-dimensions span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pmm-dimensions strong {
  font-size: 13px;
}
.pmm-preview-note {
  font-size: 11px;
  margin: 13px 4px 0;
}
.pmm-controls {
  display: grid;
  gap: 14px;
}
.pmm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.pmm-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pmm-card h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
}
.pmm-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}
.pmm-upload > p {
  font-size: 13px;
  margin: 12px 0;
}
.pmm-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px dashed #9ca49b;
  border-radius: 10px;
  padding: 24px 15px;
  cursor: pointer;
  background: #fafaf6;
}
.pmm-dropzone:hover {
  background: #f1f3ed;
  border-color: var(--green);
}
.pmm-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
/* The input itself is 1x1 and transparent, so the keyboard ring has to be
   drawn on the label the customer can actually see. */
.pmm-dropzone:focus-within {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  background: #f1f3ed;
  border-color: var(--green);
}
.pmm-dropzone.is-dragging {
  background: #e9f0e6;
  border-color: var(--green);
  border-style: solid;
}
.pmm-dropzone.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.pmm-dropzone.is-disabled:hover {
  background: #fafaf6;
  border-color: #9ca49b;
}
.pmm-dropzone strong {
  font-size: 14px;
}
.pmm-dropzone span,
.pmm-dropzone + small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.pmm-error {
  font-size: 12px;
  color: #9d2a21 !important;
}
.pmm-model-list {
  display: grid;
  gap: 8px;
}
.pmm-model-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: left;
}
.pmm-model-item[aria-current="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.pmm-model-item button {
  background: transparent;
  border: 0;
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  padding: 5px;
}
/* Remove is destructive and sat 7 px from Duplicate at a 51x28 px size. Both
   are now real 44 px touch targets with a 12 px gutter between them. */
[data-model-actions] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.pmm-model-item [data-model-actions] button {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 8px;
  margin-right: 0;
}
.pmm-model-item [data-model-actions] button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
}
.pmm-model-notes {
  grid-column: 1 / -1;
  list-style: disc;
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  color: #9d2a21;
  display: grid;
  gap: 4px;
}
.pmm-rights-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.pmm-inline-retry {
  font: inherit;
  background: transparent;
  border: 0;
  padding: 4px 2px;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  min-height: 28px;
}
.pmm-model-icon {
  height: 30px;
  width: 30px;
  border-radius: 7px;
  background: #e7ebe4;
  display: grid;
  place-items: center;
  font-size: 14px;
}
/* local-e2e-7: the filename ellipsis used to clip the status line too, so the
   one sentence that explains why a model blocks the quote read "Blocking your
   quote · C" at 375 px. Only the filename is truncated now; the status wraps. */
.pmm-model-name {
  font-size: 13px;
  font-weight: 750;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  overflow: visible;
}
.pmm-model-name [data-model-name] {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pmm-model-meta {
  font-size: 10px;
  color: var(--muted);
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pmm-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.pmm-fields label {
  font-size: 12px;
  font-weight: 700;
}
.pmm-fields select,
.pmm-fields input,
.pmm-part-select {
  width: 100%;
  min-height: 43px;
  border: 1px solid #cbd0c6;
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  margin-top: 6px;
  font-size: 14px;
}
.pmm-fields small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.pmm-fields label:last-child {
  grid-column: 1/-1;
}
.pmm-parts {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}
.pmm-parts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pmm-parts h4 {
  font-size: 14px;
}
.pmm-parts-head span {
  font-size: 11px;
  color: var(--muted);
}
.pmm-part-help {
  font-size: 11px;
  margin: 5px 0 11px;
}
.pmm-part {
  display: grid;
  grid-template-columns: 14px 1fr minmax(135px, 0.8fr);
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid #eff0eb;
  font-size: 12px;
}
.pmm-part.is-selected {
  background: #f5f7f1;
  margin-inline: -8px;
  padding-inline: 8px;
}
.pmm-swatch {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  border: 1px solid #0003;
}
.pmm-part-select {
  margin: 0;
  min-height: 36px;
  font-size: 12px;
}
.pmm-estimate dl {
  margin: 17px 0;
}
.pmm-estimate dl div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #eef0ea;
  font-size: 12px;
}
.pmm-estimate dt {
  color: var(--muted);
}
.pmm-estimate dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}
.pmm-price {
  padding-top: 8px;
}
.pmm-price span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.pmm-price strong {
  font-size: 30px;
  letter-spacing: -0.04em;
  display: block;
}
.pmm-price small,
.pmm-savings,
.pmm-review {
  font-size: 11px;
}
.pmm-savings {
  color: var(--green);
  font-weight: 700;
  margin-top: 10px;
}
.pmm-review {
  margin-top: 10px;
  padding: 10px;
  background: #fff4ca;
  border-radius: 7px;
  color: var(--ink);
}
.pmm-rights {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.55;
}
.pmm-rights input {
  margin-top: 3px;
  accent-color: var(--green);
}
.pmm-complete .btn {
  margin-top: 17px;
}
.pmm-complete > p {
  font-size: 10px;
  text-align: center;
  margin-top: 9px;
}
.pmm-dimension-panel,
.pmm-unit-confirm {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 16px 0 0;
  padding: 13px;
}
.pmm-dimension-panel legend,
.pmm-unit-confirm legend {
  font-size: 12px;
  font-weight: 750;
  padding: 0 4px;
}
.pmm-dimension-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 12px;
  justify-content: space-between;
}
.pmm-dimension-head label {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.pmm-dimension-head select {
  margin-left: 4px;
  min-height: 32px;
}
.pmm-dimension-inputs {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 11px;
}
.pmm-dimension-inputs label,
.pmm-review-form label {
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
}
.pmm-dimension-inputs input,
.pmm-unit-confirm select,
.pmm-review-form input,
.pmm-review-form textarea {
  border: 1px solid #cbd0c6;
  border-radius: 7px;
  font: inherit;
  min-height: 39px;
  padding: 7px 9px;
  width: 100%;
}
.pmm-unit-confirm p {
  font-size: 11px;
  margin: 0 0 10px;
}
.pmm-unit-confirm .btn {
  margin: 10px 0 0;
}
.pmm-review-form {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}
.pmm-review-form textarea {
  min-height: 78px;
  resize: vertical;
}
/* The bag confirmation is raised into the top layer (see toast() in
   print-model.js); the UA popover box has to be told to keep the storefront's
   own bottom-centred position. */
#toast:popover-open {
  top: auto;
  right: auto;
  left: 50%;
  margin: 0;
  border: 0;
  width: auto;
  height: auto;
}
.pmm-loading {
  opacity: 0.68;
  pointer-events: none;
}
@media (max-width: 850px) {
  .pmm-layout {
    grid-template-columns: 1fr;
  }
  .pmm-preview {
    position: static;
  }
  .pmm-stage {
    height: 65vw;
    min-height: 300px;
  }
  .pmm-heading {
    align-items: start;
    flex-direction: column;
  }
  .pmm-hero {
    padding-top: 35px;
  }
}
@media (max-width: 600px) {
  /* Three actions plus a wrapped status cannot share one row at 375 px: the
     actions take their own row so the status keeps the full width. */
  .pmm-model-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .pmm-model-item [data-model-actions] {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .pmm-hero h1 {
    font-size: 43px;
  }
  .pmm-card {
    padding: 17px;
  }
  .pmm-fields {
    grid-template-columns: 1fr;
  }
  .pmm-fields label:last-child {
    grid-column: auto;
  }
  .pmm-part {
    grid-template-columns: 14px 1fr;
  }
  .pmm-part-select {
    grid-column: 2;
  }
  .pmm-stage {
    height: 85vw;
  }
  .pmm-dimension-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .pmm-dimension-inputs {
    grid-template-columns: 1fr;
  }
  .pmm-viewer-controls span {
    display: none;
  }
}
.pmm-combined{background:#21352a;color:#fff}.pmm-combined .pmm-eyebrow,.pmm-combined small{color:#d1decf}.pmm-combined ul{list-style:none;padding:0;margin:18px 0}.pmm-combined li{display:flex;gap:12px;justify-content:space-between;align-items:start;margin:12px 0;font-size:14px}.pmm-combined li>span{overflow-wrap:anywhere}.pmm-combined li strong{white-space:nowrap}.pmm-combined-total{border-top:1px solid #ffffff40;padding-top:18px;display:grid;gap:8px}.pmm-combined-total strong{font-size:32px}.pmm-model-item button{margin-right:7px}.pmm-model-item [data-model-actions] button{margin-right:0}.pmm-viewer-controls span{color:#304538}
