/* ICS-MARKET WooCommerce cart and checkout styling */
.woocommerce-page .site-main,
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
	padding-bottom: 72px;
}

.woocommerce-page .entry-content,
.woocommerce-page .woocommerce,
.woocommerce-page .woocommerce-notices-wrapper {
	max-width: 1376px;
	margin-left: auto;
	margin-right: auto;
}

.woocommerce-page .entry-content {
	padding: 32px 24px 0;
}

.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3 {
	color: #104074;
	font-family: Manrope-Bold, sans-serif;
}

.woocommerce-page h1 {
	font-size: 48px;
	line-height: 1.2;
	margin: 24px 0 40px;
}

.woocommerce-page .button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce-page a.button,
.woocommerce-page .checkout-button,
.woocommerce-page #place_order {
	position: relative;
	min-height: 59px;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #ffd700 !important;
	color: #104074 !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	box-shadow: none !important;
	transition: background-color .2s ease;
}

.woocommerce-page .button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page .checkout-button:hover,
.woocommerce-page #place_order:hover {
	background: #e6c300 !important;
	color: #104074 !important;
}

.woocommerce-page .button:after,
.woocommerce-page #place_order:after {
	content: '';
	position: absolute;
	right: -6px;
	bottom: -9px;
	width: 14px;
	height: 24px;
	background: #fff;
	transform: rotateZ(45deg);
}

.ics-single-add-to-cart {
	margin: 0;
}

.ics-single-add-to-cart .main_btn {
	width: 177px;
	margin: 0;
	cursor: pointer;
}

.ics-header-cart {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 18px;
	color: #104074 !important;
	text-decoration: none;
	white-space: nowrap;
}

.ics-header-cart:hover {
	color: #104074 !important;
}

.ics-cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: #104074;
}

.ics-cart-icon svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.ics-cart-count {
	display: inline-flex;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ffd700;
	color: #104074;
	font-size: 13px;
	font-weight: 700;
}

.ics-cart-notice {
	max-width: 480px;
	margin-top: 16px;
	padding: 12px 16px;
	border-left: 4px solid #104074;
	background: #f9f9f9;
	color: #104074;
	font-size: 15px;
}

.ics-cart-notice.is-error {
	border-left-color: #b42318;
	color: #b42318;
}

.ics-single-add-to-cart.is-loading .main_btn,
.ics-single-add-to-cart .main_btn:disabled {
	opacity: .65;
	cursor: wait;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
	padding: 0 24px;
}

.woocommerce table.shop_table {
	border: 1px solid #e4e4e4;
	border-radius: 0;
	border-collapse: collapse;
	color: #333;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 18px 16px;
	border-color: #e4e4e4;
	vertical-align: middle;
}

.woocommerce table.shop_table th {
	background: #f9f9f9;
	color: #104074;
	font-family: Manrope-Bold, sans-serif;
}

.woocommerce table.shop_table td.product-name a,
.woocommerce table.shop_table td.product-remove a {
	color: #104074 !important;
}

.woocommerce .quantity .qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection--single {
	min-height: 50px;
	width: 100%;
	border: 1px solid #d7dfe6;
	border-radius: 0;
	background: #f9f9f9;
	box-sizing: border-box;
}

.woocommerce .quantity .qty {
	width: 80px;
	padding: 8px;
}

.woocommerce .cart-collaterals {
	margin-top: 40px;
}

.woocommerce-cart .cart-collaterals .woocommerce-shipping-totals.shipping {
	display: none;
}

.ics-product-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.woocommerce-cart .cart-collaterals .cart-subtotal,
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal,
.wc-block-components-totals-item.wc-block-components-totals-item__subtotal {
	display: none;
}

@media (min-width: 992px) {
	.woocommerce-cart .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
		gap: 40px;
		align-items: start;
	}

	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
	.woocommerce-cart .woocommerce > .woocommerce-message,
	.woocommerce-cart .woocommerce > .woocommerce-info,
	.woocommerce-cart .woocommerce > .woocommerce-error {
		grid-column: 1 / -1;
	}

	.woocommerce-cart .woocommerce-cart-form {
		grid-column: 1;
		margin: 0;
	}

	.woocommerce-cart .cart-collaterals {
		grid-column: 2;
		margin: 0;
		width: auto;
		float: none;
	}

	.woocommerce-cart .cart-collaterals .cart_totals {
		width: auto;
		float: none;
	}
}

@media (max-width: 991px) {
	.woocommerce-cart .cart-collaterals .cart_totals {
		width: 100%;
		box-sizing: border-box;
	}
}

.woocommerce .cart_totals {
	width: 42%;
	padding: 28px;
	background: #f9f9f9;
}

.woocommerce .cart_totals h2,
.woocommerce-checkout #order_review_heading {
	margin-top: 0;
	margin-bottom: 24px;
	font-size: 28px;
}

.woocommerce .wc-proceed-to-checkout {
	padding-bottom: 0;
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

.woocommerce form .form-row {
	margin-bottom: 18px;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 7px;
	color: #104074;
	font-weight: 600;
}

.woocommerce form .form-row label .required {
	color: #104074;
}

.woocommerce-checkout #customer_details {
	width: 58%;
	padding: 28px;
	background: #f9f9f9;
	box-sizing: border-box;
}

.woocommerce-checkout #order_review_heading {
	width: 42%;
	margin-left: auto;
	padding: 28px 28px 0;
	box-sizing: border-box;
}

.woocommerce-checkout #order_review {
	width: 42%;
	margin-left: auto;
	padding: 0 28px 28px;
	background: #f9f9f9;
	box-sizing: border-box;
}

.woocommerce-checkout #payment {
	margin-top: 24px;
	border-radius: 0;
	background: #fff;
}

/* Classic checkout is used for Nova Poshta compatibility. */
.woocommerce-checkout form.checkout {
	display: block;
}

.woocommerce-checkout form.checkout.ics-classic-checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr);
	gap: 48px;
	align-items: start;
}

.woocommerce-checkout form.checkout.ics-classic-checkout-layout #customer_details {
	grid-column: 1;
	grid-row: 1;
	float: none;
	width: auto;
	margin: 0;
	padding: 32px;
}

.woocommerce-checkout form.checkout #customer_details .col-1,
.woocommerce-checkout form.checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

.woocommerce-checkout form.checkout #customer_details .woocommerce-shipping-fields {
	display: none;
}

.woocommerce-checkout form.checkout.ics-classic-checkout-layout .ics-checkout-sidebar {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.woocommerce-checkout form.checkout.ics-classic-checkout-layout #order_review_heading {
	float: none;
	width: auto;
	margin: 0;
	padding: 0 28px 20px;
}

.woocommerce-checkout form.checkout.ics-classic-checkout-layout #order_review {
	float: none;
	width: auto;
	margin: 0;
	padding: 28px;
}

.woocommerce-checkout form.checkout .woocommerce-billing-fields h3,
.woocommerce-checkout form.checkout #order_review_heading,
.woocommerce-checkout form.checkout #wcus-billing-fields h3 {
	margin-top: 0;
	color: #104074;
	font-family: Manrope-Bold, sans-serif;
	font-size: 28px;
	line-height: 1.25;
}

.woocommerce-checkout form.checkout .form-row input.input-text,
.woocommerce-checkout form.checkout .form-row textarea,
.woocommerce-checkout form.checkout .form-row select,
.woocommerce-checkout form.checkout .form-row .select2-container .select2-selection--single,
.woocommerce-checkout form.checkout #wcus-billing-fields select {
	min-height: 50px;
	border: 1px solid #d7dfe6;
	border-radius: 0;
	background: #fff;
	box-sizing: border-box;
}

.woocommerce-checkout form.checkout .form-row textarea {
	min-height: 96px;
	padding: 12px 14px;
}

.woocommerce-checkout form.checkout .form-row label {
	margin-bottom: 7px;
	color: #104074;
	font-size: 15px;
	font-weight: 600;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead .product-total {
	font-size: 0;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead .product-total::after {
	content: 'Вартість';
	font-size: 14px;
}

.woocommerce-checkout #customer_details #wcus-billing-fields {
	margin: 0 0 24px;
	padding: 0 0 24px;
	border-bottom: 1px solid #d7dfe6;
}

.woocommerce-checkout #customer_details #wcus-billing-fields .wc-ukr-shipping-np-fields {
	padding-top: 0;
}

.woocommerce-checkout #ics-checkout-shipping-methods {
	margin: 0 0 24px;
}

.woocommerce-checkout #ics-checkout-shipping-methods .shop_table {
	width: 100%;
	margin: 0;
	background: #fff;
}

.woocommerce-checkout #ics-checkout-shipping-methods th,
.woocommerce-checkout #ics-checkout-shipping-methods td {
	padding: 16px;
}

.woocommerce-checkout #ics-checkout-shipping-methods .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-checkout #ics-checkout-shipping-methods .woocommerce-shipping-methods li + li {
	margin-top: 10px;
}

.woocommerce-checkout #ics-checkout-shipping-methods .woocommerce-shipping-methods li {
	display: flex;
	align-items: center;
	min-height: 52px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #d7dfe6;
	background: #f9f9f9;
	box-sizing: border-box;
	transition: border-color .2s ease, background-color .2s ease;
}

.woocommerce-checkout #ics-checkout-shipping-methods .woocommerce-shipping-methods input[type='radio'] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0 12px 0 0;
	border: 2px solid #104074;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.woocommerce-checkout #ics-checkout-shipping-methods .woocommerce-shipping-methods input[type='radio']:checked {
	border-color: #104074;
	background: #ffd700;
	box-shadow: inset 0 0 0 4px #fff;
}

.woocommerce-checkout #ics-checkout-shipping-methods .woocommerce-shipping-methods label {
	margin: 0;
	color: #104074;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.woocommerce-checkout #ics-checkout-shipping-methods .woocommerce-shipping-methods li:has(input[type='radio']:checked) {
	border-color: #104074;
	background: #f4f8fb;
}

.woocommerce-checkout #place_order {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top: 3px solid #104074;
	border-radius: 0;
	background: #f9f9f9;
	color: #333;
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: #104074;
}

.woocommerce-checkout .woocommerce-error {
	display: none !important;
}

.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
	display: none !important;
}

/* Order received */
.woocommerce-order-received .site-main {
	padding-bottom: 72px;
}

.woocommerce-order-received .woocommerce {
	max-width: 1064px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.woocommerce-order-received .title_page {
	margin-bottom: 48px;
	text-align: center;
}

.woocommerce-order-received .woocommerce-thankyou-order-received {
	margin: 0 0 24px;
	padding: 18px 22px;
	border-left: 4px solid #ffd700;
	background: #f4f8fb;
	color: #104074;
	font-size: 16px;
}

.woocommerce-order-received ul.woocommerce-thankyou-order-details {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0 0 38px;
	padding: 0;
	list-style: none;
	border: 1px solid #d7dfe6;
	background: #fff;
}

.woocommerce-order-received ul.woocommerce-thankyou-order-details li {
	float: none;
	width: auto;
	margin: 0;
	padding: 18px 20px;
	border-right: 1px solid #d7dfe6;
	color: #5b6875;
	font-size: 11px;
	line-height: 1.45;
	text-transform: uppercase;
}

.woocommerce-order-received ul.woocommerce-thankyou-order-details li:last-child {
	border-right: 0;
}

.woocommerce-order-received ul.woocommerce-thankyou-order-details strong {
	display: block;
	margin-top: 6px;
	color: #104074;
	font-family: Manrope-Bold, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	text-transform: none;
	word-break: break-word;
}

.woocommerce-order-received .woocommerce-order > p:not(.woocommerce-thankyou-order-received) {
	margin: 0 0 40px;
	padding: 16px 20px;
	border: 1px solid #e4e4e4;
	background: #fff;
	color: #333;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
	margin-top: 44px;
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
	margin: 0 0 18px;
	color: #104074;
	font-family: Manrope-Bold, sans-serif;
	font-size: 26px;
}

.woocommerce-order-received .woocommerce-order-details table.shop_table {
	margin: 0;
	border: 1px solid #d7dfe6;
	border-collapse: collapse;
	background: #fff;
}

.woocommerce-order-received .woocommerce-order-details table.shop_table th,
.woocommerce-order-received .woocommerce-order-details table.shop_table td {
	padding: 18px 20px;
	border-color: #d7dfe6;
}

.woocommerce-order-received .woocommerce-order-details table.shop_table thead th {
	background: #f4f8fb;
	color: #104074;
}

.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot th {
	background: #f9f9f9;
	color: #104074;
}

.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot tr:last-child th,
.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot tr:last-child td {
	background: #104074;
	color: #fff;
	font-family: Manrope-Bold, sans-serif;
}

.woocommerce-order-received .woocommerce-customer-details address {
	padding: 22px;
	border: 1px solid #d7dfe6;
	background: #f9f9f9;
	font-style: normal;
	line-height: 1.7;
}

/* WooCommerce block cart and checkout */
.wc-block-cart,
.wc-block-checkout {
	max-width: 1376px;
	margin: 0 auto;
	color: #333;
}

.wc-block-cart .wc-block-components-product-name,
.wc-block-cart .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-order-summary__title {
	color: #104074;
	font-family: Manrope-Bold, sans-serif;
}

.wc-block-cart .wc-block-cart-items,
.wc-block-cart .wc-block-components-sidebar,
.wc-block-checkout .wc-block-components-checkout-step,
.wc-block-checkout .wc-block-components-order-summary {
	border-color: #e4e4e4;
}

.wc-block-cart .wc-block-cart-items__row,
.wc-block-checkout .wc-block-components-checkout-step,
.wc-block-checkout .wc-block-components-order-summary {
	padding: 24px;
	background: #f9f9f9;
}

.wc-block-cart .wc-block-cart-item__image {
	width: 150px;
	min-width: 150px;
	vertical-align: middle;
}

.wc-block-cart .wc-block-cart-item__image img {
	display: block;
	width: 120px !important;
	height: 120px !important;
	max-width: 100%;
	object-fit: contain;
	image-rendering: auto;
}

.wc-block-cart .wc-block-components-product-price,
.wc-block-cart .wc-block-components-quantity-selector,
.wc-block-checkout .wc-block-components-formatted-money-amount {
	color: #333;
}

.wc-block-cart .wc-block-components-quantity-selector,
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control__input,
.wc-block-checkout .wc-block-components-select select {
	border: 1px solid #d7dfe6;
	border-radius: 0;
	background: #fff;
}

.wc-block-cart .wc-block-cart__submit-button,
.wc-block-cart .wc-block-components-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-button {
	min-height: 59px;
	border: 0;
	border-radius: 0;
	background: #ffd700;
	color: #104074;
	font-size: 16px;
	font-weight: 400;
	box-shadow: none;
}

.wc-block-cart .wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-components-button:hover,
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-components-button:hover {
	background: #e6c300;
	color: #104074;
}

.wc-block-cart .wc-block-components-totals-wrapper,
.wc-block-checkout .wc-block-components-order-summary {
	padding: 24px;
	background: #f9f9f9;
}

.wc-block-checkout .wc-block-components-address-form,
.wc-block-checkout .wc-block-components-checkout-step__content {
	color: #333;
}

.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-combobox label,
.wc-block-checkout .wc-block-components-select label {
	color: #104074;
	font-weight: 600;
}

/* Checkout uses Ukraine only; these fields remain available in order data but are not shown to customers. */
.wc-block-checkout .wc-block-components-address-form__country,
.wc-block-checkout .wc-block-components-address-form__postcode,
.wc-block-checkout .wc-block-components-address-form__state:has(#shipping-state),
.wc-block-checkout #shipping-state,
.wc-block-checkout .wc-block-checkout__use-address-for-billing,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_country_field {
	display: none !important;
}

.wc-block-checkout .wc-block-checkout__shipping-option .wc-block-components-checkout-step__heading-container {
	display: none !important;
}

@media (max-width: 940px) {
	.ics-header-cart { margin-left: 8px; }
	.woocommerce-page h1 { font-size: 36px; }
	.woocommerce .cart_totals,
	.woocommerce-checkout #customer_details,
	.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout #order_review { width: 100%; margin-left: 0; }
	.woocommerce-checkout #order_review_heading { margin-top: 32px; }
	.woocommerce-checkout form.checkout.ics-classic-checkout-layout { display: block; }
	.woocommerce-checkout form.checkout.ics-classic-checkout-layout #customer_details,
	.woocommerce-checkout form.checkout.ics-classic-checkout-layout #order_review_heading,
	.woocommerce-checkout form.checkout.ics-classic-checkout-layout #order_review { float: none; width: 100%; }
	.woocommerce-checkout form.checkout.ics-classic-checkout-layout #customer_details { margin-bottom: 32px; }
	.woocommerce table.shop_table { font-size: 14px; }
	.woocommerce-order-received .title_page { margin-bottom: 28px; }
	.woocommerce-order-received ul.woocommerce-thankyou-order-details { grid-template-columns: 1fr 1fr; }
	.woocommerce-order-received ul.woocommerce-thankyou-order-details li { border-bottom: 1px solid #d7dfe6; }
	.woocommerce-order-received ul.woocommerce-thankyou-order-details li:nth-child(even) { border-right: 0; }
	.woocommerce-order-received .woocommerce-order-details__title,
	.woocommerce-order-received .woocommerce-column__title { font-size: 22px; }
}

@media (max-width: 520px) {
	.woocommerce-order-received .woocommerce { padding: 0 16px; }
	.woocommerce-order-received ul.woocommerce-thankyou-order-details { grid-template-columns: 1fr; }
	.woocommerce-order-received ul.woocommerce-thankyou-order-details li { border-right: 0; }
	.woocommerce-order-received .woocommerce-order-details table.shop_table th,
	.woocommerce-order-received .woocommerce-order-details table.shop_table td { padding: 14px 12px; }
}
