/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    text-align: left;
  }

  .modal-header {
    display: flex;
    flex-direction: row;
    z-index: 35;
    position: relative;
  }
  
  .modal-title {
    font-size: larger;
  }
  
  /* Modal Content */
  .modal-content {
    position: fixed;
    background-color: #fefefe;
    top:-1px;
    right:-1px;
    height: 100%;
    margin-top:0px;
    padding: 20px;
    border: 1px solid #888;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    animation: fade-in-right 0.2s linear;
  }
  
  .modal-body {
    max-height: 75vh; /* Adjust this value to suit your needs */
    overflow-y: auto; /* This will make it scrollable */
  }
  
  .modal-footer {
    position: absolute;
    top: 89vh;
  }
  
  @keyframes fade-in-right {
    0% {
      opacity: 0;
      transform: translateX(20px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .modal-content button:hover {
    cursor:pointer;
  }

  .modal-footer {
    display: flex;
  }
  
  .modal-footer a {
      background-color: #28bcf6;
      transition: 0.2s;
      padding: 15px;
      border: none;
      margin-top: auto;
      margin-bottom: auto;
      margin-left: 5px;
      margin-right: 5px;
      color: #1b1b1b;
      text-decoration: none;
      font-size: large;
      font-weight: bold;
  }
  
  .modal-footer a:hover {
    background-color: #0080c5;
    color: white;
  }

  .modal-footer button {
    background-color: #ffaeae;
    transition: 0.2s;
    padding: 15px;
    border: none;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 5px;
    margin-right: 5px;
    color: #1b1b1b;
    font-size: large;
    font-weight: bold;
  }

  .modal-footer button:hover {
    background-color: #ff0000;
    color: white;
  }
  
  /* The Close Button */
  .close, .close2 {
    color: #aaaaaa;
    position: relative;
    float: right;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    z-index: 31;
  }
  
  .close:hover, .close2:hover, .close:focus, .close2:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  .modal-content .input-group{
    display: flex;
    justify-content: center;
  }
  
  .modal-content .input-group button{
    padding: 5px;
    font-size: 15px;
    background-color: #ededed;
    border:none;
    color: #000000;
  }

  .modal-content .input-group .item-count{
    text-align: center;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 15px;
    background-color: #ededed;
    max-width: 50px;
    border: none;
  }

  input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  }

  input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  }

  .modal-content td img {
    max-height: auto;
    margin-left: 0px;
    border-radius: 0px;
  }

  .modal-content td {
    padding:6px;
  }

  .modal-content .delete-item-cart, .modal-content .delete-item-quote {
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 15px;
    background-color: #ffaeae;
    max-width: 50px;
    border: none;
  }

  .modal-content #counter-value{
    height: 50px;
    min-width: 60px;
    background-color: #eaeaea;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

/* -----------------------------codigo para hacer la pagina responsiva de escritorio---------------------------- */
@media screen and (min-width: 1051px) {

    .modal {
      padding-top: 25vw; /* Location of the box */
    }
  
    /* Modal Content */
    .modal-content {
      width: 40%;
    }

    .modal-content td img {
      max-width: 55px;
    }

    .modal-content td {
      padding-left: 8px;
      padding-right: 8px;
    }

    .modal-footer {
      margin-top: 20px;
    }

  }

  /* -----------------------------codigo para hacer la pagina responsiva de celular---------------------------- */
@media screen and (max-width: 1050px) {
  
    .modal {
      padding-top: 50vw; /* Location of the box */
    }
  
    /* Modal Content */
    .modal-content {
      width: 90vw;
    }

    .modal-content td {
      padding-left: 4px;
      padding-right: 4px;
    }

    .singular {
      display: none;
    }

    .modal-content td img {
      max-width: 30px;
    }
    
  }