/* Le-Biko — Cart page, its suggestions and the delivery note. */

/* ==========================================================================
   Cart
   ========================================================================== */
.lb-cart-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .lb-cart-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }
.lb-cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lb-line); }
.lb-cart-item {
	position: relative;
	display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "media info" "media qty" "media total";
	gap: 6px 14px; padding: 18px 0; padding-inline-end: 36px;
	border-bottom: 1px solid var(--lb-line);
}
.lb-cart-item__media { grid-area: media; display: block; aspect-ratio: 1; background: #fff; border: 1px solid #efede9; border-radius: var(--lb-radius); overflow: hidden; }
.lb-cart-item__media img { width: 100%; height: 100%; object-fit: contain; }
.lb-cart-item__info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-cart-item__name { font-size: 15px; font-weight: 500; text-decoration: none; }
.lb-cart-item__variant, .lb-cart-item__sku, .lb-cart-item__unit { font-size: 13px; font-weight: 300; color: var(--lb-muted); }
.lb-cart-item__variant { color: var(--lb-ink-soft); }
.lb-cart-item__qty { grid-area: qty; }
.lb-cart-item__qty .lb-qty { display: inline-flex; height: 38px; }
.lb-cart-item__total { grid-area: total; font-weight: 500; font-variant-numeric: tabular-nums; }
.lb-cart-item__remove { position: absolute; top: 16px; inset-inline-end: 0; width: 30px; height: 30px; display: grid; place-items: center; color: var(--lb-muted); border-radius: 50%; }
.lb-cart-item__remove:hover { color: var(--lb-danger); background: #f7eeec; }
.lb-cart-item__remove .lb-icon { width: 16px; height: 16px; }
@media (min-width: 640px) {
	.lb-cart-item { grid-template-columns: 96px minmax(0, 1fr) auto 110px; grid-template-areas: "media info qty total"; align-items: center; padding-inline-end: 44px; }
	.lb-cart-item__total { text-align: end; }
	.lb-cart-item__remove { top: 50%; transform: translateY(-50%); }
}

.lb-cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.lb-cart-actions__continue { font-size: 14px; color: var(--lb-ink-soft); text-underline-offset: 3px; }
.lb-coupon { display: flex; gap: 8px; }
.lb-coupon input { height: 42px; width: 160px; padding-inline: 12px; border: 1px solid var(--lb-line); border-radius: var(--lb-radius); font: inherit; font-size: 14px; }
.lb-coupon .lb-btn { margin-top: 0; min-height: 42px; }
.lb-cart-actions__update { padding: 8px 14px; border: 1px solid var(--lb-line); border-radius: var(--lb-radius); background: #fff; font-size: 13px; cursor: pointer; }
.lb-js .lb-cart-actions__update { display: none; }
.woocommerce-cart-form.processing, .cart_totals.processing { opacity: .55; pointer-events: none; transition: opacity .2s; }

.lb-totals { padding: 22px; border: 1px solid var(--lb-line); border-radius: var(--lb-radius); background: #faf9f7; }
@media (min-width: 960px) { .lb-cart-summary { position: sticky; top: 96px; } }
.lb-totals__title { margin: 0 0 16px; font-size: 18px; font-weight: 500; }
.lb-totals__rows { margin: 0; }
.lb-totals__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; }
.lb-totals__rows dt { font-weight: 300; color: var(--lb-ink-soft); }
.lb-totals__rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.lb-totals__muted { color: var(--lb-muted); font-weight: 300; font-size: 13.5px; }
.lb-totals__grand { margin-top: 8px; padding-top: 14px !important; border-top: 1px solid var(--lb-line); align-items: flex-end; }
.lb-totals__grand dt { color: var(--lb-ink) !important; font-weight: 500 !important; display: flex; flex-direction: column; }
.lb-totals__grand dt small { font-size: 12px; font-weight: 300; color: var(--lb-muted); }
.lb-totals__grand dd { font-size: 20px; font-weight: 500; }
.lb-totals__checkout { width: 100%; margin-top: 18px; min-height: 50px; font-size: 15.5px; }
.lb-totals__checkout.is-disabled { background: var(--lb-tile); border-color: var(--lb-line); color: var(--lb-muted) !important; cursor: not-allowed; }
.lb-totals__hint { margin: 8px 0 0; font-size: 12.5px; color: var(--lb-muted); text-align: center; }

.lb-minorder { margin-bottom: 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--lb-line); border-radius: var(--lb-radius); }
.lb-minorder__text { margin: 0 0 8px; font-size: 13.5px; font-weight: 300; }
.lb-minorder__text strong { font-weight: 500; }
.lb-minorder__bar { height: 6px; background: #ece9e4; border-radius: 3px; overflow: hidden; }
.lb-minorder__bar span { display: block; height: 100%; background: var(--lb-ink); border-radius: 3px; transition: width .4s var(--lb-ease); }
.lb-minorder.is-met .lb-minorder__text { color: var(--lb-success); font-weight: 400; }
.lb-minorder.is-met .lb-minorder__bar span { background: var(--lb-success); }

.lb-cart-empty { text-align: center; padding: 48px 0 24px; }
.lb-cart-empty .lb-icon { width: 44px; height: 44px; color: var(--lb-muted); }
.lb-cart-empty__title { margin: 12px 0 4px; font-size: 20px; font-weight: 500; }
.lb-cart-empty__text { margin: 0 0 20px; color: var(--lb-muted); font-weight: 300; }
.lb-cart-empty .lb-btn { display: inline-flex; }
.woocommerce-cart .return-to-shop { display: none; }

/* Cart: products to complete the minimum order */
.lb-suggest { margin: -4px 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--lb-line); }
.lb-suggest__title { margin: 0 0 10px; font-size: 14px; font-weight: 500; color: var(--lb-ink); }
.lb-suggest__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lb-suggest__item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; }
.lb-suggest__media { display: block; width: 52px; aspect-ratio: 1; background: #fff; border: 1px solid #efede9; border-radius: var(--lb-radius); overflow: hidden; }
.lb-suggest__media img { width: 100%; height: 100%; object-fit: contain; }
.lb-suggest__body { display: flex; flex-direction: column; min-width: 0; }
.lb-suggest__name { font-size: 13.5px; line-height: 1.35; color: var(--lb-ink); text-decoration: none; }
.lb-suggest__name:hover { text-decoration: underline; }
.lb-suggest__price { font-size: 12.5px; color: var(--lb-muted); font-variant-numeric: tabular-nums; }
.lb-suggest__add {
	display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 64px; padding: 0 12px;
	border: 1px solid var(--lb-ink); border-radius: var(--lb-radius); background: #fff; color: var(--lb-ink);
	font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.lb-suggest__add:hover { background: var(--lb-ink); color: #fff; }
.lb-suggest__add.loading { opacity: .6; pointer-events: none; }
.lb-suggest .added_to_cart { display: none; }

/* Delivery time note (cart summary + checkout) */
.lb-totals__rows > .lb-totals__note { display: block; margin-top: -6px; padding-top: 0; font-size: 12.5px; line-height: 1.5; color: var(--lb-muted); }
.lb-totals__note dd { margin: 0; }
.lb-delivery-time td { padding-top: 0 !important; font-size: 12.5px; line-height: 1.5; color: var(--lb-muted); border-top: 0 !important; }
