.cabinet-photos {
  margin-block: 2rem;
}

.cabinet-photos__examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}

.cabinet-photos__examples figure {
  min-width: 0;
  margin: 0;
}

.cabinet-photos__examples img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .6rem;
}

.cabinet-photos__examples h3 {
  margin: .75rem 0 .35rem;
}

.cabinet-photos__examples p {
  margin: .35rem 0;
}

.cabinet-photos__examples small {
  display: block;
  margin: .5rem 0;
}

#room-shortlist ul {
  list-style: none;
  padding: 0;
}

#room-shortlist li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-block: .65rem;
  border-block-start: 1px solid #c9c2b6;
  overflow-wrap: anywhere;
}

#room-shortlist li div > span {
  display: block;
  font-size: .875rem;
}

.fixture-shortlist-media {
  flex: 0 0 4rem;
  min-height: 4rem;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #fff;
  color: #142b34;
  text-align: center;
  font-size: .75rem;
  line-height: 1.2;
}

.fixture-shortlist-media img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

#room-product-comparison {
  margin-block: .75rem 1rem;
  border-block: 1px solid currentColor;
}

#room-product-comparison summary {
  min-height: 44px;
  align-content: center;
  font-weight: 650;
  cursor: pointer;
}

.room-comparison-scroll {
  overflow-x: auto;
  margin-block-end: .75rem;
}

.room-comparison-scroll table {
  min-width: 35rem;
  table-layout: fixed;
}

.room-comparison-scroll th,
.room-comparison-scroll td {
  padding: .65rem;
  vertical-align: top;
  text-align: start;
  overflow-wrap: anywhere;
}

.room-comparison-scroll th:first-child {
  width: 30%;
}

.room-comparison-scroll th:nth-child(2) {
  width: 25%;
}

.room-comparison-scroll p {
  margin: 0 0 .4rem;
}

.room-comparison-hint {
  display: none;
  margin: 0 0 .5rem;
}

@media (max-width: 40rem) {
  .room-comparison-hint { display: block; }
}

#room-shortlist .room-shortlist-remove {
  flex: 0 0 auto;
  min-height: 44px;
  margin-inline-start: auto;
  padding: .35rem .55rem;
}

.room-source-photo { margin: .75rem 0 1rem; max-width: 24rem; }
.room-source-photo img { display: block; width: auto; max-width: 100%; max-height: 12rem; height: auto; border-radius: .5rem; }
.room-source-photo figcaption { margin-top: .45rem; font-size: .875rem; }

.room-comparison-scroll .fixture-shortlist-media {
  display: inline-grid;
  max-width: 100%;
}

.room-comparison-scroll .fixture-shortlist-media img {
  width: 6rem;
  height: 6rem;
  max-width: 100%;
}

.fixture-shortlist-media:has(small) {
  aspect-ratio: auto;
  gap: .5rem;
}

@media print {
  body.print-room-shortlist > :not(main),
  body.print-room-shortlist #main > :not(#room-shortlist),
  body.print-room-shortlist #room-shortlist button,
  body.print-room-shortlist #room-shortlist .room-reference-photo-picker,
  body.print-room-shortlist #room-shortlist > :is(p, [role="status"], #room-shared-products),
  body.print-room-shortlist #room-shortlist:has(#room-product-comparison[open]:not([hidden])) > ul {
    display: none !important;
  }

  body.print-room-shortlist {
    background: #fff;
    color: #142b34;
  }

  @page room-shortlist {
    margin: .45in;
  }

  body.print-room-shortlist #main {
    page: room-shortlist;
    box-sizing: border-box;
    padding: 0;
    font-size: 10pt;
    line-height: 1.3;
  }

  body.print-room-shortlist #room-shortlist li .fixture-shortlist-media {
    flex-basis: 5.5rem;
  }

  body.print-room-shortlist .room-comparison-scroll th:first-child {
    width: 24%;
  }

  body.print-room-shortlist .room-comparison-scroll th:nth-child(2) {
    width: 23%;
  }

  body.print-room-shortlist .room-comparison-scroll p {
    margin-block-end: .2rem;
  }

  body.print-room-shortlist .room-reference-product-actions {
    gap: .15rem .7rem;
    margin-block-start: .35rem;
  }

  body.print-room-shortlist .room-reference-product-actions a {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
  }

  body.print-room-shortlist .room-source-photo img {
    max-height: 1.1in;
  }

  body.print-room-shortlist .room-comparison-scroll :is(th, td) {
    padding: .2rem .4rem;
  }

  body.print-room-shortlist .room-comparison-scroll .fixture-shortlist-media img {
    width: .68in;
    height: .68in;
  }

  body.print-room-shortlist .room-comparison-scroll {
    overflow: visible;
  }

  body.print-room-shortlist .room-comparison-scroll table {
    min-width: 0;
  }

  body.print-room-shortlist .room-source-photo,
  body.print-room-shortlist #room-shortlist :is(li, tr) {
    break-inside: avoid;
  }
}

.room-reference-product-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.room-reference-product-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .65rem; border: 1px solid #184957; border-radius: .375rem; overflow-wrap: anywhere; }
.room-reference-product-actions a:focus-visible { outline: 2px solid #184957; outline-offset: 3px; }

#room-reference-photo { scroll-margin-top: 6rem; }
.room-photo-switch-options { display: flex; flex-wrap: wrap; gap: .35rem .65rem; padding: 0; margin: .5rem 0 1rem; list-style: none; }
.room-photo-switch-options a { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem .5rem; border: 1px solid #c8d1d3; border-radius: .375rem; overflow-wrap: anywhere; }
