.slider-wrapper {
  margin: 68px 0;
  width: 100%;
}

.slider-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.slide {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.slide-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid #fff;
  padding-left: 24px;
}

.testimonial-icon {
  width: 24px;
  height: 18px;
  margin: 0 0 10px;
}

.slide-testimonial-author {
  font-size: calc(var(--body-font-size) * 1.28);
  font-weight: 500;
}

.slide-testimonial-info {
  font-size: calc(var(--body-font-size) * 1.14);
}

.slide-testimonial-rating {
  display: flex;
  margin: 2px 0 0;
}

.slide-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.slide-testimonial-content {
  font-size: calc(var(--body-font-size) * 2.4);
  line-height: 1.5;
  font-weight: 300;
  white-space: normal;
  word-break: break-word;
}

.slider-footer-controls {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 28px 0 0;
}

.slider-controls {
  display: flex;
  gap: 8px;
}

.slider-btn {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--inverted-border-not-for-buttons);
  color: var(--button-text-color);
  padding: 16px 32px;
  font-size: var(--button-font-size);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.slider-btn:hover:not(.is-disabled) {
  opacity: 0.7;
}

.slider-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media only screen and (max-width: 760px) {
  .slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .slide-meta {
    gap: 12px;
    border-left: none;
    padding-left: 0;
  }

  .testimonial-icon {
    width: 18px;
    height: auto;
  }

  .slider-btn {
    padding: 12px 22px;
  }

  .slide-testimonial-rating img {
    width: 18px;
    height: 18px;
  }
  
  .slide-testimonial-content {
    font-size: calc(var(--body-font-size) * 2.2);
  }
}

@media only screen and (max-width: 480px) {
  .testimonial-icon {
    width: 16px;
    height: auto;
  }
  
  .slide-testimonial-content {
    font-size: calc(var(--body-font-size) * 2);
  }
}
