.mealz-catalog-home-header {
  position: relative;
  height: 124px;
  overflow: hidden;
}

.mealz-catalog-home-header__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
}

.mealz-catalog-home-header__image::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0) 60%);
  z-index: 2;
  pointer-events: none;
}

.mealz-catalog-home-header__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mealz-catalog-home-header--custom-image {
  height: 200px;
}

.mealz-catalog-home-header__image-desktop {
  display: block;
}

.mealz-catalog-home-header__image-mobile {
  display: none;
}

.mealz-catalog-home-header__content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 80px;
}

.mealz-catalog-home-header__title {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 548px;
}

.mealz-catalog-home-header__title-text {
  color: white;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4);
}

.mealz-catalog-home-header__banner {
  display: flex;
  justify-content: center;
  height: fit-content;
  align-items: center;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  max-width: 224px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-sizing: border-box;
}

.mealz-catalog-home-header__banner-content {
  display: flex;
  flex-direction: column;

  .mealz-catalog-home-header__banner-subtitle {
    text-align: left;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }

  .mealz-catalog-home-header__banner-button {
    padding: 8px 16px;
    text-decoration: none;
  }
}

@media (max-width: 1023px) {
  .mealz-catalog-home-header__content {
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  .mealz-catalog-home-header {
    height: 168px;
  }

  .mealz-catalog-home-header__image-desktop {
    display: none;
  }
  
  .mealz-catalog-home-header__image-mobile {
    display: block;
  }

  .mealz-catalog-home-header__image::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
  }

  .mealz-catalog-home-header__content {
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100%;
    box-sizing: border-box;
    padding: 8px;
  }

  .mealz-catalog-home-header__title {
    width: 100%;
    max-width: 100%;
    justify-content: left;
    margin-bottom: 8px;

    .mealz-catalog-home-header__title-text {
      font-size: 28px;
      line-height: 32px;
    }
  }

  .mealz-catalog-home-header__title.center {
    align-items: center;
    height: 100%;
  }

  .mealz-catalog-home-header__banner {
    max-width: 100%;
    width: 100%;
    padding: 8px;
  }

  .mealz-catalog-home-header__banner-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    .mealz-catalog-home-header__banner-subtitle {
      margin-bottom: 0;
      margin-right: 8px;
    }
  }

  .mealz-catalog-home-header__banner-button {
    min-width: fit-content;
  }
}