.andreana-tabs {
  width: 100%;
  --andreana-tabs-panel-height: auto;
}

.andreana-tabs__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin-bottom: 24px;
}

.andreana-tabs__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 8px 12px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #583a31;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
}

.andreana-tabs__trigger::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  border-radius: 999px;
  background: #f4ede9;
  transition: background-color 0.25s ease;
}

.andreana-tabs__trigger:hover,
.andreana-tabs__trigger:focus-visible,
.andreana-tabs__trigger.is-active {
  color: #583a31;
  outline: none;
}

.andreana-tabs__trigger.is-active::after {
  background: #ad373c;
}

.andreana-tabs__trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
}

@media (max-width: 1023px) {
  .andreana-tabs__trigger-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
}

.andreana-tabs__trigger-icon-image {
  display: block;
  width: auto;
  height: 50px;
  margin-bottom: 0 !important;
  object-fit: contain;
}

.andreana-tabs__trigger-label {
  display: inline-block;
}

.andreana-tabs__panels {
  position: relative;
}

.andreana-tabs__panel {
  width: 100%;
}

.andreana-tabs__panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: var(--andreana-tabs-panel-height);
}

.andreana-tabs__media {
  display: flex;
  min-height: var(--andreana-tabs-panel-height);
  height: 100%;
}

.andreana-tabs__media.is-empty {
  display: none;
}

.andreana-tabs__media-image {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: max(320px, var(--andreana-tabs-panel-height));
  border-radius: 15px;
  object-fit: cover !important;
}

.andreana-tabs__content {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: var(--andreana-tabs-panel-height);
  height: 100%;
  padding: 32px;
  border-radius: 15px;
  background: #f4ede9;
}

.andreana-tabs__content-image img {
  display: block;
  max-width: 160px;
  height: auto;
  margin-bottom: 100px !important;
}

.andreana-tabs__content-title {
  margin: 0 !important;
  color: #583a31 !important;
  font-family: "Noto Sans", sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.andreana-tabs__content-text {
  color: #6f554c;
  font-family: "Noto Sans", sans-serif;
  line-height: 1.7;
}

.andreana-tabs__content-text > *:first-child {
  margin-top: 0;
}

.andreana-tabs__content-text > *:last-child {
  margin-bottom: 0;
}

.andreana-tabs__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 200px;
  padding: 15px 30px;
  border-radius: 999px;
  background: #ad373c;
  color: #fff !important;
  font-family: "Noto Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.andreana-tabs__button:hover,
.andreana-tabs__button:focus-visible {
  background: #583a31;
  color: #fff;
  outline: none;
}

@media (max-width: 1023px) {
  .andreana-tabs__trigger {
    justify-content: center;
  }

  .andreana-tabs__content {
    order: 1;
  }

  .andreana-tabs__media {
    order: 2;
  }

  .andreana-tabs__trigger-label {
    display: none;
  }

  .andreana-tabs__content-image img {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 999px) {
  .andreana-tabs {
    --andreana-tabs-panel-height: auto;
  }

  .andreana-tabs__panel-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .andreana-tabs__media,
  .andreana-tabs__media-image {
    min-height: 260px;
  }

  .andreana-tabs__content {
    min-height: 0;
  }
}

@media (max-width: 690px) {
  .andreana-tabs__list {
    gap: 12px;
  }

  .andreana-tabs__trigger {
    min-height: 44px;
    padding: 8px 8px 16px;
  }

  .andreana-tabs__content {
    padding: 24px;
  }

  .andreana-tabs__button {
    width: 100%;
    min-width: 0;
  }
}
