.retry-rescue {
  margin-top: 28px;
}

.retry-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: retry-step;
}

.retry-steps li {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  background: var(--teal-050);
  counter-increment: retry-step;
}

.retry-steps li::before {
  display: grid;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  background: var(--teal-600);
  content: counter(retry-step);
}

.retry-steps strong,
.retry-steps span {
  display: block;
}

.retry-steps strong {
  color: var(--ink-800);
  font-size: 13px;
}

.retry-steps span {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.5;
}

.retry-gif-placeholder {
  position: relative;
  display: grid;
  min-height: 142px;
  margin: 0 0 20px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  color: var(--teal-700);
  background:
    linear-gradient(110deg, transparent 28%, rgb(255 255 255 / 58%) 42%, transparent 56%) -180px 0 / 180px 100% no-repeat,
    linear-gradient(135deg, var(--teal-050), #f8ffff);
  font-size: 12px;
  font-weight: 700;
  animation: retry-gif-placeholder-shimmer 2.4s ease-in-out infinite;
}

.retry-gif-placeholder__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal-600);
  box-shadow: 0 8px 20px rgb(33 171 181 / 24%);
  font-size: 13px;
}

@keyframes retry-gif-placeholder-shimmer {
  0%, 24% { background-position: -180px 0, 0 0; }
  75%, 100% { background-position: calc(100% + 180px) 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .retry-gif-placeholder { animation: none; }
}

@media (max-width: 620px) {
  .retry-rescue { margin-top: 24px; }
  .retry-steps { grid-template-columns: 1fr; }
  .retry-gif-placeholder { min-height: 120px; }
}
