/* Supplier shortlist: star buttons, the tray (a <dialog>) and its "Request quotes" form.
   Gold outlines on deep navy, like the yacht explorer. Used there and on supplier pages. */
.sl, .sl-star, .sl-fab, .sl-toast {
  --sl-line: var(--lux-gold, #c9a96a);
  --sl-bright: #f6e7c1;
  --sl-text: #ece6d8;
  --sl-mute: var(--lux-mute, #8e97a8);
  --sl-hair: rgba(201, 169, 106, 0.28);
  --sl-faint: rgba(201, 169, 106, 0.12);
  --sl-ink: #0b1220;
  --sl-bad: #f0a596;
}
.sl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.sl-open { overflow: hidden; }

/* ---------- star toggle ---------- */
.sl-star {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--sl-hair);
  border-radius: 999px;
  background: transparent;
  color: var(--sl-bright);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sl-star:hover { border-color: var(--sl-line); background: rgba(201, 169, 106, 0.14); }
.sl-star__icon { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.sl-star[aria-pressed="true"] { border-color: var(--sl-line); background: var(--sl-line); color: var(--sl-ink); }
.sl-star[aria-pressed="true"] .sl-star__icon { fill: currentColor; }
.sl-star[hidden] { display: none; }
/* On a light supplier page: an outline button in the page's own gold. */
.lux-page .sl-star--page {
  min-height: 44px;
  margin: 0 0 18px;
  padding: 0 18px 0 14px;
  border-color: var(--sl-line);
  border-radius: 0;
  background: transparent;
  color: #6f5422;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lux-page .sl-star--page:hover { background: rgba(201, 169, 106, 0.12); color: var(--sl-ink); }
.lux-page .sl-star--page[aria-pressed="true"] { background: var(--sl-line); color: var(--sl-ink); }
.lux-page .sl-star--page .sl-star__icon { width: 16px; height: 16px; }

/* ---------- the button that opens the tray, floating on pages without a place for it ---------- */
.sl-fab {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--sl-line);
  border-radius: 999px;
  background: rgba(9, 15, 28, 0.94);
  color: var(--sl-bright);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.sl-fab:hover { background: var(--sl-ink); box-shadow: 0 0 24px rgba(201, 169, 106, 0.35); }
.sl-fab[hidden] { display: none; }
.sl-fab svg { width: 16px; height: 16px; fill: var(--sl-line); }
.sl-fab b, .sl__title span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--sl-line);
  color: var(--sl-ink);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.sl-toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--sl-line);
  border-radius: 12px;
  background: rgba(9, 15, 28, 0.96);
  color: var(--sl-text);
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
}
.sl-toast[hidden] { display: none; }

/* ---------- the tray: a drawer on the right, a bottom sheet on phones ---------- */
.sl {
  inset: 0 0 0 auto;
  width: 440px;
  max-width: 100vw;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--sl-hair);
  background: linear-gradient(180deg, #0b1220 0%, #060a13 100%);
  color: var(--sl-text);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
}
.sl[open] { animation: sl-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sl::backdrop { background: rgba(3, 6, 12, 0.6); backdrop-filter: blur(3px); }
@keyframes sl-in { from { opacity: 0; transform: translateX(48px); } }
.sl__panel { display: flex; flex-direction: column; height: 100%; }
.sl__head { position: relative; flex: none; padding: 22px 64px 16px 22px; border-bottom: 1px solid var(--sl-faint); }
.sl__kicker { margin: 0 0 6px; color: var(--sl-line); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.sl__title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--lux-serif, Georgia, serif); font-size: 32px; font-weight: 500; line-height: 1; color: #fff; }
.sl__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 0;
  height: 38px;
  padding: 0;
  border: 1px solid var(--sl-hair);
  border-radius: 50%;
  background: transparent;
  color: var(--sl-bright);
  cursor: pointer;
}
.sl__close:hover { border-color: var(--sl-line); background: rgba(201, 169, 106, 0.14); }
.sl__close svg, .sl__remove svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sl__view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 24px; }
.sl__view[hidden] { display: none; }
.sl__lede { margin: 0 0 14px; color: #c9cfda; font-size: 15px; line-height: 1.5; }
.sl__lede[hidden] { display: none; }
.sl__note { margin: 0 0 14px; color: var(--sl-mute); font-size: 12.5px; line-height: 1.45; }

.sl__list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: sl; }
.sl__item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  grid-template-areas: "n name x" "n where x";
  align-items: center;
  column-gap: 10px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--sl-faint);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  counter-increment: sl;
}
.sl__item::before {
  content: counter(sl);
  grid-area: n;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--sl-hair);
  border-radius: 50%;
  color: var(--sl-line);
  font-size: 11px;
}
.sl__name { grid-area: name; min-width: 0; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.sl__name:hover { color: var(--sl-bright); text-decoration: underline; }
.sl__where { grid-area: where; color: var(--sl-line); font-size: 12px; }
.sl__remove {
  grid-area: x;
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 0;
  height: 34px;
  padding: 0;
  border: 1px solid var(--sl-hair);
  border-radius: 50%;
  background: transparent;
  color: var(--sl-text);
  cursor: pointer;
}
.sl__remove:hover { border-color: var(--sl-bad); color: var(--sl-bad); }
.sl__foot[hidden] { display: none; }

.sl__cta, .sl__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--sl-line);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sl__cta { width: 100%; background: var(--sl-line); color: var(--sl-ink); }
.sl__cta:hover { background: var(--sl-bright); }
.sl__cta:disabled { opacity: 0.6; cursor: progress; }
.sl__ghost { flex: none; border-color: var(--sl-hair); background: transparent; color: var(--sl-text); }
.sl__ghost:hover { border-color: var(--sl-line); background: rgba(201, 169, 106, 0.1); }
.sl .sl__close:focus-visible, .sl .sl__remove:focus-visible, .sl .sl__cta:focus-visible, .sl .sl__ghost:focus-visible,
.sl a:focus-visible, .sl input:focus-visible, .sl select:focus-visible, .sl textarea:focus-visible,
.sl-star:focus-visible, .sl-fab:focus-visible {
  outline: 2px solid var(--sl-bright);
  outline-offset: 2px;
}

/* ---------- the request form ---------- */
.sl__to { display: flex; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border: 1px dashed var(--sl-hair); border-radius: 12px; font-size: 14px; line-height: 1.4; }
.sl__to span { flex: none; color: var(--sl-line); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; line-height: 1.9; text-transform: uppercase; }
.sl__to b { color: #fff; font-weight: 600; }
.sl__alert { margin: 0 0 14px; padding: 10px 12px; border: 1px solid rgba(240, 165, 150, 0.5); border-radius: 12px; background: rgba(240, 165, 150, 0.08); color: #f8d3ca; font-size: 13.5px; line-height: 1.45; }
.sl__alert[hidden] { display: none; }
.sl__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sl__field { display: grid; gap: 5px; min-width: 0; }
.sl__field--wide { grid-column: 1 / -1; }
.sl__field > span { color: var(--sl-line); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.sl__field small { color: var(--sl-mute); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.sl__field input, .sl__field select, .sl__field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--sl-hair);
  border-radius: 10px;
  background: rgba(9, 15, 28, 0.62);
  color: var(--sl-text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sl__field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.sl__field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sl-line) 50%), linear-gradient(135deg, var(--sl-line) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.sl__field select option { background: var(--sl-ink); color: var(--sl-text); }
.sl__field input::placeholder, .sl__field textarea::placeholder { color: var(--sl-mute); }
.sl__field input:focus, .sl__field select:focus, .sl__field textarea:focus { border-color: var(--sl-line); box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.15); outline: none; }
.sl [aria-invalid="true"] { border-color: var(--sl-bad); }
.sl__err { color: var(--sl-bad); font-size: 12.5px; line-height: 1.35; }
.sl__consent { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; margin: 16px 0 0; color: #c9cfda; font-size: 13.5px; line-height: 1.45; }
.sl__consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--sl-line); }
.sl__consent span { flex: 1 1 0; min-width: 0; }
/* The error sits under the sentence, lined up with it, not squeezed in as a third column. */
.sl__consent .sl__err { display: block; flex: 0 0 100%; padding-left: 28px; }
.sl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sl__actions { display: flex; gap: 10px; margin-top: 18px; }

.sl__done { text-align: center; }
.sl__tick { width: 64px; height: 64px; margin: 18px auto 10px; fill: none; stroke: var(--sl-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sl__done-title { margin: 0 0 10px; font-family: var(--lux-serif, Georgia, serif); font-size: 30px; font-weight: 500; color: #fff; outline: none; }

@media (max-width: 760px) {
  .sl {
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    max-height: 92%;
    margin: auto 0 0;
    border-left: 0;
    border-top: 1px solid var(--sl-hair);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  }
  .sl[open] { animation-name: sl-up; }
  @keyframes sl-up { from { opacity: 0; transform: translateY(48px); } }
  .sl__panel { height: auto; max-height: 92dvh; }
  .sl__head { padding: 18px 60px 12px 16px; }
  .sl__title { font-size: 26px; }
  .sl__close { top: 14px; right: 14px; }
  .sl__view { padding: 14px 16px 20px; }
  .sl__grid { grid-template-columns: 1fr; }
  .sl__field input, .sl__field select, .sl__field textarea { font-size: 16px; }
  .sl-fab { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sl[open] { animation: none; }
  .sl-star, .sl__cta, .sl__ghost, .sl__field input, .sl__field select, .sl__field textarea { transition: none; }
}
