/* Lottery Analyser Studio Theme v1.1.34 — WooCommerce Cart Block product card */
body.woocommerce-cart table.las-cart-card-table {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-collapse: separate !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.las-cart-card-table > thead {
  display: none !important;
}

body.woocommerce-cart table.las-cart-card-table > tbody {
  display: grid !important;
  width: 100% !important;
  gap: 14px !important;
  padding: 0 !important;
}

body.woocommerce-cart table.las-cart-card-table tr.las-cart-product-row {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) 92px !important;
  align-items: start !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 17px !important;
  box-sizing: border-box !important;
  border: 1px solid #d7e2dd !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f3faf6 100%) !important;
  box-shadow: 0 10px 28px rgba(3, 42, 32, .06) !important;
}

body.woocommerce-cart table.las-cart-card-table tr.las-cart-product-row > .las-cart-product-image,
body.woocommerce-cart table.las-cart-card-table tr.las-cart-product-row > .las-cart-product-details,
body.woocommerce-cart table.las-cart-card-table tr.las-cart-product-row > .las-cart-product-total {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  vertical-align: top !important;
}

body.woocommerce-cart .las-cart-product-image {
  grid-column: 1 !important;
}

body.woocommerce-cart .las-cart-product-image a {
  display: block !important;
  width: 104px !important;
  height: 104px !important;
  margin: 0 !important;
}

body.woocommerce-cart .las-cart-product-image img {
  display: block !important;
  width: 104px !important;
  height: 104px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 4px solid #ffffff !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  object-fit: cover !important;
  box-shadow: 0 8px 22px rgba(3, 42, 32, .14) !important;
}

body.woocommerce-cart .las-cart-product-details {
  grid-column: 2 !important;
}

body.woocommerce-cart .las-cart-product-details > div,
body.woocommerce-cart .las-cart-product-details [class*="item__wrap"] {
  display: flex !important;
  min-height: 104px !important;
  align-items: flex-start !important;
  flex-direction: column !important;
  gap: 6px !important;
}

body.woocommerce-cart .las-cart-product-details [class*="product-name"] {
  margin: 0 !important;
  color: #032a20 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

body.woocommerce-cart .las-cart-product-details > [class*="product-price"],
body.woocommerce-cart .las-cart-product-details [class*="item__wrap"] > [class*="product-price"] {
  order: 2 !important;
  margin: 0 !important;
  color: #087a50 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
}

body.woocommerce-cart .las-cart-product-details [class*="metadata"] {
  order: 3 !important;
  margin: 1px 0 0 !important;
  color: #49685e !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body.woocommerce-cart .las-cart-product-details [class*="metadata"] p {
  margin: 0 !important;
  color: #49685e !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

body.woocommerce-cart .las-cart-product-details [class*="quantity"] {
  order: 4 !important;
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  gap: 10px !important;
  margin: auto 0 0 !important;
  padding-top: 6px !important;
}

body.woocommerce-cart .las-cart-product-remove {
  display: inline-grid !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d7e2dd !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #032a20 !important;
  text-decoration: none !important;
  box-shadow: 0 5px 14px rgba(3, 42, 32, .05) !important;
}

body.woocommerce-cart .las-cart-product-remove:hover {
  border-color: #087a50 !important;
  background: #edf9f2 !important;
  color: #087a50 !important;
}

body.woocommerce-cart .las-cart-product-total {
  grid-column: 3 !important;
  text-align: right !important;
}

body.woocommerce-cart .las-cart-product-total [class*="product-price"],
body.woocommerce-cart .las-cart-product-total [class*="total-price"] {
  display: flex !important;
  align-items: flex-end !important;
  flex-direction: column !important;
  margin: 0 !important;
  color: #032a20 !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

@media (max-width: 700px) {
  body.woocommerce-cart table.las-cart-card-table tr.las-cart-product-row {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 13px !important;
    padding: 14px !important;
  }

  body.woocommerce-cart .las-cart-product-image a,
  body.woocommerce-cart .las-cart-product-image img {
    width: 82px !important;
    height: 82px !important;
  }

  body.woocommerce-cart .las-cart-product-details > div,
  body.woocommerce-cart .las-cart-product-details [class*="item__wrap"] {
    min-height: 82px !important;
  }

  body.woocommerce-cart .las-cart-product-total {
    grid-column: 2 !important;
    padding-top: 4px !important;
    text-align: left !important;
  }

  body.woocommerce-cart .las-cart-product-total [class*="product-price"],
  body.woocommerce-cart .las-cart-product-total [class*="total-price"] {
    align-items: flex-start !important;
    font-size: 17px !important;
  }
}


/* v1.1.34 — deterministic remove-control placement.
 * The Cart Block applies a more specific display:block rule to the total cell,
 * so flex auto-margin alignment was not able to move the control. On tablet
 * and desktop the product row is now the positioning context and the remove
 * control is pinned to the lower-right card padding. This aligns it with the
 * bottom of the product copy while the line total remains at the top. */
@media (min-width: 701px) {
  body.woocommerce-cart table.las-cart-card-table tr.las-cart-product-row {
    position: relative !important;
  }

  body.woocommerce-cart table.las-cart-card-table tr.las-cart-product-row > .las-cart-product-total {
    display: block !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 50px !important;
  }

  body.woocommerce-cart table.las-cart-card-table tr.las-cart-product-row .las-cart-product-remove {
    position: absolute !important;
    right: 17px !important;
    bottom: 17px !important;
    z-index: 2 !important;
    margin: 0 !important;
  }
}

@media (max-width: 700px) {
  body.woocommerce-cart table.las-cart-card-table tr.las-cart-product-row .las-cart-product-remove {
    position: static !important;
    margin: 0 !important;
  }
}
