/* Keep template switching calm and under the user's control. */
.template-selection-feedback {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
  min-height: 54px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #dce6f5;
  border-radius: 15px;
  background: rgba(255, 255, 255, .9);
  color: #526179;
  box-shadow: 0 8px 22px rgba(39, 58, 101, .05);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.template-selection-feedback > span {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3ff;
  color: #315fd9;
  font-size: 12px;
  font-weight: 950;
}

.template-selection-feedback strong {
  color: #263650;
  font-size: 11px;
  line-height: 1.2;
}

.template-selection-feedback small {
  color: #7a879b;
  font-size: 10px;
  line-height: 1.35;
}

.template-selection-feedback.is-visible {
  transform: translateY(-1px);
  border-color: #9db6fa;
  background: #f7f9ff;
  box-shadow: 0 10px 24px rgba(76, 120, 241, .09);
}

.template-card.active {
  scroll-margin-block: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .template-selection-feedback {
    transition: none !important;
  }
}
