/* ==========================================================================
   Side cart
   Grey panel, white item cards, accent outline stepper, green delivery strip,
   bill summary, accent checkout button showing the total.
   ========================================================================== */

.xx-cart .xx-cart__panel { background: var(--xx-soft); width: min(420px, calc(100vw - 8px)); }
.xx-cart__inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.xx-cart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; background: #fff; border-bottom: 1px solid var(--xx-line); border-radius: var(--xx-r-tile) 0 0 0; }
body.xx .xx-cart__title { margin: 0; font-size: 20px; display: flex; align-items: baseline; gap: 8px; }
.xx-cart__n { font-size: 14px; font-weight: 600; color: var(--xx-muted); letter-spacing: 0; }

.xx-cart__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px; scrollbar-width: none; overscroll-behavior: contain; }
.xx-cart__scroll::-webkit-scrollbar { display: none; }

.xx-cart__strip {
	display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 14px;
	border-radius: 12px; background: var(--xx-success-soft); color: var(--xx-success);
	font-size: 14px; font-weight: 700;
}
.xx-cart__strip--save { margin-top: 4px; }

.xx-cart__items { list-style: none; margin: 0; padding: 0; }
.xx-cart__item {
	display: grid; grid-template-columns: 76px 1fr; gap: 12px;
	margin: 0 0 10px; padding: 10px; border-radius: var(--xx-r-card); background: #fff;
	transition: opacity .2s ease;
}
.xx-cart__item.is-busy { opacity: .55; pointer-events: none; }
body.xx .xx-cart__img { display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--xx-soft); }
.xx-cart__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xx-cart__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.xx-cart__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.xx-cart__row + .xx-cart__meta + .xx-cart__row,
.xx-cart__info > .xx-cart__row:last-child { align-items: center; margin-top: auto; }
body.xx .xx-cart__name {
	font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--xx-ink); text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.xx-cart__meta { margin: 0; font-size: 12.5px; color: var(--xx-muted); }
.xx-cart__meta p, .xx-cart__meta dl { margin: 0; display: inline; }
.xx-cart__line { font-weight: 700; font-size: 15px; color: var(--xx-ink); }

/* Outline stepper inside the cart (matches the ADD button). */
.xx-cart .xx-stepper { flex: none; height: 32px; background: #fff; color: var(--xx-accent); border: 1.5px solid var(--xx-accent); box-shadow: none; }
body.xx .xx-cart .xx-stepper__btn { width: 28px; height: 30px; }
body.xx .xx-cart .xx-stepper__btn:hover { background: rgba(var(--xx-accent-rgb), .08); }
body.xx .xx-cart__remove {
	width: 34px; height: 34px; padding: 0; margin: 0 0 0 -6px; border: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: transparent; color: var(--xx-muted); cursor: pointer;
}
body.xx .xx-cart__remove:hover { background: var(--xx-soft); color: var(--xx-accent); }

.xx-cart__foot { padding: 16px 18px 18px; background: #fff; border-radius: var(--xx-r-tile) var(--xx-r-tile) 0 0; box-shadow: 0 -8px 24px rgba(22, 22, 25, .06); }
.xx-cart__bill { margin: 0 0 14px; font-size: 14px; }
.xx-cart__bill > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.xx-cart__bill dt { color: var(--xx-muted); font-weight: 500; margin: 0; }
.xx-cart__bill dd { margin: 0; font-weight: 600; color: var(--xx-ink); }
.xx-cart__free { color: var(--xx-success) !important; font-weight: 700 !important; }
.xx-cart__total { padding-top: 10px; margin-top: 8px; border-top: 1.5px dashed var(--xx-line); }
.xx-cart__total dt, .xx-cart__total dd { font-size: 16px; font-weight: 800 !important; color: var(--xx-ink) !important; }
body.xx .xx-cart__checkout { min-height: 52px; font-size: 16px; }
.xx-cart__checkout .woocommerce-Price-amount { color: inherit; }
.xx-cart__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 2px; font-size: 12.5px; color: var(--xx-muted); text-align: center; }
body.xx .xx-cart__full { display: block; text-align: center; font-size: 13px; font-weight: 600; color: var(--xx-ink); text-decoration: underline; text-underline-offset: 3px; }

.xx-cart__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--xx-muted); }
.xx-cart__empty-icon { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--xx-ink); margin-bottom: 16px; }
.xx-cart__empty-title { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: var(--xx-ink); }
.xx-cart__empty .xx-btn { margin-top: 16px; }

@media (max-width: 749px) {
	.xx-cart .xx-cart__panel { width: calc(100vw - 8px); }
}
