.main {
  width: 100%;
  height: auto;
}

.title-txt {
  margin-top: 5%;
  text-align: center;
}

.compte {
  width: 100%;
  min-height: 90vh;
  height: auto;
  margin-bottom: 8%;
  /* padding-bottom: 200px; */
}

.compte.pg {
  height: auto;
  max-height: 1100px;
  margin-bottom: 550px;
}

.compte.pg.c-fact {
  min-height: 2100px;
  margin-bottom: 0px;
}

.compte.c-comand {
  min-height: 1000px;
  margin-bottom: 0px;
}

.compte.pg-2 {
  display: flex;
  align-items: start;
  justify-content: center;
  width: 100%;
  min-height: 700px;
  /* padding: 1% 5% 200px 5%; */
  margin-top: 40px;
  margin-bottom: 40px;
}

.buttons-container {
  margin: 0 auto;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1%;
}

.buttons-container.pg-2 {
  margin-top: 0;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  width: 25%;
}

.btn-cont.pg-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6% 0 4%;
  gap: 8%;
}

.text.pg-2 {
  width: 100%;
  text-align: start;
}

.text.pg-2 h5 {
  font-size: 16px;
  font-weight: normal;
}

.btn-cat {
  display: block;
  padding: 0 15px;
  color: #1a3775;
  height: 40px;
  width: auto;
  margin: 0;
  line-height: 40px;
  background-color: #f2f2f2;
  font-size: 14px;
  font-weight: bold;

  cursor: pointer;
}

.btn-cat.pg-2 {
  width: 100%;
  height: auto;
  line-height: 1.5;
  padding: 8px 2px 8px 2px;

  border: 1px solid #1a3775;
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
}

.b-select {
  background-color: #1a3775;
  color: white;
}

.cat-container {
  width: 40%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  height: auto;
  position: relative;
  height: auto;
  padding: 0 22%;
}

.cat-container.pg-2 {
  margin: 0;
  padding: 0;
  width: 70%;
}

.cat {
  background-color: #fff;
  width: 100%;
  height: auto;
  margin-top: 2%;
  padding: 20px;
  border: 1px solid rgb(85, 85, 85, 0.3);
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  position: absolute;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 0.3s ease-in-out;
  -webkit-transition: opacity 1s ease-in-out, visibility 0.3s ease-in-out;
  -moz-transition: opacity 1s ease-in-out, visibility 0.3s ease-in-out;
  -ms-transition: opacity 1s ease-in-out, visibility 0.3s ease-in-out;
  -o-transition: opacity 1s ease-in-out, visibility 0.3s ease-in-out;
  border-radius: 1rem;
}

.cat.pg-2 {
  height: auto;
  max-height: 1100px;
  padding: 0;
  margin: 0;
  border: 0.4px solid rgb(85, 85, 85, 0.3);
  padding: 30px;
  overflow-y: scroll;
}

.cat.pg-2.c-fact {
  overflow-y: visible;
  max-height: 1700px;
  border: 0.4px solid #1a3775;
}

.cat.c-1.c-select.c-comand {
  overflow-y: scroll;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.c-select {
  border: 1px solid #1a3775;
  display: block;
  opacity: 1;
  visibility: visible;
  height: auto;
}

/* .prueba {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
} */

.compte.c-comand {
  min-height: 1430px;
  margin-bottom: 0px;
}

.cat-container.c-comm {
  width: 100%;
  margin-left: 0px;
  margin-right: 0px;
}

.cat.c-1.c-select.c-comand.c-comm {
  height: 1200px;
}

@media (max-width: 1000px) {
  .cat-container {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
  }

  .c-select {
    min-width: 100%;
  }
}

@media (max-width: 700px) {
  .compte.pg-2 {
    display: block;
    height: 1300px;
  }

  .cat-container.pg-2 {
    min-width: 100%;
  }

  .buttons-container.pg-2 {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 8%;
  }

  .cat-container.pg-2 {
    width: 80%;
    margin: 0 auto;
  }

  .restaurant-description.fila {
    font-size: 80%;
  }

  .restaurant-description .carrito a .fa-solid.fa-rotate-left.carrito,
  .restaurant-description .carrito a .fa-solid.fa-cart-shopping.carrito {
    font-size: 180%;
    margin: auto 0;
  }

  .cat-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 500px) {
  .button-comp.btn-cat.b-3 {
    margin-top: 20px;
  }

  .compte.pg-2 {
    margin-top: 20px;
  }

  .buttons-container.pg-2 {
    margin-bottom: 20px;
  }

  .cat.pg-2 {
    padding: 10px;
  }
}
