/* Retail cart + checkout — Acropolis */

:root {
	--acr-red: #FC4041;
	--acr-green: #04B063;
	--acr-warn: #D28200;
	--acr-line: #dadada;
	--acr-line-soft: #F2F2F2;
	--acr-text: #1a1a1a;
	--acr-muted: #6b6b6b;
	--acr-bg: #f7f7f7;
}

.acr-checkout-wrap {
	padding-bottom: 110px;
}

.acr-cart-title {
	font-size: 28px;
	margin: 8px 0 24px;
	color: var(--acr-text);
}

.acr-checkout-steps {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 8px 0 4px;
	flex-wrap: wrap;
}
.acr-step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--acr-muted);
	font-size: 14px;
	text-decoration: none;
}
.acr-step i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--acr-line);
	font-style: normal;
	font-size: 13px;
	background: #fff;
}
.acr-step.is-active,
.acr-step.is-done {
	color: var(--acr-text);
}
.acr-step.is-active i,
.acr-step.is-done i {
	background: var(--acr-red);
	border-color: var(--acr-red);
	color: #fff;
}
.acr-step-sep {
	width: 40px;
	height: 1px;
	background: var(--acr-line);
}

.acr-cart-layout,
.acr-checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 28px;
	align-items: start;
}

.acr-cart-head {
	display: grid;
	grid-template-columns: 1fr 140px 120px 36px;
	gap: 12px;
	padding: 0 8px 10px;
	border-bottom: 1px solid var(--acr-line-soft);
	color: var(--acr-muted);
	font-size: 13px;
}
.acr-ch-product { grid-column: 1; }
.acr-ch-qty { text-align: center; }
.acr-ch-sum { text-align: right; padding-right: 36px; }

.acr-cart-line {
	display: grid;
	grid-template-columns: 90px 1fr 140px 120px 36px;
	gap: 12px;
	align-items: center;
	padding: 18px 8px;
	border-bottom: 1px solid var(--acr-line-soft);
	position: relative;
}
.acr-cart-img {
	display: block;
	width: 90px;
	height: 90px;
	background: var(--acr-bg);
}
.acr-cart-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.acr-cart-name {
	color: var(--acr-text);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.35;
}
.acr-cart-name:hover { color: var(--acr-red); }
.acr-cart-discount {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--acr-green);
}
.acr-cart-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--acr-line);
	border-radius: 4px;
	overflow: hidden;
	height: 40px;
	width: 120px;
	margin: 0 auto;
}
.acr-qty-btn {
	width: 34px;
	height: 100%;
	border: 0;
	background: #fff;
	cursor: pointer;
	font-size: 18px;
	color: var(--acr-text);
	line-height: 1;
}
.acr-qty-btn:hover { background: var(--acr-bg); }
.acr-qty-input {
	width: 52px;
	height: 100%;
	border: 0;
	border-left: 1px solid var(--acr-line);
	border-right: 1px solid var(--acr-line);
	text-align: center;
	font-size: 15px;
	-moz-appearance: textfield;
}
.acr-qty-input::-webkit-outer-spin-button,
.acr-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.acr-cart-price {
	text-align: right;
	font-size: 16px;
	font-weight: 600;
}
.acr-cart-remove {
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0;
}
.acr-cart-remove:hover { color: var(--acr-red); }

.acr-cart-hints { margin-top: 18px; }
.acr-hint {
	padding: 10px 12px;
	margin-bottom: 8px;
	font-size: 14px;
	background: #fff8e8;
	border-left: 3px solid var(--acr-warn);
	color: var(--acr-text);
}
.acr-hint.is-ok {
	background: #eefaf4;
	border-left-color: var(--acr-green);
}
.acr-hint i {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--acr-warn);
	margin-right: 6px;
	vertical-align: middle;
}
.acr-hint.is-ok i { background: var(--acr-green); }

.acr-cart-sets {
	margin-top: 24px;
	padding: 16px 0;
	border-top: 1px solid var(--acr-line-soft);
}

.acr-summary {
	background: #fff;
	border: 1px solid var(--acr-line-soft);
	padding: 20px;
	position: sticky;
	top: 16px;
}
.acr-summary h2 {
	font-size: 18px;
	margin: 0 0 16px;
}
.acr-promo-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin-bottom: 16px;
}
.acr-promo-row .co_input,
.acr-promo-row .acr-promocode {
	flex: 1;
	min-width: 0;
	height: 44px;
	box-sizing: border-box;
	border: 1px solid var(--acr-line);
	padding: 0 12px;
	font-size: 14px;
	background: #fff;
	color: var(--acr-text);
	outline: none;
}
.acr-promo-row .acr-promocode:focus {
	border-color: #999;
}
.acr-promo-apply {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border: 1px solid var(--acr-line);
	background: #fff url('/include/images/main/sync-solid.svg') center / 20px 20px no-repeat;
	cursor: pointer;
	padding: 0;
	font-size: 0;
	line-height: 0;
	color: transparent;
}
.acr-promo-apply:hover {
	border-color: var(--acr-red);
	background-color: #fff8f8;
}
.acr-promo-apply .fa,
.acr-promo-apply i {
	display: none;
}
.acr-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 12px 0 16px;
	font-size: 16px;
}
.acr-summary-row strong {
	font-size: 22px;
}
.acr-summary-liqpay {
	font-size: 13px;
	color: var(--acr-green);
	margin: -8px 0 16px;
}
/* Primary CTA — same look as site buy buttons (#FC4041) */
a.acr-btn,
button.acr-btn,
.acr-btn.btn-primary,
a.btn-primary.acr-btn,
button.btn-primary.acr-btn,
.acr-cart-page a.btn-primary,
.acr-checkout-page a.btn-primary,
.acr-checkout-page button.btn-primary,
.acr-cart-mobile-bar a.btn-primary,
.acr-summary a.acr-btn,
.acr-summary a.btn-primary,
.acr-co-actions button.acr-btn,
.acr-toast-actions a.acr-btn,
.acr-toast-actions a.btn-primary {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	min-width: 160px;
	padding: 0 22px !important;
	margin: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background-color: #FC4041 !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: transform .2s ease;
	transform-origin: center center;
}
a.acr-btn:hover,
button.acr-btn:hover,
.acr-btn.btn-primary:hover,
a.btn-primary.acr-btn:hover,
button.btn-primary.acr-btn:hover,
.acr-cart-page a.btn-primary:hover,
.acr-checkout-page a.btn-primary:hover,
.acr-checkout-page button.btn-primary:hover,
.acr-cart-mobile-bar a.btn-primary:hover,
.acr-summary a.acr-btn:hover,
.acr-summary a.btn-primary:hover,
.acr-co-actions button.acr-btn:hover,
.acr-toast-actions a.acr-btn:hover,
.acr-toast-actions a.btn-primary:hover {
	color: #fff !important;
	background-color: #FC4041 !important;
	text-decoration: none !important;
	transform: scale(1.04);
}
a.acr-btn:visited,
.acr-summary a.btn-primary:visited {
	color: #fff !important;
}
.acr-btn-block,
a.acr-btn-block,
.acr-summary .acr-btn-block {
	width: 100% !important;
	display: flex !important;
}
.acr-btn:disabled,
button.acr-btn:disabled {
	opacity: .65;
	cursor: default;
	transform: none !important;
}
.acr-link-continue,
.acr-link-back,
.acr-edit-cart {
	display: block;
	text-align: center;
	margin-top: 14px;
	color: var(--acr-muted);
	font-size: 14px;
	text-decoration: none;
}
.acr-link-continue:hover,
.acr-link-back:hover,
.acr-edit-cart:hover { color: var(--acr-red); }

.acr-summary-lines {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	max-height: 280px;
	overflow: auto;
}
.acr-summary-lines li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--acr-line-soft);
	font-size: 13px;
}
.acr-sl-name {
	color: var(--acr-muted);
	flex: 1;
}
.acr-sl-price { white-space: nowrap; }

.acr-cart-empty {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border: 1px solid var(--acr-line-soft);
}
.acr-cart-empty p {
	font-size: 18px;
	margin-bottom: 24px;
}

.acr-cart-mobile-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: #fff;
	border-top: 1px solid var(--acr-line);
	padding: 10px 14px;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.acr-cart-mobile-bar .acr-btn,
.acr-cart-mobile-bar a.btn-primary {
	flex: 0 0 auto;
	min-width: 150px !important;
	min-height: 44px !important;
}
.acr-mobile-sum span {
	display: block;
	font-size: 12px;
	color: var(--acr-muted);
}
.acr-mobile-sum strong {
	font-size: 18px;
}

/* Checkout blocks */
.acr-guest-tip {
	background: #fff8e8;
	border: 1px solid #f0e0b8;
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.45;
}
.acr-guest-tip a {
	color: var(--acr-red);
	cursor: pointer;
	text-decoration: underline;
}

.acr-co-block {
	background: #fff;
	border: 1px solid var(--acr-line-soft);
	padding: 22px 20px;
	margin-bottom: 18px;
}
.acr-co-block h2 {
	font-size: 18px;
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.acr-co-block h2 a { color: inherit; text-decoration: none; }
.acr-co-block h2 a:hover { color: var(--acr-red); }
.acr-co-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--acr-red);
	color: #fff;
	font-size: 14px;
	flex-shrink: 0;
}
.acr-co-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}
.acr-co-full { grid-column: 1 / -1; }
.acr-co-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--acr-muted);
}
.acr-co-field .co_input,
.acr-co-field .co_textarea,
.acr-checkout-page .co_input,
.acr-checkout-page .co_textarea,
.acr-cart-page .co_input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--acr-line);
	padding: 0 12px;
	font-size: 14px;
	background: #fff;
	color: var(--acr-text);
}
.acr-co-field .co_input,
.acr-checkout-page .co_input,
.acr-cart-page .co_input {
	height: 44px;
}
.acr-co-field .co_textarea,
.acr-checkout-page .co_textarea {
	padding: 10px 12px;
	min-height: 80px;
	resize: vertical;
}
.acr-co-check {
	display: flex;
	align-items: center;
	gap: 8px;
}
.acr-co-check label {
	margin: 0;
	color: var(--acr-text);
}

.acr-recipient-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 16px;
}
.acr-radio-card {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--acr-line);
	padding: 14px 12px;
	cursor: pointer;
	background: #fff;
	margin: 0;
	font-size: 14px;
	line-height: 1.3;
}
.acr-radio-card.is-active {
	border-color: #000;
	box-shadow: inset 0 0 0 1px #000;
}
.acr-radio-card input {
	margin: 0;
	flex-shrink: 0;
}
.acr-recipient-other-fields {
	margin-bottom: 8px;
}
.acr-gift-check {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--acr-line-soft);
}
.acr-gift-hint {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--acr-muted);
	line-height: 1.4;
}

@media (max-width: 768px) {
	.acr-recipient-toggle {
		grid-template-columns: 1fr;
	}
}

.acr-delivery-tiles ul {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.acr-delivery-tiles li a {
	display: block;
	border: 1px solid var(--acr-line);
	padding: 12px 8px;
	text-align: center;
	text-decoration: none;
	color: var(--acr-text);
	background: #fff;
	min-height: 110px;
	transition: border-color .15s ease;
}
.acr-delivery-tiles li a.selected {
	border-color: #000;
	box-shadow: inset 0 0 0 1px #000;
}
.acr-delivery-tiles li a label {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	cursor: pointer;
}
.acr_delivery_icon {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 48px;
}
.acr_delivery_select {
	width: 100%;
	height: 44px;
	margin-bottom: 10px;
	border: 1px solid var(--acr-line);
	padding: 0 10px;
}
.acr_delivery_i1,
.acr_delivery_settlement,
.acr_delivery_street,
.acr_delivery_build,
.acr_delivery_number,
.acr_delivery_i2 {
	position: relative;
	margin-bottom: 10px;
}
.acr_delivery_i3 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.acr_address,
.acr_address_settlement,
.acr_address_street,
.acr_address_build,
.acr_address_number,
.acr_address_lviv {
	width: 100%;
	height: 44px;
	border: 1px solid var(--acr-line);
	padding: 0 12px;
	box-sizing: border-box;
}
.acr_delivery_b3 {
	padding: 12px;
	background: var(--acr-bg);
	font-size: 14px;
	line-height: 1.4;
}
.del_dropdown,
.del_settlement_dropdown,
.del_street_dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 20;
	background: #fff;
	border: 1px solid var(--acr-line);
	max-height: 220px;
	overflow: auto;
	margin: 0;
	padding: 0;
	list-style: none;
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.del_dropdown li,
.del_settlement_dropdown li,
.del_street_dropdown li {
	padding: 10px 12px;
	cursor: pointer;
	font-size: 14px;
	border-bottom: 1px solid var(--acr-line-soft);
}
.del_dropdown li:hover,
.del_settlement_dropdown li:hover,
.del_street_dropdown li:hover {
	background: var(--acr-bg);
}
.acr_address_street_loading {
	position: absolute;
	right: 10px;
	top: 12px;
}

.acr-pay-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}
.acr-pay-tiles .radio-label {
	display: block;
	border: 1px solid var(--acr-line);
	padding: 14px 10px;
	text-align: center;
	cursor: pointer;
	margin: 0;
	position: relative;
	background: #fff;
}
.acr-pay-tiles .radio-label.active {
	border-color: #000;
	box-shadow: inset 0 0 0 1px #000;
}
.acr-pay-tiles .radio-label input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.acr-pay-tiles .radio-label u {
	display: block;
	margin-top: 8px;
	text-decoration: none;
	font-size: 13px;
	color: var(--acr-text);
}
.liqpay-discount {
	display: block;
	margin-top: 6px;
	color: var(--acr-green);
	font-size: 12px;
	font-weight: 600;
}
.acr-co-block .pull-right {
	margin-top: 12px;
	font-size: 13px;
	color: var(--acr-muted);
	float: none !important;
}

.acr-co-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
	margin-bottom: 40px;
}
.acr-co-actions .acr-btn {
	min-width: 220px;
}

.empty_fild {
	border-color: var(--acr-red) !important;
	box-shadow: 0 0 0 1px var(--acr-red);
}

/* Add-to-cart toast */
.acr-toast-root {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 10050;
	width: min(400px, calc(100vw - 24px));
	pointer-events: none;
}
.acr-toast {
	position: relative;
	pointer-events: auto;
	background: #fff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 16px 48px rgba(0,0,0,.18);
	padding: 18px 40px 18px 16px;
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 14px;
	align-items: start;
	animation: acrToastIn .28s ease;
}
.acr-toast-img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	background: #f7f7f7;
	display: block;
}
.acr-toast-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 6px;
	color: #04B063;
}
.acr-toast-name {
	font-size: 14px;
	line-height: 1.35;
	margin: 0 0 14px;
	color: #1a1a1a;
}
.acr-toast-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: stretch;
}
.acr-toast-actions a.acr-btn,
.acr-toast-actions a.btn-primary {
	min-width: 0 !important;
	min-height: 40px !important;
	padding: 0 14px !important;
	font-size: 13px !important;
	flex: 1 1 auto;
}
.acr-toast-actions .acr-toast-ghost {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 40px;
	padding: 0 14px !important;
	margin: 0;
	border: 1px solid #dadada !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #1a1a1a !important;
	font-size: 13px !important;
	line-height: 1.3;
	text-decoration: none !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	flex: 1 1 auto;
	white-space: nowrap;
}
.acr-toast-actions .acr-toast-ghost:hover {
	border-color: #FC4041 !important;
	color: #FC4041 !important;
	background: #fff !important;
}
.acr-toast-close {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}
.acr-toast-close:hover { color: #FC4041; }

@keyframes acrToastIn {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
	.acr-cart-layout,
	.acr-checkout-layout {
		grid-template-columns: 1fr;
	}
	.acr-summary { position: static; }
	.acr-cart-aside { order: 2; }
	.acr-delivery-tiles ul {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.acr-cart-title { font-size: 22px; }
	.acr-cart-head-desktop { display: none; }
	.acr-cart-line {
		grid-template-columns: 72px 1fr 32px;
		grid-template-areas:
			"img info remove"
			"img qty qty"
			"img price price";
		gap: 8px 12px;
		padding: 16px 4px;
	}
	.acr-cart-img { grid-area: img; width: 72px; height: 72px; }
	.acr-cart-info { grid-area: info; }
	.acr-cart-qty { grid-area: qty; margin: 0; }
	.acr-cart-price { grid-area: price; text-align: left; }
	.acr-cart-remove { grid-area: remove; }
	.acr-cart-mobile-bar { display: flex; }
	.acr-cart-aside .acr-go-checkout,
	.acr-cart-aside .acr-link-continue { display: none; }
	.acr-co-grid { grid-template-columns: 1fr; }
	.acr-delivery-tiles ul { grid-template-columns: 1fr 1fr; }
	.acr_delivery_i3 { grid-template-columns: 1fr; }
	.acr-pay-tiles { grid-template-columns: 1fr 1fr; }
	.acr-co-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.acr-co-actions .acr-btn { width: 100%; min-width: 0; }
	.acr-toast-root {
		right: 12px;
		left: 12px;
		bottom: 12px;
		width: auto;
	}
}
