/* Lane checkout-cart: additions on top of theme.css (cart, checkout, success). */
.sv-cart-grid[hidden], .sv-empty[hidden], .sv-field[hidden], .sv-co-alert[hidden] { display: none; }

/* cart */
#sv-cart-full.is-busy .sv-line-total, #sv-cart-full.is-busy [data-cart-sub] { opacity: .5; transition: opacity .15s; }
.sv-cart-line .sv-line-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-cart-line .sv-qty { white-space: nowrap; flex-wrap: nowrap; }
.sv-summary .sv-sum-row > :last-child { white-space: nowrap; }
.sv-line-nostock { color: var(--sv-red); }

/* checkout */
.sv-co-alert { background: var(--sv-soft); color: var(--sv-red); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.sv-co-account { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: -4px 0 16px; font-size: 14px; }
.sv-co-acc-opt { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.sv-co-login { margin-left: auto; font-size: 13px; }
.sv-co-login b { color: var(--sv-red); }
.sv-choice .sv-choice-name { flex: 1 1 auto; }
.sv-choice .sv-choice-price { white-space: nowrap; }
.sv-field-err { color: var(--sv-red); font-size: 12px; margin-top: 4px; }
.sv-form .input.input-error, .sv-form .select.select-error { border-color: var(--sv-red); }
.sv-co-terms { font-size: 12px; color: var(--sv-muted); text-align: center; margin-top: 10px; }
.sv-co-terms a { color: var(--sv-red); }
.sv-mini-line b { white-space: nowrap; }
.btn.sv-loading { opacity: .7; pointer-events: none; }

/* success */
.sv-order-no { font-size: 15px; margin-bottom: 8px; }
.sv-order-sum { max-width: 520px; margin: 0 auto 24px; text-align: left; border: 1px solid var(--sv-line); border-radius: var(--sv-radius); padding: 18px 20px; }
.sv-order-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; margin-top: 12px; color: var(--sv-muted); }
.sv-order-meta dd { color: var(--sv-ink); }

@media (max-width: 767px) {
  .sv-co-login { margin-left: 0; width: 100%; }
  /* the line total must stay fully visible on one line (static clips "€" in the 36px column) */
  /* delete sits to the right of the line total, like on desktop */
  /* qty / total / delete row spans the full line width under the image, so the stepper never covers the price on narrow phones */
  .sv-cart-line { grid-template-columns: 64px 42px minmax(0, 1fr) 32px; grid-template-areas: "img name name name" "qty qty total del"; gap: 10px 10px; }
  .sv-cart-line img { width: 64px; height: 64px; }
  .sv-cart-line .sv-line-total { min-width: 0; justify-self: end; font-size: 16px; }
  .sv-cart-line .sv-del { justify-self: end; width: 32px; height: 32px; min-height: 32px; }
}
