

/* Start:/bitrix/templates/olivin/components/bitrix/sale.basket.basket/basket/style.css?178964007414703*/
/* =====================================================================
   OLIVIN — корзина (sale.basket.basket / basket), макет demo/basket.php
   Владелец: P3. Старый стиль Alver — в git (site.git) до коммита [P3].
   ===================================================================== */

/* ---------- служебное ядра ---------- */
.bx-step-opacity { transition: 500ms opacity ease; }
.basket-items-list-container { position: relative; }
.basket-items-list-overlay,
.basket-items-list-item-overlay {
	position: absolute; inset: 0; z-index: 5;
	background: #fff; opacity: .7;
}
.basket-items-list-item-overlay::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 26px; height: 26px; margin: -13px 0 0 -13px;
	border: 3px solid var(--olv-line, #EAEAEA); border-top-color: var(--olv-green, #A0D02E);
	border-radius: 50%; animation: olvCartSpin .7s linear infinite;
}
@keyframes olvCartSpin { to { transform: rotate(360deg); } }
.basket-search-not-found { padding: 24px; text-align: center; color: var(--olv-muted, #95979C); }

/* ---------- каркас ---------- */
.olv-cart { color: var(--olv-body, #212529); }
.olv-cart__title { margin-bottom: 16px; }
.olv-cart__alert { position: relative; padding-right: 3rem; }
.olv-cart__alert .btn-close { position: absolute; top: 1rem; right: 1rem; }

.olv-cart__list {
	background: #fff;
	border: 1px solid var(--olv-line, #EAEAEA);
	border-radius: var(--olv-radius-card, .5rem);
	padding: 0 16px;
}

/* сетка строки: фото | товар | цена | кол-во | сумма | × */
.olv-cart__thead,
.olv-cart-item__inner {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 112px 176px 120px 36px;
	column-gap: 16px;
	align-items: center;
}
.olv-cart__thead {
	padding: 14px 0 10px;
	border-bottom: 1px solid #C9CBCF;
	font-size: 14px; font-weight: 600;
	color: var(--olv-muted, #95979C);
}
.olv-cart__th--price, .olv-cart__th--sum { text-align: right; }
.olv-cart__th--qty { text-align: center; }

/* ---------- строка ---------- */
.olv-cart-item { position: relative; }
.olv-cart-item + .olv-cart-item { border-top: 1px solid var(--olv-line, #EAEAEA); }
.olv-cart-item__inner { position: relative; padding: 16px 0; }

.olv-cart-item__img { grid-column: 1; }
.olv-cart-item__img a { display: block; }
.olv-cart-item__img img {
	display: block; width: 60px; height: 60px; object-fit: contain;
	background: #fff; border: 1px solid var(--olv-border, #DDDDDF);
	border-radius: var(--olv-radius-sm, 5px);
}

.olv-cart-item__info { min-width: 0; }
.olv-cart-item__name { font-size: 16px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.olv-cart-item__name a { color: var(--olv-body, #212529); }
.olv-cart-item__name a:hover { color: var(--olv-green-dark, #6D9A01); }
.olv-cart-item__meta { margin-top: 4px; font-size: 14px; color: var(--olv-muted, #95979C); }
.olv-cart-item__price-mob { display: none; }
.olv-cart-item__warn {
	position: relative;
	margin-top: 8px; padding: 6px 10px;
	font-size: 13px; line-height: 1.35;
	color: #8a5a00; background: #FFF6E0;
	border-radius: var(--olv-radius-sm, 5px);
}
.olv-cart-item__warn--box { padding-right: 32px; }
.olv-cart-item__warn .btn-close { position: absolute; top: 8px; right: 8px; width: .6em; height: .6em; }
.olv-cart-item__warn a { color: var(--olv-green-dark, #6D9A01); text-decoration: underline; }

.olv-cart-item__price,
.olv-cart-item__sum { text-align: right; white-space: nowrap; }
.olv-cart-item__price { font-size: 16px; color: var(--olv-text, #4C4F57); }
.olv-cart-item__sum strong { white-space: nowrap; font-size: 17px; font-weight: 700; color: var(--olv-title, #383C45); }
.olv-cart-item__sum-label { display: none; }
.olv-cart-item__old { font-size: 13px; color: var(--olv-muted, #95979C); text-decoration: line-through; }

/* ---------- количество, шт (логика — ядро component.js) ---------- */
.olv-cart .olv-cart-item__qty.basket-qty-block {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.olv-cart .olv-cart-item__qty.disabled { opacity: .5; pointer-events: none; }

.olv-cart .olv-cart-qty { width: 136px; height: 36px; }
.olv-cart .olv-cart-qty .olv-qty__btn {
	border-radius: 0; cursor: pointer; line-height: 1;
}
.olv-cart .olv-cart-qty .olv-qty__btn:first-child { border-radius: var(--olv-radius-sm, 5px) 0 0 var(--olv-radius-sm, 5px); }
.olv-cart .olv-cart-qty .olv-qty__btn:last-child { border-radius: 0 var(--olv-radius-sm, 5px) var(--olv-radius-sm, 5px) 0; }
.olv-cart .olv-cart-qty__value {
	flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; padding: 0 2px;
	text-align: center; outline: none; border-radius: 0; border: 0;
	font: inherit; font-size: 16px; font-weight: 500; color: var(--olv-body, #212529);
	background: #fff;
	border-top: 1px solid var(--olv-border, #DDDDDF);
	border-bottom: 1px solid var(--olv-border, #DDDDDF);
}
.olv-cart .olv-cart-qty__value:focus { border-color: var(--olv-green-2, #9DC202); }
.olv-cart .olv-cart-qty__sub {
	margin: 0; font-size: 12px; color: var(--olv-muted, #95979C); text-align: center; white-space: normal;
}

/* ---------- удалить ---------- */
.olv-cart-item__del { text-align: right; }
.olv-cart-item__del-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	width: 32px; height: 32px; padding: 0;
	color: var(--olv-text, #4C4F57); background: #fff;
	border: 1px solid var(--olv-border, #DDDDDF); border-radius: var(--olv-radius-sm, 5px);
	cursor: pointer; transition: border-color .2s, color .2s, background-color .2s;
}
.olv-cart-item__del-btn:hover { color: #fff; background: #E0584A; border-color: #E0584A; }
.olv-cart-item__del-x { font-size: 20px; line-height: 1; }
.olv-cart-item__del-text { display: none; font-size: 14px; }

/* ---------- удалённая строка ---------- */
.olv-cart-item__restore {
	position: relative;
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin: 12px 0; padding: 12px 16px;
	font-size: 15px; color: var(--olv-text, #4C4F57);
	background: var(--olv-bg, #F5F5F7); border-radius: var(--olv-radius-sm, 5px);
}
.olv-cart-item__restore-actions { display: flex; align-items: center; gap: 16px; }
.olv-cart-item__restore-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--olv-green-dark, #6D9A01); }
.olv-cart-item__restore-btn:hover { color: var(--olv-green-hover, #95C32C); }
.olv-cart-item__restore-close { width: .6em; height: .6em; }

.olv-cart__empty-note {
	padding: 24px 8px; text-align: center; color: var(--olv-text, #4C4F57);
}
.olv-cart__empty-note a { color: var(--olv-green-dark, #6D9A01); font-weight: 500; }

/* ---------- под списком ---------- */
.olv-cart__actions {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	margin-top: 16px;
}
.olv-cart__actions .olv-btn { font-weight: 500; }
.olv-cart__actions .olv-btn i { font-size: 14px; }

/* ---------- итого ---------- */
.olv-cart__aside { position: sticky; top: 16px; }
.olv-cart [data-entity="basket-checkout-aligner"] { width: auto !important; }
.olv-cart-total {
	background: #fff;
	border: 1px solid var(--olv-line, #EAEAEA);
	border-radius: var(--olv-radius-card, .5rem);
	padding: 20px;
}
.olv-cart-total__title { margin: 0 0 16px; font-size: 20px; font-weight: 600; color: var(--olv-title, #383C45); }
.olv-cart-total__label { margin-bottom: 4px; font-size: 14px; color: var(--olv-muted, #95979C); }
.olv-cart-total__coupon { margin-bottom: 16px; }
.olv-cart-total__coupon .form-control { min-width: 0; }
.olv-cart-total__coupon-btn { min-height: 0; padding: .375rem .9rem; font-size: 15px; border-radius: 0 var(--olv-radius-sm, 5px) var(--olv-radius-sm, 5px) 0; }
.olv-cart-total__coupon-item {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: 8px; font-size: 13px;
}
.olv-cart-total__coupon-item .btn-close { width: .6em; height: .6em; flex: none; }

.olv-cart-total__row {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	padding: 5px 0; font-size: 16px;
}
.olv-cart-total__row--line { padding-bottom: 10px; border-bottom: 1px solid var(--olv-line, #EAEAEA); }
.olv-cart-total__row--sum { padding-top: 12px; }
.olv-cart-total__row--small { font-size: 13px; }
.olv-cart-total__muted { color: var(--olv-muted, #95979C); }
.olv-cart-total__val { font-weight: 600; white-space: nowrap; color: var(--olv-title, #383C45); }
.olv-cart-total__val--discount { color: #D63F31; }
.olv-cart-total__val--note { font-weight: 400; font-size: 14px; color: var(--olv-text, #4C4F57); }
.olv-cart-total__sum-label { font-size: 17px; font-weight: 600; }
.olv-cart-total__sum { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--olv-title, #383C45); white-space: nowrap; }

.olv-cart-total__checkout { margin-top: 16px; font-weight: 500; }

.olv-cart-total__delivery {
	margin-top: 16px; padding: 12px;
	background: var(--olv-bg, #F5F5F7); border-radius: var(--olv-radius-sm, 5px);
	font-size: 14px; line-height: 1.35; color: var(--olv-text, #4C4F57);
}
.olv-cart-total__delivery-text { display: flex; gap: 8px; align-items: baseline; }
.olv-cart-total__delivery-text i { flex: none; width: 18px; color: var(--olv-green-dark, #6D9A01); }
.olv-cart-total__shortage { color: var(--olv-green-dark, #6D9A01); font-weight: 500; }
.olv-cart-total__progress {
	height: 6px; margin: 8px 0 10px 26px;
	background: #E2E3E6; border-radius: 3px; overflow: hidden;
}
.olv-cart-total__progress span {
	display: block; width: 0; height: 100%;
	background: var(--olv-green, #A0D02E); border-radius: 3px;
	transition: width .4s ease;
}
.olv-cart-total__progress.is-done span { background: var(--olv-green-dark, #6D9A01); }
.olv-cart-total__agree { margin: 12px 0 0; font-size: 13px; line-height: 1.35; color: var(--olv-muted, #95979C); }

/* ---------- пустая корзина ---------- */
.olv-cart-empty__box {
	max-width: 720px; margin: 8px auto 0; padding: 48px 24px;
	text-align: center; background: #fff;
	border: 1px solid var(--olv-line, #EAEAEA); border-radius: var(--olv-radius-card, .5rem);
}
.olv-cart-empty__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 96px; height: 96px; margin-bottom: 20px;
	font-size: 40px; color: var(--olv-green, #A0D02E);
	background: var(--olv-bg, #F5F5F7); border-radius: 50%;
}
.olv-cart-empty__title { margin: 0 0 10px; font-size: 28px; font-weight: 600; color: var(--olv-title, #383C45); }
.olv-cart-empty__text { margin: 0 auto 24px; max-width: 520px; font-size: 16px; line-height: 1.45; color: var(--olv-text, #4C4F57); }
.olv-cart-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.olv-cart-empty__actions .olv-btn { font-weight: 500; }

/* ---------- адаптив ---------- */
@media (max-width: 1199.98px) {
	.olv-cart__thead,
	.olv-cart-item__inner { grid-template-columns: 64px minmax(0, 1fr) 96px 160px 104px 34px; column-gap: 12px; }
}
@media (max-width: 991.98px) {
	.olv-cart__aside { position: static; }
}
@media (max-width: 767.98px) {
	.olv-cart__list { background: transparent; border: 0; padding: 0; }
	.olv-cart__thead { display: none; }
	.olv-cart__items { display: flex; flex-direction: column; gap: 12px; }
	.olv-cart-item {
		background: #fff;
		border: 1px solid var(--olv-line, #EAEAEA);
		border-radius: var(--olv-radius-card, .5rem);
	}
	.olv-cart-item + .olv-cart-item { border-top: 1px solid var(--olv-line, #EAEAEA); }
	.olv-cart-item--removed { background: transparent; border: 0; }
	.olv-cart-item__restore { margin: 0; }
	.olv-cart-item__inner {
		grid-template-columns: 84px minmax(0, 1fr);
		grid-template-areas:
			"img info"
			"qty qty"
			"sum del";
		column-gap: 12px; row-gap: 12px;
		padding: 12px;
		align-items: start;
	}
	.olv-cart-item__img { grid-area: img; }
	.olv-cart-item__img img { width: 84px; height: 84px; }
	.olv-cart-item__info { grid-area: info; }
	.olv-cart-item__name { font-size: 15px; }
	.olv-cart-item__price-mob { display: block; }
	.olv-cart-item__price-mob-val { font-weight: 600; color: var(--olv-text, #4C4F57); }
	.olv-cart-item__price-mob .olv-cart-item__old { margin-left: 6px; }
	.olv-cart-item__price { display: none; }
	.olv-cart .olv-cart-item__qty.basket-qty-block {
		grid-area: qty;
		flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center;
		gap: 8px 12px;
		padding-top: 12px; border-top: 1px dashed var(--olv-line, #EAEAEA);
	}
	.olv-cart .olv-cart-qty__sub { text-align: left; }
	.olv-cart-item__sum { grid-area: sum; align-self: center; text-align: left; white-space: normal; }
	.olv-cart-item__sum-label { display: inline; font-size: 14px; color: var(--olv-muted, #95979C); }
	.olv-cart-item__sum .olv-cart-item__old { display: inline; margin-right: 4px; }
	.olv-cart-item__del { grid-area: del; align-self: center; }
	.olv-cart-item__del-btn { width: auto; height: 32px; padding: 0 12px; }
	.olv-cart-item__del-x { display: none; }
	.olv-cart-item__del-text { display: inline; }
	.olv-cart__actions .olv-btn { flex: 1 1 auto; }
	.olv-cart-total { padding: 16px; }
	.olv-cart-total__sum { font-size: 24px; }
	.olv-cart-empty__box { padding: 36px 16px; }
	.olv-cart-empty__title { font-size: 22px; }
	.olv-cart-empty__actions .olv-btn { flex: 1 1 100%; }
}

/* ---------- FX2-P3: количество больше остатка ---------- */
.olv-cart .olv-cart-qty__limit {
	max-width: 160px; margin: 4px auto 0;
	font-size: 12px; line-height: 1.3; text-align: center;
	color: #B06A00;
}

/* ---------- FX2-P3: подтверждение «Очистить корзину» (модалка добавляется в body) ---------- */
.olv-confirm-modal .modal-dialog { max-width: 420px; }
.olv-confirm-modal .modal-header { padding: 20px 24px 8px; border-bottom: 0; }
.olv-confirm-modal .modal-title { margin: 0; font-size: 20px; font-weight: 600; color: var(--olv-title, #383C45); }
.olv-confirm-modal .modal-body { padding: 4px 24px 16px; font-size: 15px; color: var(--olv-text, #4C4F57); }
.olv-confirm-modal .modal-footer { gap: 10px; padding: 0 24px 24px; border-top: 0; }
.olv-confirm-modal .modal-footer > * { margin: 0; }
.olv-confirm-modal .olv-btn--danger { color: #fff; background: #E0584A; border-color: #E0584A; font-weight: 500; }
.olv-confirm-modal .olv-btn--danger:hover,
.olv-confirm-modal .olv-btn--danger:focus-visible { background: #C43D2F; border-color: #C43D2F; color: #fff; }
@media (max-width: 575.98px) {
	.olv-cart .olv-cart-qty__limit { margin-left: 0; text-align: left; }
	.olv-confirm-modal .modal-footer > * { flex: 1 1 0; }
}

/* End */
/* /bitrix/templates/olivin/components/bitrix/sale.basket.basket/basket/style.css?178964007414703 */
