/* Cart page — Figma 1111:5898 / 1185:8120 */

.bz-cart {
	padding: 24px 0 64px;
}

.bz-cart .bz-breadcrumbs {
	margin: 8px 0 24px;
}

.bz-cart__title {
	margin: 0;
	font-family: var(--bz-font-manrope);
	font-size: 48px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--bz-black);
}

.bz-cart__count {
	margin: 4px 0 0;
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.5);
}

.bz-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.bz-cart__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 48px;
	padding: 12px 36px;
	border: 0;
	border-radius: 1px;
	color: rgba(0, 0, 0, 0.5);
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	background: rgba(0, 0, 0, 0.05);
	cursor: pointer;
}

.bz-cart__clear:hover {
	color: var(--bz-black);
	background: rgba(0, 0, 0, 0.08);
}

.bz-cart__clear-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.bz-cart__layout {
	display: flex;
	gap: 80px;
	align-items: flex-start;
}

.bz-cart__items {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.bz-cart .cart-collaterals,
.bz-cart .shop_table,
.bz-cart .woocommerce-cart-form > table,
.bz-cart .wc-proceed-to-checkout {
	display: none !important;
}

.bz-cart__aside {
	display: flex;
	flex-direction: column;
	gap: 32px;
	flex: 0 0 497px;
	width: 497px;
	max-width: 100%;
	padding: 36px;
	border: 1px solid rgba(0, 0, 0, 0.5);
	background: #fff;
	box-sizing: border-box;
	position: sticky;
	top: calc(var(--bz-topbar-h, 64px) + var(--bz-header-h, 96px) + 16px);
}

.bz-cart__panel[hidden] {
	display: none !important;
}

.bz-cart-item {
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(0, 0, 0, 0.5);
	background: #fff;
}

.bz-cart-item__media {
	flex: 0 0 160px;
	width: 160px;
	padding: 12px;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}

.bz-cart-item__media a,
.bz-cart-item__media img,
.bz-cart-item__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 130px;
	object-fit: contain;
}

.bz-cart-item__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	padding: 12px;
}

.bz-cart-item__cat {
	font-family: var(--bz-font-inter);
	font-size: 14px;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.5);
}

.bz-cart-item__row {
	display: flex;
	gap: 12px;
	align-items: center;
}

.bz-cart-item__info {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.bz-cart-item__name {
	font-family: var(--bz-font-inter);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--bz-black);
}

.bz-cart-item__name a {
	color: inherit;
	text-decoration: none;
}

.bz-cart-item__name a:hover {
	color: var(--bz-accent, #067756);
}

.bz-cart-item__unit-price .bz-product-card__price {
	font-size: 16px;
	align-items: center;
}

.bz-cart-item__unit-price .bz-product-card__price-num {
	font-family: var(--bz-font-inter);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: none;
}

.bz-cart-item__unit-price .byn-symbol,
.bz-cart-item__unit-price .byn-symbol svg {
	width: 16px;
	height: 16px;
}

.bz-cart-item__controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
	flex: 0 0 auto;
}

.bz-cart-item__qty {
	display: flex;
	align-items: stretch;
	width: 217px;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 1px;
}

.bz-cart-item__qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	padding: 12px 16px;
	border: 0;
	background: transparent;
	color: var(--bz-black);
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
}

.bz-cart-item__qty-input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 12px 8px;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--bz-font-inter);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--bz-black);
	-moz-appearance: textfield;
}

.bz-cart-item__qty-input::-webkit-outer-spin-button,
.bz-cart-item__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bz-cart-item__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 46px;
}

.bz-cart-item__total .bz-product-card__price-num {
	font-family: var(--bz-font-manrope);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

.bz-cart-item__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border: 0;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 1px;
	text-decoration: none;
	cursor: pointer;
}

.bz-cart-item__remove:hover {
	background: var(--bz-black);
}

.bz-cart-item__remove img {
	display: block;
	width: 19px;
	height: 19px;
}

.bz-cart .byn-symbol {
	position: relative;
	top: 2px;
}

.bz-cart .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-notices-wrapper,
.bz-page > .woocommerce-notices-wrapper {
	display: none !important;
}

.bz-cart p:empty,
.bz-cart .bz-cart-checkout__fields > p,
.bz-cart__btn br,
.bz-cart a br {
	display: none !important;
}

.bz-cart__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	margin: 0;
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
}

.bz-cart__step {
	color: var(--bz-black);
}

.bz-cart__step.is-active {
	color: var(--bz-accent, #067756);
}

.bz-cart__step-sep {
	position: relative;
	top: -2px;
	color: var(--bz-black);
}

.bz-cart__summary-title {
	margin: 0 0 24px;
	font-family: var(--bz-font-inter);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
}

.bz-cart__summary-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bz-cart__summary-row {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}

.bz-cart__summary-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 16px;
	line-height: 1.2;
}

.bz-cart__summary-price .bz-product-card__price {
	font-size: 18px;
	font-weight: 600;
	white-space: nowrap;
}

.bz-cart__summary-price .bz-product-card__price-num {
	font-family: var(--bz-font-inter);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
}

.bz-cart__summary-price .byn-symbol,
.bz-cart__summary-price .byn-symbol svg {
	width: 18px;
	height: 18px;
}

.bz-cart__pay {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-top: 32px;
	padding-top: 32px;
	border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.bz-cart__pay-label {
	font-family: var(--bz-font-inter);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
}

.bz-cart__pay-total .bz-product-card__price-num {
	font-family: var(--bz-font-manrope);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

.bz-cart__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 36px;
	border: 0;
	border-radius: 1px;
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.bz-cart__btn--primary,
.bz-cart__btn--checkout,
.bz-cart__btn--submit {
	background: var(--bz-accent, #067756);
	color: #fff;
	font-weight: 600;
	font-size: 18px;
	padding: 20px 36px;
}

.bz-cart__btn--submit {
	width: 100%;
	font-weight: 400;
	font-size: 16px;
	padding: 12px 36px;
	min-height: 48px;
}

.bz-cart__btn--checkout:hover,
.bz-cart__btn--submit:hover,
.bz-cart__btn--primary:hover {
	background: #055941;
	color: #fff;
}

.bz-cart-checkout {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.bz-cart-checkout__types {
	display: flex;
	flex-wrap: nowrap;
	gap: 24px;
	align-items: center;
	margin-bottom: 22px;
}

.bz-cart-checkout__types br {
	display: none;
}

.bz-cart-checkout__type {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	margin: 0;
	cursor: pointer;
	user-select: none;
}

.bz-cart-checkout__type > * {
	margin: 0;
}

.bz-cart-checkout__type-label {
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
	color: var(--bz-black);
	white-space: nowrap;
}

.bz-cart-checkout__radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.bz-cart-checkout__radio-ui {
	position: relative;
	display: block;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	border: 0;
	border-radius: 0;
	background: none;
	box-sizing: border-box;
	overflow: visible;
}

.bz-cart-checkout__radio-ui svg {
	display: block;
	width: 14px;
	height: 14px;
}

.bz-cart-checkout__radio-fill {
	opacity: 0;
	transition: opacity 0.12s ease;
}

.bz-cart-checkout__radio:checked + .bz-cart-checkout__radio-ui .bz-cart-checkout__radio-fill,
.bz-cart-checkout__type:has(.bz-cart-checkout__radio:checked) .bz-cart-checkout__radio-fill {
	opacity: 1;
}

.bz-cart-checkout__fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.bz-cart-checkout__field {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	padding: 12px;
	border-radius: 1px;
	background: rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.bz-cart-checkout__field[hidden] {
	display: none !important;
}

.bz-cart-checkout__field input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
	color: var(--bz-black);
	outline: none;
}

.bz-cart-checkout__field input::placeholder {
	color: rgba(0, 0, 0, 0.5);
}

.bz-cart-checkout__prefix {
	flex: 0 0 auto;
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
	color: var(--bz-black);
	white-space: nowrap;
}

.bz-cart-checkout__legal {
	margin: 0;
	font-family: var(--bz-font-inter);
	font-size: 14px;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.5);
}

.bz-cart-checkout__legal a {
	color: inherit;
	text-decoration: underline;
}

.bz-cart-checkout__status {
	margin: 0;
	font-size: 14px;
	line-height: 1.2;
}

.bz-cart-checkout__status.is-ok {
	color: var(--bz-accent, #067756);
}

.bz-cart-checkout__status.is-error {
	color: #c0392b;
}

.bz-cart__done {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
	width: 100%;
}

.bz-cart__done-title {
	margin: 0;
	font-family: var(--bz-font-manrope);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
}

.bz-cart__done-order {
	font-family: var(--bz-font-inter);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.bz-cart__done-divider {
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.5);
}

.bz-cart__done-summary {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

.bz-cart__done-summary-title {
	font-family: var(--bz-font-inter);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.bz-cart__done-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.bz-cart__done-row {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.bz-cart__done-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
	color: #fff;
}

.bz-cart__done-price .bz-product-card__price,
.bz-cart__done-pay-total .bz-product-card__price {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	white-space: nowrap;
}

.bz-cart__done-price .bz-product-card__price-num,
.bz-cart__done-price .bz-product-card__price-ot,
.bz-cart__done-pay-total .bz-product-card__price-num,
.bz-cart__done-pay-total .bz-product-card__price-ot {
	color: #fff;
	font-family: var(--bz-font-inter);
	font-weight: 600;
}

.bz-cart__done-pay-total .bz-product-card__price-num {
	font-family: var(--bz-font-manrope);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.bz-cart__done-pay {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.bz-cart__done-pay-label {
	font-family: var(--bz-font-inter);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.bz-cart__btn--catalog {
	width: 100%;
	background: #fff;
	color: var(--bz-black);
	font-weight: 400;
	font-size: 16px;
	padding: 12px 36px;
	min-height: 48px;
}

.bz-cart__btn--catalog:hover {
	background: rgba(255, 255, 255, 0.9);
	color: var(--bz-black);
}

.bz-cart__aside.is-done {
	border-color: rgba(0, 0, 0, 0.5);
	background:
		radial-gradient(120% 140% at 0% 100%, #067756 0%, #053b2b 45%, #000 100%);
	color: #fff;
}

.bz-cart__aside.is-done .bz-cart__step {
	color: #fff;
}

.bz-cart__aside.is-done .bz-cart__step.is-active {
	color: var(--bz-accent, #067756);
}

.bz-cart__aside.is-done .bz-cart__step-sep {
	color: #fff;
}

.bz-cart__aside.is-done .byn-symbol {
	color: #fff;
}

.bz-cart.is-ordered .bz-cart__items,
.bz-cart.is-ordered .bz-cart__clear {
	pointer-events: none;
	opacity: 0.85;
}

.bz-cart__done-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.5);
}

.bz-cart__empty {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
	padding: 40px 0;
}

.bz-cart__empty-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.2;
}

@media (max-width: 1200px) {
	.bz-cart__layout {
		flex-direction: column;
		gap: 24px;
	}

	.bz-cart__aside {
		flex: none;
		width: 100%;
		position: static;
	}
}

@media (max-width: 768px) {
	.bz-cart {
		padding: 24px 0 10px;
	}

	.bz-cart__title {
		font-size: 32px;
	}

	.bz-cart__head {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.bz-cart__head-copy {
		width: 100%;
	}

	.bz-cart__head > p {
		width: 100%;
		margin: 0;
	}

	.bz-cart__clear {
		width: 100%;
		display: flex;
	}

	.bz-cart__aside {
		padding: 16px;
	}

	.bz-cart__pay {
		flex-direction: column;
		align-items: stretch;
	}

	.bz-cart__pay-copy {
		display: flex;
		align-items: flex-end;
		gap: 20px;
		justify-content: space-between;
		width: 100%;
	}

	.bz-cart__btn--checkout {
		width: 100%;
		margin-top: 16px;
	}

	.bz-cart__done-pay,
	.bz-cart__btn--catalog {
		width: 100%;
		align-self: stretch;
		box-sizing: border-box;
	}

	.bz-cart-item {
		flex-direction: column;
	}

	.bz-cart-item__media {
		width: 100%;
		flex: none;
		height: 180px;
	}

	.bz-cart-item__row {
		flex-direction: column;
	}

	.bz-cart-item__controls,
	.bz-cart-item__qty {
		width: 100%;
	}

	.bz-cart-item__unit-price {
		text-align: center;
	}

	.bz-cart__items {
		gap: 24px;
		width: 100%;
	}

	.bz-cart-checkout__types {
		flex-direction: column;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 12px;
	}

	/* Reviews on cart page — mobile only */
	body.woocommerce-cart .bz-reviews__carousel {
		padding: 24px 16px;
	}

	body.woocommerce-cart .bz-review {
		padding: 20px;
		gap: 16px;
		min-height: 0;
		margin-bottom: 20px;
	}

	body.woocommerce-cart .bz-review__text {
		height: auto;
		max-height: calc(16px * 1.2 * 7);
		-webkit-line-clamp: 7;
		line-clamp: 7;
	}

	body.woocommerce-cart .bz-review__pointer {
		bottom: -12px;
		height: 20px;
	}

	body.woocommerce-cart .bz-review__pointer img {
		height: 20px;
	}

	body.woocommerce-cart .bz-reviews__footer {
		margin-top: 8px;
	}
}
