/* Extra stylesheet for the "More Info" accordion on each product card.
   Load this AFTER best.css, since it reuses its CSS variables
   (--line, --radius-m).
   !important is used on a few properties to reliably override the
   site-wide generic "details:not(.a) > summary" rule already in best.css. */

details.more-info {
  display: block;
  margin: 18px 0 0;
}

details.more-info > summary.more-info-toggle {
  position: relative;
  display: inline-flex !important;
  width: auto !important;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 46px 10px 18px !important;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border: none !important;
  border-radius: 999px;
  background: #000000 !important;
  color: #ffffff !important;
  font-weight: 750;
  font-size: 0.95rem;
  line-height: 1;
}

details.more-info > summary.more-info-toggle::-webkit-details-marker {
  display: none;
}
details.more-info > summary.more-info-toggle::marker {
  content: "";
}

/* Static arrow: no rotation, just swaps direction on open/close */
details.more-info > summary.more-info-toggle::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 1.35rem;
  line-height: 1;
  color: #ffffff;
}

details.more-info[open] > summary.more-info-toggle::after {
  content: "▲";
}

details.more-info > summary.more-info-toggle:hover {
  background: #262626 !important;
}

.more-info-body {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.more-info-body > .k {
  margin-top: 0;
}

@media (max-width: 480px) {
  details.more-info > summary.more-info-toggle {
    padding: 9px 42px 9px 16px !important;
    font-size: 0.9rem;
  }
}
