/* WooCommerce Block Cart and Checkout, scoped to their pages only. */
body.woocommerce-checkout:not(.woocommerce-order-received) {
	--piar-checkout-field-height: 52px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .site-main > article {
	width: min(calc(100% - 40px), var(--piar-container));
	margin-inline: auto;
	padding: 72px 0 96px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .site-main > article > h1 {
	margin: 0 0 40px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wp-block-woocommerce-checkout,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout {
	max-width: none !important;
	margin: 0;
	padding: 0;
	font-family: var(--type-font-primary);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-sidebar-layout {
	column-gap: 48px;
	margin-bottom: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__main {
	flex: 1 1 0;
	width: auto;
	padding-right: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__sidebar {
	flex: 0 0 480px;
	width: 480px;
	padding-left: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-step {
	margin-bottom: 40px;
	padding: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-step__heading {
	margin-bottom: 20px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-step__title,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-title {
	font-family: var(--type-font-primary);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-step__description,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-step__container,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-formatted-money-amount,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-product-name,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-product-metadata,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-totals-item,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-totals-footer-item {
	font-family: var(--type-font-primary);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-text-input input,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-combobox .components-combobox-control__input,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-form .wc-block-components-textarea,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-address-form select,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-select .wc-block-components-select__select {
	min-height: var(--piar-checkout-field-height);
	border: 1px solid rgba(21, 23, 26, 0.18);
	border-radius: var(--piar-radius-small);
	background: var(--piar-color-white);
	color: var(--piar-color-ink);
	font-family: var(--type-font-primary);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	box-shadow: none;
	transition: border-color var(--piar-motion-duration-ui) ease,
		box-shadow var(--piar-motion-duration-ui) ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-text-input input,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-combobox .components-combobox-control__input {
	padding-right: 16px;
	padding-left: 16px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-form .wc-block-components-textarea {
	min-height: 120px;
	padding: 16px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-text-input input:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-combobox .components-combobox-control__input:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-form .wc-block-components-textarea:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-address-form select:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-select .wc-block-components-select__select:focus {
	border-color: var(--piar-color-brand);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(247, 27, 64, 0.12);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-text-input label,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-combobox label,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkbox__label,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-radio-control__label {
	font-family: var(--type-font-primary);
	font-weight: 500;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkbox__input,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-radio-control__input {
	accent-color: var(--piar-color-brand);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-radio-control__option-checked-option-highlighted::before {
	background: var(--piar-color-brand);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-order-summary__content {
	border: 1px solid var(--piar-color-line);
	border-radius: var(--piar-radius-medium);
	background: var(--piar-color-surface);
	overflow: hidden;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-order-summary__title {
	border-radius: var(--piar-radius-medium);
	background: var(--piar-color-surface);
	font-family: var(--type-font-primary);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-order-summary__title-text,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-order-summary__title-price {
	font-family: var(--type-font-primary);
	font-size: 18px;
	font-weight: 700;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-totals-wrapper {
	border-color: var(--piar-color-line);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-totals-item {
	padding: 16px 20px;
	font-size: 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-totals-footer-item {
	padding: 20px;
	font-size: 18px;
	font-weight: 800;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-place-order-button {
	min-height: 52px;
	border: 0;
	border-radius: var(--piar-radius-small);
	background: var(--piar-color-brand);
	color: var(--piar-color-white);
	font-family: var(--type-font-primary);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	box-shadow: none;
	transition: background-color var(--piar-motion-duration-ui) ease,
		transform var(--piar-motion-duration-ui) ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-place-order-button:focus-visible {
	background: #f83d5d;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-place-order-button:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(247, 27, 64, 0.18);
}

/* The native summary remains as a fallback until the registered block mounts. */
body.woocommerce-checkout.piar-checkout-controls-ready .wp-block-woocommerce-checkout-order-summary-cart-items-block {
	display: none;
}

.wp-block-piar-checkout-service-controls {
	border-top: 1px solid var(--piar-color-line);
}

.piar-checkout-services {
	display: grid;
}

.piar-checkout-service {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 14px;
	padding: 20px;
	border-bottom: 1px solid var(--piar-color-line);
	transition: opacity var(--piar-motion-duration-ui) ease;
}

.piar-checkout-service.is-updating {
	opacity: 0.55;
	pointer-events: none;
}

.piar-checkout-service__image {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
}

.piar-checkout-service__body {
	min-width: 0;
}

.piar-checkout-service__heading,
.piar-checkout-service__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.piar-checkout-service__name {
	min-width: 0;
	margin: 0;
	font-family: var(--type-font-primary);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.piar-checkout-service__variations {
	display: block;
	margin-top: 4px;
	color: var(--piar-color-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.piar-checkout-service__variation {
	display: block;
}

.piar-checkout-service__remove {
	display: inline-flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--piar-color-muted);
	line-height: 1;
	cursor: pointer;
}

.piar-checkout-service__remove svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.piar-checkout-service__remove:hover,
.piar-checkout-service__remove:focus-visible {
	background: var(--piar-color-surface-accent);
	color: var(--piar-color-brand);
	outline: 0;
}

.piar-checkout-service__description {
	display: -webkit-box;
	margin: 6px 0 14px;
	overflow: hidden;
	color: var(--piar-color-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.piar-checkout-service__quantity {
	display: inline-grid;
	flex: 0 0 100px;
	grid-template-columns: 32px 34px 32px;
	align-items: center;
	height: 32px;
	border: 1px solid rgba(21, 23, 26, 0.14);
	border-radius: 8px;
	background: var(--piar-color-white);
	overflow: hidden;
}

.piar-checkout-service__quantity button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--piar-color-ink);
	font-family: var(--type-font-primary);
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.piar-checkout-service__quantity button:hover:not(:disabled),
.piar-checkout-service__quantity button:focus-visible:not(:disabled) {
	background: var(--piar-color-surface-accent);
	color: var(--piar-color-brand);
	outline: 0;
}

.piar-checkout-service__quantity button:disabled,
.piar-checkout-service__remove:disabled {
	opacity: 0.35;
	cursor: default;
}

.piar-checkout-service__quantity-value {
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.piar-checkout-service__price {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	white-space: nowrap;
}

.piar-checkout-services__error {
	margin: 0;
	padding: 12px 20px;
	background: var(--piar-color-surface-accent);
	color: var(--piar-color-brand-deep);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

.piar-checkout-services--empty {
	gap: 16px;
	justify-items: start;
	padding: 28px 20px;
}

.piar-checkout-services__empty-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.piar-checkout-services__catalog-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--piar-radius-small);
	background: var(--piar-color-brand);
	color: var(--piar-color-white);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.piar-checkout-services__catalog-link:hover,
.piar-checkout-services__catalog-link:focus-visible {
	background: #f83d5d;
	color: var(--piar-color-white);
	outline: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout-empty {
	max-width: 720px;
	margin: 0 auto;
	padding: 56px 32px;
	border-radius: var(--piar-radius-medium);
	background: var(--piar-color-surface);
	text-align: center;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout-empty h2 {
	margin: 0 0 14px;
	font-size: var(--type-h3-size);
	line-height: var(--type-h3-leading);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout-empty p {
	margin: 0 auto 24px;
	color: var(--piar-color-muted);
	font-size: 16px;
	line-height: 1.6;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout-empty .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--piar-radius-small);
	background: var(--piar-color-brand);
	color: var(--piar-color-white);
	font-family: var(--type-font-primary);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout-empty .wp-block-button__link:hover,
body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout-empty .wp-block-button__link:focus-visible {
	background: #f83d5d;
	outline: 0;
}

/* The digital-shop stylesheet hides this row; Checkout keeps it visible and live. */
body.ds-digital-shop-checkout.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-totals-item.wc-block-components-totals-subtotal {
	display: flex !important;
}

@media (min-width: 901px) {
	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
		padding-top: 0;
		padding-bottom: 0;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__sidebar .wc-block-components-totals-coupon {
		padding: 12px 18px;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__sidebar .wc-block-components-totals-item {
		min-height: 0;
		padding: 12px 18px;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__sidebar .wc-block-components-totals-footer-item {
		padding: 16px 18px;
	}

	.piar-checkout-service {
		gap: 12px;
		padding: 16px 18px;
	}

	.piar-checkout-service--no-image {
		grid-template-columns: minmax(0, 1fr);
	}

	.piar-checkout-service__body {
		display: grid;
		grid-template-areas:
			"name name name"
			"description description description"
			"quantity remove price";
		grid-template-columns: 100px 32px minmax(0, 1fr);
		gap: 10px;
		align-items: center;
	}

	.piar-checkout-service__heading,
	.piar-checkout-service__footer {
		display: contents;
	}

	.piar-checkout-service__name {
		grid-area: name;
	}

	.piar-checkout-service__description {
		grid-area: description;
		margin: -4px 0 2px;
		-webkit-line-clamp: 1;
	}

	.piar-checkout-service__quantity {
		grid-area: quantity;
	}

	.piar-checkout-service__remove {
		grid-area: remove;
		width: 32px;
		height: 32px;
		border-radius: 6px;
	}

	.piar-checkout-service__price {
		grid-area: price;
		justify-self: end;
	}
}

/* WooCommerce Block Cart. */
body.woocommerce-cart .site-main > article {
	width: min(calc(100% - 40px), var(--piar-container));
	margin-inline: auto;
	padding: 72px 0 96px;
}

body.woocommerce-cart .site-main > article > h1 {
	margin: 0 0 40px;
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
	max-width: none !important;
	margin: 0;
	padding: 0;
	font-family: var(--type-font-primary);
}

body.woocommerce-cart .wc-block-components-sidebar-layout {
	column-gap: 48px;
	margin-bottom: 0;
}

body.woocommerce-cart .wc-block-cart__main {
	flex: 1 1 0;
	width: auto;
	padding-right: 0;
}

body.woocommerce-cart .wc-block-cart__sidebar {
	flex: 0 0 420px;
	width: 420px;
	padding-left: 0;
}

body.woocommerce-cart .wc-block-cart-items {
	font-family: var(--type-font-primary);
}

body.woocommerce-cart .wc-block-cart-items__row {
	border-color: var(--piar-color-line);
}

body.woocommerce-cart .wc-block-components-product-name {
	color: var(--piar-color-ink);
	font-family: var(--type-font-primary);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

body.woocommerce-cart .wc-block-components-product-metadata {
	margin-top: 6px;
	color: var(--piar-color-muted);
	font-family: var(--type-font-primary);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
}

body.woocommerce-cart .wc-block-components-product-metadata__description p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
	display: inline-grid;
	grid-template-columns: 32px 34px 32px;
	width: 100px;
	height: 32px;
	border: 1px solid rgba(21, 23, 26, 0.14);
	border-radius: 8px;
	background: var(--piar-color-white);
	overflow: hidden;
}

body.woocommerce-cart .wc-block-components-quantity-selector::after {
	display: none;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input {
	width: 34px;
	min-width: 0;
	height: 30px;
	padding: 0;
	border: 0;
	font-family: var(--type-font-primary);
	font-size: 14px;
	font-weight: 700;
	line-height: 30px;
	box-shadow: none;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
	width: 32px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--piar-color-ink);
	font-family: var(--type-font-primary);
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:hover:not(:disabled),
body.woocommerce-cart .wc-block-components-quantity-selector__button:focus-visible:not(:disabled) {
	background: var(--piar-color-surface-accent);
	color: var(--piar-color-brand);
	outline: 0;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: 8px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--piar-color-muted);
}

body.woocommerce-cart .wc-block-cart-item__remove-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover,
body.woocommerce-cart .wc-block-cart-item__remove-link:focus-visible {
	background: var(--piar-color-surface-accent);
	color: var(--piar-color-brand);
	outline: 0;
}

body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
	border: 1px solid var(--piar-color-line);
	border-radius: var(--piar-radius-medium);
	background: var(--piar-color-surface);
	overflow: hidden;
}

body.woocommerce-cart .wc-block-cart__totals-title {
	padding: 18px;
	font-family: var(--type-font-primary);
	font-size: 18px;
	font-weight: 700;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
	padding-top: 0;
	padding-bottom: 0;
	border-color: var(--piar-color-line);
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon {
	padding: 12px 18px;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item {
	min-height: 0;
	padding: 14px 18px;
	font-family: var(--type-font-primary);
	font-size: 14px;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item {
	font-size: 18px;
	font-weight: 800;
}

body.woocommerce-cart .wc-block-cart__submit-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin-top: 20px;
	border: 0;
	border-radius: var(--piar-radius-small);
	background: var(--piar-color-brand);
	color: var(--piar-color-white);
	font-family: var(--type-font-primary);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:focus-visible {
	background: #f83d5d;
	color: var(--piar-color-white);
	outline: 0;
}

@media (max-width: 900px) {
	body.woocommerce-checkout:not(.woocommerce-order-received) .site-main > article {
		width: min(calc(100% - 40px), var(--piar-container));
		padding: 48px 0 64px;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .site-main > article > h1 {
		margin-bottom: 28px;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-sidebar-layout {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		row-gap: 24px;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__main,
	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__sidebar {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		padding: 0;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout__sidebar {
		display: none;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-step {
		margin-bottom: 32px;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-step__title,
	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-title {
		font-size: 20px;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-components-checkout-place-order-button {
		width: 100%;
	}

	.piar-checkout-service {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 12px;
		padding: 16px 0;
	}

	.piar-checkout-service--no-image {
		grid-template-columns: minmax(0, 1fr);
	}

	.piar-checkout-service__image {
		width: 48px;
		height: 48px;
	}

	.piar-checkout-service__body {
		display: grid;
		grid-template-areas:
			"name name name"
			"description description description"
			"quantity remove price";
		grid-template-columns: 100px auto minmax(0, 1fr);
		gap: 10px;
		align-items: center;
	}

	.piar-checkout-service__heading,
	.piar-checkout-service__footer {
		display: contents;
	}

	.piar-checkout-service__name {
		grid-area: name;
	}

	.piar-checkout-service__description {
		grid-area: description;
		margin: -4px 0 2px;
	}

	.piar-checkout-service__quantity {
		grid-area: quantity;
	}

	.piar-checkout-service__remove {
		grid-area: remove;
		width: 32px;
		height: 32px;
		padding: 0;
		border-radius: 6px;
	}

	.piar-checkout-service__price {
		grid-area: price;
		justify-self: end;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .checkout-order-summary-block-fill {
		border: 0;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .checkout-order-summary-block-fill-wrapper {
		padding-bottom: 24px;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .checkout-order-summary-block-fill .wp-block-piar-checkout-service-controls {
		border-top: 0;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .checkout-order-summary-block-fill .wc-block-components-totals-wrapper {
		padding-top: 0;
		padding-bottom: 0;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .checkout-order-summary-block-fill .wc-block-components-totals-coupon {
		padding: 12px 0;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .checkout-order-summary-block-fill .wc-block-components-totals-item {
		min-height: 0;
		padding: 12px 0;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .checkout-order-summary-block-fill .wc-block-components-totals-footer-item {
		padding: 16px 0;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout-empty {
		padding: 40px 20px;
	}

	body.woocommerce-checkout:not(.woocommerce-order-received) .wc-block-checkout-empty h2 {
		font-size: var(--type-h3-size-mobile);
	}

	body.woocommerce-cart .site-main > article {
		width: min(calc(100% - 40px), var(--piar-container));
		padding: 48px 0 64px;
	}

	body.woocommerce-cart .site-main > article > h1 {
		margin-bottom: 28px;
	}

	body.woocommerce-cart .wc-block-components-sidebar-layout {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		row-gap: 24px;
	}

	body.woocommerce-cart .wc-block-cart__main,
	body.woocommerce-cart .wc-block-cart__sidebar {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		padding: 0;
	}

	body.woocommerce-cart .wc-block-cart-items__row {
		grid-template-columns: 56px minmax(0, 1fr) auto !important;
		padding: 16px 0;
	}

	body.woocommerce-cart .wc-block-cart-item__image {
		grid-column: 1 !important;
		padding-right: 8px;
	}

	body.woocommerce-cart .wc-block-cart-item__image img {
		width: 48px;
		height: 48px;
		border-radius: 8px;
		object-fit: cover;
	}

	body.woocommerce-cart .wc-block-cart-item__product {
		grid-column: 2 !important;
		min-width: 0;
	}

	body.woocommerce-cart .wc-block-cart-item__total {
		grid-column: 3 !important;
		padding-left: 10px;
	}

	body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item {
		padding: 12px 16px;
	}

	body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon {
		padding: 12px 16px;
	}

	body.woocommerce-cart .wc-block-cart__submit-button {
		width: 100%;
	}
}

@media (max-width: 374px) {
	body.woocommerce-checkout:not(.woocommerce-order-received) .site-main > article {
		width: calc(100% - 32px);
	}

	body.woocommerce-cart .site-main > article {
		width: calc(100% - 32px);
	}

	.piar-checkout-service {
		grid-template-columns: 1fr;
	}

	.piar-checkout-service__image {
		display: none;
	}
}
