.mealz-preferences {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 72px;

  > *:not(:last-child) {
    margin-bottom: 24px;
  }  
}

.mealz-preferences__back-button {
  @media (min-width: 1024px) {
    display: none;
  }
}

.mealz-preferences__back-image {
  transform: rotate(180deg);
}

.mealz-preferences__close-button {
  display: none;

  @media (min-width: 1024px) {
    display: block;
  }
}

.mealz-preferences__dislikes-section .mealz-accordion__collapsable-content {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  align-self: stretch;
  flex-wrap: wrap;

  > *:not(:last-child) {
    margin-right: 12px;
    margin-bottom: 12px;
  }
}

.mealz-preferences__footer {
  position: fixed;
  width: calc(100% - 15px);
  right: 15px;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: var(--mealz-ds-color-neutral-white, #fff);
  border-top: 1px solid var(--mealz-ds-color-neutral-200, #D9DDE1);
  box-sizing: border-box;

  > *:not(:last-child) {
    margin-right: 16px;
  }
}

.mealz-preferences__footer__recipes .mealz-preferences__footer__number-recipes {
  margin-right: 8px;
}

.mealz-preferences__guest-counter {
  border-radius: 6px;
  border: 1px solid var(--mealz-ds-color-primary, #24748F);
  color: var(--mealz-ds-color-neutral-black, #0F191F);
}

.mealz-preferences__guest-counter .mealz-counter__value-container {
  position: relative;
  gap: 0;
  width: auto;
}

.mealz-preferences__guest-counter .mealz-counter__value-container::after {
  content: "";
  background-image: url(https://storage.googleapis.com/assets.miam.tech/generic/icons/cutlery-neutral-black.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.mealz-preferences__guests {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.mealz-preferences__header {
  display: flex;
  padding: 8px;
  align-items: center;
  border-bottom: 1px solid var(--mealz-ds-color-neutral-200, #D9DDE1);
}

.mealz-preferences__header .mealz-preferences__nav-and-title {
  display: flex;
  align-items: center;
}

.mealz-preferences__header .mealz-preferences__title {
  padding-left: 8px;
  color: var(--mealz-ds-color-neutral-black, #0F191F);
}

.mealz-preferences__list {
  display: flex;
  flex-direction: column;
}

.mealz-preferences__list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
}

.mealz-preferences__list__item__name {
  color: var(--mealz-ds-color-neutral-black, #0F191F);
}

.mealz-preferences__badge {
  color: var(--mealz-ds-color-neutral-black, #0F191F);
  padding: 16px;
  cursor: pointer;
  transition: all .25s ease-in;
  -webkit-tap-highlight-color: transparent;
  border: none;
  display: flex;
  align-items: center;
}

.mealz-preferences__badge.checked {
  background: var(--mealz-ds-color-primary, #24748F);
  color: var(--mealz-ds-color-neutral-white, #fff);
}

.mealz-preferences__badge-label {
  display: flex;

  > *:not(:last-child) {
    margin-right: 8px;
  }
}

.mealz-preferences__remove-tag {
  height: 16px;
  width: 16px;
}

mealz-accordion .mealz-accordion__collapsable-container {
  margin: 0 16px;
  padding: 0 8px;
  border-bottom: 0;
}

mealz-accordion .mealz-accordion__collapsable-content {
  border-bottom: 0;
}

mealz-accordion .mealz-accordion__collapsable-content .mealz-ds-checkbox {
  height: unset;
}

@media (max-width: 450px) {
  .mealz-preferences {
    margin-bottom: 131px;
  }

  .mealz-preferences__footer {
    box-sizing: border-box;
    flex-direction: column-reverse;
    
    > *:not(:last-child) {
      margin-top: 8px;
      margin-right: 0;
    }      
  }
}

@media (min-width: 1024px) {
  .mealz-preferences__header {
    justify-content: space-between;
  }
}