@import url("fonts/fonts-ch.css");
#custom-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999999999999;
}
#custom-popup #custom-popup-close {
  position: absolute;
  top: 60px;
  right: 60px;
  text-decoration: none;
  font-size: 20px;
}
.close:after {
  content: url("img/close.svg");
}
.basket {
  margin-left: 1rem;
}
.basket::after {
  content: "";
  display: inline-block;
  width: 19px;
  height: 19px;
  line-height: 19px;
  background-image: url("img/basket.svg");
  background-size: contain; /* Dopasowuje obrazek */
  background-repeat: no-repeat;
  background-position: center;
}

#custom-popup ul {
  display: flex;
  gap: 2rem;
  margin-top: 6rem;
  max-width: 70%;
}
#custom-popup #popup-button {
  width: fit-content;
  height: 62px;
  border-radius: 0 35px;
  border: 0px;
  padding: 3rem 5rem;
  background: linear-gradient(
    90deg,
    rgba(120, 183, 42, 1) 0%,
    rgba(0, 149, 62, 1) 100%
  );
  display: flex;
  text-transform: uppercase;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  opacity: 1; /* Dodaj domyślną wartość opacity */
  transition: background 0.4s ease-in-out, opacity 0.4s ease-in-out,
    color 0.4s ease-in-out;
}

#custom-popup #popup-button:hover {
  color: #fff;
  opacity: 0.75;
}
#custom-popup-content .content {
  display: flex;
  margin: 6rem 0;
  gap: 6rem;
  height: inherit;
  align-items: center;
}
#custom-popup-content .content .banner-image {
  max-width: 554px;
  width: 100%;
}
#custom-popup-content .content .column {
  flex-grow: 1;
}
#custom-popup .popup-title {
  font-size: 6.3rem;
  color: #fff;
}
#custom-popup .description {
  font-size: 7.5rem;
  color: #fff;
  line-height: 7rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
}
#custom-popup .description span {
  color: #78b72a;
}
.no-scroll {
  overflow: hidden;
}
.order-image {
  order: 2;
}
.order-text {
  order: 1;
}
@media (min-width: 1501px) {
  #custom-popup-content {
    padding: 5rem 5rem;
  }
}
@media (max-width: 1500px) {
  #custom-popup-content {
    padding: 5rem 5rem;
  }
  #custom-popup .description {
    font-size: 7rem;
    color: #fff;
    line-height: 8rem;
    margin-bottom: 3rem;
  }
}
@media (max-width: 1350px) {
  #custom-popup-content {
    padding: 5rem 5rem;
  }
}
@media (max-width: 1250px) {
  #custom-popup-content {
    padding: 6rem;
  }
  #custom-popup .popup-title {
    font-size: 3.8rem;
    color: #fff;
  }
  #custom-popup ul {
    margin-top: 4rem;
  }
}
@media (max-width: 1150px) {
  #custom-popup-content {
    padding: 6rem;
  }

  #custom-popup .description {
    font-size: 5.4rem;
    line-height: 6.4rem;
    color: #fff;
    margin-bottom: 2rem;
  }
}
@media (min-width: 993px) {
  #custom-popup-content {
    max-width: 1500px;
    max-height: 900px;
    width: 95%;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    height: 100%;
  }
  #custom-popup-content.pl {
    background: #000 url("img/foodcom-msm-pl.png") no-repeat center right;
    background-size: cover;
  }
  #custom-popup-content.en {
    background: #000 url("img/foodcom-msm-en.png") no-repeat center right;
    background-size: cover;
  }
  .show-desktop {
    display: block;
  }
  .show-mobile {
    display: none;
  }
}
@media (max-width: 992px) {
  #custom-popup-content {
    background-size: 100%;
    padding: 5rem 4rem;
    width: 355px;
    height: 958px;
    margin-top: 5rem;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
  }
  #custom-popup-content.pl {
    background: #000 url("img/foodcom-msm-pl-mobile.png") no-repeat top;
  }
  #custom-popup-content.en {
    background: #000 url("img/foodcom-msm-en-mobile.png") no-repeat top;
  }
  .show-desktop {
    display: none;
  }
  .show-mobile {
    display: block;
  }
  #custom-popup .popup-title {
    font-size: 2.6rem;
    color: #fff;
  }
  #custom-popup .description {
    font-size: 3.5rem;
    color: #fff;
    line-height: 4rem;
  }
  #custom-popup-content .content {
    max-width: 100%;
    margin-top: 3rem;
    display: grid;
  }
  #custom-popup #custom-popup-close {
    top: 20px;
    right: 20px;
  }
  #custom-popup ul {
    margin-top: 5rem;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 0.5rem;
  }
  #custom-popup ul li {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: 50%;
  }
  #custom-popup {
    align-items: flex-start;
    overflow: auto;
  }
  #custom-popup #popup-button {
    height: 32px;
    font-size: 1.6rem;
    border-radius: 0 15px 0 15px !important;
    padding: 2.5rem 3rem;
    margin: 27px auto;
  }
  #custom-popup .red-line {
    background: #ff0000;
    width: 55px;
    height: 2px;
    display: block;
    margin: 1rem 0;
  }
  .order-image {
    order: 2;
  }
  .order-text {
    order: 1;
  }
}
