#single-product-pack-table {
  clear: both;

  .pack-tabs {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eeeded;
  }

  /* Navegación de Pestañas */
  .pack-tabs-nav {
    display: inline-flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    flex-wrap: wrap;
  }

  .pack-tabs-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 87px;
    height: 29px;
    border-radius: 8px;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
  }

  .pack-tabs-nav-item.active {
    font-weight: 600;
  }

  /* Contenido de la Tabla y Filas */
  .pack-price-table {
    width: 100%;
    border: none;
    table-layout: fixed;
  }

  .pack-price-table tr {
    border: none;
  }

  .pack-price-table tr:last-child {
    border: none;
  }

  .pack-price-table tr:nth-child(odd) {
    background-color: #f8f8f8;
  }

  .pack-price-table td {
    padding: 12px 18px;
    vertical-align: middle;
    border: none;
  }

  .pack-price-table td:nth-child(1) {
    font-weight: 400;
  }

  .pack-price-table .units {
    width: 13%;
  }

  .pack-price-table .extra-units {
    width: 17%;
  }

  .pack-price-table .price-unit {
    width: 15%;
  }

  .container_button-product-pack {
    display: flex;
    justify-content: end;
  }

  .pack-price-table td:nth-child(2) span {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  .pack-price-table .subtle {
    font-size: 14px;
    color: #888;
  }

  .pack-price-table .total {
    width: 12%;
    font-size: 16px;
    font-weight: 600;
  }

  /* Botones y Selector de Cantidad */
  .cart-pack-form {
    display: contents;
  }

  .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 40px;
  }

  .quantity button {
    background-color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    font-size: 16px;
    box-shadow: none;
    height: 100%;
    border-radius: 0;
  }

  .quantity .qty {
    width: 40px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
  }

  .quantity .qty::-webkit-outer-spin-button,
  .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .add-product-pack {
    color: white;
    padding: 7px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
  }

  .add-product-pack img {
    margin-right: 6px;
  }
  /* Ocultar el contenido de las pestañas no activas */
  .pack-tab-content {
    display: none;
  }

  .pack-tab-content.active {
    display: block;
  }

  /* --- Media Queries para Dispositivos Móviles --- */
  @media (max-width: 768px) {
    .pack-price-table,
    .pack-price-table tbody,
    .pack-price-table tr,
    .pack-price-table td {
      display: block; /* Rompe el layout de tabla para apilar elementos */
      width: 100%;
    }

    .pack-price-table tr {
      padding: 15px;
      margin-bottom: 10px;
      border: 1px solid #f0f0f0;
      border-radius: 8px;
    }

    .pack-price-table td {
      border-bottom: 1px solid #eee;
      padding: 10px 0;
    }

    .pack-price-table tr td:last-child {
      border-bottom: none;
    }

    /* Agrupación de información para mejor visualización móvil */
    .pack-price-table td:nth-child(1),
    .pack-price-table td:nth-child(2),
    .pack-price-table td:nth-child(3),
    .pack-price-table .total {
      display: flex;
      gap: 5px;
      align-items: center;
      justify-content: end;
    }

    .pack-price-table td:nth-child(2) {
      border-bottom: none;
    }

    .pack-price-table td:nth-child(1)::after {
      content: " ";
      display: flex;
      justify-content: flex-end;
    }

    /*distribucion*/

    .pack-price-table tr {
      display: flex;
      flex-wrap: wrap;
    }

    .pack-price-table .units {
      width: 100%;
      font-size: 18px;
    }

    .pack-price-table .extra-units {
      width: 100%;
      padding: 10px 0;
    }

    .pack-price-table .price-unit {
      width: 100%;
    }

    .pack-price-table .total {
      width: 100%;
      font-size: 20px;
    }

    .cart-pack-form {
      display: block;
      width: 100%;
      margin-top: 10px;
    }

    .cart-pack-form td {
      display: block;
      width: 100%;
      border-bottom: none;
      padding: 5px 0;
    }

    .quantity,
    .add-product-pack {
      display: flex;
      align-items: center;
      width: 100%;
      height: 60px;
      padding: 0 20px;
    }

    .add-product-pack {
      justify-content: center;
    }

    .quantity {
      background-color: #fff;
      justify-content: space-between;
    }

    .quantity .qty {
      font-size: 20px;
    }

    .quantity button {
      width: 30%;
      font-size: 20px;
    }
  }
}
