.sections-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: fit-content;
}

.preview {
  /* width: 30%; */
  flex: 1;
}

.details {
  /* width: 60%; */
  flex: 3;
}

.preview__wrapper {
  display: flex;
  align-items: start;
  justify-content: center;
}

.preview__image img {
  height: 100%;
  object-fit: cover;
  max-height: 800px;
  max-width: 500px;
}

.details__box {
  width: 100%;
  min-height: 780px;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 4rem;
  padding: 0 5rem;
  box-shadow: var(--shadow-black) 0 3px 6px 0;
}

.details__box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #b7b7b7;
  padding: 2rem 0;
}

.box__header__text-container {
  padding: 8px 12px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box__header__text {
  text-align: center;
  width: 100%;
  padding: 1rem;
  border-radius: 1.8rem;
  font-size: 1.8rem;
  color: var(--link-black);
  font-weight: 600;
}

.box__header__text-container:nth-child(even) {
  border-right: 1px solid #b7b7b7;
  border-left: 1px solid #b7b7b7;
}

.box__header__text--active {
  background-color: var(--green);
  color: var(--link-white);
  font-weight: bold;
}

.button {
  background-color: var(--green);
  text-align: center;
  outline: none;
  border: none;
  box-shadow: var(--shadow-black) 0 3px 6px 0;
  width: 100%;
  padding: 1rem;
  border-radius: 5rem;
  font-size: 2.5rem;
  color: white;
  display: block;
}

@media (max-width: 760px) {
  .sections-wrapper {
    flex-direction: column;
  }

  img{
    width: 100%;
  }

  .details__box{
    padding: 0;
  }
}
