/* lane checkout-cart: additions to theme.css (static cart/checkout/success) for live OpenCart data */

/* cart: long names stay in two lines, no dividers, remove icon red on hover, totals never wrap */
.mk-cart-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-cart-opt, .mk-cart-stock { display: block; font-size: 12px; font-weight: 400; color: var(--mk-muted); }
.mk-cart-stock { color: var(--mk-red, #CF2B1F); }
.mk-cart-item { border: 0; }
.mk-cart-item [data-mk-remove] { transition: color .15s; }
.mk-cart-item [data-mk-remove]:hover, .mk-cart-item [data-mk-remove]:hover i { color: #CF2B1F; background: transparent; }
.mk-cart-item.is-busy { opacity: .55; pointer-events: none; }
.mk-cart-item .mk-qty { flex-wrap: nowrap; white-space: nowrap; }
.mk-cart-item .mk-qty input { width: 52px; text-align: center; -moz-appearance: textfield; }
.mk-cart-item .mk-qty input::-webkit-inner-spin-button, .mk-cart-item .mk-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 767px) {
  /* mobile: name on top, then − n +, line total and the trash right of it */
  .mk-cart-item { grid-template-columns: 72px minmax(0, 1fr) auto auto; grid-template-areas: "img name name name" "img qty price del"; }
  .mk-cart-name { -webkit-line-clamp: 2; }
}
.mk-sum-row > * { white-space: nowrap; }
.mk-sum-row > span:first-child { white-space: normal; }

/* empty cart: centered card in the site style */
.mk-cart-grid.is-empty { grid-template-columns: minmax(0, 1fr); }
.mk-cart-grid.is-empty > .card:first-child { max-width: 760px; width: 100%; margin: 0 auto; }
.mk-cart-grid.is-empty .mk-h1 { text-align: center; }

/* checkout */
.mk-form [hidden] { display: none !important; }
.mk-account-choice { margin-bottom: 4px; }
.mk-form .input.is-invalid, .mk-form .select.is-invalid { border-color: #CF2B1F; }
.mk-field-error, .mk-form-error { color: #CF2B1F; font-size: 12px; margin-top: 4px; }
.mk-form-error { font-size: 14px; margin: 0; }
.mk-consent-line { margin: 0; font-size: 12px; color: var(--mk-muted); text-align: center; }
.mk-consent-line a { text-decoration: underline; }
.mk-sum-qty { font-style: normal; color: var(--mk-muted); white-space: nowrap; }
[data-mk-checkout].is-busy button[type=submit] { opacity: .7; pointer-events: none; }

/* success: order number + summary */
.mk-order-no { margin: 0; font-size: 16px; }
.mk-order-sum { width: 100%; max-width: 480px; display: grid; gap: 8px; text-align: left; margin: 6px 0 4px; }
.mk-order-sum .mk-sum-items li { grid-template-columns: minmax(0, 1fr) auto; font-size: 13px; }
/* long product / delivery names wrap instead of pushing the card past the screen */
.mk-order-sum, .mk-order-sum * { min-width: 0; }
.mk-order-sum .mk-sum-items li > span { overflow-wrap: anywhere; }
.mk-order-sum .mk-sum-row > span:last-child { white-space: normal; text-align: right; overflow-wrap: anywhere; }
