/* HOW TO — existing vertical styles */
.how-to {
  background: #fff;
  margin-bottom: 3rem;
}

.how-to__title {
  color: #1f2937;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3125;
  margin-bottom: 1rem;
}

.how-to__intro {
  color: #4b5563;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.how-to__needs {
  align-items: center;
  background: #f3f4f6;
  border-radius: 0.5rem;
  color: #1f2937;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin: 1rem 0;
  padding: 0.25rem 1rem;
}

.how-to__need {
  align-items: center;
  color: #1f2937;
  display: flex;
  font-size: 0.875rem;
  font-weight: 400;
  gap: 0.5rem;
  line-height: 1.5714;
}

.how-to__need-label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5714;
}

.how-to__need-value {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5714;
}

.how-to__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.how-to__step {
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  width: 100%;
}

.how-to__media {
  position: relative;
}

.how-to__img {
  border: 1px solid #9ca3af;
  border-radius: 0.5rem;
  height: 6.75rem;
  object-fit: cover;
  width: 9rem;
}

.how-to__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.how-to__head {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}

.how-to__badge {
  align-items: center;
  background: #fbbf24;
  border-radius: 50%;
  color: #1f2937;
  display: flex;
  font-size: 0.75rem;
  font-weight: 400;
  height: 1.5rem;
  justify-content: center;
  line-height: 1.3333;
  min-width: 1.5rem;
  width: 1.5rem;
}

.how-to__step-title {
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.5556;
  word-break: break-word;
}

.how-to__step-desc {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.5;
}

.how-to__seo {
  display: none;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .how-to {
    padding: 0 1.5rem;
  }

  .how-to__list {
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .how-to__step {
    flex-direction: row;
  }
}

@media (min-width: 1280px) {
  .how-to__title {
    font-size: 2.25rem;
    line-height: 1.2222;
  }
}

/* HORIZONTAL */
.how-to--horizontal .how-to__slider,
.how-to--horizontal .how-to__viewport {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.how-to--horizontal .how-to__list {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
  width: 100%;
}

.how-to--horizontal .how-to__step {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-width: 0;
  overflow: hidden;
  width: auto;
}

.how-to--horizontal .how-to__media {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  flex: none;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.how-to--horizontal .how-to__img {
  border: 0;
  border-radius: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.how-to--horizontal .how-to__placeholder {
  background: #e5e7eb;
  height: 100%;
  width: 100%;
}

.how-to--horizontal .how-to__body {
  flex: 1;
  gap: .75rem;
  padding: 1.25rem;
  width: 100%;
}

.how-to--horizontal .how-to__step-title {
  color: #000;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.how-to--horizontal .how-to__step-desc {
  font-size: 1rem;
  line-height: 1.5;
}

.how-to--horizontal .how-to__step-desc p {
  color: #000;
  margin: 0;
}

.how-to--horizontal .how-to__step-desc p + p {
  margin-top: 0.5rem;
}

/* Horizontal step chip */
.how-to--horizontal .how-to__step-chip {
  align-items: center;
  background: #F9FAFB;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
  color: #000;
  display: inline-flex;
  font-size: .875rem;
  font-weight: 700;
  justify-content: center;
  left: .75rem;
  line-height: 1.5714;
  min-height: 2rem;
  padding: .125rem .5rem;
  position: absolute;
  top: .75rem;
  z-index: 2;
}

/* Swiper active state */
@media (min-width: 768px) {
  .how-to--horizontal .how-to__viewport.is-slider-active {
    overflow: hidden;
  }

  .how-to--horizontal .how-to__viewport.is-slider-active > .how-to__list {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 0;
    width: 100%;
  }

  .how-to--horizontal .how-to__viewport.is-slider-active > .how-to__list > .how-to__step {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: auto;
    min-width: 0;
  }
}

.how-to--horizontal .how-to__navigation {
  align-items: center;
  display: none;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.how-to--horizontal .how-to__slider.is-slider-active .how-to__navigation {
  display: flex;
}

.how-to--horizontal .how-to__arrow {
  align-items: center;
  background: #fff;
  border: 1px solid #4B5563;
  border-radius: 0.5rem;
  color: #4B5563;
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  width: 2.5rem;
}

.how-to--horizontal .how-to__arrow:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.how-to--horizontal .how-to__arrow:focus-visible {
  outline: 2px solid #0c4a6e;
  outline-offset: 3px;
}

.how-to--horizontal .how-to__arrow svg {
  display: block;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .how-to--horizontal .how-to__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .how-to--horizontal .how-to__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    transform: none;
  }

  .how-to--horizontal .how-to__step {
    width: 100%;
  }

  .how-to--horizontal .how-to__navigation {
    display: none !important;
  }
}
