/* Контейнер с кнопками */
.allergy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end; /* 👉 выравнивание по правому краю */
}



/* Кнопка вкладки */
.allergy-tab {
  background: transparent;
  border: 1px solid #21316F;
  border-radius: 16px;
  padding: 5px 18px;
  cursor: pointer;
  font-family: "Fixel Variable", Sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #21316F;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

@media (max-width: 767px) {
	.allergy-tab {
		  font-size: 12px !important;
		padding: 5px 5px !important;
	}
	
	.allergy-tabs {
  	justify-content: center !important;
	}
}


/* hover = active */
.allergy-tab:hover,
.allergy-tab:focus-visible,
.allergy-tab.active {
  background: #9CD4F5 !important;
  border-color: #21316F !important;
  color: #21316F !important;
  transform: translateY(-1px);
}

/* Лёгкий возврат при клике */
.allergy-tab:active {
  transform: translateY(0);
}

/* Иконки в кнопках */
.allergy-tab img {
  height: 16.2px; 
  width: 16.2px;
  transition: opacity 0.25s ease;
}

.allergy-tab-icon-active {
  display: none;
}

/* Смена иконок при hover/active */
.allergy-tab.active .allergy-tab-icon,
.allergy-tab:hover .allergy-tab-icon,
.allergy-tab:focus-visible .allergy-tab-icon {
  display: none;
}

.allergy-tab.active .allergy-tab-icon-active,
.allergy-tab:hover .allergy-tab-icon-active,
.allergy-tab:focus-visible .allergy-tab-icon-active {
  display: inline-block;
}

/* Контейнер для контента */
.allergy-contents {
  position: relative;
}

/* Блок контента */
.allergy-content {
  display: none;
  background: #fff;
  border: 1px solid rgba(209, 209, 209, 0.4);
  border-radius: 22px;
  padding: 25px;
  margin-top: 0;
  transition: opacity 0.3s ease;
}

.allergy-content h3 {
  font-family: "Fixel Variable", Sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 140%;
  color: rgba(60, 132, 136, 1);
}

.allergy-content p {
  font-family: "Fixel Variable", Sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: rgba(74, 74, 74, 1);
}

.allergy-content.active {
  display: block;
  opacity: 1;
}

/* Изображение внутри контента */
.allergy-img {
  width: 100%;
  height: auto;
  border-radius: 11px !important;
  margin-bottom: 16px;
}
