/* Vanity configurator (design.html). Uses ByNook tokens from ../css/theme.css:
   square corners, 1px taupe lines, no shadows, no white or black areas. */
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  background: var(--cream); border: var(--line); border-radius: 0; padding: 10px 12px; width: 100%; color: var(--espresso);
}

.shop {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: start;
}
/* Viewer and the spec list under it stay in view while the options scroll. */
.stage-col { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* The 3D view with its tools in one tidy bar underneath it (never over the picture): equal
   cells in a row, two to a row on a phone. */
.stage { position: relative; display: flex; flex-direction: column; height: calc(100vh - 200px); min-height: 400px; }
.viewport { position: relative; flex: 1 1 auto; min-height: 0; background: var(--sand); overflow: hidden; }
.viewport canvas { display: block; }
.stage-tools { flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-left: var(--line); }
.stage-tools button, .stage-tools label {
  background: var(--cream); border: none; border-right: var(--line); border-bottom: var(--line); border-radius: 0; padding: 12px 8px; cursor: pointer; min-width: 0;
  font-size: var(--fs-label-sm); letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; text-align: center;
  display: flex; gap: 8px; align-items: center; justify-content: center;
}
.stage-tools button:hover, .stage-tools label:hover { background: var(--sand); }
.stage-tools input { width: auto; accent-color: var(--olive-black); margin: 0; }
.viewer-error { position: absolute; inset: 0 0 46px; display: grid; place-items: center; }
.photo-progress {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, 80%);
  background: var(--cream); border: var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
  font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); text-transform: uppercase;
}
.photo-progress i { display: block; height: 2px; background: var(--olive-black); width: 0; transition: width .2s; }
.modal-card.photo-card { width: min(1100px, 100%); }
.photo-card img { width: 100%; height: auto; display: block; background: var(--sand); }
.modal-card.drawing-card { width: min(1240px, 100%); }
.drawing-tabs { max-width: 420px; margin: 4px 0 14px; }
#drawingBox { background: #fff; border: var(--line); overflow: auto; max-height: 64vh; }
#drawingBox svg { display: block; width: 100%; min-width: 860px; height: auto; }
.drawing-note { margin: 12px 0 0; font-size: 14px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.photo-frame { position: relative; }
.ai-busy { position: absolute; inset: auto 0 0 0; padding: 12px 16px; background: rgba(20, 20, 20, .62); color: #fff; font-size: 14px; }
.ai-busy i { display: block; height: 3px; margin-top: 8px; background: linear-gradient(90deg, transparent, #fff, transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: aiSweep 1.4s linear infinite; }
@keyframes aiSweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.ai-note { margin: 10px 0 0; font-size: 13px; color: var(--muted, #666); }
.ai-error { margin: 10px 0 0; font-size: 14px; color: #a33; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.summary-chips li { background: var(--cream); border: var(--line); padding: 4px 10px; font-size: 13px; }

.config { border-top: 1px solid var(--espresso); }
/* The pieces of the design as tabs, with what can still be added after them. */
.piece-bar { padding: 12px 0; border-bottom: var(--line); }
.design-foot { margin: 0; padding: 10px 0 4px; text-align: right; }
.piece-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; min-width: 0; }
.piece { display: inline-flex; border: var(--line); }
.piece button { border: none; background: none; cursor: pointer; padding: 10px 14px; font-size: var(--fs-label); letter-spacing: var(--track-nav); text-transform: uppercase; }
.piece .piece-x { padding: 10px 11px; border-left: var(--line); letter-spacing: 0; font-size: 16px; line-height: 1; }
.piece.active { background: var(--olive-black); border-color: var(--olive-black); }
.piece.active button { color: var(--cream); }
.piece.active .piece-x { border-left-color: rgba(245, 240, 232, .35); }
.piece-add { border: 1px dashed var(--taupe); background: none; cursor: pointer; padding: 10px 14px; color: var(--walnut); font-size: var(--fs-label); letter-spacing: var(--track-nav); text-transform: uppercase; }
.piece-add:hover { border-style: solid; color: var(--espresso); }
.suggest { border-top: var(--line); padding: 16px 0 6px; display: flex; flex-direction: column; gap: 12px; }
.suggest p { margin: 0; font-size: 16px; }
.suggest-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.suggest-buttons .btn { padding: 12px 20px; flex: 1 1 180px; }
/* What to design first. */
.modal-card.start-modal { width: min(820px, 100%); }
.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.start-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; border: var(--line); background: none; padding: 18px; cursor: pointer; color: var(--espresso); }
.start-card:hover { background: var(--sand); }
.start-resume { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: var(--line); background: var(--sand-soft); padding: 16px 18px; margin: 14px 0 18px; }
.start-resume b { font-weight: 400; font-size: 20px; }
.start-resume span { font-size: 14px; color: var(--walnut); }
.start-card svg { align-self: center; color: var(--walnut); }
.start-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.start-card b { font-weight: 400; font-size: 20px; }
.start-text span { font-size: 14px; color: var(--walnut); line-height: 1.45; }
@media (max-width: 760px) {
  .modal-card.start-modal { padding: 24px 18px; }
  .start-grid { grid-template-columns: 1fr; gap: 10px; }
  .start-card { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
  .start-card svg { width: 76px; height: 57px; flex: none; }
}
.together { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; border-bottom: var(--line); }
.together .segmented.small { max-width: none; flex: 1 1 280px; }
.together .segmented button { padding: 10px 6px; letter-spacing: .12em; }
.together label { display: flex; align-items: center; gap: 10px; font-size: 15px; flex: 1 1 100%; justify-content: space-between; }
.together label input { width: 96px; }
.product-switch button { padding: 14px 8px; }
#tallboyStorage .segmented { flex-wrap: wrap; }
#tbShelves, #sbShelves { flex: 1 1 100%; }
#tbShelves button, #sbShelves button { padding-left: 4px; padding-right: 4px; }
#shavingStorage .segmented, #sbDoorRow .segmented { flex-wrap: wrap; }
/* Five kinds of basin: on a phone they wrap onto two rows. */
@media (max-width: 560px) { #basinTypes { flex-wrap: wrap; } #basinTypes button { flex: 1 1 30%; } #basinTypes button + button { border-left: none; } #basinTypes button { border-right: var(--line); border-bottom: var(--line); } }
.product-switch button { letter-spacing: .14em; }
.together .segmented.small { flex: 1 1 100%; }
.segmented button[disabled] { opacity: .35; cursor: not-allowed; }
/* The eight steps as tabs: one step on screen at a time, so the options need no long scroll. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: var(--line); }
.steps button {
  position: relative; min-width: 0; border: none; border-right: var(--line); border-bottom: var(--line); background: none;
  padding: 9px 4px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); text-transform: uppercase; color: var(--walnut);
}
.steps button b { font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--espresso); }
.steps button.active { background: var(--olive-black); color: var(--cream); }
.steps button.active b { color: var(--cream); }
.steps button:disabled { opacity: .4; cursor: not-allowed; }
/* A step that needs attention (a basin that no longer fits). */
.steps button.warn::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: #8f2a1c; }
.config.tabbed fieldset { border-bottom: none; min-height: 200px; }
.config.tabbed fieldset:not(.is-active) { display: none; }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: var(--line); }
.step-nav span { font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); color: var(--walnut); }
.step-nav .link:disabled { opacity: .35; cursor: default; text-decoration: none; }
.config:not(.tabbed) .step-nav { display: none; }
fieldset { border: none; border-bottom: var(--line); margin: 0; padding: 22px 0; min-width: 0; }   /* (a fieldset is otherwise as wide as its widest row, wider than a phone) */
legend {
  float: left; width: 100%; padding: 0; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline;
  font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--walnut);
}
legend + *, legend + [hidden] + * { clear: both; }   /* (the photos for ideas may sit hidden right under it) */
legend span { color: var(--espresso); }

.segmented { display: flex; border: var(--line); }
.segmented button {
  flex: 1; border: none; background: none; padding: 12px 8px; cursor: pointer;
  font-size: var(--fs-label); letter-spacing: var(--track-nav); text-transform: uppercase;
}
.segmented button + button { border-left: var(--line); }
.segmented button.active { background: var(--olive-black); color: var(--cream); }
.segmented.small { max-width: 220px; }
.sub { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.sub > .segmented { min-width: 0; }
.segmented button { min-width: 0; }
.sub-label { font-size: 15px; }

.size-row { display: grid; gap: 12px; }
.size-row label { display: grid; grid-template-columns: 64px 1fr 96px; gap: 12px; align-items: center; font-size: 15px; }
.size-row input[type=range] { padding: 0; border: none; background: none; accent-color: var(--olive-black); }
/* A size with no slider (the laundry's wall): the words, then the number. */
.size-row.plain label { grid-template-columns: 1fr 110px; }
.size-row.sub-gap { margin-top: 14px; }
.sub.first { margin-top: 0; }
/* The laundry's run along the wall, to scale: one block for each thing standing on the floor.
   The machines' places are dashed (they are not cabinets); the chosen block is dark. */
.ld-plan { display: flex; flex-direction: column; gap: 8px; }
.ld-run { display: flex; border: var(--line); min-height: 58px; }
.ld-run button {
  min-width: 0; border: none; background: none; cursor: pointer; padding: 6px 2px; overflow: hidden; color: var(--espresso);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; line-height: 1.2; text-align: center;
}
.ld-run button + button { border-left: var(--line); }
.ld-run button small { font-size: 11px; color: var(--walnut); }
.ld-run button.machines { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(166, 138, 114, .22) 6px 7px); }
.ld-run button.tall { background: var(--sand); }
.ld-run button.active { background: var(--olive-black); color: var(--cream); }
.ld-run button.active small { color: var(--sand); }
.ld-move { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
/* The laundry's layout step: ready-made layouts as picture cards, two to a row. */
.ld-lead { margin: 0 0 12px; font-size: 15px; }
.ld-layouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.ld-layout { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left; border: var(--line); background: none; padding: 10px 10px 12px; cursor: pointer; color: var(--espresso); }
.ld-layout svg { margin-bottom: 6px; }
.ld-layout b { font-weight: 400; font-size: 16px; }
.ld-layout span { font-size: 13px; line-height: 1.4; color: var(--walnut); }
.ld-layout:hover { background: var(--sand); }
.ld-layout.active { border-color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); background: var(--sand); }
/* Photos of finished laundries: a strip to swipe through, and the photo large. */
.ideas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ideas-n { font-size: 13px; color: var(--walnut); }
.ideas-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.idea { flex: none; height: 104px; padding: 0; border: var(--line); background: var(--sand); cursor: pointer; scroll-snap-align: start; overflow: hidden; }
.idea img { display: block; height: 100%; width: auto; max-width: 220px; object-fit: cover; }
.idea:hover, .idea:focus-visible { border-color: var(--espresso); }
.modal-card.idea-card { width: min(980px, 100%); padding: 0 0 22px; }
.idea-card .close { z-index: 1; background: var(--cream); width: 34px; height: 34px; top: 10px; right: 10px; }
.idea-photo { position: relative; background: var(--sand); }
.idea-photo img { display: block; width: 100%; height: auto; max-height: 68vh; object-fit: contain; }
.idea-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; border: none; background: var(--cream); color: var(--espresso); font-size: 28px; line-height: 1; cursor: pointer; }
.idea-nav.prev { left: 0; } .idea-nav.next { right: 0; }
.idea-nav[hidden] { display: none; }
.idea-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 22px 0; }
.idea-foot h2 { font-size: 20px; font-weight: 400; margin: 0 0 4px; }
.idea-foot small { display: block; font-size: 12px; color: var(--walnut); }
.idea-foot > span { flex: none; font-size: 13px; color: var(--walnut); font-variant-numeric: tabular-nums; }
.idea-card .photo-actions { padding: 0 22px; }
.ld-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ld-plan-head .link:disabled { opacity: .35; cursor: default; text-decoration: none; }
/* What can be done with the piece that was tapped, and what can still be added. */
.ld-piece { border: var(--line); border-top: none; margin-top: -8px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.ld-piece .sub { margin-top: 10px; }
.ld-piece .hint { margin-top: 10px; }
.ld-remove { align-self: flex-start; margin-top: 12px; }
.ld-add { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-add:empty { display: none; }
.ld-add button { border: 1px dashed var(--taupe); background: none; cursor: pointer; padding: 9px 12px; color: var(--walnut); font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); text-transform: uppercase; }
.ld-add button:hover:not(:disabled) { border-style: solid; color: var(--espresso); }
.ld-add button:disabled { opacity: .4; cursor: not-allowed; }
#ldAbove { flex-wrap: wrap; }
.ld-rail { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ld-rail-set { display: flex; justify-content: flex-end; gap: 22px; }
.ld-rail-set .link:disabled { opacity: .35; cursor: default; text-decoration: none; }
.ld-more { margin-top: 18px; border-top: var(--line); padding-top: 12px; }
.ld-more summary { cursor: pointer; font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); text-transform: uppercase; color: var(--walnut); }
.ld-move span { font-size: 14px; text-align: center; min-width: 0; }
.ld-move .link:disabled { opacity: .35; cursor: default; text-decoration: none; }
/* A row whose choices are long words: the choices go under the row's name, full width. */
.sub.stack { display: block; }
.sub.stack > .segmented { max-width: none; margin-top: 8px; }
.hint { font-size: 14px; margin: 10px 0 0; color: var(--espresso); }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; align-items: start; }
.swatch { border: 1px solid transparent; background: none; padding: 5px; cursor: pointer; text-align: left; font-size: 13px; }
.swatch i { display: block; height: 44px; border: var(--line); margin-bottom: 6px; }
.swatch i.none { background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 6px, var(--sand) 6px, var(--sand) 7px); }
.swatch.active { border-color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); }
/* Dulux colours as paint chips: slim strips, more to a row. */
#paints { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
#paints .swatch { padding: 4px; font-size: 11px; line-height: 1.25; }
#paints .swatch i { height: 22px; margin-bottom: 4px; }
#paints .swatch .new { font-size: 9px; letter-spacing: .06em; }
/* Supplier swatches: the supplier's own picture, cut from one sheet of square tiles
   (Polytec 14 x 13, YDL 11 x 11). The tile is square and the swatch is 4:3, so the middle shows. */
.swatch i.photo { position: relative; height: auto; aspect-ratio: 4 / 3; overflow: hidden; }
.swatch i.photo b { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1; transform: translateY(-50%); background-repeat: no-repeat; }
.swatch i.polytec b { background-image: url(images/polytec-swatches.webp); background-size: 1400% 1300%; }
.swatch i.laminex b { background-image: url(images/laminex-swatches.webp); background-size: 500% 400%; }
.swatch i.own { background-position: center; background-repeat: no-repeat; }
.swatch i.drawn { background: #fff; display: flex; align-items: center; justify-content: center; padding: 4px 8px; box-sizing: border-box; }
#handleFinishes { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
#handleFinishes .swatch i { height: 30px; }
/* Sydney Doors' own picture of each door design: a square tile, shown whole. */
#doorDesigns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.swatch i.photo.sd { aspect-ratio: 1; background: #fff; }
.swatch i.sd b { background-image: url(images/sydney-doors.webp); }
.segmented button:disabled { opacity: .35; cursor: not-allowed; }
.swatch i.ydl b { background-image: url(images/ydl-swatches.webp); background-size: 1100% 1100%; }
#colours.swatch-scroll, #stones.swatch-scroll { max-height: 400px; }
.swatch .new { display: block; font-size: 10px; letter-spacing: var(--track-nav); text-transform: uppercase; color: var(--walnut); }
.swatch-scroll { max-height: 330px; overflow-y: auto; padding-right: 4px; }
.colour-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
/* The filters under a search box: one tidy row that scrolls sideways when it is longer than the screen. */
.colour-tools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.colour-tools .chips::-webkit-scrollbar { display: none; }
.colour-tools .chips button { flex: none; }
/* On a phone a list does not scroll inside the page: the page itself scrolls. */
@media (max-width: 760px) {
  .swatch-scroll, #colours.swatch-scroll, #stones.swatch-scroll { max-height: none; overflow: visible; padding-right: 0; }
  .swatch-scroll.clipped { max-height: 480px; overflow: hidden; }
}
.more-list { align-self: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  border: var(--line); background: none; padding: 6px 10px; cursor: pointer;
  font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); text-transform: uppercase;
}
.chips button.active { background: var(--olive-black); color: var(--cream); border-color: var(--olive-black); }
#finishRow { flex-wrap: wrap; }
#finishes { flex-wrap: wrap; max-width: 100%; }
.block { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.block > .cards { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); text-transform: uppercase; }
.field select { text-transform: none; letter-spacing: normal; font-size: 15px; }
.swatch i.integrated { background: linear-gradient(180deg, var(--cream) 0 70%, #b9bcbe 70% 80%, var(--cream) 80%); }
.swatch i.integrated.gola { background: linear-gradient(180deg, #b9bcbe 0 18%, #3a3a3a 18% 26%, var(--cream) 26%); }
.basin-list { display: flex; flex-direction: column; max-height: 400px; overflow-y: auto; border-top: var(--line); }
.basin-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; flex: none; min-width: 0;
  text-align: left; background: none; border: none; border-bottom: var(--line); padding: 8px 6px; cursor: pointer; color: inherit; font: inherit;
}
/* A drawing of the basin from above, in its colour. */
.basin-card .bm-photo {
  grid-row: 1 / span 3; width: 64px; height: 64px; border: var(--line); background: #fff; display: block; padding: 2px; box-sizing: border-box;
}
.basin-card .bm-name { font-size: 14px; grid-column: 2; }
.basin-card .bm-name, .basin-card .bm-meta { min-width: 0; overflow-wrap: anywhere; }
.basin-card .bm-meta { font-size: 12px; color: var(--walnut); grid-column: 2; }
.basin-card .bm-price { grid-row: 1 / span 3; grid-column: 3; font-size: 15px; }
.basin-card.active { background: var(--olive-black); color: var(--cream); }
.basin-card.active .bm-meta { color: var(--sand); }
/* A basin that needs more room than this vanity has: labelled, and switched off unless already chosen. */
.basin-card .bm-fit {
  grid-column: 2; justify-self: start; margin-top: 3px; padding: 2px 7px; border: 1px solid #8f2a1c; color: #8f2a1c;
  font-size: var(--fs-label-sm); letter-spacing: .08em; text-transform: uppercase;
}
.basin-card.active .bm-fit { border-color: #f0b9ae; color: #f0b9ae; }
.basin-card:disabled { cursor: not-allowed; }
.basin-card:disabled .bm-photo, .basin-card:disabled .bm-name, .basin-card:disabled .bm-meta, .basin-card:disabled .bm-price { opacity: .45; }
.notice { margin: 0; padding: 10px 12px; border: 1px solid #8f2a1c; color: #8f2a1c; font-size: 14px; }
#orderBlock { margin-top: 10px; }
.price-bar .btn:disabled { cursor: not-allowed; }
#finishes { max-width: none; flex: 1 1 200px; }

/* Room styling (preview only) */
#sceneBlock fieldset { border-bottom: none; }
#sceneBlock .segmented.small { max-width: 280px; flex: 1 1 200px; }
#sceneBlock .segmented button:disabled { opacity: .4; cursor: not-allowed; }
#tileColours { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.colour-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.colour-pick input { width: 64px; height: 36px; padding: 2px; cursor: pointer; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 14px; border-top: var(--line); border-left: var(--line); }
.card { border: none; border-right: var(--line); border-bottom: var(--line); background: none; padding: 12px; cursor: pointer; text-align: left; font-size: 15px; }
.card small { display: block; color: var(--walnut); font-size: 13px; }
.card.active { background: var(--olive-black); color: var(--cream); }
.card.active small { color: var(--sand); }
.check { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 15px; }
.check input { width: auto; accent-color: var(--olive-black); }

.price-bar { position: sticky; bottom: 0; background: var(--cream); display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--espresso); }
.price-bar > div:first-child { flex: 1; }
.price { font-size: 30px; font-weight: 300; line-height: 1.2; }
.price small { display: block; margin-top: 2px; font-size: var(--fs-label-sm); letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; color: var(--walnut); }
.link { background: none; border: none; color: var(--walnut); padding: 0; cursor: pointer; font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.qty { display: flex; align-items: center; gap: 8px; font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); text-transform: uppercase; }
.qty input { width: 64px; }
.btn.wide { width: 100%; margin-top: 14px; }
.breakdown { padding: 0 0 18px; }
.breakdown table, .order-summary table { width: 100%; border-collapse: collapse; font-size: 15px; }
.breakdown td, .order-summary td { padding: 8px 0; border-bottom: var(--line); }
.breakdown td:last-child, .order-summary td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 500; border-bottom: none; }

.modal { position: fixed; inset: 0; background: rgba(47, 49, 37, .55); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal-card { position: relative; background: var(--cream); width: min(600px, 100%); max-height: 92vh; overflow: auto; padding: 32px; }
.modal-card h2 { font-size: var(--fs-h-sub); font-weight: 300; margin: 0 0 20px; }
.modal-card p { margin: 0 0 10px; }
.close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 18px; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 label { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-label-sm); letter-spacing: var(--track-nav); text-transform: uppercase; }
.span2 { grid-column: 1 / -1; }
.order-summary { margin: 20px 0 6px; background: var(--sand); padding: 16px; font-size: 15px; }
.order-summary ul { margin: 0 0 10px; padding-left: 18px; list-style: disc; }
.error { color: #8f2a1c; }

@media (max-width: 960px) {
  .shop { grid-template-columns: minmax(0, 1fr); }   /* (1fr would grow to the widest row inside it) */
  /* The 3D view stays at the top of the screen while the options scroll under it, so every
     choice is seen as it is made. */
  .stage-col { position: sticky; top: 0; z-index: 6; background: var(--cream); gap: 0; padding-bottom: 8px; }
  .stage { height: auto; min-height: 0; }
  .viewport { flex: none; height: 34vh; min-height: 210px; }
  .stage-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stage-tools button, .stage-tools label { padding: 8px 4px; font-size: 10px; letter-spacing: .08em; gap: 4px; }
  .stage-tools > :nth-child(5) { grid-column: 1 / -1; }
  /* (what is scrolled to stops under the 3D view, not behind it) */
  .steps, .config fieldset { scroll-margin-top: calc(max(34vh, 210px) + 60px); }
  .grid2 { grid-template-columns: 1fr; }
  .size-row label { grid-template-columns: 56px 1fr 84px; }
}

/* On a phone the price and the order button sit on one slim line. */
@media (max-width: 760px) {
  .price-bar { padding: 10px 0; gap: 10px; }
  .price-bar .price { font-size: 26px; line-height: 1.1; }
  .price-bar #btnBreakdown { font-size: 10px; padding: 2px 0; }
  .price-bar .qty { font-size: 10px; gap: 4px; }
  .price-bar .qty input { width: 48px; padding: 6px; }
  .price-bar .btn { padding: 12px 16px; }
}

/* ===== Oct 2026 look: matched to bynook.com.au (oat, sand, walnut, sage, olive) ===== */
body { font-size: 15px; }
.topstrip {
  background: var(--olive-black); color: var(--cream); text-align: center; padding: 7px var(--gutter);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5;
}
.topstrip a { color: var(--cream); text-decoration: none; }
.topstrip { position: relative; }
.topstrip .ts-social { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; gap: 12px; }
.topstrip .ts-social a { display: flex; opacity: .85; }
.topstrip .ts-social a:hover, .topstrip .ts-social a:focus-visible { opacity: 1; }
.bn-header {
  position: relative; display: flex; align-items: center; gap: 28px; flex-wrap: nowrap;
  padding: 10px var(--gutter); border-bottom: 1px solid var(--sand-soft); background: var(--cream); margin-bottom: 18px;
}
.bn-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.bn-brand img { width: 34px; height: auto; display: block; }
.bn-header .wordmark {
  font-family: var(--font-serif); font-size: 26px; font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--espresso);
}
.bn-header .main-nav { flex: 1; justify-content: center; gap: 4px 26px; flex-wrap: nowrap; font-size: 10.5px; letter-spacing: .16em; font-weight: 500; }
.bn-header .main-nav a { padding: 8px 0; white-space: nowrap; color: var(--espresso); }
.bn-header .main-nav a:hover { color: var(--walnut); text-decoration: none; }
.bn-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.bn-pill {
  background: var(--olive-black); color: var(--cream); border-radius: 999px; padding: 8px 16px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; white-space: nowrap;
}
.bn-cart { color: var(--espresso); display: flex; }
.bn-cart:hover { color: var(--walnut); }
.bn-burger { display: none; background: none; border: none; width: 34px; height: 34px; padding: 8px 5px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.bn-burger i { display: block; height: 1.4px; background: var(--espresso); transition: transform .2s, opacity .2s; }
.bn-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7.3px) rotate(45deg); }
.bn-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.bn-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7.3px) rotate(-45deg); }
@media (max-width: 1180px) { .bn-header .main-nav { gap: 4px 16px; letter-spacing: .1em; } }
@media (max-width: 1040px) {
  .bn-burger { display: flex; }
  .bn-header .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--taupe); padding: 6px var(--gutter) 14px; box-shadow: 0 18px 30px rgba(47, 49, 37, .12);
  }
  .bn-header .main-nav.open { display: flex; }
  .bn-header .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--sand-soft); font-size: 12px; }
  .bn-actions { margin-left: auto; }
}

/* Headings and numbers in the serif, like the site */
.modal-card h2, .price, .start-card b { font-family: var(--font-serif); font-weight: 500; }
.modal-card h2 { font-size: 30px; line-height: 1.15; }
.price { font-size: 32px; }
.price small { font-family: var(--font); }
.steps { border: 1px solid var(--taupe); border-radius: 14px; overflow: hidden; }
.steps button { border-color: var(--sand-soft) !important; }
.segmented { border-radius: 10px; overflow: hidden; }
.steps button:nth-child(4n) { border-right: none !important; }
.steps button:nth-last-child(-n+4) { border-bottom: none !important; }
.cards { border-radius: 12px; overflow: hidden; border: 1px solid var(--taupe); }
.cards .card { border-color: var(--sand-soft); }
input, select, textarea { border-radius: 8px; }
.start-card b { font-size: 22px; }
.start-card { border-radius: 14px; background: #FBF8F3; transition: background .15s, border-color .15s; }
.start-card:hover { background: var(--sand-soft); border-color: var(--walnut); }
.modal-card { border-radius: 18px; }
/* Buttons: soft pills like the site's */
.btn { border-radius: 999px; padding: 14px 28px; font-weight: 500; }
.btn:hover { background: var(--walnut); border-color: var(--walnut); color: var(--cream); }
.viewport { border-radius: 16px 16px 0 0; background: linear-gradient(180deg, #E9E0D2, #D9CBB7); }
.stage-tools { border-left: none; border: 1px solid var(--sand-soft); border-top: none; border-radius: 0 0 16px 16px; overflow: hidden; background: #FBF8F3; }
.stage-tools button, .stage-tools label { background: transparent; border-bottom: none; border-right: 1px solid var(--sand-soft); font-weight: 500; color: var(--espresso); }
.stage-tools > :last-child { border-right: none; }
.stage-tools button:hover, .stage-tools label:hover { background: var(--sand-soft); }
@media (min-width: 961px) { .stage { height: calc(100vh - 150px); } }
.config { border-top: none; }
.chips button { border-radius: 999px; padding: 6px 12px; }
.card.active, .basin-card.active, .chips button.active, .piece.active { background: var(--olive-black); }

@media (max-width: 960px) {
  .bn-header { margin-bottom: 0; }
  .viewport { border-radius: 0; }
  .stage-tools { border-radius: 0; }
  .shop { padding-left: 0; padding-right: 0; }
  .config { padding: 0 var(--gutter); }
}
@media (max-width: 760px) {
  .topstrip .ts-more { display: none; }
  .topstrip { padding: 5px 12px; font-size: 9px; }
  .topstrip .ts-social { right: 12px; }
  .bn-header { padding: 8px 14px; gap: 12px; }
  .bn-brand img { width: 28px; }
  .bn-header .wordmark { font-size: 22px; }
  .bn-actions { gap: 10px; }
  .bn-pill { padding: 6px 11px; font-size: 9px; letter-spacing: .14em; }
}

/* Owner: save as shop product */
.modal-card.product-card { width: min(640px, 100%); }
.product-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.product-form .field input[type=text] { text-transform: none; letter-spacing: normal; font-size: 15px; }
.product-form .chips button.active { background: var(--olive-black); color: var(--cream); }
.product-steps { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.product-steps .done::before { content: '✓ '; color: #3b7a3b; }
.product-steps .now::before { content: '… '; }
.product-steps .bad::before { content: '✕ '; color: #8f2a1c; }
.product-photo { width: 100%; border-radius: 12px; background: var(--sand); }
.stage-tools button.shop-done { background: var(--olive-black); color: var(--cream); }
.stage-tools button.shop-done:hover { background: var(--walnut); }
.pf-manual { display: flex; flex-direction: column; gap: 10px; }
.pf-manual textarea { font-size: 12px; line-height: 1.45; text-transform: none; letter-spacing: normal; }
.product-form .field input[type=file] { text-transform: none; letter-spacing: normal; }

/* Each section of a vanity: one line per section (its place, then its three choices). */
.bay-row { flex-direction: column; align-items: stretch; }
.bay-kinds { display: grid; gap: 8px; width: 100%; }
.bay-kind { display: flex; align-items: center; gap: 12px; }
.bay-name { flex: 0 0 118px; font-size: 14px; color: var(--ink-soft, inherit); }
.bay-name small { display: block; font-size: 11px; letter-spacing: 0.5px; opacity: 0.75; }
.bay-kinds .segmented.small { flex: 1 1 auto; max-width: 360px; }
.bay-kinds .segmented button { padding: 10px 4px; font-size: 11px; letter-spacing: 1px; }
@media (max-width: 600px) {
  #openUnderRow, #openWRow, #openShelvesRow, #bayCountRow, #basinPosRow { flex-direction: column; align-items: stretch; }
  #openUnderRow .segmented.small, #openWRow .segmented.small, #openShelvesRow .segmented.small, #bayCountRow .segmented.small, #basinPosRow .segmented.small, .bay-kinds .segmented.small { max-width: none; }
}

.group-label { display: block; margin: 14px 0 8px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .75; }
#handleBlock > .group-label:first-child { margin-top: 0; }

/* The laundry design consultant */
.consult-cta { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; border: 1px solid var(--walnut); background: var(--sand-soft); color: var(--espresso); padding: 14px 16px; margin: 0 0 18px; cursor: pointer; }
.consult-cta b { font-family: var(--font-serif); font-weight: 500; font-size: 20px; }
.consult-cta span { font-size: 14px; color: var(--walnut); }
.consult-cta:hover { background: var(--sand); }
.modal-card.consult-card { width: min(820px, 100%); }
.consult-card h2 small { font-family: var(--font); font-size: 14px; color: var(--sage); }
.consult-card p { line-height: 1.55; }
.consult-dots { display: flex; gap: 6px; margin: 0 0 18px; }
.consult-dots i { flex: 1; height: 3px; background: var(--sand-soft); }
.consult-dots i.done { background: var(--taupe); }
.consult-dots i.on { background: var(--espresso); }
.consult-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.consult-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: var(--line); background: none; padding: 14px 16px; cursor: pointer; color: var(--espresso); }
.consult-choice b { font-weight: 500; font-size: 16px; }
.consult-choice span { font-size: 13px; color: var(--walnut); line-height: 1.4; }
.consult-choice:hover { background: var(--sand-soft); }
.consult-choice.active { border-color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); background: var(--sand-soft); }
.consult-swatch { display: flex; gap: 0; margin-bottom: 6px; }
.consult-swatch em { width: 26px; height: 26px; border: 1px solid rgba(0,0,0,.08); }
.consult-sizes { margin: 12px 0; }
.consult-photo-btn { display: inline-block; cursor: pointer; margin: 8px 0; }
.consult-photo { display: block; max-width: 100%; max-height: 260px; margin: 10px 0; object-fit: contain; }
.consult-found { border-left: 2px solid var(--walnut); padding: 4px 0 4px 14px; margin: 12px 0; }
.consult-found ul { margin: 8px 0; padding-left: 18px; }
.consult-found li { margin: 3px 0; font-size: 14px; }
.consult-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.consult-option { display: flex; flex-direction: column; gap: 10px; border: var(--line); padding: 14px; }
.consult-draw { color: var(--espresso); background: #fff; padding: 8px; }
.consult-price { font-family: var(--font-serif); font-weight: 500; font-size: 26px; }
.consult-option ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--sage); flex: 1; }
.consult-option li { margin: 3px 0; }
.consult-nav { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.consult-nav .btn { margin-left: auto; }
@media (max-width: 760px) {
  .modal-card.consult-card { padding: 24px 18px; }
  .consult-grid { grid-template-columns: 1fr; }
}

/* The designer chat: a small panel in the corner, folded away to a button */
.chat-pill { position: fixed; left: 24px; bottom: 24px; z-index: 9; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 0; border-radius: 999px;
  background: var(--olive-black); color: var(--cream); font: inherit; font-size: 14px; letter-spacing: .04em; cursor: pointer; box-shadow: 0 6px 20px rgba(47, 49, 37, .25); }
.chat-pill i { width: 8px; height: 8px; border-radius: 50%; background: #9fd18b; }
.chat-pill.new i { animation: chatDot 1s infinite ease-in-out; }
.designer-chat { position: fixed; left: 24px; bottom: 24px; z-index: 9; width: min(380px, calc(100vw - 32px)); max-height: min(520px, 70vh);
  background: var(--cream); border: var(--line); box-shadow: 0 12px 36px rgba(47, 49, 37, .22); display: flex; flex-direction: column; }
.designer-chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-bottom: var(--line); }
.chat-head .sub-label { flex: 1; }
.chat-head .link { font-size: 11px; }
.chat-min { border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--espresso); padding: 2px 4px; }
.chat-log { flex: 1; min-height: 120px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 90%; padding: 8px 12px; font-size: 13px; line-height: 1.45; }
.chat-msg p { margin: 0; }
.chat-msg.designer { align-self: flex-start; background: var(--sand-soft); border-radius: 2px 12px 12px 12px; }
.chat-msg.customer { align-self: flex-end; background: var(--olive-black); color: var(--cream); border-radius: 12px 2px 12px 12px; }
.chat-msg ul { margin: 4px 0 0; padding-left: 16px; font-size: 12px; color: var(--sage); }
.chat-note { font-size: 11px; color: var(--walnut); margin-top: 4px !important; }
.chat-msg .link { font-size: 11px; margin-top: 4px; }
.chat-msg:has(.chat-options) { width: 90%; }
.chat-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 8px 0 2px; }
.chat-options .swatch { background: #fff; font-size: 11px; line-height: 1.25; padding: 4px; }
.chat-options .swatch i { height: 40px; margin-bottom: 4px; }
.chat-options .swatch i.photo { height: 40px; aspect-ratio: auto; }
.chat-options .opt-name { display: block; }
.chat-options .opt-price { display: block; font-size: 10px; color: var(--sage); margin-top: 2px; }
.chat-options .swatch.active .opt-price { color: var(--espresso); font-weight: 600; }
.chat-msg.typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--walnut); animation: chatDot 1s infinite ease-in-out; }
.chat-msg.typing i:nth-child(2) { animation-delay: .15s; } .chat-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; border: var(--line); background: #fff; font: inherit; font-size: 14px; }
.chat-form .btn { padding: 8px 16px; font-size: 11px; }
@media (max-width: 760px) {
  .chat-pill { left: 12px; bottom: 12px; padding: 10px 16px; }
  .designer-chat { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 60vh; }
}

/* Discounts and the design by email */
.deal-note { margin: 2px 0 4px; font-size: 13px; color: var(--espresso); font-weight: 500; }
.deal-note.hint { font-weight: 400; opacity: .75; }
.price-links { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.price-links .link { text-align: left; white-space: nowrap; }
.save-hint { margin-top: 12px; }
.code-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.code-row input { flex: 0 1 180px; min-width: 0; padding: 10px 12px; text-transform: uppercase; }
.code-row .btn { padding: 10px 16px; }
.code-row .hint { flex: 1 1 100%; margin: 0; }
.breakdown tr.discount td { color: var(--espresso); font-weight: 500; }
@media (max-width: 720px) { .price-bar #btnSaveDesign { font-size: 10px; padding: 2px 0; } .price-links { gap: 0 12px; } .deal-note { font-size: 11px; margin: 0; } }
@media (max-width: 720px) { .price-bar .btn { white-space: nowrap; } }

.consult-sizes label { position: relative; }
.c-metres { display: block; font-size: 12px; margin-top: 4px; opacity: .8; min-height: 1em; }
.c-metres.bad { color: #a4372a; opacity: 1; }
.c-limits { margin-top: 8px; font-size: 13px; }

/* The rooms of one order (a laundry and a bathroom) */
.room-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.room-bar .room-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-right: 4px; }
.room-bar .room { display: inline-flex; align-items: stretch; border: 1px solid var(--espresso); border-radius: 999px; overflow: hidden; }
.room-bar .room button { background: none; border: 0; padding: 8px 14px; font: inherit; font-size: 13px; color: var(--espresso); cursor: pointer; }
.room-bar .room button small { opacity: .7; margin-left: 4px; }
.room-bar .room.active { background: var(--espresso); }
.room-bar .room.active button { color: var(--cream); }
.room-bar .room-x { padding: 8px 10px !important; border-left: 1px solid var(--espresso) !important; }
.design-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.design-foot #btnRestart { margin-left: auto; }
.all-rooms { font-weight: 500; }
/* A laundry on more than one wall: the shapes, the walls as tabs, the room from above, its doors and windows. */
.ld-shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ld-shapes button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border: var(--line); background: none; color: var(--espresso); font-size: 12.5px; line-height: 1.2; cursor: pointer; text-align: center; }
.ld-shapes svg { width: 44px; height: 33px; }
.ld-shapes .rm { fill: none; stroke: currentColor; stroke-width: 1.4; }
.ld-shapes .cb { fill: currentColor; opacity: .55; }
.ld-shapes button:hover { background: var(--sand); }
.ld-shapes button.active { background: var(--olive-black); color: var(--cream); border-color: var(--olive-black); }
.ld-corner button { font-size: 12.5px; padding-left: 4px; padding-right: 4px; }
.ld-run-other { border-top: var(--line); padding-top: 12px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.ld-run-other .size-row { margin: 0; }
.ld-openings { gap: 8px; }
.ld-open { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)) auto; gap: 6px; align-items: end; font-size: 12px; }
.ld-open label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ld-open input, .ld-open select { width: 100%; min-width: 0; font: inherit; font-size: 13px; padding: 5px 6px; border: var(--line); background: var(--cream); color: var(--espresso); }
.ld-open .ld-open-x { border: none; background: none; font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; color: var(--walnut); }
.ld-open-add { display: flex; gap: 18px; }
.ld-planbox { border: var(--line); background: #fff; padding: 6px; margin-top: 14px; }
.ld-planbox svg { display: block; width: 100%; height: auto; }
.ld-warn { color: #8a3b12; }
.ld-walls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ld-walls button { flex: 1 1 0; min-width: 90px; border: var(--line); background: none; padding: 8px 6px; font-size: 13px; color: var(--espresso); cursor: pointer; }
.ld-walls button small { display: block; font-size: 11.5px; color: var(--walnut); }
.ld-walls button.active { background: var(--olive-black); color: var(--cream); }
.ld-walls button.active small { color: var(--sand); }
@media (max-width: 520px) { .ld-open { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ld-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A laundry on more than one wall: look at the whole room or one wall at a time. */
.wall-views { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.wall-views button { pointer-events: auto; border: 1px solid rgba(43,42,36,.25); background: rgba(251,248,243,.92); color: var(--espresso); padding: 7px 12px; border-radius: 999px; font-size: 12.5px; letter-spacing: .02em; cursor: pointer; backdrop-filter: blur(4px); }
.wall-views button:hover { border-color: var(--walnut); }
.wall-views button.active { background: var(--olive-black); color: var(--cream); border-color: var(--olive-black); }
@media (max-width: 520px) { .wall-views { top: 8px; left: 8px; gap: 4px; } .wall-views button { padding: 6px 9px; font-size: 11.5px; } }
.start-back { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }

/* Smaller ready-made laundry layouts and room plan. */
.ld-layouts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ld-layout { padding: 8px 8px 10px; gap: 2px; }
.ld-layout svg { display: block; width: 100% !important; height: 90px !important; margin-bottom: 4px; }
.ld-layout b { font-size: 14px; }
.ld-layout span { font-size: 11.5px; line-height: 1.35; }
.ld-planbox { padding: 4px; }
.ld-planbox svg { width: auto; max-width: 100%; max-height: 260px; margin: 0 auto; }
@media (max-width: 520px) { .ld-layouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ld-layout svg { height: 72px !important; } .ld-planbox svg { max-height: 180px; } }

/* The social links beside the top strip's text on a phone: the text keeps clear of them. */
@media (max-width: 640px) {
  .topstrip { text-align: left; padding-left: 14px; padding-right: 116px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topstrip .ts-social { gap: 10px; }
}

/* The Nook Joinery logo in the header (it links to the shop's home page). */
.bn-brand img.bn-logo { width: auto; height: 38px; }
@media (max-width: 640px) { .bn-brand img.bn-logo { width: auto; height: 30px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The price: our product first, the extras (basin, tapware) and delivery apart under it. */
.price .price-extra { display: block; margin-top: 4px; font-family: var(--font); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--walnut); line-height: 1.4; }
.price .price-extra span, .price .price-extra b { display: block; white-space: nowrap; }
.price .price-extra b { margin-top: 2px; font-weight: 600; color: var(--espresso); }
.breakdown tr.subtotal td { font-weight: 600; border-top: 1px solid currentColor; }
.breakdown tr.group td { padding-top: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
@media (max-width: 720px) { .price .price-extra { font-size: 11px; } }
