.upload-prep-toggle .upload-prep-toggle-icon {
  transition: transform 0.35s ease;
}

.upload-prep-toggle[aria-expanded="true"] .upload-prep-toggle-icon {
  transform: rotate(180deg);
}

.upload-prep-guide.collapsing {
  transition: height 0.4s ease;
}

.upload-prep-requirement-row.is-slide-in {
  animation: upload-prep-slide-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.upload-prep-requirements .upload-prep-requirement-row.is-slide-in:nth-child(1) {
  animation-delay: 0.05s;
}

.upload-prep-requirements .upload-prep-requirement-row.is-slide-in:nth-child(2) {
  animation-delay: 0.15s;
}

.upload-prep-requirements .upload-prep-requirement-row.is-slide-in:nth-child(3) {
  animation-delay: 0.25s;
}

@keyframes upload-prep-slide-in {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.upload-prep-guide-content {
  margin-bottom: 2.5rem;
}

.upload-prep-guide-content > h3 {
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
}

.upload-prep-guide-content > h3:first-child {
  margin-top: 0;
}

.upload-prep-requirements {
  margin-bottom: 2.75rem !important;
}

.upload-prep-requirement-row {
  margin-bottom: 2.25rem !important;
}

.upload-prep-requirements .upload-prep-requirement-row:last-child {
  margin-bottom: 0 !important;
}

.upload-prep-guide-content > p.lead,
.upload-prep-guide-content > ol.lead {
  margin-bottom: 1.75rem;
}

.upload-prep-guide-content > table {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.upload-prep-info-tip {
  position: relative;
  display: inline;
  white-space: normal;
}

.upload-prep-more-info {
  font-size: inherit;
  vertical-align: baseline;
  text-decoration: underline;
  color: #007bff;
  background: none;
  border: none;
  padding: 0;
  cursor: help;
}

.upload-prep-more-info:hover,
.upload-prep-more-info:focus {
  text-decoration: underline;
  outline: none;
}

.upload-prep-info-tip-panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 1050;
  min-width: 16rem;
  max-width: 22rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: #212529;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
  text-align: left;
}

.upload-prep-info-tip:hover .upload-prep-info-tip-panel,
.upload-prep-info-tip:focus-within .upload-prep-info-tip-panel,
.upload-prep-info-tip.is-open .upload-prep-info-tip-panel {
  display: block;
}

@media (max-width: 767.98px) {
  .upload-prep-info-tip-panel {
    position: static;
    display: none;
    margin-top: 0.35rem;
    max-width: 100%;
  }

  .upload-prep-info-tip.is-open .upload-prep-info-tip-panel {
    display: block;
  }

  .upload-prep-info-tip:hover .upload-prep-info-tip-panel,
  .upload-prep-info-tip:focus-within .upload-prep-info-tip-panel {
    display: none;
  }

  .upload-prep-info-tip.is-open .upload-prep-info-tip-panel {
    display: block;
  }
}

.upload-prep-csv-section {
  border-top: 1px solid #dee2e6;
  padding-top: 2.5rem;
  margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .upload-prep-guide.collapsing,
  .upload-prep-toggle .upload-prep-toggle-icon {
    transition: none;
  }

  .upload-prep-requirement-row.is-slide-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
