.selection-panel {
  --catalog-ink: #111b30;
  --catalog-blue: #345bdf;
  padding: clamp(12px, 2vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.selection-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 clamp(14px, 2vw, 26px);
  padding: clamp(20px, 3vw, 42px) clamp(16px, 2.4vw, 32px);
  padding-inline-end: 14%;
  color: var(--catalog-ink);
  background: linear-gradient(100deg, #fff 64%, #eff4ff);
  border-block: 1px solid #d8e1f1;
  font-size: clamp(25px, 4.2vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.selection-heading::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: clamp(30px, 8%, 95px);
  background: linear-gradient(119deg, transparent 40%, #bdcadf 40% 41%, transparent 41% 49%,
    #d71926 49% 52%, transparent 52% 62%, var(--catalog-blue) 62% 74%, transparent 74%);
  pointer-events: none;
}
.selection-heading:focus:not(:focus-visible) { outline: 0; }
.selection-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: clamp(10px, 1.5vw, 20px);
}
.selection-product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--catalog-ink);
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.selection-product::after {
  content: '';
  position: absolute;
  inset: 9px auto auto 9px;
  width: 14px;
  height: 14px;
  border-top: 2px solid white;
  border-left: 2px solid white;
  filter: drop-shadow(0 1px 2px #11182780);
  pointer-events: none;
}
.selection-photo { display: block; width: 100%; background: var(--page); }
.selection-product .selection-photo { object-fit: cover; aspect-ratio: 4 / 3; transition: transform .35s ease-out; }
.selection-label {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-top: 1px solid #d8e1f1;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.selection-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  background: var(--catalog-blue);
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
  transition: background-color .18s ease, color .18s ease;
}
.selection-product:focus-visible { border-color: var(--accent); }
@media (hover: hover) {
  .selection-product:hover { border-color: var(--accent); box-shadow: 0 4px 16px #162a5720; }
  .selection-product:hover .selection-photo { transform: scale(1.035); }
  .selection-product:hover .selection-arrow { background: #183ab2; }
}
.selection-back, .selection-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.selection-back { margin-block-end: 12px; }
.selection-examples { display: grid; gap: 16px; }
.selection-example {
  display: grid;
  grid-template-columns: minmax(170px, 32%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.6vw, 38px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.selection-example .selection-photo { height: clamp(160px, 20vw, 260px); object-fit: contain; background: #f4f7fc; }
.selection-images { min-width: 0; }
.selection-preview { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; }
.selection-details { max-width: 66ch; overflow-wrap: anywhere; }
.selection-details h3 { margin: 0 0 9px; color: var(--ink); font-size: clamp(20px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.045em; }
.selection-details p { font-size: 14px; line-height: 1.55; }
.selection-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.selection-link:first-child { background: var(--catalog-blue); color: white; border-color: var(--catalog-blue); }
@media (hover: hover) {
  .selection-back:hover, .selection-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 560px) {
  .selection-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .selection-label { padding: 10px 8px; font-size: 13px; gap: 5px; }
  .selection-arrow { flex-basis: 22px; height: 24px; }
  .selection-example { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .selection-example .selection-photo { height: clamp(160px, 48vw, 235px); }
}
@media (prefers-reduced-motion: reduce) {
  .selection-product, .selection-product .selection-photo, .selection-arrow { transition: none; }
  .selection-product:hover .selection-photo { transform: none; }
}

.selection-arrow::before, .selection-back::before {
  content: ''; display: inline-block; width: 14px; height: 14px; flex: none; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-7-7 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.selection-back { gap: 8px; }
.selection-back::before { transform: rotate(180deg); }
.selection-panel .selection-heading:has(+ .selection-question) { margin-bottom: 8px; }
.selection-question { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.selection-case { margin-top: 16px; border-top: 1px solid var(--line); }
.selection-case-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 12px 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--muted);
}
.selection-case-toggle::before {
  content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg); transition: transform .22s ease;
}
.selection-case-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.selection-case-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.selection-case-toggle[aria-expanded="true"] + .selection-case-panel { grid-template-rows: 1fr; }
.selection-case-copy { min-height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .selection-case-panel, .selection-case-toggle::before { transition: none; }
}
.selection-case .selection-link { margin: 0 6px 6px 0; }
.selection-panel .selection-details .selection-links > a:first-child {
  color: var(--on-highlight); background: var(--highlight);
}
.selection-panel .selection-details .selection-links > a:first-child::before { background: currentColor; }
.selection-service { min-width: 0; margin-top: clamp(24px, 4vw, 40px); }
.selection-service h3 { margin: 0 0 12px; color: var(--ink); font: 650 1.18rem/1.25 Inter, sans-serif; }
.service-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
}
.service-rail::-webkit-scrollbar { display: none; }
.service-rail .service-card {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-items: start;
  padding: 16px; border: 1px solid var(--line); border-radius: 18px; scroll-snap-align: start;
  background: linear-gradient(145deg, var(--tint), var(--paper) 64%);
  color: var(--ink); text-decoration: none; font-family: Inter, sans-serif;
}
.service-card svg {
  width: 38px; height: 38px; padding: 8px; box-sizing: border-box; border-radius: 12px;
  background: var(--light-tint); color: var(--highlight-text); fill: none;
  stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.service-arrow { font-size: 1em; }
.service-card strong { grid-column: 1 / -1; margin: 14px 0 6px; font-size: 1rem; line-height: 1.25; }
.service-description { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.service-card .service-action {
  justify-self: start; display: inline-flex; gap: 7px; align-items: center; box-sizing: border-box;
  min-height: 44px; margin-top: 14px; padding: 8px 12px; border-radius: 12px;
  background: var(--light-tint); color: var(--highlight-text); font-size: .85rem;
  font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.service-action:focus-visible { outline: 2px solid var(--highlight-text); outline-offset: -3px; }
@media (hover: hover) {
  .service-card .service-action:hover { background: var(--highlight); color: var(--on-highlight); text-decoration: none; }
}
@media (max-width: 760px) { .service-rail { grid-auto-columns: clamp(210px, 78%, 285px); } }
@media (prefers-reduced-motion: reduce) { .service-card .service-action { transition: none; } }

/* Keep the product name and its photo in one accessible button. */
#selection-panel .selection-products {
  gap: clamp(9px, 1.8vw, 18px);
}
#selection-panel .selection-product {
  display: grid; grid-template-columns: minmax(0, 1fr); isolation: isolate;
  border: 0; border-radius: clamp(13px, 2.2vw, 18px); overflow: hidden;
  background: var(--paper); box-shadow: none;
}
#selection-panel .selection-product .selection-photo {
  grid-area: 1 / 1; width: 100%; height: 100%; aspect-ratio: 3 / 2;
  border-radius: 0; transform: none;
}
#selection-panel .selection-label {
  grid-area: 1 / 1; place-self: end start; align-items: center; gap: 6px;
  width: fit-content; max-width: calc(100% - 14px); box-sizing: border-box;
  min-height: 36px; margin: 7px; padding: 5px 11px; border: 0; border-radius: 10px;
  color: var(--on-highlight); background: var(--highlight);
  font-size: clamp(12px, 1.3vw, 15px); line-height: 1.23; letter-spacing: -.012em;
}
#selection-panel .selection-label > span:first-child { min-width: 0; overflow-wrap: anywhere; }
#selection-panel .selection-arrow {
  align-self: center; flex: 0 0 6px; width: 6px; height: 6px;
  border: solid currentColor; border-width: 1.5px 1.5px 0 0;
  border-radius: 0; transform: rotate(45deg); background: transparent;
}
#selection-panel .selection-arrow::before { content: none; }
#selection-panel .selection-product:focus-visible {
  outline: 2px solid var(--highlight-text); outline-offset: 2px; border-radius: 14px;
}
#selection-panel .selection-back { color: var(--highlight-text); background: var(--light-tint); border: 0; }
#selection-panel .selection-example { background: var(--paper); border: 1px solid var(--line); }
.selection-service .service-rail { gap: 8px; }
.selection-service .service-card {
  padding: 15px; background: var(--paper); border-color: transparent;
}
.selection-service .service-card .service-action {
  color: var(--highlight-text); background: var(--light-tint);
}
@media (hover: hover) {
  #selection-panel .selection-product:hover .selection-label { background: color-mix(in srgb, var(--highlight) 94%, var(--on-highlight)); }
  .selection-service .service-card .service-action:hover { color: var(--on-highlight); background: var(--highlight); }
}
@media (max-width: 560px) {
  #selection-panel .selection-examples { gap: 12px; }
  #selection-panel .selection-example { padding: 12px; gap: 12px; }
  #selection-panel .selection-details h3 { font-size: 20px; line-height: 1.18; }
  #selection-panel .selection-details > p { margin: 6px 0 0; }
}
