:root {
  --wd-ink: #0b0d0c;
  --wd-paper: #f2f4ef;
  --wd-mist: #e6eae3;
  --wd-line: rgba(11, 13, 12, 0.14);
  --wd-green: #2fcb44;
  --wd-green-deep: #1c9e32;
}

body.wd-designer-open {
  overflow: hidden;
}

button {
  font: inherit;
}

/* Button elements should match the site's link-based pill buttons exactly. */
.windows-doors-page .btn-primary {
  appearance: none;
  border: 0;
  background-color: var(--color-accent);
  background-image: none;
  box-shadow: none;
}

.windows-doors-page .btn-primary:hover,
.windows-doors-page .btn-primary:focus-visible {
  background-color: var(--color-accent-hover);
  background-image: none;
  box-shadow: none;
  transform: none;
}

.wd-header-call {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.wd-hero {
  min-height: 92vh;
  padding: 170px 0 90px;
  background:
    radial-gradient(circle at 78% 28%, rgba(47, 203, 68, 0.11), transparent 29%),
    linear-gradient(135deg, #050706 0%, #101411 55%, #050605 100%);
  overflow: hidden;
}

.wd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.88fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.wd-eyebrow {
  margin-bottom: 1rem;
  color: var(--wd-green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wd-hero h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 6vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.wd-hero h1 span {
  color: rgba(255, 255, 255, 0.4);
}

.wd-hero-lead {
  max-width: 680px;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
}

.wd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.wd-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.wd-proof-row span::before {
  content: "✓";
  margin-right: 0.45rem;
  color: var(--wd-green);
  font-weight: 700;
}

.wd-hero-visual {
  position: relative;
  min-height: 610px;
}

.wd-architecture {
  position: absolute;
  inset: 0 0 0 7%;
  overflow: hidden;
  background: linear-gradient(115deg, #d6d2c8, #f5f3ec 58%, #c7c5bd);
  border-radius: 220px 12px 12px 12px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
}

.wd-architecture::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 29%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.13));
}

.wd-architecture-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 64%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.72), transparent 70%);
  clip-path: polygon(0 0, 100% 0, 45% 100%, 0 77%);
}

.wd-hero-door-frame {
  position: absolute;
  right: 13%;
  bottom: 49px;
  width: 43%;
  height: 74%;
  padding: 13px;
  background: #f2f2ed;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

.wd-hero-door {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #243d2f;
}

.wd-hero-door img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.wd-hero-handle {
  position: absolute;
  top: 51%;
  right: 12%;
  width: 4px;
  height: 44px;
  border-radius: 4px;
  background: #d9d9d3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.wd-architecture-step {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 59%;
  height: 49px;
  background: linear-gradient(#a5a49e, #74736e);
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
}

.wd-visual-note {
  position: absolute;
  left: 0;
  bottom: 11%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.4rem;
  color: var(--wd-ink);
  background: var(--wd-green);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.wd-note-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.wd-visual-note > span:last-child {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.wd-service-strip {
  padding: 0;
  color: var(--wd-ink);
  background: var(--wd-green);
}

.wd-service-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.wd-service-strip .container > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(0, 0, 0, 0.18);
}

.wd-service-strip .container > div:first-child {
  border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.wd-service-strip strong {
  font-family: var(--font-heading);
  opacity: 0.5;
}

.wd-service-strip span {
  font-size: 0.83rem;
  font-weight: 700;
}

.wd-collections {
  color: var(--wd-ink);
  background: var(--wd-paper);
}

.wd-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

.wd-section-heading h2,
.wd-windows-section h2,
.wd-final-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  letter-spacing: -0.045em;
}

.wd-section-heading > p,
.wd-window-copy > p {
  color: #626861;
}

.wd-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.wd-collection-card {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 340px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wd-line);
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wd-collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(35, 45, 37, 0.12);
}

.wd-card-large,
.wd-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: 50% 50%;
  min-height: 440px;
}

.wd-card-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100%;
  padding-top: 2rem;
  overflow: hidden;
  background: #d8ddd5;
}

.wd-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.45), transparent 45%);
  pointer-events: none;
}

.wd-card-image img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 88%;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.2));
  mix-blend-mode: multiply;
}

.wd-nottingham-image { background: #d9d2c5; }
.wd-traditional-image { background: #d2ded4; }
.wd-contemporary-image { background: #c9d0d2; }
.wd-designer-image { background: #c8beb2; }

.wd-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(2rem, 5vw, 4.6rem);
}

.wd-collection-card:not(.wd-card-large):not(.wd-card-wide) .wd-card-copy {
  padding: clamp(1.5rem, 2.5vw, 2.4rem);
}

.wd-card-copy > span {
  color: var(--wd-green-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wd-card-copy h3 {
  max-width: 100%;
  margin: 0.7rem 0 1rem;
  font-size: clamp(1.55rem, 1.8vw, 2.1rem);
  letter-spacing: -0.04em;
  overflow-wrap: normal;
}

.wd-card-large .wd-card-copy h3,
.wd-card-wide .wd-card-copy h3 {
  font-size: clamp(2.1rem, 2.5vw, 3.25rem);
}

.wd-collection-card:not(.wd-card-wide) .wd-card-copy h3 {
  white-space: nowrap;
}

.wd-card-copy p {
  max-width: 510px;
  color: #6b706b;
}

.wd-text-link {
  margin-top: 1.6rem;
  padding: 0;
  color: var(--wd-ink);
  background: transparent;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.wd-text-link span {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--wd-green-deep);
  transition: transform 0.2s ease;
}

.wd-text-link:hover span {
  transform: translateX(5px);
}

.wd-windows-section {
  color: #fff;
  background: #111512;
}

.wd-windows-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.wd-window-visual {
  display: grid;
  place-items: center;
  min-height: 590px;
  padding: 4rem;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(145deg, #b7b1a6, #e4e1da);
  border-radius: 250px 12px 12px 12px;
}

.wd-window-frame {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 88%;
  height: 68%;
  padding: 14px;
  gap: 10px;
  background: #f5f3ed;
  border: 10px solid #f5f3ed;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
}

.wd-window-frame div {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), transparent 45%),
    linear-gradient(#7d9796, #c3d6d3);
  border: 8px solid #e7e5df;
}

.wd-window-copy h2 {
  margin-bottom: 1.6rem;
}

.wd-window-copy ul {
  margin: 2rem 0;
  color: #d6dbd6;
}

.wd-window-copy li {
  position: relative;
  margin: 0.8rem 0;
  padding-left: 1.6rem;
}

.wd-window-copy li::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--wd-green);
  border-radius: 50%;
}

.wd-final-cta {
  padding: 130px 0;
  color: var(--wd-ink);
  text-align: center;
  background: var(--wd-green);
}

.wd-final-cta .wd-eyebrow {
  color: rgba(0, 0, 0, 0.54);
}

.wd-final-cta .btn {
  margin-top: 2.3rem;
  color: #fff;
  background: var(--wd-ink);
}

.wd-footer-grid {
  grid-template-columns: repeat(4, 1fr);
  padding-top: 3rem;
  gap: 2rem;
  border-top: 1px solid #222;
  text-align: left;
}

.wd-footer-logo {
  display: block;
  margin-bottom: 1rem;
}

.wd-footer-logo img { width: 180px; }
.wd-footer-grid p, .wd-footer-grid ul { color: #666; font-size: 0.9rem; line-height: 2; }
.wd-footer-grid h4 { margin-bottom: 1rem; }
.wd-copyright { margin-top: 3rem; color: #444; font-size: 0.8rem; }

/* Overlay designer */
.wd-designer-modal {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2vh 2vw;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wd-designer-modal [hidden] {
  display: none !important;
}

.wd-designer-modal.open {
  visibility: visible;
  opacity: 1;
}

.wd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.wd-designer-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1500px, 96vw);
  height: min(920px, 96vh);
  overflow: hidden;
  color: var(--wd-ink);
  background: #f5f6f2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.55);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.28s ease;
}

.wd-designer-modal.open .wd-designer-shell {
  transform: translateY(0) scale(1);
}

.wd-designer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.65rem 1rem 0.65rem 1.5rem;
  color: #fff;
  background: #090b0a;
}

.wd-designer-header > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wd-designer-header img {
  width: 125px;
  max-height: 48px;
  object-fit: contain;
}

.wd-designer-header > div > div {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 1px solid #333;
}

.wd-designer-header span {
  color: #8d958e;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wd-designer-header strong {
  font-family: var(--font-heading);
  font-size: 0.92rem;
}

.wd-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #1b1e1c;
  border: 1px solid #303430;
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.wd-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 0 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--wd-line);
}

.wd-progress button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.5rem;
  color: #8d918d;
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.wd-progress button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

.wd-progress button.active,
.wd-progress button.complete {
  color: var(--wd-ink);
}

.wd-progress button.active::after {
  background: var(--wd-green);
}

.wd-progress button span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #737873;
  background: #eef0ec;
  border-radius: 50%;
  font-size: 0.67rem;
}

.wd-progress button.active span,
.wd-progress button.complete span {
  color: var(--wd-ink);
  background: var(--wd-green);
}

.wd-designer-body {
  display: grid;
  grid-template-columns: minmax(330px, 36%) minmax(0, 64%);
  min-height: 0;
}

.wd-preview-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 1.3rem clamp(1.2rem, 3vw, 2.6rem);
  color: #fff;
  background:
    radial-gradient(circle at 50% 38%, #303833, transparent 38%),
    #121513;
}

.wd-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8f9891;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wd-preview-actions {
  display: flex;
  gap: 0.4rem;
}

.wd-preview-actions button {
  padding: 0.35rem 0.55rem;
  color: #ced3ce;
  background: #242925;
  border: 1px solid #383e39;
  border-radius: 5px;
  font-size: 0.63rem;
  cursor: pointer;
}

.wd-product-preview {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 310px;
  padding: 1.1rem 0;
}

.wd-door-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.wd-preview-frame {
  width: min(210px, 58%);
  aspect-ratio: 0.49;
  padding: 10px;
  background: #f4f4f0;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
  transition: background 0.25s ease;
}

.wd-preview-panel-surface {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #fff;
  background-size: cover;
  transition: background 0.25s ease;
}

.wd-preview-panel-surface img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: multiply;
  opacity: 0.94;
}

.wd-preview-hardware {
  position: absolute;
  top: 51%;
  right: 10%;
  width: 4px;
  height: 38px;
  background: #d1d1ce;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.46);
}

.wd-window-preview {
  display: grid;
  place-items: center;
  width: 100%;
}

.wd-config-window {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(310px, 82%);
  aspect-ratio: 1.28;
  padding: 12px;
  gap: 8px;
  background: #f5f5ef;
  border: 7px solid #e6e7e1;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.48);
}

.wd-config-window i {
  background: linear-gradient(145deg, #e5f5f4, #79979b);
  border: 6px solid rgba(255, 255, 255, 0.78);
}

.wd-preview-caption {
  display: flex;
  flex-direction: column;
  padding-top: 0.8rem;
}

.wd-preview-caption strong {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.wd-preview-caption span {
  color: #8e978f;
  font-size: 0.75rem;
}

.wd-mini-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.7rem;
  margin-top: 0.8rem;
  font-size: 0.7rem;
}

.wd-mini-summary dt { color: #747d75; }
.wd-mini-summary dd { overflow: hidden; color: #d8ddd8; text-overflow: ellipsis; white-space: nowrap; }
.wd-preview-disclaimer { margin-top: 0.8rem; color: #697069; font-size: 0.61rem; line-height: 1.45; }

.wd-question-panel {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(1.7rem, 4vw, 3.5rem);
  scroll-behavior: smooth;
}

.wd-step {
  display: none;
  max-width: 850px;
  margin: 0 auto;
}

.wd-step.active { display: block; animation: wd-step-in 0.25s ease; }

@keyframes wd-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wd-step-kicker {
  margin-bottom: 0.55rem;
  color: var(--wd-green-deep);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wd-step h2 {
  max-width: 740px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.wd-step-intro {
  max-width: 700px;
  margin: 0.75rem 0 2rem;
  color: #697069;
}

.wd-question-heading {
  margin: 2rem 0 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wd-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.wd-choice {
  position: relative;
  min-height: 120px;
  padding: 1.2rem;
  color: var(--wd-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--wd-line);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wd-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 13, 12, 0.35);
}

.wd-choice.active {
  border-color: var(--wd-green-deep);
  box-shadow: inset 0 0 0 1px var(--wd-green-deep);
}

.wd-choice.active::after,
.wd-style-tile.active::after,
.wd-glass-tile.active::after,
.wd-colour-tile.active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #071009;
  background: var(--wd-green);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.wd-choice strong,
.wd-choice small {
  display: block;
}

.wd-choice strong { margin-top: 0.7rem; font-family: var(--font-heading); }
.wd-choice small { margin-top: 0.35rem; color: #6e746e; line-height: 1.4; }

.wd-choice-icon {
  display: block;
  width: 31px;
  height: 38px;
  border: 3px solid #222;
}

.wd-door-icon { border-bottom-width: 6px; }
.wd-window-icon { position: relative; width: 44px; height: 32px; }
.wd-window-icon::before, .wd-window-icon::after { content: ""; position: absolute; background: #222; }
.wd-window-icon::before { top: 0; bottom: 0; left: 50%; width: 2px; }
.wd-window-icon::after { top: 50%; right: 0; left: 0; height: 2px; }

.wd-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wd-chip {
  padding: 0.65rem 1rem;
  color: #515751;
  background: #fff;
  border: 1px solid var(--wd-line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.wd-chip.active {
  color: #fff;
  background: var(--wd-ink);
  border-color: var(--wd-ink);
}

.wd-search-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.wd-search-row .form-input { max-width: 360px; background: #fff; color: var(--wd-ink); border-color: var(--wd-line); }
.wd-search-row span { color: #818681; font-size: 0.72rem; white-space: nowrap; }

.wd-style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.wd-style-tile,
.wd-glass-tile,
.wd-colour-tile {
  position: relative;
  overflow: hidden;
  color: var(--wd-ink);
  background: #fff;
  border: 1px solid var(--wd-line);
  border-radius: 7px;
  cursor: pointer;
}

.wd-style-tile { padding: 0.6rem; }
.wd-style-tile img { width: 100%; aspect-ratio: 0.53; object-fit: contain; background: #e9ebe7; }
.wd-style-tile span, .wd-glass-tile span, .wd-colour-tile span { display: block; padding: 0.6rem 0.2rem 0.2rem; font-size: 0.67rem; font-weight: 600; line-height: 1.25; }
.wd-style-tile.active, .wd-glass-tile.active, .wd-colour-tile.active { border-color: var(--wd-green-deep); box-shadow: inset 0 0 0 1px var(--wd-green-deep); }

.wd-colour-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.wd-colour-tile { padding: 0.45rem; text-align: left; }
.wd-colour-tile img, .wd-colour-swatch {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
  border-radius: 4px;
  background: #ddd;
}

.wd-frame-colour-grid .wd-colour-tile img { aspect-ratio: 2.2; }

.wd-ral-field { max-width: 340px; margin-top: 1rem; }

.wd-glass-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  max-height: 310px;
  padding-right: 0.25rem;
  gap: 0.55rem;
  overflow-y: auto;
}

.wd-glass-tile { padding: 0.4rem; }
.wd-glass-tile img { width: 100%; aspect-ratio: 0.7; object-fit: cover; background: #e9ece9; }

.wd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.wd-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #4e554f;
  font-size: 0.75rem;
  font-weight: 600;
}

.wd-field .form-input {
  color: var(--wd-ink);
  background: #fff;
  border-color: var(--wd-line);
}

.wd-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.2rem;
  color: #555c56;
  font-size: 0.78rem;
}

.wd-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--wd-green-deep);
}

.wd-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1rem;
  margin-top: 1rem;
}

.wd-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px dashed #a8aea8;
  border-radius: 8px;
  cursor: pointer;
}

.wd-upload span { display: flex; flex-direction: column; }
.wd-upload small { margin-top: 0.2rem; color: #858b85; }
.wd-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.wd-upload em { padding: 0.55rem 0.8rem; color: #fff; background: var(--wd-ink); border-radius: 5px; font-size: 0.72rem; font-style: normal; font-weight: 700; white-space: nowrap; }

.wd-file-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.wd-file-list span { padding: 0.35rem 0.55rem; background: #e6eae4; border-radius: 5px; font-size: 0.67rem; }
.wd-consent { margin: 1.2rem 0; }
.wd-submit { width: 100%; border: 0; }
.wd-form-message { min-height: 1.4rem; margin-bottom: 0.55rem; color: #267636; font-size: 0.78rem; }
.wd-form-message.error { color: #b32828; }

.wd-designer-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0.6rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--wd-line);
}

.wd-designer-footer .btn { justify-self: end; min-width: 140px; padding: 11px 24px; border: 0; }
.wd-back-button { justify-self: start; padding: 0.7rem; color: #555b56; background: transparent; border: 0; font-weight: 700; cursor: pointer; }
.wd-designer-footer > span { color: #888e89; font-size: 0.68rem; }

[data-open-window-door-designer].btn-primary:hover,
.wd-designer-modal .btn-primary:hover,
.wd-final-cta .btn:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .wd-hero-grid { grid-template-columns: 1fr 0.75fr; }
  .wd-hero-visual { min-height: 510px; }
  .wd-style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wd-glass-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wd-colour-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1180px) and (min-width: 769px) {
  .wd-header-call { display: none; }
}

@media (max-width: 768px) {
  .wd-header-call { display: none; }
  .wd-hero { min-height: auto; padding-top: 330px; }
  .wd-hero-grid, .wd-section-heading, .wd-windows-grid { grid-template-columns: 1fr; }
  .wd-hero h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
  .wd-hero-visual { min-height: 500px; }
  .wd-architecture { left: 0; }
  .wd-proof-row { gap: 0.7rem 1.2rem; }
  .wd-service-strip .container { grid-template-columns: 1fr 1fr; }
  .wd-service-strip .container > div { border-bottom: 1px solid rgba(0, 0, 0, 0.18); }
  .wd-collection-grid { grid-template-columns: 1fr; }
  .wd-collection-card, .wd-card-large, .wd-card-wide { grid-column: auto; grid-template-columns: 1fr; }
  .wd-card-image { min-height: 300px; }
  .wd-card-copy { padding: 2rem; }
  .wd-card-copy h3 { white-space: normal; }
  .wd-window-visual { min-height: 400px; padding: 2rem; }

  .wd-designer-modal { padding: 0; }
  .wd-designer-shell { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .wd-designer-header { min-height: 62px; }
  .wd-designer-header img { width: 100px; }
  .wd-designer-header > div > div { display: none; }
  .wd-progress { padding: 0 0.5rem; overflow-x: auto; }
  .wd-progress button { min-width: 49px; min-height: 50px; font-size: 0; }
  .wd-progress button span { font-size: 0.67rem; }
  .wd-designer-body { display: block; overflow-y: auto; }
  .wd-preview-panel { position: sticky; z-index: 3; top: 0; display: grid; grid-template-columns: 105px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 0.9rem; min-height: 150px; max-height: 170px; padding: 0.7rem 1rem; overflow: hidden; background: #151916; }
  .wd-preview-topline { display: none; }
  .wd-product-preview { grid-row: 1 / 3; min-height: 0; padding: 0; }
  .wd-preview-frame { width: 64px; padding: 4px; }
  .wd-config-window { width: 98px; padding: 4px; gap: 3px; border-width: 3px; }
  .wd-config-window i { border-width: 2px; }
  .wd-preview-caption { align-self: end; padding-top: 0; border-top: 0; }
  .wd-mini-summary { align-self: start; max-height: 43px; margin-top: 0.3rem; overflow: hidden; }
  .wd-preview-disclaimer { display: none; }
  .wd-question-panel { overflow: visible; padding: 1.4rem 1rem 6rem; }
  .wd-step h2 { font-size: 1.8rem; }
  .wd-choice-grid, .wd-form-grid { grid-template-columns: 1fr; }
  .wd-product-choice-grid { grid-template-columns: 1fr 1fr; }
  .wd-product-choice-grid .wd-choice { min-height: 155px; padding: 0.9rem; }
  .wd-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wd-colour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wd-glass-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; }
  .wd-check-grid { grid-template-columns: 1fr; }
  .wd-designer-footer { position: absolute; z-index: 6; right: 0; bottom: 0; left: 0; grid-template-columns: 1fr 1fr; min-height: 62px; }
  .wd-designer-footer > span { display: none; }
}

@media (max-width: 430px) {
  .wd-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-glass-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wd-upload { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .wd-designer-shell,
  .wd-designer-modal,
  .wd-step,
  .wd-collection-card { transition: none; animation: none; }
}
