/* Fix mobile cart display - Show guest quantity */
@media (max-width: 639.99px) {
  /* Make table responsive */
  .tz-product-cart table.cart-list.tour {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tz-product-cart table.cart-list.tour thead,
  .tz-product-cart table.cart-list.tour tbody,
  .tz-product-cart table.cart-list.tour tr,
  .tz-product-cart table.cart-list.tour th,
  .tz-product-cart table.cart-list.tour td {
    display: block;
  }

  /* Hide table header on mobile */
  .tz-product-cart table.cart-list.tour thead {
    display: none;
  }

  /* Style each row as a card */
  .tz-product-cart table.cart-list.tour tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
  }

  /* Style table cells */
  .tz-product-cart table.cart-list.tour td {
    text-align: left;
    padding: 8px 0;
    position: relative;
    border: none;
  }

  /* Add labels before each cell */
  .tz-product-cart table.cart-list.tour tbody tr:first-child td:nth-child(1):before {
    content: "Tour: ";
    font-weight: bold;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
  }

  .tz-product-cart table.cart-list.tour tbody tr:first-child td:nth-child(2):before {
    content: "Adults: ";
    font-weight: bold;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
  }

  .tz-product-cart table.cart-list.tour tbody tr:first-child td:nth-child(3):before {
    content: "Children: ";
    font-weight: bold;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
  }

  .tz-product-cart table.cart-list.tour tbody tr:first-child td:nth-child(4):before {
    content: "Date: ";
    font-weight: bold;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
  }

  .tz-product-cart table.cart-list.tour tbody tr:first-child td:nth-child(5):before {
    content: "Total: ";
    font-weight: bold;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
  }

  /* Fix input width to show guest numbers */
  .tz-product-cart .input-number-ticket {
    width: 100% !important;
    display: inline-block !important;
  }

  .tz-product-cart .input-number-ticket .uk-position-relative,
  .tz-product-cart .input-number-ticket input {
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
  }

  /* Ensure subtotal and total rows are visible */
  .tz-product-cart table.cart-list.tour tbody tr:nth-last-child(2),
  .tz-product-cart table.cart-list.tour tbody tr:last-child {
    border-top: 2px solid #333;
    padding-top: 15px;
    margin-top: 15px;
  }

  .tz-product-cart table.cart-list.tour tbody tr:nth-last-child(2) td:empty,
  .tz-product-cart table.cart-list.tour tbody tr:last-child td:empty {
    display: none;
  }
}
