/* [2026-11-03] Search loading state for the list pages. Markup and logic: js/ssc_search_loading.js */
:root {
  --ssc-sl-blue: #6285ff;     /* Search button, find.css .submit_btn */
  --ssc-sl-red: #ff3939;      /* SSANCAR logo, logo_svg.php */
  --ssc-sl-navy: #1a2b6b;     /* Auction Results button, ssc_showcase_btn.php */
  --ssc-sl-bone: #e8ebf2;
  --ssc-sl-bone-light: #f5f6fa;
}

/* Button */
button.ssc-sl-busy { cursor: progress; }
.ssc-sl-dots i { font-style: normal; }
.ssc-sl-dots i:nth-child(2) { animation: ssc-sl-dot2 1.2s linear infinite; }
.ssc-sl-dots i:nth-child(3) { animation: ssc-sl-dot3 1.2s linear infinite; }
@keyframes ssc-sl-dot2 { 0%, 33% { opacity: 0; } 34%, 100% { opacity: 1; } }
@keyframes ssc-sl-dot3 { 0%, 66% { opacity: 0; } 67%, 100% { opacity: 1; } }

/* Panel under the fold triangle. letter-spacing: bundle-common sets -0.1rem on body. */
.ssc-sl-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  padding: 0 16px 22px;
  font-family: var(--ssc-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: center;
  color: var(--ssc-sl-navy);
}
.ssc-sl-panel[hidden] { display: none; }

.ssc-sl-bounce { display: inline-flex; gap: 6px; padding-top: 7px; }
.ssc-sl-bounce i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ssc-sl-blue);
  animation: ssc-sl-bounce 1s ease-in-out infinite;
}
.ssc-sl-bounce i:nth-child(2) { background: var(--ssc-sl-red); animation-delay: .16s; }
.ssc-sl-bounce i:nth-child(3) { background: var(--ssc-sl-navy); animation-delay: .32s; }
@keyframes ssc-sl-bounce { 0%, 70%, 100% { transform: translateY(0); } 35% { transform: translateY(-7px); } }

/* Failure */
.ssc-sl-retry {
  display: none;
  padding: 8px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ssc-sl-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ssc-sl-panel.is-error .ssc-sl-bounce { display: none; }
.ssc-sl-panel.is-error .ssc-sl-retry { display: inline-block; }
.ssc-sl-panel.is-error .ssc-sl-msg::before {
  content: "!";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ssc-sl-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

/* The photo box until its photo is in: the skeleton's color, not white */
.car_list .img_area img { background: var(--ssc-sl-bone); }

/* Results area: same box as a .car_list card (find.css), no .car_list class, the pages' scripts select on it */
.car_list.ssc-sl-dim { opacity: .4; pointer-events: none; transition: opacity .15s; }
.ssc-sl-skels { margin-top: 1rem; }
.ssc-sl-skel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1rem;
  padding: 2rem;
  border-radius: 1.9rem;
  background: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .15);
}
.ssc-sl-skel-text { flex: 1 1 auto; min-width: 0; }
.ssc-sl-skel-text b { display: block; height: 14px; margin-bottom: 14px; border-radius: 6px; }
.ssc-sl-skel-text b:nth-child(1) { width: 30%; }
.ssc-sl-skel-text b:nth-child(2) { width: 75%; height: 20px; }
.ssc-sl-skel-text b:nth-child(3) { width: 55%; }
.ssc-sl-skel-text b:nth-child(4) { width: 45%; margin-bottom: 0; }
.ssc-sl-skel-img { flex: 0 0 40%; height: 120px; border-radius: 12px; }
.ssc-sl-bone {
  background: linear-gradient(90deg, var(--ssc-sl-bone) 25%, var(--ssc-sl-bone-light) 50%, var(--ssc-sl-bone) 75%);
  background-size: 200% 100%;
  animation: ssc-sl-shimmer 1.4s linear infinite;
}
@keyframes ssc-sl-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (max-width: 767px) {
  /* dots on their own line from the start, so the longer messages do not make the panel grow */
  .ssc-sl-panel { font-size: 14px; }
  .ssc-sl-bounce { flex-basis: 100%; justify-content: center; }
  /* the Auction Results button is capped at 36% of the row here (ssc_showcase_btn.php) */
  .sec_1 .container .wrapper .form_area form fieldset .submit_box .ssc-sc-btn.ssc-sl-busy { padding: 0 .5rem; font-size: 1.3rem; }
  .ssc-sl-skel-img { height: 85px; }
  .ssc-sl-skel-text b { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ssc-sl-bounce, .ssc-sl-skels { display: none !important; }
  .ssc-sl-dots i { animation: none !important; }
  .car_list.ssc-sl-dim { transition: none; }
}
