
body{
  background-color: rgb(244, 244, 244);
}

.container {
  display: flex;
  height: 100vh; /* Altura completa de la ventana */
  margin: 0; /* Asegúrate de que no haya márgenes */
  padding: 0; /* Asegúrate de que no haya relleno */
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
}

/*---------------EMPTY CAR----------------*/

#empty-car{
  font-family: "Rokkitt", serif;
  font-size: 40px;
  margin-left: 15px;
  margin-top: 35px;
  font-weight: normal;
}

#backtostore {
  display: flex;
  align-items: center;
  text-decoration: none; 
  margin-left: 180px;
  font-size: 60px;
  margin-top: 80px;
  gap: 15px; 
  margin-bottom: 100px;
}

#backtostore-button {
  transition-duration: 0.4s;
  background-color: rgb(158, 158, 217);
  padding: 10px;
  font-size: 30px;
  border-radius: 4px;
  border-style: none;
  font-family: "Rokkitt", serif;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  margin: 0; 
}

#backtostore-button:hover{
  background-color: rgb(180, 180, 236);
  color: white;
}

/*----------------------------------------*/

#proced-options, #table-container {
  flex: 1; /* Ambas secciones ocuparán el mismo espacio */
  padding: 20px;
  box-sizing: border-box; /* Incluye padding en el ancho total */
}

#proced-options {
  display: flex;
  flex-direction: column; /* Para que el contenido se apile verticalmente */
  overflow-y: auto;
  margin: auto;
}

#options{
  display: flex; /* Utiliza flexbox para alinear los elementos */
  justify-content: space-between; /* Espacio entre los elementos */
  align-items: center; /* Alinea verticalmente al centro */
  padding: 0px; /* Relleno opcional */
  margin: 0px;
}

#table-container {
  display: flex;
  flex-direction: column; /* Para que el contenido se apile verticalmente */
}


#table-title{
  font-family: "Arsenal SC", system-ui;
  text-align: center;
  font-size: 31px;
  padding-top: 17px;
  padding-bottom: 25px;
  font-weight: bold;
}

#checkoutForm {
  max-height: 400px; /* Ajusta el alto según tu diseño */
  overflow-y: auto;  /* Agrega scroll si hay muchos productos */
}

.product-image{
  width: auto;  /* Ajusta el tamaño según necesites */
  height: 40px; /* Mantiene la proporción */
  object-fit: contain; /* Asegura que la imagen no se distorsione */
  display: block;
  margin: auto;
  margin-top: 9px;
  margin-bottom: 4px;
  border-radius: 4px;
  box-shadow: 0px 0px 0px 4px rgb(210, 210, 210);
}

.product-name{
    padding: 0px;
    margin: 0px;
}

.product-qty{
  padding-left: 40px;
  background-color: rgba(171, 171, 171, 0.1);
}


#total_price{
  background-color: rgba(171, 171, 171, 0.2);
}

#total-sum{
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 20px;
}

.remove{
  border-radius: 18px;
  padding: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
}



/* -------------POPUP-------------- */

#mensajeContenido{
  height: 8px;
  padding: 6px;
}

#mensajeExito {
  background-color: rgb(234, 108, 108);
  border-radius: 18px;
  border-color: rgb(237, 128, 128);
  color: rgb(145, 13, 13);
  border-width: 4px;
  border-style: solid;
  padding: 0px;
  display: none; 
  position: fixed; 
  top: 20px; 
  right: 20px; 
  z-index: 1050; 
  text-align: center;
  font-family: "Arsenal SC", system-ui;
  font-size: 17px;
  margin: 0px;
  margin-left: 6px;
  margin-right: 6px;
  
}
/* Configuración inicial para el modal */
.modal {
  opacity: 0; /* Comienza invisible */
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* Cuando tiene la clase .show, aparece con fade-in */
.modal.show {
  opacity: 1;
  visibility: visible;
}

/* Para hacer que desaparezca después de 3 segundos */
@keyframes fadeOut {
  0% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* Aplicar el fade-out automáticamente después de 3s */
.modal.auto-fade {
  animation: fadeOut 3s ease-in-out 2s forwards; /* 2s de espera, 3s de fade */
}

/* ----------Tablita de Detalles------------ */

table {
  margin: 30px;
  border-spacing: 0;
  font-family: "Rokkitt", serif;
  font-size: 17px;
}

th{
  background-color: rgb(225, 225, 225);
  font-weight: normal;
  font-size: 19px;
  color: rgb(40, 40, 40);
}

th:nth-child(odd) {
  background-color: rgb(235, 235, 235);
}

tr:nth-child(even) {
  background-color: rgb(246, 246, 246);
}

tr:nth-child(odd) {
  background-color: rgb(230, 230, 230);
}


th, td {
  padding: 0px;
  padding-right: 15px;
  padding-left: 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}


.quantity-div {
  position: relative;
  }
  
  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button
  {
    -webkit-appearance: none;
    margin: 0;
  }
  
  .quantity-div input {
    background-color: rgb(243, 243, 243);
    width: 45px;
    height: 42px;
    line-height: 1.65;
    float: left;
    display: block;
    padding: 0;
    margin: 0;
    padding-left: 20px;
    border: 1px solid #d2d2d2;
  }
  
  .quantity-div input:focus {
    outline: 0;
  }
  
  .quantity-nav {
    float: left;
    position: relative;
    height: 42px;
  }

  .quantity-buttonUp{
    background-color: rgb(213, 213, 213);
    position: relative;
    cursor: pointer;
    border-left: 1px solid #eee;
    width: 20px;
    text-align: center;
    color: #333;
    font-size: 13px;
    font-family: "Trebuchet MS", Helvetica, sans-serif !important;
    line-height: 1.7;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    position: absolute;
    height: 50%;
    top: 0;
    border-bottom: 1px solid #eee;
  }
  
  .quantity-buttonDown {
    background-color: rgb(213, 213, 213);
    position: relative;
    cursor: pointer;
    border-left: 1px solid #eee;
    width: 20px;
    text-align: center;
    color: #333;
    font-size: 13px;
    font-family: "Trebuchet MS", Helvetica, sans-serif !important;
    line-height: 1.7;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    position: absolute;
    bottom: -1px;
    height: 50%;
  }

  #cart-update{
  background-color: rgb(152, 242, 130);
  border: none;
  width: 100%;
  height: 40px;
  margin: 0 auto;
  display: block;
  border-radius: 3px;
  color: rgb(43, 43, 43);
  font-size: 16px;
  transition-duration: 0.4s;
  margin-top: 6px;
  margin-bottom: 6px;
  font-family: 'Nunito Sans';
  }

  #cart-update:hover{
  background-color: rgb(162, 221, 163);
  color: white;
  }
  

/*------------------ LOGIN -------------------*/

#user-login{
  margin-top: 7px;
  font-size: 26px;
  background-color: rgb(172, 172, 222);
  margin: 0px;
  padding-left: 14px;
  padding-right: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px; 
  border-bottom-left-radius: 0; 
  border-bottom-right-radius: 0;
  cursor: pointer;
  font-family: "Arsenal SC", system-ui;
}

#user-datas{
  margin-top: 7px;
  font-size: 26px;
  background-color: rgb(172, 172, 222);
  margin: 0px;
  padding-left: 14px;
  padding-right: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px; 
  border-bottom-left-radius: 0; 
  border-bottom-right-radius: 0;
  font-family: "Arsenal SC", system-ui;
}

#guest-option{
  margin-top: 7px;
  font-size: 26px;
  background-color: rgb(170, 170, 215);
  color: rgb(95, 87, 104);
  margin: 0px;
  padding: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px; 
  border-bottom-left-radius: 0; 
  border-bottom-right-radius: 0;
  cursor: pointer;
  font-family: "Arsenal SC", system-ui;
}

#guest-option:hover{
  background-color: rgb(172, 172, 222);
  color: rgb(227, 227, 227);
}

.guest-display #guest-option{
  margin-top: 7px;
  font-size: 26px;
  background-color: rgb(172, 172, 222);
  margin: 0px;
  padding-left: 14px;
  padding-right: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px; 
  border-bottom-left-radius: 0; 
  border-bottom-right-radius: 0;
  cursor: pointer;
  font-family: "Arsenal SC", system-ui;
  color: black;
}

.guest-display #user-login{
  margin-top: 7px;
  font-size: 26px;
  background-color: rgb(170, 170, 215);
  color: rgb(95, 87, 104);
  margin: 0px;
  padding: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px; 
  border-bottom-left-radius: 0; 
  border-bottom-right-radius: 0;
  cursor: pointer;
  font-family: "Arsenal SC", system-ui;
}

.guest-display #guest-option:hover {
  pointer-events: none;
}

.guest-display #user-login:hover{
  background-color: rgb(172, 172, 222);
  color: rgb(227, 227, 227);
}

#acepto-terminos{
  margin-top: 10px;
  margin-left: -20px; /* saca el texto hacia la izquierda */
  margin-right: -20px; /* opcional, si querés que ocupe todo el ancho */
  text-align: center;
}

#termino-url{
  text-decoration: underline;
}

form{
  position: relative;
  display: inline-block;
}

#form-block{
  font-family: 'Nunito Sans';
  margin: auto;
  margin-bottom: 30px;
  text-align: left;
  display: flex;
  justify-content: center;
  background-color: rgb(245, 245, 245);
  width: 70%;
  height: 30%;
  padding: 15px;
  padding-bottom: 22px;
  flex-direction: column;

}

#separation-line{
  border: 1px solid #ccc;
  width: 100%;
  margin-top: 0px;
  margin-bottom: 10px;
}

#register-form, #guest_form{
  display: flex;
  flex-direction: column;
  gap: 3px;  
}

#register-form input[type=text]{
  width: 100%;
  padding: 11px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

#id_comuna {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="14" viewBox="0 0 24 24" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.fake-input {
  background-color: white;
  cursor: not-allowed;
  border-radius: 4px;
  width: 100%;
  padding: 11px 20px;
  margin: 3px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  color: rgb(30,30,30);
  cursor: not-allowed;
  font-family:  Arial, Helvetica, sans-serif;
}

#id_password{
  width: 100%;
  padding: 11px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

#submit-button, #guest-button, #registered-button{
  background-color: rgb(130, 130, 195);
  border: none;
  width: 40%;
  height: 55px;
  margin: 0 auto;
  display: block;
  border-radius: 3px;
  color: white;
  font-size: 18px;
  transition-duration: 0.4s;
  margin-top: 22px;
}

#register_path{
  margin-top: 17px;
  text-align: center;
  color: rgb(51, 102, 187);
}

#submit-button:hover{
  background-color: rgb(165, 165, 227);
  color: white;
}

.text-danger{
  color: rgb(236, 10, 10);
  font-weight: 400;

}

#login-error {
  color:  rgb(145, 13, 13);
  margin: 0 auto;
  display: block;
  background-color: rgb(249, 161, 161);
  padding: 9px;
  border-style: solid;
  border-color: rgb(237, 128, 128);
  border-radius: 3px;
  border-width: 1px;
  margin-top: 20px;
}

#password_recover{
    margin-top: 17px;
    text-align: center;
    color: rgb(51, 102, 187);
}



#guest_form, #registered_form{

  display: flex;
  flex-direction: column;
  gap: 3px;  
}

select, #guest_form input[type=text], #registered_form input[type=text]{
  width: 100%;
  padding: 11px 20px;
  margin: 2px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

#table-container {
  flex-grow: 1; /* Toma el espacio disponible restante */
  overflow-y: auto; /* Permite desplazamiento si el contenido es demasiado grande */
  margin-bottom: 20px; /* Margen inferior para separación */
}

@media (max-width: 1024px) {

  .container {
  margin-top: 10px;
  }

  #proced-options{
    flex: 1; /* Ambas secciones ocuparán el mismo espacio */
    padding: 0px;
    padding-left: 10px;
  }
  #table-container {
      flex: 2; /* Ambas secciones ocuparán el mismo espacio */
    padding: 0px;
  }
  #form-block{
    width: 85%;
    height: 30%;
    padding: 4px;
  }
  .remove{
    width: 39px;
    height: 39px;
    margin-left: 55px;
  }
  .product-qty{
      width: 40%;
  }
    table td:first-child {
    padding: 7px;
  }
  .product-image{
    width: auto;  /* Ajusta el tamaño según necesites */
    height: 30px; /* Mantiene la proporción */
    object-fit: contain; /* Asegura que la imagen no se distorsione */
    display: block;
    margin: auto;
    margin-top: 9px;
    margin-bottom: 4px;
    border-radius: 4px;
    box-shadow: 0px 0px 0px 4px rgb(210, 210, 210);
  }
  th, td {
    padding: 0px;
    padding-right: 0px;
    padding-left: 0px;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }
  .quantity-div {
  position: relative;
  }
  
  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button
  {
    -webkit-appearance: none;
    margin: 0;
  }
  
  .quantity-div input {
    padding-left: 10px;
  }
  #submit-button, #guest-button, #registered-button{
  width: 60%;
  }

  #user-login{
    margin-top: 7px;
    font-size: 14px;
    background-color: rgb(172, 172, 222);
    margin: 0px;
  }

    #guest-option{
    margin-top: 7px;
    font-size: 14px;
    margin: 0px;
    padding: 3px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
    .guest-display #guest-option{
    margin-top: 7px;
    font-size: 14px;
    background-color: rgb(172, 172, 222);
    margin: 0px;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    border-top-left-radius: 10px; 
    border-top-right-radius: 10px; 
    border-bottom-left-radius: 0; 
    border-bottom-right-radius: 0;
    cursor: pointer;
    font-family: "Arsenal SC", system-ui;
    color: black;
  }

  .guest-display #user-login{
  margin-top: 7px;
  font-size: 14px;
  background-color: rgb(170, 170, 215);
  color: rgb(95, 87, 104);
  margin: 0px;
  padding: 3px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px; 
  border-bottom-left-radius: 0; 
  border-bottom-right-radius: 0;
  cursor: pointer;
  font-family: "Arsenal SC", system-ui;
  }

}
@media (max-width: 627px){

  #form-block{
    width: 100%;
    height: 30%;
    padding: 0px;
  }
  #acepto-terminos {
    font-size: 12px;
    margin: 2px;
  }
  #table-title{
    font-size: 18px;
  }
  tr th {
    font-size: 13px;
  }
  tr{
    font-size: 12px;
  }
  .remove{
    width: 34px;
    height: 38px;
    padding-top: 5px;
    margin-left: 55px;
  }
  #total-sum{
    font-size: 16px;
  }
  #ckeckout-table{
    padding: 0px;
    margin: 10px;
  }
  .product-qty{
      padding-left: 20px;
  }
  #cart-update{
    font-size: 14px;
  }
}
@media (max-width: 530px){
    #backtostore {
      margin-right: 30px;
      margin-left: 70px;
    }
}
@media (max-width: 511px){
    #proced-options, #table-container {
      flex: 0.8; /* Ambas secciones ocuparán el mismo espacio */
      padding: 2px;
      padding-left: 5px;
      box-sizing: border-box; /* Incluye padding en el ancho total */
    }
    #table-container {
      flex: 1.1;
    }
    #ckeckout-table{
      padding: 0px;
      margin: 4px;
      margin-left: 0px;
    }
    form{
      font-size: 12px;
    }
    .fake-input {
      font-size: 12px;
    }
    #submit-button, #guest-button, #registered-button{
      width: 60%;
      height: 36px;
      font-size: 13px;
    }
    #register-form input[type=text]{
    font-size: 12px;
    }
    select, #guest_form input[type=text], #registered_form input[type=text]{
      font-size: 12px;
    }

    .quantity-div input {
      width: 38px;
      height: 32px;
    }
  
  .quantity-nav {
    float: left;
    position: relative;
    height: 32px;
    }

    .quantity-buttonUp, .quantity-buttonDown{
      width: 16px;
    }
    
    .remove{
      width: 26px;
      height: 30px;
      padding-top: 2px;
      margin-left: 40px;
    }
      tr th {
      font-size: 12px;
    }
    #total-sum{
      font-size: 14px;
      padding-right: 3px;
    }
    #cart-update{
      font-size: 14px;
    }
    .product-image{
      width: auto;  /* Ajusta el tamaño según necesites */
      height: 40px; /* Mantiene la proporción */
    }
    td.product-qty{
      padding-left: 4px;
      width: 14px;
    }
    #backtostore {
      margin-right: 70px;
      margin-left: 70px;
    }
    #backtostore-button {
    font-size: 26px;
    }
}
@media (max-width: 410px){
  .container{
      flex-direction: column-reverse;
  }
  .quantity-buttonUp, .quantity-buttonDown{
    display: none;
  }
  #proced-options, #table-container {
      flex: 0.8; /* Ambas secciones ocuparán el mismo espacio */
      padding: 45px;
      box-sizing: border-box; /* Incluye padding en el ancho total */
    }

    #table-container {
     padding: 10px;
     margin-bottom: 0px;
    }
    #ckeckout-table{
      padding: 0px;
      margin: 4px;
    }
    .product-image{
      width: auto;  /* Ajusta el tamaño según necesites */
      padding: 7px;
      height: 40px; /* Mantiene la proporción */
    }
    td.product-qty{
      width: 84px;
    }
    input.quantity{
      margin-right: 7px;
    }
    .remove{
      padding-top: 0px;
       width: 34px;
    }
    #backtostore {
      margin-right: 50px;
      margin-left: 40px;
    }
    #backtostore-button {
    font-size: 26px;
    }
}

