/* AI Lean · WooCommerce — оформлення side-cart модуля checkout (theme support wpe-side-cart: мінімальний CSS модуля не підключається).
   Side-cart буває на будь-якій сторінці, а --wpe-* — лише на сторінках WooCommerce, тому запасне значення — токен AI Lean / дизайну. */
.wpe-checkout-cart { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--wpe-color-bg, var(--color-bg, #fff)); color: var(--wpe-color-text, var(--color-text, #0f172a)); font-family: var(--font-body, sans-serif); font-size: 15px; line-height: 1.45; box-shadow: -12px 0 32px rgba(0, 0, 0, .14); }
.wpe-checkout-cart::backdrop { background: rgba(11, 17, 32, .5); }
.wpe-checkout-cart[open] { animation: ai-lean-cart-in .22s ease-out; }
@keyframes ai-lean-cart-in { from { transform: translateX(100%); } to { transform: none; } }
.wpe-checkout-cart__panel { display: flex; flex-direction: column; height: 100%; padding: 16px 20px 20px; }
.wpe-checkout-cart__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.wpe-checkout-cart__title { margin: 0; font-size: 22px; }
.wpe-checkout-cart button { margin: 0; padding: 0; border: 0; border-radius: var(--radius-sm, 6px); background: none; color: inherit; font: inherit; font-weight: 400; cursor: pointer; }
.wpe-checkout-cart__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px !important; }
.wpe-checkout-cart__close:hover { background: var(--wpe-color-surface, var(--color-surface, #f1f5f9)); }
.wpe-checkout-cart__status { min-height: 1.4em; margin: 0 0 4px; font-size: 13px; color: var(--wpe-color-success, #1a7f37); }
.wpe-checkout-cart__items { flex: 1; overflow: auto; margin: 0; padding: 0; list-style: none; }
.wpe-checkout-cart__items[aria-busy] { opacity: .6; }
.wpe-checkout-cart__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--wpe-color-border, var(--color-border, #e2e8f0)); }
.wpe-checkout-cart__img { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius-sm, 6px); background: var(--wpe-color-surface, var(--color-surface, #f1f5f9)); }
.wpe-checkout-cart__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wpe-checkout-cart__name { display: -webkit-box; overflow: hidden; color: inherit; font-weight: 500; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wpe-checkout-cart__name:hover { color: var(--wpe-color-accent, var(--color-accent, #0a58ca)); }
.wpe-checkout-cart__meta, .wpe-checkout-cart__unit { font-size: 13px; color: var(--wpe-color-muted, var(--color-muted, #64748b)); }
.wpe-checkout-cart__qty { display: inline-flex; align-items: center; align-self: flex-start; height: 36px; border: 1px solid var(--wpe-color-border, var(--color-border, #e2e8f0)); border-radius: var(--radius-sm, 6px); }
.wpe-checkout-cart__qty button { width: 32px; height: 100%; color: var(--wpe-color-muted, var(--color-muted, #64748b)); font-size: 18px; }
.wpe-checkout-cart__input { width: 44px; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: center; -moz-appearance: textfield; }
.wpe-checkout-cart__input::-webkit-outer-spin-button, .wpe-checkout-cart__input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.wpe-checkout-cart__unit { margin-left: 8px; }
.wpe-checkout-cart__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-weight: 700; white-space: nowrap; }
.wpe-checkout-cart__remove { width: 32px; height: 32px; color: var(--wpe-color-muted, var(--color-muted, #64748b)) !important; font-size: 20px !important; }
.wpe-checkout-cart__remove:hover { color: var(--wpe-color-sale, #c42b1c) !important; }
.wpe-checkout-cart__empty { flex: 1; color: var(--wpe-color-muted, var(--color-muted, #64748b)); }
.wpe-checkout-cart__foot { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--wpe-color-border, var(--color-border, #e2e8f0)); }
.wpe-checkout-cart__foot[hidden], .wpe-checkout-cart__empty[hidden] { display: none; }
.wpe-checkout-cart__total { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 16px; }
.wpe-checkout-cart__total strong { font-size: 20px; }
.wpe-checkout-cart__checkout { display: block; padding: 14px; border-radius: var(--radius-sm, 6px); background: var(--wpe-color-accent, var(--color-accent, #0a58ca)); color: var(--wpe-color-on-accent, #fff); font-weight: 600; text-align: center; text-decoration: none; }
.wpe-checkout-cart__checkout:hover { color: var(--wpe-color-on-accent, #fff); filter: brightness(.92); }
.wpe-checkout-cart__cart { padding: 8px; color: inherit; text-align: center; }
@media (prefers-reduced-motion: reduce) { .wpe-checkout-cart[open] { animation: none; } }
