/* ===== WooCommerce: cart, checkout, my account ===== */
.woo-page,
.woocommerce-account main.container {
	min-height: 50vh;
}

h1.entry-title,
h1.page-title {
	font-size: 30px;
	font-weight: 800;
	color: var(--color-primary);
	margin: 0 0 32px;
}

h1.page-title.checkout-title {
	margin-bottom: 6px;
}

.checkout-subtitle {
	font-size: 14px;
	color: #9096A8;
	margin: 0 0 28px;
}

/* --- Notices --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	background: var(--color-bg-light);
	border: none;
	border-left: 4px solid var(--color-primary);
	border-radius: 10px;
	padding: 16px 20px;
	font-size: 14px;
	color: var(--color-text);
	list-style: none;
}

.woocommerce-error {
	border-left-color: var(--color-accent);
}

.woocommerce-message a.button,
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

/* --- Generic buttons --- */
.button,
button.button,
input.button,
a.button {
	background: var(--color-primary) !important;
	color: var(--color-white) !important;
	border: none !important;
	border-radius: 50px !important;
	padding: 14px 28px !important;
	font-family: var(--font-main) !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.button:hover,
button.button:hover,
input.button:hover,
a.button:hover {
	background: #14205E !important;
	color: var(--color-white) !important;
	transform: translateY(-2px);
}

.button.alt,
a.checkout-button,
#place_order {
	background: var(--color-accent) !important;
}

.button.alt:hover,
a.checkout-button:hover,
#place_order:hover {
	background: #D5522F !important;
}

/* --- Cart table --- */
table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: none;
	margin: 0 0 32px;
}

table.shop_table th {
	background: var(--color-primary);
	color: var(--color-white);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 16px;
	text-align: left;
}

table.shop_table th:first-child { border-radius: 12px 0 0 0; }
table.shop_table th:last-child { border-radius: 0 12px 0 0; }

table.shop_table td {
	padding: 16px;
	border-bottom: 1px solid #EDEFF5;
	font-size: 14px;
	vertical-align: middle;
}

table.shop_table td.product-name a {
	color: var(--color-primary);
	font-weight: 700;
}

table.shop_table td.product-price,
table.shop_table td.product-subtotal {
	color: var(--color-primary);
	font-weight: 700;
}

table.shop_table img {
	border-radius: 10px;
	width: 64px;
	height: auto;
}

.product-remove a.remove {
	background: #FBEAE6;
	color: var(--color-accent) !important;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
}

.product-remove a.remove:hover {
	background: var(--color-accent);
	color: var(--color-white) !important;
}

.quantity .qty {
	width: 64px;
	padding: 10px;
	border: 1px solid #E1E3F2;
	border-radius: 8px;
	font-family: var(--font-main);
	text-align: center;
}

td.actions .coupon {
	display: flex;
	gap: 10px;
	align-items: center;
}

td.actions .coupon .input-text {
	padding: 12px 16px;
	border: 1px solid #E1E3F2;
	border-radius: 50px;
	font-family: var(--font-main);
}

/* --- Cart totals --- */
.cart_totals {
	background: var(--color-bg-light);
	border-radius: 16px;
	padding: 28px;
	max-width: 420px;
	margin-left: auto;
}

.cart_totals h2 {
	font-size: 18px;
	font-weight: 800;
	color: var(--color-primary);
	margin: 0 0 16px;
}

.cart_totals table {
	width: 100%;
}

.cart_totals table th,
.cart_totals table td {
	padding: 10px 0;
	border-bottom: 1px solid rgba(27, 39, 129, 0.08);
	font-size: 14px;
}

.cart_totals .order-total .woocommerce-Price-amount {
	color: var(--color-accent);
	font-weight: 800;
	font-size: 18px;
}

.wc-proceed-to-checkout {
	margin-top: 20px;
}

.wc-proceed-to-checkout a.checkout-button {
	display: block;
	text-align: center;
	width: 100%;
}

/* --- My Account --- */
.woo-page.woocommerce-account {
	display: block;
}

.woocommerce-MyAccount-content {
	max-width: 640px;
}

.woocommerce-MyAccount-content .woocommerce-Address {
	background: var(--color-bg-light);
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 20px;
}

.woocommerce-Address-title h3 {
	font-size: 15px;
	font-weight: 800;
	color: var(--color-primary);
}

.woocommerce-Address-title a {
	color: var(--color-accent);
	font-weight: 700;
	font-size: 13px;
}

/* --- Forms (login / register / edit account / checkout) --- */
form .form-row label {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 6px;
	display: block;
}

form .form-row .input-text,
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form select,
form textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid #E1E3F2;
	background: var(--color-bg-light);
	border-radius: 10px;
	font-family: var(--font-main);
	font-size: 14px;
	color: var(--color-text);
}

form .input-text:focus,
form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
form textarea:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
	background: var(--color-white);
}

.account-auth {
	max-width: 420px;
}

.account-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	background: var(--color-bg-light);
	border-radius: 50px;
	padding: 4px;
}

.account-tabs__btn {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 16px;
	border-radius: 50px;
	font-family: var(--font-main);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.account-tabs__btn.is-active {
	background: var(--color-primary);
	color: var(--color-white);
}

.account-panel.is-hidden {
	display: none;
}

.woocommerce-form-login,
.woocommerce-form-register {
	background: var(--color-bg-light);
	border-radius: 16px;
	padding: 28px;
}

.woocommerce-LostPassword a {
	color: var(--color-primary);
	font-weight: 600;
}

/* --- Orders table --- */
table.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
}

table.woocommerce-orders-table th {
	background: var(--color-primary);
	color: var(--color-white);
	padding: 14px 16px;
	font-size: 12px;
	text-transform: uppercase;
}

table.woocommerce-orders-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #EDEFF5;
	font-size: 14px;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
	color: var(--color-primary);
	font-weight: 800;
}

mark.order-status {
	background: rgba(231, 97, 67, 0.12);
	color: var(--color-accent);
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 12px;
}

/* --- WooCommerce Blocks (Cart / Checkout) --- */
h1.wp-block-post-title {
	font-size: 30px;
	font-weight: 800;
	color: var(--color-primary);
	margin: 0 0 32px;
}

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	font-family: var(--font-main);
}

.wc-block-components-product-metadata,
.wc-block-cart-item__product-name,
.wc-block-components-product-name {
	color: var(--color-primary);
	font-weight: 700;
}

.wc-block-cart-items__header-text,
.wc-block-components-panel__header,
.wc-block-cart-item__total .wc-block-components-formatted-money-amount,
.wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-formatted-money-amount {
	color: var(--color-primary);
}

.wc-block-components-quantity-selector {
	border-radius: 10px;
	border-color: #E1E3F2;
}

.wc-block-components-quantity-selector__button,
.wc-block-components-quantity-selector__input {
	font-family: var(--font-main);
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-container .wp-element-button,
.wp-block-woocommerce-proceed-to-checkout-block a {
	background: var(--color-accent) !important;
	color: var(--color-white) !important;
	border-radius: 50px !important;
	font-family: var(--font-main) !important;
	font-weight: 700 !important;
	border: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block a:hover {
	background: #D5522F !important;
	transform: translateY(-2px);
}

.wc-block-components-checkout-place-order-button {
	border-radius: 12px !important;
	padding: 18px !important;
	min-height: 56px;
}

.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	vertical-align: -3px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.wc-block-components-totals-wrapper,
.wc-block-components-panel {
	border-color: rgba(27, 39, 129, 0.08) !important;
	color: var(--color-primary);
}

.wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount,
.wc-block-components-totals-item__value {
	color: var(--color-primary);
	font-weight: 700;
}

.wc-block-cart__totals-title,
.wc-block-components-totals-item__label {
	font-family: var(--font-main);
	color: var(--color-primary);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-weight: 700;
}

.wc-block-cart .wc-block-cart__totals-title,
.wc-block-checkout__totals-title {
	color: var(--color-primary);
	font-weight: 800;
	font-size: 20px !important;
	display: block;
	margin: 0 0 16px;
}

.wc-block-components-order-summary,
.wc-block-components-totals-wrapper {
	background: none;
	border-radius: 0;
}

.wc-block-components-button:not(.is-link) {
	border-radius: 50px;
	font-family: var(--font-main);
	font-weight: 700;
}

.wc-block-components-totals-coupon__form {
	flex-direction: column !important;
	align-items: flex-end !important;
	gap: 10px !important;
}

.wc-block-components-totals-coupon__input {
	width: 100% !important;
}

.wc-block-components-totals-coupon__button {
	border-radius: 10px !important;
	padding: 0 16px !important;
	font-size: 13px !important;
	min-height: 0 !important;
	height: 44px !important;
	align-self: flex-end !important;
}

.wc-block-components-button.wp-element-button:not(.is-link) {
	background: var(--color-primary);
}

.wc-block-components-button.wp-element-button:not(.is-link):hover {
	background: #14205E;
}

/* --- Checkout Blocks: form steps --- */
.wc-block-components-checkout-step__title {
	color: var(--color-primary);
	font-size: 18px;
	font-weight: 800;
	font-family: var(--font-main);
}

.wc-block-components-checkout-step__heading-container {
	margin-bottom: 16px;
}

/* Іконки біля заголовків кроків оформлення замовлення. */
.wc-block-components-checkout-step__title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wc-block-components-checkout-step__title::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='8' r='4' stroke='%231B2781' stroke-width='1.8'/%3E%3Cpath d='M4 20c0-4.4 3.6-8 8-8s8 3.6 8 8' stroke='%231B2781' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.wp-block-woocommerce-checkout-shipping-method-block .wc-block-components-checkout-step__title::before,
.wp-block-woocommerce-checkout-pickup-options-block .wc-block-components-checkout-step__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 6h11v10H3z' stroke='%231B2781' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M14 10h4l3 3v3h-7z' stroke='%231B2781' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='18' r='1.6' stroke='%231B2781' stroke-width='1.8'/%3E%3Ccircle cx='17.5' cy='18' r='1.6' stroke='%231B2781' stroke-width='1.8'/%3E%3C/svg%3E");
}

/* WC заголовок цього кроку — узагальнене "Доставка"; за макетом має бути "Спосіб доставки".
   (Другий заголовок, "Місця самовивозу" на блоці pickup-options, лишаємо як є — це вже
   правильна, окрема назва для списку точок видачі.) */
.wp-block-woocommerce-checkout-shipping-method-block .wc-block-components-checkout-step__title {
	font-size: 0;
}

.wp-block-woocommerce-checkout-shipping-method-block .wc-block-components-checkout-step__title::after {
	content: 'Спосіб доставки';
	font-size: 18px;
}

.wp-block-woocommerce-checkout-shipping-address-block .wc-block-components-checkout-step__title::before,
.wp-block-woocommerce-checkout-billing-address-block .wc-block-components-checkout-step__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 22s7-7.5 7-13a7 7 0 10-14 0c0 5.5 7 13 7 13z' stroke='%231B2781' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='9' r='2.3' stroke='%231B2781' stroke-width='1.8'/%3E%3C/svg%3E");
}

.wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' stroke='%231B2781' stroke-width='1.8'/%3E%3Cpath d='M3 10h18' stroke='%231B2781' stroke-width='1.8'/%3E%3C/svg%3E");
}

/* --- "Спосіб доставки": замість перемикача-вкладок — дві картки з іконкою й описом --- */
.wc-block-checkout__shipping-method-container {
	display: flex !important;
	gap: 12px !important;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

.wc-block-checkout__shipping-method-option {
	position: relative !important;
	flex: 1 !important;
	display: flex !important;
	flex-flow: column !important;
	align-items: flex-start !important;
	gap: 6px !important;
	padding: 16px 16px 16px 46px !important;
	margin: 0 !important;
	border: 1.5px solid #E1E3F2 !important;
	border-radius: 14px !important;
	background: var(--color-white) !important;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Кружечок вибору (WC рендерить картку як role="radio" без справжнього <input>,
   тож малюємо індикатор самі). */
.wc-block-checkout__shipping-method-option::before {
	content: '';
	position: absolute;
	left: 16px;
	top: 24px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #C7CBE0;
	background: var(--color-white);
	box-sizing: border-box;
}

.wc-block-checkout__shipping-method-option--selected::before {
	border-color: var(--color-primary);
	background: var(--color-primary);
	box-shadow: inset 0 0 0 3px var(--color-white);
}

.wc-block-checkout__shipping-method-option:hover {
	border-color: var(--color-primary) !important;
}

.wc-block-checkout__shipping-method-option--selected {
	border-color: var(--color-primary) !important;
	background: #EEF1FF !important;
}

.wc-block-checkout__shipping-method-option-title-wrapper {
	display: flex !important;
	align-items: center;
	gap: 12px;
}

.wc-block-checkout__shipping-method-option-icon {
	width: 44px !important;
	height: 44px !important;
	flex-shrink: 0;
	padding: 9px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #E4E8FA;
	fill: var(--color-primary) !important;
	align-self: center;
	margin-top: 14px;
}

.wc-block-checkout__shipping-method-option-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-primary);
	font-family: var(--font-main);
}

.wc-block-checkout__shipping-method-option::after {
	display: block;
	margin-left: 46px;
	font-size: 12px;
	color: #9096A8;
	line-height: 1.4;
	font-weight: 500;
	font-family: var(--font-main);
}

.wc-block-checkout__shipping-method-option:nth-child(1)::after {
	content: 'По Києву та передмістю у зручний для вас час';
}

.wc-block-checkout__shipping-method-option:nth-child(2)::after {
	content: 'З наших пунктів продажу у Києві';
}

/* WC показує узагальнену назву "Доставка" для цієї картки (це назва типу методу,
   а не самого тарифу) — підміняємо на реальну назву тарифу "Доставка додому". */
.wc-block-checkout__shipping-method-option:nth-child(1) .wc-block-checkout__shipping-method-option-title {
	font-size: 0;
}

.wc-block-checkout__shipping-method-option:nth-child(1) .wc-block-checkout__shipping-method-option-title::before {
	content: 'Доставка додому';
	font-size: 14px;
}

/* У підсумку замовлення в макеті немає окремого рядка "Доставка" — одразу
   Проміжний підсумок → Загалом (доставка й так безкоштовна). */
.wp-block-woocommerce-checkout-order-summary-shipping-block {
	display: none !important;
}

/* Окремий крок "Параметри доставки" дублює картку вище — тарифів для вибору всього
   один (він вже вибраний автоматично), тож зайвий крок ховаємо. */
.wp-block-woocommerce-checkout-shipping-methods-block {
	display: none !important;
}

/* WC показує форму адреси лише в ОДНОМУ з двох блоків залежно від useShippingAsBilling
   (за замовчуванням showBillingFields=false для нових/гостьових сесій — billing-address-block
   тоді взагалі не рендериться в DOM). Тому саме shipping-address-block — реальна робоча форма
   адреси, і ми лишаємо/підписуємо ЇЇ як "Платіжна адреса" (для доставки води адреса завжди
   одна), а не навпаки. */
.wp-block-woocommerce-checkout-billing-address-block {
	display: none !important;
}

.wp-block-woocommerce-checkout-shipping-address-block .wc-block-components-checkout-step__title {
	font-size: 0;
}

.wp-block-woocommerce-checkout-shipping-address-block .wc-block-components-checkout-step__title::after {
	content: 'Платіжна адреса';
	font-size: 18px;
}

/* Лейбл стоїть окремим рядком над полем (не "спливає" всередину), як у макеті —
   тому це flex-колонка у зворотному порядку (в розмітці WC спершу input, потім label). */
.wc-block-components-text-input {
	display: flex !important;
	flex-direction: column-reverse !important;
	gap: 6px !important;
	white-space: normal !important;
}

.wc-block-components-text-input input {
	border: 1px solid #E1E3F2 !important;
	background: var(--color-bg-light) !important;
	border-radius: 10px !important;
	font-family: var(--font-main) !important;
	font-size: 14px !important;
	padding: 14px 12px !important;
	box-shadow: none !important;
}

.wc-block-components-text-input input:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
	background: var(--color-white) !important;
}

.wc-block-components-text-input label {
	position: static !important;
	transform: none !important;
	max-width: none !important;
	overflow: visible !important;
	text-overflow: clip !important;
	font-family: var(--font-main);
	font-size: 13px;
	color: #9096A8;
}

.wc-blocks-components-select__container {
	background: var(--color-bg-light);
	border: 1px solid #E1E3F2;
	border-radius: 10px;
}

.wc-blocks-components-select__container:focus-within {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
	background: var(--color-white);
}

/* Картка збереженої адреси (з кнопкою "Редагувати") — без рамки, як звичайний текст. */
.wc-block-components-address-card {
	border: none !important;
	padding: 0 !important;
}

.wc-blocks-components-select__select {
	font-family: var(--font-main) !important;
	font-size: 14px;
	background: transparent;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.wc-blocks-components-select__label {
	color: #9096A8;
	font-family: var(--font-main);
}

.wc-block-components-notice-banner.is-error {
	background: var(--color-bg-light);
	border: none;
	border-left: 4px solid var(--color-accent);
	border-radius: 10px;
	color: var(--color-text);
}

.wc-block-components-notice-banner.is-error svg {
	fill: var(--color-accent);
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.wc-block-checkout__terms {
	font-size: 13px;
	color: #9096A8;
}

.wc-block-checkout__terms a {
	color: var(--color-primary);
	font-weight: 600;
}

.wc-block-components-checkout-order-summary__title-text {
	color: var(--color-primary);
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wc-block-components-checkout-order-summary__title-text::before {
	content: '';
	display: inline-block;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 4h2l2.4 12.4a2 2 0 002 1.6h8.4a2 2 0 002-1.6L21 8H6' stroke='%231B2781' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9' cy='21' r='1' fill='%231B2781'/%3E%3Ccircle cx='18' cy='21' r='1' fill='%231B2781'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Одна картка з тінню на весь сайдбар (підсумок + інфо-блоки разом), а не окремо на кожен. */
.wc-block-components-sidebar.wc-block-checkout__sidebar,
.wc-block-components-sidebar.wc-block-cart__sidebar {
	background: var(--color-white) !important;
	box-shadow: 0 4px 10px rgba(27, 39, 129, 0.08), 0 16px 40px rgba(27, 39, 129, 0.16) !important;
	border-radius: 16px !important;
	padding: 20px !important;
}

.wp-block-woocommerce-checkout-order-summary-block {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

/* Основна колонка форми — та сама картка з тінню, для єдиного вигляду з сайдбаром. */
.wc-block-checkout__main,
.wc-block-cart__main {
	background: var(--color-white) !important;
	box-shadow: 0 4px 10px rgba(27, 39, 129, 0.08), 0 16px 40px rgba(27, 39, 129, 0.16) !important;
	border-radius: 16px !important;
	padding: 28px !important;
}

/* Без проміжку тіні двох карток стикаються й "налазять" одна на одну. */
.wc-block-components-sidebar-layout {
	gap: 24px !important;
	flex-wrap: nowrap !important;
}

.wc-block-checkout__main,
.wc-block-cart__main {
	flex: 1 1 0 !important;
	min-width: 0 !important;
}

.wc-block-components-sidebar.wc-block-checkout__sidebar,
.wc-block-components-sidebar.wc-block-cart__sidebar {
	flex: 0 0 420px !important;
}

/* --- Бокові інфо-блоки під підсумком на сторінці оформлення --- */
.checkout-sidebar-extra {
	display: flex;
	flex-flow: column;
	gap: 16px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(27, 39, 129, 0.08);
}

.checkout-info-box {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.checkout-info-box .checkout-info-box__icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #E4E8FA;
	color: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(27, 39, 129, 0.12);
}

.checkout-info-box__icon svg {
	width: 24px;
	height: 24px;
}

.checkout-info-box strong {
	display: block;
	font-size: 14px;
	color: var(--color-primary);
	margin-bottom: 2px;
}

.checkout-info-box span {
	display: block;
	font-size: 13px;
	color: #9096A8;
}

.checkout-info-box a {
	display: inline-block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--color-accent);
}

@media (max-width: 768px) {
	table.shop_table thead {
		display: none;
	}
	table.shop_table td {
		display: block;
		border-bottom: none;
	}
	table.shop_table tr {
		display: block;
		border-bottom: 1px solid #EDEFF5;
		padding: 12px 0;
	}
}

/* --- Empty cart + "New in store" cross-sell block --- */
.wc-block-cart__empty-cart__title {
	font-family: var(--font-main);
	font-size: 22px;
	font-weight: 800;
	color: var(--color-primary);
	margin: 40px 0 24px;
}

.wc-block-cart__empty-cart__title::before,
.wc-block-cart__empty-cart__title::after {
	content: none !important;
	display: none !important;
}

.wp-block-woocommerce-empty-cart-block hr.wp-block-separator {
	border-color: #E1E3F2;
	max-width: 200px;
	margin: 0 auto 40px;
}

.wp-block-woocommerce-empty-cart-block h2.wp-block-heading:not(.wc-block-cart__empty-cart__title) {
	font-family: var(--font-main);
	font-size: 20px;
	font-weight: 800;
	color: var(--color-primary);
	margin-bottom: 24px !important;
}

.wc-block-grid__products,
ul.products.wc-block-grid__products {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

li.wc-block-grid__product {
	flex: 0 1 calc(25% - 16px);
	min-width: 0;
	background: var(--color-white);
	border: 1px solid rgba(27, 39, 129, 0.08);
	box-shadow: 0 8px 22px rgba(27, 39, 129, 0.07);
	border-radius: 16px;
	padding: 20px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

li.wc-block-grid__product:hover {
	box-shadow: 0 16px 32px rgba(27, 39, 129, 0.1);
	transform: translateY(-3px);
}

.wc-block-grid__product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 160px;
	margin-bottom: 16px;
}

.wc-block-grid__product-image img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	object-fit: contain;
}

.wc-block-grid__product-title {
	font-family: var(--font-main);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wc-block-grid__product-price {
	font-family: var(--font-main);
	font-size: 17px;
	font-weight: 800;
	color: var(--color-primary);
	margin-bottom: 14px;
}

.wc-block-grid__product-price .wc-block-components-product-price__regular {
	color: #B4B8C6;
	font-weight: 600;
	font-size: 13px;
}

.wc-block-grid__product-add-to-cart .add_to_cart_button,
.wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--color-primary) !important;
	color: var(--color-white) !important;
	border: none !important;
	border-radius: 50px !important;
	padding: 10px 16px !important;
	font-family: var(--font-main) !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	transition: background-color 0.2s ease;
}

.wc-block-grid__product-add-to-cart .add_to_cart_button:hover,
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
	background: var(--color-accent) !important;
}

@media (max-width: 1024px) {
	li.wc-block-grid__product {
		flex-basis: calc(50% - 11px);
	}
}

@media (max-width: 560px) {
	li.wc-block-grid__product {
		flex-basis: 100%;
	}
}

/* --- Checkout: список точок самовивозу ("Місця самовивозу") --- */
.wc-block-components-radio-control__option {
	border-radius: 10px !important;
	padding: 14px 14px 14px 44px !important;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.wc-block-components-radio-control__option-checked,
.wc-block-components-radio-control__option--checked-option-highlighted {
	background: #EEF1FF !important;
	box-shadow: 0 0 0 1.5px var(--color-primary) inset !important;
}

.wc-block-components-radio-control__label {
	font-family: var(--font-main) !important;
	color: var(--color-primary) !important;
	font-weight: 700 !important;
	font-size: 14px;
}

.wc-block-components-radio-control__secondary-label {
	font-family: var(--font-main) !important;
	color: #9096A8 !important;
	font-size: 12px;
}

.wc-block-components-radio-control__description {
	font-family: var(--font-main) !important;
	color: #9096A8 !important;
	font-size: 12px;
}

.wc-block-components-radio-control__input {
	accent-color: var(--color-primary);
}

/* --- Checkout: чекбокси та текстові поля нотаток ("Додати нотатку до замовлення") --- */
.wc-block-components-checkbox__input {
	border-color: #C7CBE0 !important;
}

.wc-block-components-checkbox__input:checked {
	background: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
}

.wc-block-components-checkbox__mark {
	fill: var(--color-white) !important;
}

.wc-block-components-checkbox__label {
	font-family: var(--font-main) !important;
	color: var(--color-primary) !important;
	font-size: 14px;
	font-weight: 600;
}

.wc-block-components-textarea {
	font-family: var(--font-main) !important;
	color: #2B2D2F !important;
	border: 1px solid #E1E3F2 !important;
	background: var(--color-bg-light) !important;
	border-radius: 10px !important;
	padding: 12px !important;
	box-shadow: none !important;
}

.wc-block-components-textarea:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
	background: var(--color-white) !important;
}

.wc-block-components-textarea::placeholder {
	color: #9096A8;
	opacity: 1;
}

/* --- Checkout: смуга переваг під формою --- */
.checkout-trust-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid rgba(27, 39, 129, 0.08);
}

.checkout-trust-strip__item {
	flex: 1 1 220px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.checkout-trust-strip__item .checkout-trust-strip__icon {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #E4E8FA;
	color: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(27, 39, 129, 0.12);
}

.checkout-trust-strip__icon svg {
	width: 26px;
	height: 26px;
}

.checkout-trust-strip__item strong {
	display: block;
	font-family: var(--font-main);
	font-size: 14px;
	color: var(--color-primary);
	margin-bottom: 2px;
}

.checkout-trust-strip__item span {
	display: block;
	font-family: var(--font-main);
	font-size: 13px;
	color: #9096A8;
}

/* Значок купона перед написом "Додати купони" (в макеті він є, у WC за замовчуванням — нема). */
.wc-block-components-panel__button::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 8px;
	vertical-align: -4px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 12.5V6a1 1 0 00-1-1h-6.5a1 1 0 00-.7.3l-8 8a1 1 0 000 1.4l6.5 6.5a1 1 0 001.4 0l8-8a1 1 0 00.3-.7z' stroke='%231B2781' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='15.5' cy='9.5' r='1.3' fill='%231B2781'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Кошик: блок супутніх товарів ("Вас може зацікавити…") --- */
.wp-block-woocommerce-cart-items-block .wp-block-woocommerce-product-collection {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid rgba(27, 39, 129, 0.08);
}

.wp-block-woocommerce-product-collection .wp-block-heading {
	font-family: var(--font-main);
	color: var(--color-primary);
	font-size: 18px;
	font-weight: 800;
}

.wc-block-product-template__responsive {
	gap: 16px !important;
}

.wc-block-product-template li.wc-block-product-template__item,
.wc-block-product-template > li {
	border: none;
	border-radius: 14px;
	padding: 14px;
	box-shadow: 0 4px 10px rgba(27, 39, 129, 0.06), 0 12px 28px rgba(27, 39, 129, 0.1);
}

.wp-block-woocommerce-product-collection .wp-block-post-title a {
	font-family: var(--font-main);
	color: var(--color-primary);
	font-weight: 700;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-price {
	font-family: var(--font-main);
	color: var(--color-primary);
	font-weight: 700;
}

.wp-block-woocommerce-product-collection .add_to_cart_button {
	background: var(--color-primary) !important;
	color: var(--color-white) !important;
	border-radius: 50px !important;
	font-family: var(--font-main) !important;
	font-weight: 700 !important;
	border: none !important;
}

.wp-block-woocommerce-product-collection .add_to_cart_button:hover {
	background: #14205E !important;
}

/* --- Кошик: видимий заголовок "Товари у кошику (N)" --- */
.cart-items-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-main);
	color: var(--color-primary);
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 20px;
}

.cart-items-heading__icon {
	display: flex;
	flex-shrink: 0;
}

.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block caption {
	display: none;
}

/* Зображення в блоці "Вас може зацікавити" переповнювало свій контейнер (wrapper 160px,
   а картинка тягнулась на всю натуральну ширину/висоту) і налазило на назву товару під ним. */
.wp-block-woocommerce-product-collection .wc-block-components-product-image {
	overflow: hidden;
	border-radius: 10px;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- Кошик: рядок товару — кількість/кошик праворуч від назви+ціни (не під ними).
   Назва/ціна/код лишаються у звичайному блочному потоці (без flex — щоб нічого не
   "розʼїжджалось"), а .quantity просто виймаємо праворуч через absolute-позиціювання. */
.wc-block-cart-item__wrap {
	position: relative;
	padding-right: 170px;
	min-height: 70px;
}

.wc-block-cart-item__quantity {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	display: flex !important;
	align-items: center;
	gap: 12px;
}

/* --- Кошик: рядок товару в таблиці --- */
.wc-block-cart-items__header-image span,
.wc-block-cart-items__header-product span,
.wc-block-cart-items__header-total span,
.wc-block-cart-items thead th {
	font-family: var(--font-main);
	color: #9096A8;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
}

.wc-block-cart-item__prices .wc-block-components-product-price__value {
	color: #9096A8;
}

.wc-block-cart-item__total .wc-block-components-product-price__value {
	font-weight: 700 !important;
	font-size: 15px !important;
	color: var(--color-primary) !important;
}

/* td.total має власний display:flex (від WC), через що vertical-align на table-row
   більше не діє — сама комірка не розтягується на висоту рядка і "висить" зверху.
   Повертаємо їй справжній display:table-cell, щоб vertical-align:middle знову працював. */
.wc-block-cart-item__total {
	display: table-cell !important;
	vertical-align: middle !important;
}

.wc-block-components-product-metadata__description {
	color: #9096A8 !important;
}

.wc-block-components-product-metadata__description p {
	color: #9096A8;
	font-size: 13px;
}

.wc-block-components-quantity-selector__input {
	color: var(--color-primary) !important;
	font-family: var(--font-main) !important;
}

.wc-block-components-quantity-selector__button {
	color: var(--color-primary) !important;
}

.wc-block-cart-item__remove-link {
	color: var(--color-primary) !important;
}

.wc-block-cart-item__remove-link svg {
	fill: var(--color-primary) !important;
}

.wc-block-cart-item__remove-link:hover {
	color: var(--color-accent) !important;
}

.wc-block-cart-item__remove-link:hover svg {
	fill: var(--color-accent) !important;
}

/* --- Кошик: блок "Разом вигідніше" (на всю ширину під двома картками) --- */
.cart-upsell {
	margin-top: 32px;
	padding: 28px;
	background: var(--color-white);
	border-radius: 16px;
	box-shadow: 0 4px 10px rgba(27, 39, 129, 0.08), 0 16px 40px rgba(27, 39, 129, 0.16);
}

.cart-upsell__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.cart-upsell__title {
	margin: 0 0 4px;
	font-family: var(--font-main);
	font-size: 20px;
	font-weight: 800;
	color: var(--color-primary);
}

.cart-upsell__subtitle {
	margin: 0;
	font-family: var(--font-main);
	font-size: 14px;
	color: #9096A8;
}

.cart-upsell__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-main);
	font-size: 13px;
	font-weight: 700;
	color: var(--color-primary);
	white-space: nowrap;
}

.cart-upsell__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.cart-upsell__item {
	display: flex;
	align-items: stretch;
	gap: 14px;
	padding: 10px;
	background: var(--color-white);
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(27, 39, 129, 0.08), 0 8px 20px rgba(27, 39, 129, 0.06);
}

.cart-upsell__image {
	flex: 0 0 110px;
	height: 110px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--color-bg-light);
}

.cart-upsell__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cart-upsell__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 4px 4px 4px 0;
}

.cart-upsell__name {
	font-family: var(--font-main);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-primary);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cart-upsell__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cart-upsell__price,
.cart-upsell__price .woocommerce-Price-amount {
	font-family: var(--font-main);
	font-size: 16px;
	font-weight: 800;
	color: var(--color-primary);
}

.cart-upsell__add {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-primary);
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.cart-upsell__add:hover {
	background: #14205E;
}

@media (max-width: 900px) {
	.cart-upsell__grid {
		grid-template-columns: 1fr;
	}
}

/* --- Кошик: доопрацювання карток "Разом вигідніше" --- */
.cart-upsell__item {
	align-items: center;
	gap: 16px;
	padding: 14px;
	border-radius: 16px;
	box-shadow: 0 2px 6px rgba(27, 39, 129, 0.06), 0 10px 28px rgba(27, 39, 129, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-upsell__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(27, 39, 129, 0.08), 0 16px 36px rgba(27, 39, 129, 0.18);
}

.cart-upsell__image {
	flex: 0 0 104px;
	width: 104px;
	height: 104px;
	border-radius: 12px;
	background: var(--color-bg-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-upsell__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
	mix-blend-mode: multiply;
}

.cart-upsell__info {
	align-self: stretch;
	gap: 10px;
	padding: 2px 0;
}

.cart-upsell__name {
	font-size: 14px;
	line-height: 1.35;
	-webkit-line-clamp: 2;
}

.cart-upsell__price,
.cart-upsell__price .woocommerce-Price-amount {
	font-size: 17px;
}

.cart-upsell__add {
	width: 40px;
	height: 40px;
	box-shadow: 0 6px 14px rgba(27, 39, 129, 0.28);
}

.cart-upsell {
	width: 75%;
}

@media (max-width: 1100px) {
	.cart-upsell {
		width: 100%;
	}
}

/* Блок на всю ширину; вужча лише назва товару (75% ширини інфо-колонки). */
.cart-upsell {
	width: 100%;
}

.cart-upsell__name {
	max-width: 75%;
}

/* --- Мобільна версія: кошик і чекаут --- */
@media (max-width: 900px) {
	.wc-block-components-sidebar-layout {
		flex-direction: column !important;
	}

	.wc-block-checkout__main,
	.wc-block-cart__main,
	.wc-block-components-sidebar.wc-block-checkout__sidebar,
	.wc-block-components-sidebar.wc-block-cart__sidebar {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}

	.wc-block-checkout__main,
	.wc-block-cart__main {
		padding: 18px !important;
	}

	.wc-block-components-sidebar.wc-block-checkout__sidebar,
	.wc-block-components-sidebar.wc-block-cart__sidebar {
		padding: 16px !important;
		position: static !important;
	}

	/* Рядок товару: фото | назва+ціна, а степер, кошик і сума — окремим рядком під ними */
	.wc-block-cart-items__row {
		display: grid !important;
		grid-template-columns: 72px 1fr;
		column-gap: 14px;
		row-gap: 8px;
		padding: 14px 0;
	}

	.wc-block-cart-item__image {
		grid-column: 1;
		grid-row: 1;
		display: block !important;
	}

	.wc-block-cart-item__product {
		display: contents !important;
	}

	.wc-block-cart-item__wrap {
		display: contents !important;
	}

	.wc-block-components-product-name,
	.wc-block-cart-item__prices,
	.wc-block-components-product-metadata {
		grid-column: 2;
	}

	.wc-block-cart-item__quantity {
		position: static !important;
		transform: none !important;
		grid-column: 1 / -1;
		justify-content: space-between;
	}

	.wc-block-cart-item__total {
		display: block !important;
		grid-column: 1 / -1;
		text-align: right;
	}

	.wc-block-cart-items__header {
		display: none;
	}

	.cart-upsell {
		padding: 18px;
	}

	.cart-upsell__head {
		flex-direction: column;
	}

	.cart-upsell__name {
		max-width: 100%;
	}

	.checkout-trust-strip {
		flex-direction: column;
	}
}

@media (max-width: 900px) {
	.wc-block-cart-item__image { grid-row: 1 / span 3 !important; align-self: start; }
	.wc-block-components-product-name { grid-row: 1 !important; }
	.wc-block-cart-item__prices { grid-row: 2 !important; }
	.wc-block-components-product-metadata { grid-row: 3 !important; }
	.wc-block-cart-item__quantity { grid-row: 4 !important; }
	.wc-block-cart-item__total { grid-row: 5 !important; }
}

@media (max-width: 900px) {
	.wc-block-cart-item__quantity { justify-content: flex-start !important; gap: 16px !important; }
}

/* Мобільна: смуга переваг стовпчиком — елементи без фіксованої висоти (flex-basis 220px
   у колонці розтягував кожен пункт на 220px по вертикалі). */
@media (max-width: 900px) {
	.checkout-trust-strip__item {
		flex: 0 0 auto;
	}
}

/* ===== Російська версія: тексти, які в UA-варіанті виводяться через CSS content ===== */
html[lang^="ru"] .wp-block-woocommerce-checkout-shipping-method-block .wc-block-components-checkout-step__title::after {
	content: 'Способ доставки';
}

html[lang^="ru"] .wc-block-checkout__shipping-method-option:nth-child(1)::after {
	content: 'По Киеву и пригороду в удобное для вас время';
}

html[lang^="ru"] .wc-block-checkout__shipping-method-option:nth-child(2)::after {
	content: 'Из наших пунктов продажи в Киеве';
}

html[lang^="ru"] .wc-block-checkout__shipping-method-option:nth-child(1) .wc-block-checkout__shipping-method-option-title::before {
	content: 'Доставка домой';
}

html[lang^="ru"] .wp-block-woocommerce-checkout-shipping-address-block .wc-block-components-checkout-step__title::after {
	content: 'Платёжный адрес';
}
