/* Supplier photographs mapped into four mitred rails. Surface pixels keep their
   original colour, grain and moulding relief; the artwork stays a separate image. */
#main .framed.lumaprints-frame {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 1;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-image: none;
  border-radius: 0;
  background: var(--lp-frame-color, #262723);
  box-shadow: 2px 3px 5px #19291e28, 7px 12px 22px #19291e26;
}
#main .framed.lumaprints-frame::before,
#main .framed.lumaprints-frame::after,
#main .framed.lumaprints-frame > .mat::before,
#main .framed.lumaprints-frame > .mat::after { content: none; }
#main .framed.lumaprints-frame > .lp-frame-surface {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
  stroke: none;
}
#main .framed.lumaprints-frame > .mat {
  position: absolute;
  inset: var(--lp-frame-ratio, 4%);
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--lp-mat-color, #ffffff);
  box-shadow: 0 0 1px 1px #00000038;
}
#main .framed.lumaprints-frame > .mat > .lp-mat-surface,
.lp-mat-swatch > .lp-mat-surface {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  stroke: none;
}
#main .framed.lumaprints-frame > .mat > img {
  position: absolute;
  inset: var(--lp-mat-ratio, 16.6667%);
  display: block;
  width: calc(100% - var(--lp-mat-ratio, 16.6667%) * 2);
  height: calc(100% - var(--lp-mat-ratio, 16.6667%) * 2);
  max-width: none;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: center;
  z-index: 2;
  background: #fff;
  box-shadow: 0 0 0 1.3px var(--lp-core-color, #fcfcf9), 0 -1px 1.5px 1px #00000020;
}

/* Continue the established wall palette for canonical profile-and-finish IDs. */
#main .wall-scene[data-wall^="p"][data-wall$="-white"],
#main .wall-scene[data-wall^="p"][data-wall*="-maple"],
#main .wall-scene[data-wall^="p"][data-wall$="-natural-oak"],
#main .wall-scene[data-wall^="p"][data-wall$="-natural-wood"],
#main .wall-scene[data-wall^="p"][data-wall$="-silver"] {
  --wall-colour: #82958c;
  --wall-light: rgba(244, 243, 224, .16);
}
#main .wall-scene[data-wall^="p"][data-wall$="-black"] {
  --wall-colour: #d0cbbf;
}
#main .wall-scene[data-wall^="p"][data-wall$="-espresso"] {
  --wall-colour: #c5cbbb;
}
#main .wall-scene[data-wall^="p"][data-wall$="-gold"],
#main .wall-scene[data-wall^="p"][data-wall$="-copper"],
#main .wall-scene[data-wall^="p"][data-wall$="-gray"] {
  --wall-colour: #9daaa0;
}

/* One profile, then its available finishes, keeps the full catalogue manageable. */
.lp-profile-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--ink);
}

.lp-profile-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 11px 34px 11px 12px;
  border: 1px solid #adb8a8;
  border-radius: 0;
  color: var(--ink);
  background-color: var(--ivory, #f6f5ee);
  font: 14px/1.5 var(--sans);
  text-overflow: ellipsis;
}

.frame-options,
.frame-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
  min-width: 0;
}

.frame-options .frame-option,
.frame-picker .frame-option {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  min-height: 88px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.frame-option-name {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.frame-options .frame-option[aria-pressed="true"],
.frame-picker .frame-option[aria-pressed="true"],
.mat-options .mat-option[aria-pressed="true"],
.mat-options .mat-choice[aria-pressed="true"] {
  border-color: var(--ink);
  background: #e7ecdf;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.frame-options .frame-option:hover,
.frame-picker .frame-option:hover,
.mat-options .mat-option:hover,
.mat-options .mat-choice:hover {
  border-color: #687a65;
}

.frame-swatch.lp-frame-swatch,
.finish-sample > .frame-swatch.lp-frame-swatch {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #00000025;
  border-image: none;
  background-color: var(--lp-frame-color, var(--swatch, #292b26));
  background-image: linear-gradient(135deg, #ffffff28, transparent 45%, #00000028);
  box-shadow: inset 1px 1px #ffffff25, inset -1px -1px #00000020;
}

.lp-frame-swatch.lp-wood {
  background-image: repeating-linear-gradient(90deg, #ffffff13 0 1px,
    transparent 1px 4px, #00000012 4px 5px, transparent 5px 7px);
}

.lp-frame-swatch.lp-accented::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--lp-accent-color, #b89b58);
}

.frame-swatch.lp-frame-swatch > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  background: #fff;
}

.lp-frame-samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
}
.lp-frame-samples .finish-sample {
  min-width: 0;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.lp-frame-samples .finish-sample > span:not(.frame-swatch) {
  display: block;
  min-width: 0;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.lp-frame-samples .finish-sample small {
  display: block;
  margin-top: 4px;
  color: #657164;
  font-size: 11px;
  line-height: 1.5;
}

.lp-frame-reference {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #ffffff35;
}

.lp-frame-reference > a { display: block; min-width: 0; }
.lp-frame-reference img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}
.lp-frame-reference figcaption {
  min-width: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #596b5a;
  overflow-wrap: anywhere;
}
.lp-frame-reference figcaption strong { display: block; color: var(--ink); font-weight: 500; }
.lp-frame-reference figcaption a { text-decoration: underline; text-underline-offset: 3px; }

/* Two generous columns keep every one of the fourteen mat names readable. */
.mat-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.mat-options .mat-option,
.mat-options .mat-choice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}

.lp-mat-swatch,
.mat-option .lp-mat-swatch,
.mat-choice .lp-mat-swatch,
.finish-sample > .lp-mat-swatch {
  display: block;
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  border: 1px solid #00000025;
  background: var(--lp-mat-color, var(--swatch, #ffffff));
  box-shadow: inset 0 0 0 2px var(--lp-core-color, #fcfcf9);
}

.lp-dimension-summary {
  margin: 14px 0 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #ffffff35;
  color: #485b4a;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.lp-dimension-summary strong { font-weight: 500; color: var(--ink); }
.lp-dimension-summary > span { display: block; }
.lp-dimension-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 0; }
.lp-dimension-summary dt, .lp-dimension-summary dd { margin: 0; }
.lp-dimension-summary dd { text-align: right; }
.lp-compatibility-note {
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid #8b9678;
  font-size: 12px;
  line-height: 1.65;
  color: #53634e;
  overflow-wrap: anywhere;
}
.lp-compatibility-note:empty { display: none; }
.scale-options button { min-width: 0; min-height: 56px; }
.scale-options button:disabled { opacity: .5; border-style: dashed; cursor: not-allowed; }
.scale-options button small { display: block; font-size: 11px; line-height: 1.45; margin-top: 3px; }

@media (min-width: 761px) and (max-width: 1000px) {
  .lp-frame-reference { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .mat-options .mat-option, .mat-options .mat-choice { gap: 7px; padding: 9px 8px; }
}

@media (max-width: 374px) {
  .lp-profile-select { font-size: 13px; }
  .frame-options, .frame-picker { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
  .lp-frame-reference { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .mat-options .mat-option, .mat-options .mat-choice { gap: 7px; padding: 9px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #main .framed.lumaprints-frame { transition: none; }
}

.lp-mat-swatch { position: relative; overflow: hidden; }
