/* Only checkout total rows; product rows and desktop remain unchanged. */
@media screen and (max-width: 767px) {
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr:is(.hikashop_cart_subtotal_row,.hikashop_cart_coupon_row,.hikashop_cart_shipping_row,.hikashop_cart_tax_row,.hikashop_cart_payment_row,.hikashop_cart_total_row,.hikashop_cart_additional_row) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    column-gap: 12px;
    width: 100% !important;
    box-sizing: border-box;
    padding: 9px 10px !important;
  }
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr:is(.hikashop_cart_subtotal_row,.hikashop_cart_coupon_row,.hikashop_cart_shipping_row,.hikashop_cart_tax_row,.hikashop_cart_payment_row,.hikashop_cart_total_row,.hikashop_cart_additional_row) > td.hikashop_cart_empty_footer {
    display: none !important;
  }
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr:is(.hikashop_cart_subtotal_row,.hikashop_cart_coupon_row,.hikashop_cart_shipping_row,.hikashop_cart_tax_row,.hikashop_cart_payment_row,.hikashop_cart_total_row,.hikashop_cart_additional_row) > td:not(.hikashop_cart_empty_footer) {
    display: block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr:is(.hikashop_cart_subtotal_row,.hikashop_cart_coupon_row,.hikashop_cart_shipping_row,.hikashop_cart_tax_row,.hikashop_cart_payment_row,.hikashop_cart_total_row,.hikashop_cart_additional_row) > td::before {
    content: none !important;
    display: none !important;
  }
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr:is(.hikashop_cart_subtotal_row,.hikashop_cart_coupon_row,.hikashop_cart_shipping_row,.hikashop_cart_tax_row,.hikashop_cart_payment_row,.hikashop_cart_total_row,.hikashop_cart_additional_row) > td.hikashop_cart_title {
    grid-column: 1;
    text-align: left !important;
  }
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr:is(.hikashop_cart_subtotal_row,.hikashop_cart_coupon_row,.hikashop_cart_shipping_row,.hikashop_cart_tax_row,.hikashop_cart_payment_row,.hikashop_cart_total_row,.hikashop_cart_additional_row) > td:last-child {
    grid-column: 2;
    text-align: right !important;
  }
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr.hikashop_cart_total_row { font-weight: 700; }

  /* Keep the label with its amount when the mobile table hides heading cells. */
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr:is(.hikashop_cart_subtotal_row, .hikashop_cart_tax_row, .hikashop_cart_total_row):has(> td:last-child[data-title]:not([data-title=""])) > td.hikashop_cart_title {
    display: none !important;
  }
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr:is(.hikashop_cart_subtotal_row, .hikashop_cart_tax_row, .hikashop_cart_total_row):has(> td:last-child[data-title]:not([data-title=""])) > td:last-child[data-title] {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    column-gap: 0.75rem;
    color: inherit;
    visibility: visible !important;
  }
  .hikashop_checkout_cart[id^="hikashop_checkout_cart_"] table > tbody > tr:is(.hikashop_cart_subtotal_row, .hikashop_cart_tax_row, .hikashop_cart_total_row):has(> td:last-child[data-title]:not([data-title=""])) > td:last-child[data-title]::before {
    content: attr(data-title) !important;
    display: block !important;
    position: static !important;
    visibility: visible !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    color: inherit;
    font: inherit;
  }
}
