/* Homepage only. Width and breakpoint match main.css .prompt-banner-inner.
   All selectors are scoped to this component; Banner styles stay in main.css. */
.cc-logo-carousel {
  width: 1000px;
  min-width: 0;
  margin: 0 auto;
  padding: 20px 0 8px;
  overflow: hidden;
  color: #263b33;
}
.cc-logo-carousel .cc-logo-carousel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.cc-logo-carousel .cc-logo-carousel__eyebrow {
  margin: 0 0 3px;
  color: #278356;
  font: 700 10px/1.5 Arial, sans-serif;
  letter-spacing: 2px;
}
.cc-logo-carousel h2 {
  margin: 0;
  color: #263b33;
  font-size: 20px;
  line-height: 1.5;
}
.cc-logo-carousel .cc-logo-carousel__hint {
  margin: 5px 0 0;
  color: #6b756f;
  font-size: 12px;
  line-height: 1.6;
}
.cc-logo-carousel .cc-logo-carousel__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.cc-logo-carousel .cc-logo-carousel__controls[hidden] { display: none; }
.cc-logo-carousel .cc-logo-carousel__button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d7e1db;
  border-radius: 50%;
  background: #fff;
  color: #26724c;
  cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
.cc-logo-carousel .cc-logo-carousel__button:hover:not(:disabled) {
  border-color: #278356;
  background: #eaf3ed;
}
.cc-logo-carousel .cc-logo-carousel__button:disabled { opacity: .35; cursor: default; }
.cc-logo-carousel .cc-logo-carousel__button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cc-logo-carousel .cc-logo-carousel__track {
  display: flex;
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #c3d3c9 transparent;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.cc-logo-carousel .cc-logo-carousel__track::-webkit-scrollbar { height: 5px; }
.cc-logo-carousel .cc-logo-carousel__track::-webkit-scrollbar-thumb { border-radius: 5px; background: #c3d3c9; }
.cc-logo-carousel .cc-logo-carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
/* Snap is kept as the no-JS fallback; continuous motion must not snap per frame. */
.cc-logo-carousel .cc-logo-carousel__track.is-looping { scroll-snap-type: none; scroll-behavior: auto; overflow-anchor: none; }
.cc-logo-carousel + .cc-logo-carousel { margin-top: 12px; padding-bottom: 20px; }
.cc-logo-carousel .cc-logo-carousel__link { display: block; height: 100%; color: inherit; -webkit-user-drag: none; }
.cc-logo-carousel .cc-logo-carousel__art img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cc-logo-carousel .cc-logo-carousel__button[aria-pressed="true"] { background: #eaf3ed; border-color: #278356; }
.cc-logo-carousel .cc-logo-carousel__button [data-carousel-pause-icon] { font: 700 14px/1 Arial, sans-serif; }
.cc-logo-carousel .cc-logo-carousel__card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e0e6e2;
  border-radius: 12px;
  background: #fff;
  scroll-snap-align: start;
}
.cc-logo-carousel .cc-logo-carousel__art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 174px;
  padding: 10px 8px;
  background: #f7f8ff;
}
.cc-logo-carousel .cc-logo-carousel__art--coffee { background: #fcf6ed; }
.cc-logo-carousel .cc-logo-carousel__art--nature { background: #f1f7ef; }
.cc-logo-carousel .cc-logo-carousel__art--education { background: #f0f6fa; }
.cc-logo-carousel .cc-logo-carousel__art--fashion { background: #f7f5f0; }
.cc-logo-carousel .cc-logo-carousel__art--pets { background: #fff3ef; }
.cc-logo-carousel .cc-logo-carousel__art--food { background: #faf5ec; }
.cc-logo-carousel .cc-logo-carousel__art--creative { background: #f7f2fb; }
.cc-logo-carousel .cc-logo-carousel__art svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.cc-logo-carousel .cc-logo-carousel__caption { padding: 13px 16px; border-top: 1px solid #edf0ee; }
.cc-logo-carousel .cc-logo-carousel__caption span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #30483b; font: 700 12px/1.6 Arial, "Microsoft YaHei", sans-serif; letter-spacing: .7px; }
.cc-logo-carousel .cc-logo-carousel__caption small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: #738078; font-size: 11px; }
.cc-logo-carousel .cc-logo-carousel__status { margin: 6px 0 0; color: #738078; text-align: right; font-size: 11px; }
.cc-logo-carousel .cc-logo-carousel__button:focus-visible,
.cc-logo-carousel .cc-logo-carousel__link:focus-visible,
.cc-logo-carousel .cc-logo-carousel__track:focus-visible { outline: 2px solid #278356; outline-offset: -2px; }
@media (max-width: 1100px) {
  .cc-logo-carousel { width: calc(100% - 24px); }
}
@media (max-width: 640px) {
  .cc-logo-carousel { padding-top: 16px; }
  .cc-logo-carousel h2 { font-size: 17px; }
  .cc-logo-carousel .cc-logo-carousel__heading { gap: 10px; }
  .cc-logo-carousel .cc-logo-carousel__hint { max-width: 220px; font-size: 11px; }
  .cc-logo-carousel .cc-logo-carousel__controls { gap: 6px; }
  .cc-logo-carousel .cc-logo-carousel__button { width: 34px; height: 34px; }
  .cc-logo-carousel .cc-logo-carousel__track { gap: 12px; }
  .cc-logo-carousel .cc-logo-carousel__card { flex-basis: 78%; }
  .cc-logo-carousel .cc-logo-carousel__art { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-logo-carousel .cc-logo-carousel__button { transition: none; }
}


/* SVG COLLECTION: each scrolling unit owns its upper/lower pair. */
.cc-logo-carousel.cc-svg-collection .cc-logo-carousel__track {
  --cc-collection-columns: min(5, var(--cc-collection-wide, 8));
  --cc-collection-gap: 16px;
}
.cc-logo-carousel.cc-svg-collection .cc-logo-carousel__column {
  flex: 0 0 calc((100% - (var(--cc-collection-columns) - 1) * var(--cc-collection-gap)) / var(--cc-collection-columns));
  /* Restore the pre-selection five-column size; scroll instead of squeezing. */
  min-width: 187.2px;
  margin: 0;
  padding: 0;
  list-style: none;
  scroll-snap-align: start;
}
.cc-logo-carousel.cc-svg-collection .cc-logo-carousel__column-cards {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--cc-collection-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px) {
  .cc-logo-carousel.cc-svg-collection .cc-logo-carousel__track {
    --cc-collection-columns: min(3, var(--cc-collection-wide, 8));
  }
}
@media (max-width: 640px) {
  .cc-logo-carousel.cc-svg-collection .cc-logo-carousel__track {
    --cc-collection-columns: min(2, var(--cc-collection-wide, 8));
    --cc-collection-gap: 12px;
  }
}

@media (max-width: 360px) {
  .cc-logo-carousel.cc-svg-collection .cc-logo-carousel__track {
    --cc-collection-columns: 1;
  }
}

/* Phase 5: retain card sizes, paired columns and continuous-scrolling implementation. */
@media (max-width: 780px) {
  .cc-logo-carousel .cc-logo-carousel__button { width: 44px; height: 44px; flex: 0 0 44px; }
  .cc-logo-carousel .cc-logo-carousel__heading { flex-wrap: wrap; align-items: flex-start; }
  .cc-logo-carousel .cc-logo-carousel__controls { margin-left: auto; }
  .cc-logo-carousel .cc-logo-carousel__track { touch-action: pan-x pan-y pinch-zoom; }
}
