/* Custom-animal line-item meta on the cart + checkout pages: the "Voir le
   dessin" drawing link and the collapsible "Voir la description" disclosure.
   Loaded by the custom-animal feature on cart/checkout only. */

/* Drawing meta on the checkout review (the cart page has its own, more specific
   rule in cart.css that keeps winning there). */
.jl-line__meta {
  margin-top: 5px;
  font-family: var(--jl-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.45;
  color: var(--jl-text-50);
}
.jl-line__meta a {
  color: var(--jl-bordeaux);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jl-line__meta a:hover { color: var(--jl-bordeaux-dark); }

/* "Voir la description" disclosure — collapsed by default so a long brief never
   bloats the row; expands to the full text, wrapping cleanly on every screen. */
.jl-custom-desc {
  margin-top: 6px;
  font-family: var(--jl-sans);
}
.jl-custom-desc > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  cursor: pointer;
  list-style: none;               /* hide the default disclosure triangle */
  color: var(--jl-bordeaux);
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jl-custom-desc > summary::-webkit-details-marker { display: none; }
.jl-custom-desc > summary:hover { color: var(--jl-bordeaux-dark); }
/* Caret drawn from a rotated corner; flips point-up when open. */
.jl-custom-desc > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform .15s ease;
}
.jl-custom-desc[open] > summary::after { transform: translateY(1px) rotate(225deg); }

.jl-custom-desc__text {
  margin: 6px 0 0;
  padding: 10px 12px;
  max-width: 100%;
  background: var(--jl-cream-pale);
  border: 1px solid var(--jl-line);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--jl-text-70);
  white-space: normal;
  overflow-wrap: anywhere;        /* break long unbroken strings — no h-overflow */
}
