@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Combined Order Template - Bronze de Luxe */

/* ===== Typography tokens ===== */
:root {
	--co-font-heading: 'Montserrat', sans-serif;
	--co-font-heading-size: 24px;
	--co-font-heading-weight: 600;
	--co-font-heading-lh: 1;
	--co-font-heading-color: #000;

	--co-font-body: 'Montserrat', sans-serif;
	--co-font-body-size: 14px;
	--co-font-body-weight: 500;
	--co-font-body-lh: 1;
	--co-font-body-color: #000;
}

/* ===== Page Background ===== */
body.order_page {
	background-color: #F6F6F6 !important;
}

body.order_page .middle {
	background-color: #F6F6F6 !important;
}

body.order_page .inner_page {
	background-color: #F6F6F6 !important;
}

/* ===== Layout ===== */
#order_form_div.co {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	font-family: 'PT Sans', Arial, sans-serif;
	color: #333;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}

#order_form_div.co *,
#order_form_div.co *::before,
#order_form_div.co *::after {
	box-sizing: border-box;
}

#order_form_div .co-layout {
	display: flex !important;
	flex-direction: row !important;
	gap: 24px;
	align-items: flex-start;
}

#order_form_div .co-fullwidth {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin-top: 40px;
}

#order_form_div .co-main {
	flex: 1 1 0% !important;
	min-width: 0;
	width: auto !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

#order_form_div .co-sidebar {
	flex: 0 0 34%;
	min-width: 280px;
	position: sticky;
	top: 20px;
	float: none !important;
}

/* ===== Page Title (h1) ===== */
body.order_page h1 {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 8px;
	line-height: 1.2;
}

/* ===== Back link ===== */
.co-back-link {
	margin-bottom: 24px;
}

.co-back-link a {
	font-size: 14px;
	color: #888;
	text-decoration: none;
	transition: color 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.co-back-link a:hover {
	color: #333;
}

/* ===== Sections (white cards) ===== */
.co-section {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 0;
	border-bottom: none;
}

.co-section:last-child {
	border-bottom: none;
}

.co-section__title {
	font-family: var(--co-font-heading);
	font-size: var(--co-font-heading-size);
	font-weight: var(--co-font-heading-weight);
	line-height: var(--co-font-heading-lh);
	color: var(--co-font-heading-color);
	margin: 0 0 20px;
}

/* ===== Cart Items ===== */
.co-cart {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 24px;
}

.co-cart__items {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.co-cart__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #f0f0f0;
}

.co-cart__item:first-child {
	padding-top: 0;
}

.co-cart__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.co-cart__item-img {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.co-cart__item-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.co-cart__item-info {
	flex: 1;
	min-width: 0;
	padding-right: 12px;
}

.co-cart__item-name {
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 6px;
	font-weight: 600;
}

.co-cart__item-name a {
	color: #333;
	text-decoration: none;
}

.co-cart__item-name a:hover {
	text-decoration: underline;
	color: #000;
}

.co-cart__item-props {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 4px;
}

.co-cart__item-prop {
	font-size: 13px;
	line-height: 1.4;
}

.co-cart__item-prop-name {
	color: #888;
}

.co-cart__item-prop-value {
	color: #1a1a1a;
}

.co-cart__item-price {
	display: none;
}

/* ===== Quantity Controls ===== */
.co-cart__item-qty {
	display: flex !important;
	align-items: center !important;
	gap: 0 !important;
	flex-shrink: 0 !important;
	width: 112px !important;
	max-width: 112px !important;
	min-width: 112px !important;
}

.co-qty__minus,
.co-qty__plus {
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 32px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid #e0e0e0 !important;
	background: #fff !important;
	cursor: pointer;
	font-size: 16px !important;
	user-select: none;
	color: #333 !important;
	transition: background-color 0.15s, border-color 0.15s;
	padding: 0 !important;
	line-height: 1 !important;
}

.co-qty__minus:hover,
.co-qty__plus:hover {
	background: #f5f5f5 !important;
	border-color: #ccc !important;
}

.co-qty__minus {
	border-radius: 6px 0 0 6px !important;
}

.co-qty__plus {
	border-radius: 0 6px 6px 0 !important;
}

.co-qty__input {
	width: 48px !important;
	max-width: 48px !important;
	min-width: 48px !important;
	height: 32px !important;
	text-align: center !important;
	border: 1px solid #e0e0e0 !important;
	border-left: none !important;
	border-right: none !important;
	font-size: 14px !important;
	font-family: inherit !important;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield !important;
	box-sizing: border-box !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #333 !important;
}

.co-qty__input::-webkit-outer-spin-button,
.co-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.co-qty__input:focus {
	outline: none;
	border-color: #333 !important;
}

/* ===== Item Sum ===== */
.co-cart__item-sum {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	color: #1a1a1a;
	width: 110px;
	text-align: right;
	flex-shrink: 0;
}

/* ===== Actions (delete + wishlist) inside info block ===== */
.co-cart__item-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.co-action__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	cursor: pointer;
	color: #999;
	border-radius: 4px;
	transition: color 0.15s, background-color 0.15s;
}

.co-action__btn:hover {
	color: #333;
}

.co-action__delete:hover {
	color: #c00;
}

.co-action__wishlist:hover {
	color: #AD947A;
}

/* ===== Summary (sidebar) ===== */
.co-summary {
	background: #FFFFFF;
	border: none;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.co-summary__title {
    font-family: var(--co-font-heading);
    font-size: var(--co-font-heading-size);
    font-weight: var(--co-font-heading-weight);
    line-height: var(--co-font-heading-lh);
    color: var(--co-font-heading-color);
    margin-bottom: 20px;
}

.co-summary__rows {
	margin-bottom: 20px;
}

.co-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-family: var(--co-font-body);
	font-size: var(--co-font-body-size);
	font-weight: var(--co-font-body-weight);
	line-height: var(--co-font-body-lh);
}

.co-summary__label {
	color: #000;
}

.co-summary__value {
	font-weight: 500;
	color: #000;
}

.co-summary__row--free .co-summary__value {
	color: #AD947A;
}

.co-summary__row--discount .co-summary__value {
	color: #FF0000;
}

.co-summary__total {
	border-top: 1px solid #f0f0f0;
	padding-top: 16px;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.co-summary__total-label {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}

.co-summary__total-value {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
}

.co-summary__total-old {
	width: 100%;
	text-align: center;
	font-size: 14px;
	color: #999;
}

/* ===== Buttons ===== */
.co-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	border: none;
	transition: background-color 0.2s, opacity 0.2s;
}

.co-btn--primary {
	background-color: #1a1a1a;
	color: #fff;
}

.co-btn--primary:hover {
	background-color: #333;
	color: #fff;
}

.co-btn--outline {
	background: transparent;
	border: 1px solid #1a1a1a;
	color: #1a1a1a;
}

.co-btn--outline:hover {
	background-color: #1a1a1a;
	color: #fff;
}

.co-btn--full {
	width: 100%;
}

/* ===== Consent checkboxes ===== */
.co-summary__consent {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.co-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.4;
	color: #555;
}

.co-checkbox input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 2px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	margin: 1px 0 0;
	transition: border-color 0.2s, background-color 0.2s;
	position: relative;
}

.co-checkbox input[type="checkbox"]:checked {
	border-color: #AD947A;
	background-color: #AD947A;
}

.co-checkbox input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.co-checkbox__text a {
	color: #AD947A;
	text-decoration: underline;
}

.co-checkbox__text a:hover {
	color: #8a7560;
}


.co-textarea {
	width: 100%;
	min-height: 80px;
	padding: 10px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	box-sizing: border-box;
	background: #fff;
}

.co-textarea:focus {
	outline: none;
	border-color: #333;
}

/* ===== Contacts extra (comment + newsletter) ===== */
.co-contacts-extra {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.co-contacts-extra .co-textarea {
	min-height: 100px;
}

/* ===== Inline field error ===== */
.co-field-error {
	color: #c00;
	font-size: 13px;
	margin-top: 4px;
	line-height: 1.4;
}

.co-errors-general {
	margin-bottom: 16px;
}

.co-field-has-error input[type="text"],
.co-field-has-error input[type="tel"],
.co-field-has-error input[type="email"],
.co-field-has-error textarea,
.co-field-has-error select {
	border-color: #c00 !important;
}

/* ===== Error message ===== */
.co-error {
	background: #fff3f3;
	border: 1px solid #e5c0c0;
	color: #c00;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

/* ===== Override existing component styles within .co ===== */
.co .bx_order_make {
	padding: 0;
}

/* ===== Section title styling ===== */
.co .section.info h3 {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px;
	line-height: 1.3;
}

.co .info_block h4 {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 16px;
}

.co .info_block {
	margin-bottom: 0;
}

/* ===== Section header with auth button ===== */
.co-section__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0;
}

.co-section__header .co-section__title {
	margin-bottom: 0;
}

.co-auth-btn {
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #1a1a1a;
	border-radius: 8px;
	color: #1a1a1a;
	text-decoration: none;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.co-auth-btn:hover {
	background-color: #1a1a1a;
	color: #fff;
}

.co-auth-btn--large {
	padding: 12px 32px;
	font-size: 16px;
}

/* ===== Auth prompt for unauthorized users ===== */
.co-auth-prompt {
	text-align: center;
	padding: 40px 20px;
	background: #fff;
	border-radius: 12px;
	margin: 20px 0;
}

.co-auth-prompt p {
	font-size: 16px;
	color: #666;
	margin: 0 0 20px;
}

/* ===== Auth popup styles ===== */
#co-auth-popup {
	border-radius: 12px;
}

#co-auth-popup .popup-window-content {
	padding: 24px;
	background: #fff;
}

#co-auth-popup .popup-window-titlebar {
	background: #fff;
	border-bottom: none;
	padding: 20px 24px 0;
}

#co-auth-popup .popup-window-titlebar-text {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
}

.co-auth-field {
	margin-bottom: 16px;
}

.co-auth-field label {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	margin-bottom: 6px;
}

.co-auth-field label .star {
	color: #c00;
}

.co-auth-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
	color: #1a1a1a;
}

.co-auth-field input:focus {
	border-color: #AD947A;
	outline: none;
}

.co-auth-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 8px;
}

.co-auth-remember {
	font-size: 13px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.co-auth-remember input[type="checkbox"] {
	width: auto;
	margin: 0;
}

.co-auth-links {
	display: flex;
	gap: 16px;
}

.co-auth-link {
	font-size: 13px;
	color: #888;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s;
}

.co-auth-link:hover {
	color: #AD947A;
}

.co-auth-submit {
	display: block;
	width: auto;
	padding: 12px 32px;
	background-color: #AD947A;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background-color 0.2s;
	font-family: inherit;
}

.co-auth-submit:hover {
	background-color: #9a8068;
}

.co-auth-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.co-auth-popup-error:empty {
	display: none;
}

.co-auth-error-msg {
	background: #fff3f3;
	border: 1px solid #e5c0c0;
	color: #c00;
	padding: 10px 15px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 16px;
}

/* ===== Hide unnecessary order properties ===== */
/* ZIP (ID=4), CITY (ID=5), LOCATION (ID=6), ADDRESS (ID=7) */
.co .prop_block[data-property-id-row="4"],
.co .prop_block[data-property-id-row="5"],
.co .prop_block[data-property-id-row="6"],
.co .prop_block[data-property-id-row="7"] {
	display: none !important;
}

/* Hide UTM fields */
.co .prop_block[data-property-id-row="20"],
.co .prop_block[data-property-id-row="22"],
.co .prop_block[data-property-id-row="24"],
.co .prop_block[data-property-id-row="26"],
.co .prop_block[data-property-id-row="28"] {
	display: none !important;
}

/* Hide "Информация о покупателе" h4 inside info_block (replaced by section header) */
.co .info_block .bx_section > h4 {
	display: none;
}

.co .bx_section h4 {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px;
}

.co .delivery_block,
.co .pay_block {
	margin-bottom: 0;
}

.co .delivery_block .bx_section,
.co .pay_block .bx_section {
	padding: 0;
	border: none;
}

/* ===== Custom radio button (bronze) ===== */
.co .delivery_block input[type="radio"],
.co .pay_block input[type="radio"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 2px solid #ccc;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s;
	margin: 0;
	padding: 0;
	position: relative;
	flex-shrink: 0;
}

.co .delivery_block input[type="radio"]:checked,
.co .pay_block input[type="radio"]:checked {
	border-color: #AD947A;
}

.co .delivery_block input[type="radio"]:checked::after,
.co .pay_block input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #AD947A;
}

/* ===== Delivery/Payment radio cards ===== */
.co .bx_block.w100.vertical,
.co .bx_block.w100.float,
.co .bx_block.float {
	margin-bottom: 8px;
}

.co .bx_block.w100.vertical .bx_element,
.co .bx_block.w100.float .bx_element,
.co .bx_block.float .bx_element {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 0 14px;
	padding: 16px 20px;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	transition: border-color 0.2s;
	background: #fff;
}

/* Radio: first column, first row */
.co .bx_element > input[type="radio"] {
	grid-column: 1;
	grid-row: 1;
}

/* Label: second column, first row */
.co .bx_element > label {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

/* Hide clear divs, push extras to full-width row */
.co .bx_element > .clear,
.co .bx_element > div[class="clear"] {
	display: none !important;
}

.co .bx_element > .delivery_extra_services {
	grid-column: 2;
	margin-top: 4px;
}

/* Extra content spans label column only */
.co .bx_element > .co-delivery-address,
.co .bx_element > .co-pickup-inline {
	grid-column: 2;
	margin-top: 8px;
}

.co .bx_block.w100.vertical .bx_element:hover,
.co .bx_block.w100.float .bx_element:hover,
.co .bx_block.float .bx_element:hover {
	border-color: #bbb;
}

/* Highlight selected delivery/payment card — bronze border */
.co .bx_block.w100.vertical .bx_element:has(input[type="radio"]:checked),
.co .bx_block.w100.float .bx_element:has(input[type="radio"]:checked),
.co .bx_block.float .bx_element:has(input[type="radio"]:checked) {
	border-color: #AD947A;
	background: #fafaf8;
}

/* Description block: relative for price positioning */
.co .bx_element .bx_description {
	position: relative;
	padding-right: 120px;
}

.co .bx_element .bx_description .name,
.co .pay_block .bx_element .bx_description .name {
	font-family: var(--co-font-body);
	font-size: var(--co-font-body-size);
	font-weight: var(--co-font-body-weight);
	line-height: var(--co-font-body-lh);
	color: var(--co-font-body-color);
}

/* Description text: hidden by default, shown for selected item */
.co .bx_element .bx_description p {
	font-family: var(--co-font-body);
	font-size: var(--co-font-body-size);
	font-weight: var(--co-font-body-weight);
	line-height: var(--co-font-body-lh);
	color: var(--co-font-body-color);
	margin: 4px 0 0;
	display: none;
}

.co .bx_element:has(input[type="radio"]:checked) .bx_description p {
	display: block;
}

/* Price/status text — positioned top-right, bronze color */
.co .bx_result_price {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 0;
	color: #AD947A;
	font-weight: 500;
	white-space: nowrap;
	text-align: right;
}

.co .bx_result_price b {
	font-family: var(--co-font-body);
	font-size: var(--co-font-body-size);
	font-weight: var(--co-font-body-weight);
	color: #AD947A;
}

.co .bx_result_price div {
	display: inline;
	font-size: 14px;
}

.co .bx_result_price br {
	display: none;
}

/* ===== Hide logotype for cleaner look ===== */
.co .bx_logotype {
	display: none;
}

/* ===== Props/fields styling ===== */
.co .wrap_props {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.co .wrap_props .prop_block {
	margin-bottom: 16px;
}

.co .wrap_props .prop_block:last-child {
	margin-bottom: 0;
}

.co .bx_block.r1x3.pt8 {
	font-size: 13px;
	color: #888;
	margin-bottom: 6px;
	font-weight: 400;
}

.co .bx_block.r1x3.pt8 .star {
	color: #c00;
}

.co .bx_block.r3x1 {
	margin-bottom: 0;
}

.co .bx_block1 select,
.co .bx_block1 input[type="text"],
.co .bx_block1 input[type="tel"],
.co .bx_block1 input[type="email"],
.co .wrap_props input[type="text"],
.co .wrap_props input[type="tel"],
.co .wrap_props input[type="email"],
.co .wrap_props select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
	color: #333;
	transition: border-color 0.2s;
}

.co .bx_block1 textarea,
.co .wrap_props textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
	resize: vertical;
	color: #333;
	transition: border-color 0.2s;
}

.co .bx_block1 select:focus,
.co .bx_block1 input[type="text"]:focus,
.co .bx_block1 input[type="tel"]:focus,
.co .bx_block1 input[type="email"]:focus,
.co .bx_block1 textarea:focus,
.co .wrap_props input[type="text"]:focus,
.co .wrap_props input[type="tel"]:focus,
.co .wrap_props input[type="email"]:focus,
.co .wrap_props textarea:focus,
.co .wrap_props select:focus {
	outline: none;
	border-color: #333;
}

/* Location selector styling */
.co .bx-ui-sls-pane {
	border: 1px solid #e0e0e0 !important;
	border-radius: 8px !important;
	overflow: hidden;
}

.co .bx-ui-sls-pane input[type="text"] {
	padding: 12px 14px !important;
	font-size: 14px !important;
	border: none !important;
	border-radius: 8px !important;
}

/* ===== Pickup Inline (inside delivery card) ===== */
.co-pickup-inline {
	display: flex;
	gap: 24px;
	flex-basis: 100%;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
}

.co-pickup-inline__info {
	flex: 0 0 45%;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}

.co-pickup-inline__info p {
	margin: 0 0 12px;
}

.co-pickup-inline__info p:last-child {
	margin-bottom: 0;
}

.co-pickup-inline__map {
	flex: 1;
	min-height: 250px;
	border-radius: 8px;
	overflow: hidden;
	background: #f0f0f0;
}

#co-pickup-ymap {
	border-radius: 8px;
}

/* ===== Delivery Address Field ===== */
.co-delivery-address {
	flex-basis: 100%;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
}

.co-delivery-address .co-auth-field__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 6px;
}

.co-delivery-address .co-delivery-address__input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
	color: #1a1a1a;
}

.co-delivery-address .co-delivery-address__input:focus {
	border-color: #AD947A;
	outline: none;
}

.co-delivery-address .co-delivery-address__input[readonly] {
	background: #f5f5f5;
	color: #666;
	cursor: default;
}

/* ===== Hide old order button (moved to sidebar) ===== */
.co .bx_ordercart_order_pay_center {
	display: none;
}

/* ===== Hide old summary table (replaced by sidebar) ===== */
.co .bx_ordercart {
	display: none;
}

/* ===== Hide delivery extra services table borders ===== */
.co .delivery_extra_services {
	margin-top: 12px;
	border: none;
	font-size: 13px;
}

.co .delivery_extra_services td {
	padding: 4px 8px 4px 0;
	border: none;
}

/* ===== Fix Aspro overrides on form elements ===== */
.co .bx_block {
	width: auto !important;
	float: none !important;
}

.co .bx_block.r1x3 {
	width: auto !important;
}

.co .bx_block.r3x1 {
	width: auto !important;
}

.co div[style*="clear: both"] {
	display: none;
}

.co .clearfix {
	display: none;
}

/* ===== Related props section ===== */
.co .co-section .bx_section[style*="display:none"] {
	display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
	#order_form_div .co-order-grid {
		display: flex;
		flex-direction: column;
		gap: 40px;
	}

	#order_form_div .co-layout {
		display: contents !important;
	}

	#order_form_div .co-main {
		width: 100% !important;
		order: 1;
	}

	#order_form_div .co-fullwidth {
		order: 2;
		margin-top: 0;
	}

	#order_form_div .co-sidebar {
		width: 100% !important;
		flex: none;
		position: static;
		order: 3;
	}

	.co-summary {
		margin-bottom: 24px;
	}

	/* Reset Aspro float/width on mobile */
	#order_form_div .bx_section,
	#order_form_div .bx_block,
	#order_form_div .delivery_block,
	#order_form_div .pay_block,
	#order_form_div .info_block,
	#order_form_div .section.info {
		width: 100% !important;
		float: none !important;
	}
}

@media (max-width: 576px) {
	#order_form_div.co {
		padding: 0 10px;
	}

	.co-section {
		padding: 16px;
		border-radius: 8px;
	}

	.co-cart {
		padding: 16px;
		border-radius: 8px;
	}

	.co-cart__item {
		flex-wrap: wrap;
	}

	.co-cart__item-img {
		width: 60px;
		height: 60px;
	}

	.co-cart__item-info {
		flex-basis: calc(100% - 76px - 28px);
	}

	.co-cart__item-price {
		display: none;
	}

	.co-cart__item-qty {
		margin-left: 76px;
	}

	.co-cart__item-sum {
		flex: 1;
		text-align: right;
	}

	.co-summary {
		padding: 16px;
		border-radius: 8px;
	}

	.co-summary__total-value {
		font-size: 20px;
	}

	.co .bx_element .bx_description {
		padding-right: 0;
	}
	.co .bx_result_price {
		position: static;
		display: block;
		white-space: normal;
		margin-top: 4px;
		text-align: left;
	}
	.co-pickup-inline {
		flex-direction: column;
	}
	.co-pickup-inline__info {
		flex: none;
	}
	.co-pickup-inline__map {
		min-height: 200px;
	}

	#order_form_div .co-cart__item-img .sticker_sale_text {
		font-size: 6px;
		line-height: 7px;
		padding: 1px 3px;
	}
	#order_form_div input[type="text"],
	#order_form_div textarea,
	#order_form_div select {
		font-size: 12px;
	}
}

/* ===== Empty Cart ===== */
.bx-sbb-empty-cart-image {
	width: 131px;
	height: 116px;
	margin: 50px auto 42px;
	background: url(/bitrix/components/bitrix/sale.basket.basket/templates/.default/images/empty_cart.svg) no-repeat center;
	background-size: contain;
}

.bx-sbb-empty-cart-text {
	font-size: 36px;
	text-align: center;
	color: #bababa;
	margin-bottom: 42px;
}

.bx-sbb-empty-cart-desc {
	text-align: center;
	color: #000;
	font-size: 16px;
}

/* Sale sticker on basket item image */
.co-cart__item-img {
	position: relative;
	overflow: hidden;
}
#order_form_div .co-cart__item-img .sticker_sale_text {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top: auto;
	text-align: center;
	font-size: 7px;
	line-height: 9px;
	padding: 2px 4px;
	letter-spacing: 0.3px;
	border-radius: 0;
	width: auto;
	display: block;
}

/* Discount details in summary */
.co-summary__row--discount .co-summary__label {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.co-summary__discount-link {
	font-size: 12px;
	color: #AD947A;
	text-decoration: none;
	transition: color 0.2s;
}

.co-summary__discount-link:hover {
	color: #8a7560;
}

.co-summary__row--discount .co-summary__value {
	color: #FF0000;
	white-space: nowrap;
}

/* ===== Loading screen overlay ===== */
.bx-step-opacity {
	transition: 500ms opacity ease;
}

#loading_screen {
	position: fixed;
	z-index: 1150;
	left: 50%;
	top: 50%;
	margin-left: -32px;
	margin-top: -32px;
	width: 64px;
	height: 64px;
}

/* ===== Hide CDEK sender location error ===== */
.co .bx_result_price p:has(> .errortext) {
	display: none !important;
}

/* ===== Insurance checkbox closer to label ===== */
.co .bx_element > .delivery_extra_services {
	flex-basis: auto;
}

.co .delivery_extra_services td.name {
	padding-right: 4px;
	width: 1%;
	white-space: nowrap;
}

.co .delivery_extra_services td.control {
	padding-left: 0;
}
