/* Presentation only: WooCommerce retains the cart and checkout controls. */
.ariimo-header-search,
.ariimo-mobile-marketplace-search input {
	border: 1px solid #d8d9dd;
}

.ariimo-header-search:focus-within,
.ariimo-mobile-marketplace-search input:focus-visible {
	outline: 2px solid #a91b34;
	outline-offset: 2px;
}

.ariimo-delivery-fee-notice {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0 0 16px;
	padding: 12px 14px;
	border-left: 3px solid #db1731;
	border-radius: 4px;
	background: #fff5f6;
	color: #38282b;
	font-size: .95rem;
	overflow-wrap: anywhere;
}

body.woocommerce-cart #primary,
body.woocommerce-checkout #primary {
	color: #211b1d;
}

.ariimo-header-cart em[hidden] {
	display: none;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
	line-height: 1.5;
}

body.woocommerce-cart .woocommerce h2,
body.woocommerce-checkout .woocommerce h3 {
	color: #211b1d;
	font-size: 1.15rem;
	line-height: 1.3;
}

body.woocommerce-cart table.shop_table,
body.woocommerce-checkout table.shop_table {
	border: 1px solid #e3e3e6;
	border-radius: 8px;
	background: #fff;
}

body.woocommerce-cart table.shop_table td,
body.woocommerce-cart table.shop_table th,
body.woocommerce-checkout table.shop_table td,
body.woocommerce-checkout table.shop_table th {
	padding: 14px;
	border-color: #ececef;
}

body.woocommerce-cart table.cart img {
	width: 84px;
	height: 84px;
	object-fit: contain;
	border-radius: 6px;
	background: #f6f6f7;
}

body.woocommerce-cart .product-name a {
	color: #211b1d;
	font-weight: 700;
}

body.woocommerce-cart .quantity input.qty,
body.woocommerce-checkout .input-text,
body.woocommerce-checkout select {
	min-height: 44px;
	border: 1px solid #cfd0d4;
	border-radius: 6px;
}

body.woocommerce-cart .woocommerce a.button.checkout-button,
body.woocommerce-checkout #place_order {
	min-height: 48px;
	border-radius: 6px;
	background: #db1731;
	color: #fff;
	font-weight: 700;
}

body.woocommerce-cart .woocommerce a.button.checkout-button:focus-visible,
body.woocommerce-checkout #place_order:focus-visible {
	outline: 3px solid #921027;
	outline-offset: 3px;
}

body.woocommerce-checkout #payment {
	border: 1px solid #e3e3e6;
	border-radius: 8px;
	background: #fff;
}

body.woocommerce-checkout #payment ul.payment_methods {
	border-color: #ececef;
}

@media (min-width: 768px) {
	body.woocommerce-cart .woocommerce:not(.woocommerce-notices-wrapper) {
		display: flow-root;
	}

	body.woocommerce-cart .woocommerce-cart-form {
		float: left;
		width: 64%;
	}

	body.woocommerce-cart .cart-collaterals {
		float: right;
		width: 32%;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals {
		float: none;
		width: 100%;
	}

	body.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
		grid-template-rows: auto 1fr;
		column-gap: 32px;
		align-items: start;
	}

	body.woocommerce-checkout form.checkout #customer_details {
		grid-row: 1 / span 2;
		min-width: 0;
	}

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

	body.woocommerce-checkout form.checkout :is(#order_review_heading, #order_review) {
		grid-column: 2;
		min-width: 0;
	}
}

@media (max-width: 767px) {
	body.woocommerce-checkout #primary > .site-shell {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}
	body.woocommerce-checkout .ariimo-content,
	body.woocommerce-checkout .entry-content,
	body.woocommerce-checkout .woocommerce,
	body.woocommerce-checkout form.checkout {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0;
	}
	body.woocommerce-checkout .ariimo-delivery-fee-notice,
	body.woocommerce-checkout .woocommerce-message,
	body.woocommerce-checkout .woocommerce-info,
	body.woocommerce-checkout .woocommerce-error {
		box-sizing: border-box;
		max-width: calc(100vw - 48px) !important;
		overflow-wrap: anywhere;
	}
	body.woocommerce-checkout form.checkout {
		padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
	}
	body.woocommerce-checkout .woocommerce,
	body.woocommerce-checkout form.checkout,
	body.woocommerce-checkout form.checkout #customer_details,
	body.woocommerce-checkout form.checkout #order_review {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}
	body.woocommerce-checkout form.checkout .form-row-first,
	body.woocommerce-checkout form.checkout .form-row-last {
		float: none !important;
		width: 100% !important;
		max-width: 100%;
		margin-right: 0 !important;
	}
	body.woocommerce-checkout form.checkout .form-row input.input-text,
	body.woocommerce-checkout form.checkout .form-row textarea,
	body.woocommerce-checkout form.checkout .form-row select {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}
	body.woocommerce-checkout table.shop_table {
		width: 100%;
		table-layout: fixed;
	}

	body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail {
		display: block;
		text-align: start !important;
	}

	body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail::before {
		content: none;
	}

	body.woocommerce-cart .woocommerce-cart-form .product-remove a.remove {
		display: inline-grid;
		place-items: center;
		min-width: 44px;
		min-height: 44px;
	}

	body.woocommerce-cart table.cart img {
		width: 64px;
		height: 64px;
	}

	body.woocommerce-cart .woocommerce a.button.checkout-button,
	body.woocommerce-checkout #place_order {
		width: 100%;
	}

	body.woocommerce-cart table.shop_table td,
	body.woocommerce-checkout table.shop_table td,
	body.woocommerce-checkout table.shop_table th {
		padding: 12px;
	}
}

/* Native WooCommerce Blocks: keep totals and transaction controls data-owned by WooCommerce. */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
	max-width: 1280px;
	margin-inline: auto;
	color: #211b1d;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-components-sidebar-layout {
	gap: clamp(24px, 4vw, 56px);
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-checkout .wc-block-checkout__main {
	min-width: 0;
}

body.woocommerce-checkout .wc-block-checkout__main {
	width: 100%;
	max-width: none;
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	padding: 22px;
	border: 1px solid #e5e5e8;
	border-radius: 10px;
	background: #fff;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	border-collapse: collapse;
}

body.woocommerce-cart .wc-block-cart-items__row {
	border-bottom: 1px solid #ececef;
}

body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
	width: 88px;
	height: 88px;
	border-radius: 8px;
	background: #f5f6f7;
	object-fit: contain;
}

body.woocommerce-cart .wc-block-cart-item__product a,
body.woocommerce-checkout .wc-block-components-product-name {
	color: #211b1d;
	font-weight: 650;
	text-decoration: none;
}

body.woocommerce-cart .wc-block-cart-item__product a:hover,
body.woocommerce-checkout .wc-block-components-product-name:hover {
	color: #b7132b;
	text-decoration: underline;
}

body.woocommerce-cart .ariimo-vendor-attribution,
body.woocommerce-checkout .ariimo-vendor-attribution {
	color: #62585b;
	font-size: .85rem;
}

body.woocommerce-cart .ariimo-vendor-attribution .wc-block-components-product-details__value,
body.woocommerce-checkout .ariimo-vendor-attribution .wc-block-components-product-details__value {
	color: #211b1d;
	font-weight: 650;
}

body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-cart .wc-block-cart-item__remove-link,
body.woocommerce-checkout .wc-block-components-quantity-selector {
	min-height: 42px;
}

body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-checkout .wc-block-components-quantity-selector {
	border-color: #d5d3d5;
	border-radius: 7px;
}

body.woocommerce-cart .wc-block-components-quantity-selector button,
body.woocommerce-checkout .wc-block-components-quantity-selector button {
	min-width: 42px;
	min-height: 42px;
}

body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-totals-wrapper {
	border-color: #ececef;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	min-height: 52px;
	border-radius: 8px;
	background: #db1731;
	color: #fff;
	font-weight: 700;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background: #b7132b;
}

body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible,
body.woocommerce-cart .wc-block-components-quantity-selector button:focus-visible,
body.woocommerce-checkout .wc-block-components-quantity-selector button:focus-visible {
	outline: 3px solid #7d1225;
	outline-offset: 3px;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-select .wc-block-components-select__select {
	min-height: 48px;
	border-color: #cfcdd0;
	border-radius: 7px;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input:focus,
body.woocommerce-checkout .wc-block-components-select .wc-block-components-select__select:focus {
	border-color: #a91b34;
	box-shadow: 0 0 0 2px rgb(169 27 52 / 16%);
}

body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .wc-block-components-radio-control__option {
	border-color: #e5e5e8;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading {
	color: #211b1d;
	font-size: 1.15rem;
	font-weight: 700;
}

body.woocommerce-checkout .wc-block-components-checkout-step {
	padding-block: 20px;
	border-bottom: 1px solid #ececef;
}

body.woocommerce-checkout .wc-block-components-checkout-step__description,
body.woocommerce-checkout .wc-block-components-address-card {
	color: #62585b;
}

body.woocommerce-cart .wc-block-cart__empty-cart__title {
	color: #211b1d;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
}

body.woocommerce-cart .wc-block-cart__empty-cart__title + .wc-block-grid,
body.woocommerce-cart .wc-block-cart__empty-cart__title + p {
	margin-top: 12px;
}

body.woocommerce-cart .wc-block-cart__empty-cart__title + .wp-block-buttons .wp-block-button__link {
	min-height: 44px;
	padding-inline: 22px;
	border-radius: 8px;
	background: #db1731;
	color: #fff;
	font-weight: 700;
}

body.woocommerce-cart .wc-block-grid__product {
	box-sizing: border-box;
	max-width: 340px;
	margin-inline: auto;
	padding: 16px;
	border: 1px solid #e5e5e8;
	border-radius: 10px;
	background: #fff;
}

body.woocommerce-cart .wc-block-grid__product-image img {
	width: 100%;
	max-height: 220px;
	border-radius: 8px;
	background: #f5f6f7;
	object-fit: contain;
}

body.woocommerce-cart .wc-block-grid__product-title {
	color: #211b1d;
	font-weight: 650;
}

body.woocommerce-cart .wc-block-grid__product .wp-block-button__link {
	min-height: 42px;
	border-radius: 8px;
	background: #db1731;
	color: #fff;
	font-weight: 700;
}

body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-details,
body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-details {
	margin-block: 8px;
	color: #62585b;
	font-size: .9rem;
}

body.woocommerce-cart .wc-block-cart-item__product .ariimo-vendor-attribution,
body.woocommerce-checkout .wc-block-components-order-summary-item__description .ariimo-vendor-attribution {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #f0edef;
}

body.woocommerce-cart .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 8px;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout {
		display: block;
	}

	body.woocommerce-cart .wc-block-cart,
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: minmax(0, 1.65fr) minmax(290px, .8fr);
		align-items: start;
	}

	body.woocommerce-cart .wc-block-cart__sidebar,
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		position: sticky;
		top: 24px;
	}

	body.woocommerce-cart .wc-block-cart-items {
		width: 100%;
		table-layout: fixed;
	}

	body.woocommerce-cart .wc-block-cart-item__image {
		width: 112px;
	}
}

@media (max-width: 767px) {
	body.woocommerce-cart .wp-block-woocommerce-cart,
	body.woocommerce-checkout .wp-block-woocommerce-checkout {
		padding-inline: 0;
	}

	body.woocommerce-cart .wc-block-cart__sidebar {
		margin-top: 12px;
		padding: 16px;
		border-color: #dedde0;
	}

	body.woocommerce-cart .wc-block-cart-items {
		width: 100%;
		table-layout: fixed;
	}

	body.woocommerce-cart .wc-block-cart-items__row {
		vertical-align: top;
	}

	body.woocommerce-cart .wc-block-cart-item__image {
		width: 76px;
		padding-inline-end: 8px;
	}

	body.woocommerce-cart .wc-block-cart-item__image img,
	body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
		width: 64px;
		height: 64px;
	}

	body.woocommerce-cart .wc-block-cart-item__product {
		padding-inline: 6px;
		overflow-wrap: anywhere;
	}

	body.woocommerce-cart .wc-block-cart-item__total {
		width: 82px;
		padding-inline-start: 4px;
		font-size: .9rem;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector {
		max-width: 146px;
	}

	body.woocommerce-cart .wc-block-cart-item__remove-link {
		min-height: 44px;
	}

	body.woocommerce-cart .wc-block-cart__submit-button,
	body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
		width: 100%;
	}

	body.woocommerce-checkout .wc-block-checkout__actions {
		position: static;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	body.woocommerce-checkout .wc-block-checkout__actions_row {
		position: static;
		margin-top: 12px;
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	body.woocommerce-checkout .wc-block-components-order-summary {
		margin-block: 12px;
	}

	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-cart .wc-block-cart__main {
		min-width: 0;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
		min-height: 50px;
		white-space: normal;
		line-height: 1.25;
		box-shadow: 0 4px 14px rgb(219 23 49 / 18%);
	}

	body.woocommerce-cart .wc-block-grid__products {
		justify-content: center;
	}

	body.woocommerce-cart .wc-block-grid__product {
		width: 100%;
		max-width: 300px;
		flex: 0 1 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.woocommerce-cart *,
	body.woocommerce-checkout * {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
