/* Product-family selections use .ec-subnav, the storefront's actual category card.
   This file handles grouping and controls only. */
.ec-selection-nav :is(.ec-camera-picks, .ec-rec-picks) {
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.ec-selection-nav :is(.ec-camera-picks, .ec-rec-picks, .ec-camera-subcats, .ec-rec-catalog) > h2 {
  margin: 0 0 13px;
  font-family: inherit;
  font-weight: 650;
  font-size: 20px;
  line-height: 1.3;
  color: var(--esp-ink);
}
.ec-selection-nav .ec-card-list { margin: 0; }
.ec-selection-nav .ec-card-list a > span:first-child,
.ec-selection-nav .ec-related a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ec-selection-nav :is(.ec-card-list, .ec-related) a > span[aria-hidden] { flex: none; }
.ec-selection-nav :is(.ec-cam-quick, .ec-cam-features) .ec-card-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ec-selection-nav :is(.ec-cam-quick, .ec-cam-features) > div { min-width: 0; }
.ec-selection-nav :is(.ec-rec-more, .ec-cam-more)[open] > .ec-card-list { margin-top: 6px; }
.ec-selection-nav .ec-rec-switch > label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  border: 1px solid var(--esp-line);
  border-radius: 10px;
  background: var(--esp-soft);
  color: var(--esp-ink);
}
.ec-selection-nav .ec-rec-radio:checked + label,
.ec-selection-nav .ec-rec-inputs [aria-current],
.ec-selection-nav .ec-related a[aria-current] {
  color: #78310e;
  border: 1px solid #ad5225;
  background: #ffeadf;
  box-shadow: inset 0 -2px #ad5225;
}
html.dark-theme .ec-selection-nav .ec-rec-radio:checked + label,
html.dark-theme .ec-selection-nav .ec-rec-inputs [aria-current],
html.dark-theme .ec-selection-nav .ec-related a[aria-current] {
  color: #ffdcc4;
  border-color: #e79a6e;
  background: #453126;
  box-shadow: inset 0 -2px #e79a6e;
}
.ec-selection-nav .ec-rec-inputs .ec-card-list { grid-template-columns: repeat(auto-fit,minmax(min(100%,115px),1fr)); }
.ec-selection-nav .ec-input-state {
  display: flex;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--esp-line);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}
.ec-selection-nav .ec-rec-inputs [aria-disabled] { color: var(--esp-muted); border-style: dashed; background: var(--esp-soft); }
.ec-selection-nav .ec-related a { text-decoration: none; }
.ec-selection-nav .ec-related details { grid-column: 1/-1; }
.ec-selection-nav .ec-related details[open] {
  display: grid;
  grid-template-columns: inherit;
  gap: inherit;
}
.ec-selection-nav .ec-related details > summary {
  grid-column: 1/-1;
  width: fit-content;
  padding: 7px 0;
  color: var(--esp-ink);
  cursor: pointer;
}
.ec-selection-nav :is(.ec-cam-neighbours,.ec-rec-neighbours) .ec-related { margin: 0; padding: 0 14px 14px; }
.ec-selection-nav :is(.ec-subnav, .ec-camera-picks, .ec-rec-picks, .ec-camera-subcats, .ec-rec-catalog, .ec-cam-neighbours, .ec-rec-neighbours) :is(a,summary):focus-visible,
.ec-selection-nav .ec-rec-radio:focus-visible + label { outline: 2px solid #9e461d; outline-offset: 2px; }
html.dark-theme .ec-selection-nav :is(.ec-subnav, .ec-camera-picks, .ec-rec-picks, .ec-camera-subcats, .ec-rec-catalog, .ec-cam-neighbours, .ec-rec-neighbours) :is(a,summary):focus-visible,
html.dark-theme .ec-selection-nav .ec-rec-radio:focus-visible + label { outline-color: #ffc6a3; }
@media (max-width:767px) {
  .ec-selection-nav :is(.ec-camera-picks,.ec-rec-picks,.ec-camera-subcats,.ec-rec-catalog) > h2 { font-size: 18px; }
  .ec-selection-nav .ec-input-state { padding: 10px; font-size: 12px; }
  .ec-selection-nav .ec-rec-switch > label { font-size: 12px; }
  .ec-selection-nav .ec-card-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Give unbroken long words room on narrow screens, leaving short options in a pair. */
@media (max-width: 430px) {
  .ec-selection-nav .ec-subnav > a.ec-long-label { grid-column: 1 / -1; }
}
