/*
 * The motion-preference control.
 *
 * A new file, not an edit to landing-v2.css. That sheet is a byte-identical
 * copy of the Blade original (58,804 bytes) and is never hand-edited — the same
 * rule that produced profile-source-fixes-v1.css. Keeping the addition separate
 * means the copy can still be diffed against the source to prove it is intact.
 *
 * Deliberately quiet. The control sits in the footer, is only rendered for
 * visitors it can help, and must not read as a call to action next to the real
 * ones. It borrows the site's own tokens so it inherits whatever theme the page
 * is wearing, with literal fallbacks for pages that do not define them.
 *
 * No transition on the button. A control that exists because motion is
 * unwelcome should not animate on hover.
 */

/*
 * The control renders after </footer> rather than inside it, so the ported
 * footer markup is left exactly as the Blade has it. That means this block has
 * to supply the footer's own container treatment itself, or it sits flush
 * against the left edge and the page bottom while every other footer row is
 * inset — which is how it first shipped and looked tacked on.
 *
 * The values mirror the footer's bottom bar: same max width, same horizontal
 * padding at each breakpoint, same divider colour.
 */
.cc-motion-pref {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 80rem;  /* max-w-7xl, as the footer rows use */
  margin-inline: auto;
  padding: 1.15rem 1.25rem 1.6rem;
  border-top: 1px solid var(--border, rgba(127, 127, 127, 0.22));
}

@media (min-width: 1024px) {
  .cc-motion-pref {
    padding-inline: 2rem;  /* lg:px-8 */
  }
}

.cc-motion-pref__button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--cc-store-line, rgba(255, 255, 255, 0.22));
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.cc-motion-pref__button:hover {
  border-color: var(--cc-store-gold, #cbaa67);
}

/* Visible focus is required here: this control is reached by keyboard more than
   most, being an accessibility affordance. */
.cc-motion-pref__button:focus-visible {
  outline: 2px solid var(--cc-store-gold, #cbaa67);
  outline-offset: 2px;
}

.cc-motion-pref__icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.cc-motion-pref__icon svg {
  width: 1rem;
  height: 1rem;
  /* Matches the stroked line art the rest of the site uses for icons. */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cc-motion-pref__note {
  max-width: 34ch;
  margin: 0;
  opacity: 0.72;
  font-size: 0.68rem;
  line-height: 1.45;
}
