/* ---------------------------------------------------------------- WooCommerce: basket, checkout, my account
 * WooCommerce's own stylesheets are not loaded on these pages (inc/woo-pages.php), as with Breakdance's
 * "styles_mode: enabled"; everything here takes its numbers from the live Breakdance pages.
 * Breakdance's spacing steps: 4.944, 8, 12.944, 20.943, 33.886 and 54.828px.
 */

.ioa-woo-page {
	--ioa-woo-gap-s: 12.944px;
	--ioa-woo-gap-m: 20.9434px;
	--ioa-woo-gap-l: 33.8864px;
	--ioa-woo-gap-xl: 54.8282px;
	--ioa-woo-line: #d1d5db;
}

.ioa-woo-page .woocommerce :where(h2, h3) {
	color: var(--wp--preset--color--headings);
	font-weight: 400;
	line-height: 1.2;
	margin: 0;
}

/* WooCommerce's order-attribution element and its float-clearing divs would each take a slot (and a gap)
   in the checkout's flex columns. */
.ioa-woo-page wc-order-attribution-inputs,
.ioa-woo-page form.checkout .clear {
	display: none;
}

.ioa-woo-page .woocommerce :where(ul, ol) {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ioa-woo-page .woocommerce a {
	text-decoration: none;
}

.ioa-woo-page .woocommerce .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}

/* ---- Notices: green (added to basket), blue (have a coupon?), red (errors). 24px padding, 48px on the left
   for a 16px icon; the link goes to the right with a small arrow. */

.ioa-woo-page .woocommerce-notices-wrapper:empty {
	display: none;
}

.ioa-woo-page .woocommerce-notices-wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--ioa-woo-gap-m);
	margin: 0 0 var(--ioa-woo-gap-m);
	width: 100%;
}

.ioa-woo-page :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	border: 0;
	border-radius: 4px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
	padding: 24px 24px 24px 48px;
	position: relative;
}

.ioa-woo-page .woocommerce-message {
	align-items: center;
	background: #d1fae5;
	color: #047857;
	display: flex;
	flex-wrap: wrap;
}

.ioa-woo-page .woocommerce-info {
	background: #e0f2fe;
	color: #0ea5e9;
}

/* Errors: one message per line, 8px apart, one icon centred on the box (live's list comes from Square's script
   as plain text; WooCommerce's own list links each message to its field, shown here the same way). */
.ioa-woo-page .woocommerce-error {
	background: #fef2f2;
	color: #ef4444;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ioa-woo-page .woocommerce-error li {
	display: block;
}

.ioa-woo-page .woocommerce-error li a {
	text-decoration: none;
	text-transform: none;
}

.ioa-woo-page .woocommerce-error li a::after {
	display: none;
}

/* WooCommerce 11 also writes each error under its field; the Breakdance checkout showed only the list. */
.ioa-woo-page .checkout-inline-error-message {
	display: none;
}

.ioa-woo-page .woocommerce-error strong {
	color: inherit;
}

.ioa-woo-page :is(.woocommerce-message, .woocommerce-info)::before,
.ioa-woo-page .woocommerce-error li:first-child::before {
	/* Positioned against the notice box (the list items are not positioned). */
	background-color: currentColor;
	content: "";
	height: 16px;
	left: 24px;
	-webkit-mask: var(--ioa-notice-icon) center / contain no-repeat;
	mask: var(--ioa-notice-icon) center / contain no-repeat;
	position: absolute;
	top: calc(50% - 8px);
	width: 16px;
}

.ioa-woo-page .woocommerce-message { --ioa-notice-icon: url(../images/icons/woo-success.svg); }
.ioa-woo-page .woocommerce-info { --ioa-notice-icon: url(../images/icons/woo-info.svg); }
.ioa-woo-page .woocommerce-error { --ioa-notice-icon: url(../images/icons/woo-error.svg); }

.ioa-woo-page .woocommerce-error li:first-child::before {
	left: 24px;
}

.ioa-woo-page :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a {
	color: inherit;
	text-transform: capitalize;
}

.ioa-woo-page .woocommerce-message a {
	background: none;
	border: 0;
	margin-left: auto;
	order: 1;
	padding: 0;
}

.ioa-woo-page :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a::after,
.ioa-woo-page a.checkout-button::after {
	background-color: currentColor;
	content: "";
	display: inline-block;
	height: 0.8em;
	margin-left: 0.2em;
	-webkit-mask: url(../images/icons/woo-arrow.svg) 0 0 / 100% 100% no-repeat;
	mask: url(../images/icons/woo-arrow.svg) 0 0 / 100% 100% no-repeat;
	width: 0.8em;
}

@media (max-width: 767px) {
	.ioa-woo-page .woocommerce-message a {
		margin: var(--ioa-woo-gap-s) 0 0;
		width: 100%;
	}
}

/* ---- Tables: grey capitals header, white body, 1px #d1d5db lines drawn inside, 4px corners. */

.ioa-woo-page table.shop_table {
	border: 0;
	border-collapse: separate;
	border-radius: 4px;
	border-spacing: 0;
	margin: 0;
	width: 100%;
}

.ioa-woo-page table.shop_table thead {
	background: #f3f4f6;
	box-shadow: var(--ioa-woo-line) 1px 0 0 0 inset, var(--ioa-woo-line) 0 1px 0 0 inset, var(--ioa-woo-line) -1px 0 0 0 inset;
	font-size: 13.3333px;
	letter-spacing: 1px;
	line-height: 1.4;
	text-transform: uppercase;
}

.ioa-woo-page table.shop_table thead th {
	font-weight: 500;
	padding: var(--ioa-woo-gap-s);
	text-align: left;
}

.ioa-woo-page table.shop_table tbody {
	background: #fff;
	box-shadow: var(--ioa-woo-line) 0 0 0 1px inset;
}

.ioa-woo-page table.shop_table :is(th, td) {
	border: 0;
	vertical-align: middle;
}

.ioa-woo-page .woocommerce-Price-amount {
	color: var(--wp--preset--color--headings);
	font-weight: 600;
	line-height: 1.2;
}

/* ---- Basket: the table (wide) beside "Basket totals" (350px), 54.8px apart. */

.ioa-woo-page .woocommerce:has(.woocommerce-cart-form) {
	align-items: flex-start;
	column-gap: var(--ioa-woo-gap-xl);
	display: flex;
	flex-wrap: wrap;
}

.ioa-woo-page .woocommerce-cart-form {
	flex: 1 1 0;
	margin: 0 0 var(--ioa-woo-gap-l);
	min-width: 0;
}

.ioa-woo-page .woocommerce-cart-form__contents td {
	padding: 16px var(--ioa-woo-gap-s);
}

/* The basket table collapses its borders and each product row has a 1px line under it, as on live (half of
   that line counts in the row's height, so rows are 96.5px). */
.ioa-woo-page table.woocommerce-cart-form__contents {
	border-collapse: collapse;
}

.ioa-woo-page .woocommerce-cart-form__contents tr.cart_item {
	border-bottom: 1px solid var(--ioa-woo-line);
}

/* The remove and photo columns are kept as narrow as their content; spare width goes to the other columns. */
.ioa-woo-page .woocommerce-cart-form__contents td.product-remove {
	padding-left: 24px;
	text-align: center;
	width: 20px;
}

.ioa-woo-page .woocommerce-cart-form__contents td.product-thumbnail {
	width: 64px;
}

.ioa-woo-page .woocommerce-cart-form__contents a.remove {
	color: #787e8b !important;
	font-size: var(--ioa-h5);
	line-height: 1.4;
	opacity: 0.5;
}

.ioa-woo-page .woocommerce-cart-form__contents .product-thumbnail a {
	display: flex;
}

.ioa-woo-page .woocommerce-cart-form__contents .product-thumbnail img {
	border-radius: 4px;
	display: block;
	height: 64px;
	max-width: none;
	width: 64px;
}

.ioa-woo-page .woocommerce-cart-form__contents .product-name a {
	color: var(--wp--preset--color--brand);
	font-weight: 500;
}

.ioa-woo-page .woocommerce-cart-form__contents .quantity.quantity {
	height: 44px;
}

/* The actions row (coupon, Update basket) is hidden; the basket updates itself when a quantity changes. */
.ioa-woo-page .woocommerce-cart-form__contents td.actions {
	display: none;
}

.ioa-woo-page .cart-collaterals {
	align-self: stretch;
	border-radius: 4px;
	flex: 0 0 350px;
	width: 350px;
}

.ioa-woo-page .cart_totals h2 {
	font-size: var(--ioa-h3);
	font-weight: 400;
	margin-bottom: var(--ioa-woo-gap-m);
}

.ioa-woo-page .cart_totals table.shop_table :is(th, td) {
	padding: var(--ioa-woo-gap-s);
	text-align: left;
	vertical-align: top;
}

.ioa-woo-page .cart_totals table.shop_table th {
	font-weight: 400;
	padding-left: 0;
}

.ioa-woo-page .cart_totals table.shop_table td {
	width: 80%;
}

.ioa-woo-page .cart_totals table.shop_table tbody {
	background: none;
	box-shadow: none;
}

.ioa-woo-page :is(.cart_totals, .woocommerce-checkout-review-order-table) tr.order-total :is(th, td) {
	color: var(--wp--preset--color--headings);
	font-size: var(--ioa-h5);
	line-height: 1.4;
}

.ioa-woo-page tr.order-total strong {
	font-weight: 600;
}

.ioa-woo-page tr.order-total .woocommerce-Price-amount {
	font-size: inherit;
}

.ioa-woo-page .woocommerce-shipping-methods {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ioa-woo-page .woocommerce-shipping-methods li {
	align-items: center;
	display: flex;
}

.ioa-woo-page .woocommerce-shipping-methods label {
	color: var(--wp--preset--color--headings);
	font-weight: 500;
	line-height: 1;
}

.ioa-woo-page .woocommerce-shipping-destination {
	margin: var(--ioa-woo-gap-s) 0;
}

.ioa-woo-page .wc-proceed-to-checkout {
	padding: 0;
}

/* On the basket and checkout pages the header basket is a link (inc/woo-pages.php). */
.ioa-cart a.wc-block-mini-cart__button {
	text-decoration: none;
}

.ioa-woo-page .woocommerce a.checkout-button.checkout-button {
	margin: var(--ioa-woo-gap-m) 0 0;
	min-height: 50px; /* as measured on live: 14px padding and a 16px line, but 50px tall */
	width: 100%;
}

/* From 1119px down the totals go under the table, full width; from 1024px down (Breakdance's own WooCommerce
   breakpoint, one pixel off the others) the table loses its header row. */
@media (max-width: 1119px) {
	.ioa-woo-page .woocommerce:has(.woocommerce-cart-form) {
		flex-direction: column;
	}

	.ioa-woo-page :is(.woocommerce-cart-form, .cart-collaterals) {
		flex: 0 0 auto;
		width: 100%;
	}
}

@media (max-width: 1024px) {
	.ioa-woo-page .woocommerce-cart-form__contents thead {
		display: none;
	}

	.ioa-woo-page .woocommerce-cart-form__contents tbody {
		border-radius: 4px;
	}
}

@media (max-width: 767px) {

	/* Phone basket: one card per product - photo, name and price, the remove cross top right, quantity below. */
	.ioa-woo-page .woocommerce-cart-form__contents thead {
		display: none;
	}

	.ioa-woo-page .woocommerce-cart-form__contents tbody {
		border-radius: 4px;
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding: var(--ioa-woo-gap-s);
	}

	.ioa-woo-page .woocommerce-cart-form__contents tr.cart_item {
		align-items: start;
		border-bottom: 0;
		column-gap: var(--ioa-woo-gap-s);
		display: grid;
		grid-template-columns: 96px 1fr 20px;
	}

	.ioa-woo-page .woocommerce-cart-form__contents tr.cart_item td {
		display: block;
		padding: 0;
	}

	.ioa-woo-page .woocommerce-cart-form__contents td.product-thumbnail {
		grid-column: 1;
		grid-row: 1 / span 3;
	}

	.ioa-woo-page .woocommerce-cart-form__contents td.product-thumbnail {
		width: 100%;
	}

	.ioa-woo-page .woocommerce-cart-form__contents .product-thumbnail img {
		height: auto;
		width: 100%;
	}

	.ioa-woo-page .woocommerce-cart-form__contents td.product-name {
		grid-column: 2;
		grid-row: 1;
	}

	.ioa-woo-page .woocommerce-cart-form__contents td.product-remove {
		grid-column: 3;
		grid-row: 1;
		padding: 0;
	}

	.ioa-woo-page .woocommerce-cart-form__contents a.remove {
		font-size: 1.1em;
	}

	.ioa-woo-page .woocommerce-cart-form__contents tr.cart_item td.product-price {
		display: none;
	}

	.ioa-woo-page .woocommerce-cart-form__contents td.product-subtotal {
		grid-column: 2;
		grid-row: 2;
	}

	.ioa-woo-page .woocommerce-cart-form__contents td.product-quantity {
		grid-column: 2 / span 2;
		grid-row: 3;
		margin-top: 8px;
	}

	/* The (empty) actions row stays in the card, as on live: it adds one 20px gap under the products. */
	.ioa-woo-page .woocommerce-cart-form__contents tr:not(.cart_item) {
		display: block;
		height: 0;
	}
}

/* ---- Checkout: billing (60%) and "Your order" (40%), 54.8px apart; one column from 767px down. */

.ioa-woo-page .woocommerce:has(form.checkout) {
	display: flex;
	flex-direction: column;
	gap: var(--ioa-woo-gap-l);
}

.ioa-woo-page .woocommerce:has(form.checkout) > .woocommerce-notices-wrapper {
	margin-bottom: var(--ioa-woo-gap-m);
}

.ioa-woo-page .woocommerce-info a.showcoupon {
	color: inherit;
}

.ioa-woo-page form.checkout_coupon {
	border: 1px solid var(--ioa-woo-line);
	border-radius: 4px;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ioa-woo-gap-s);
	margin: 0;
	padding: var(--ioa-woo-gap-m);
}

.ioa-woo-page form.checkout {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--ioa-woo-gap-xl);
}

/* Errors after "Place order" go across the top of the form, 54.8px above the columns. */
.ioa-woo-page form.checkout > :is(.woocommerce-NoticeGroup, .woocommerce-error) {
	margin: 0;
	width: 100%;
}

.ioa-woo-page form.checkout .col2-set {
	display: flex;
	flex-direction: column;
	gap: var(--ioa-woo-gap-l);
	width: calc(60% - var(--ioa-woo-gap-xl) / 2);
}

.ioa-woo-page form.checkout .ioa-woo-review-column {
	display: flex;
	flex-direction: column;
	width: calc(40% - var(--ioa-woo-gap-xl) / 2);
}

.ioa-woo-page form.checkout :is(.col-1, .col-2, .woocommerce-shipping-fields, .woocommerce-additional-fields, .woocommerce-account-fields, .create-account) {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.ioa-woo-page form.checkout :is(.woocommerce-billing-fields, .woocommerce-shipping-fields) > h3,
.ioa-woo-page form.checkout #order_review_heading {
	font-size: var(--ioa-h4);
	margin: 0 0 16px;
}

.ioa-woo-page form.checkout .woocommerce-shipping-fields > h3 {
	margin: 0;
}

/* Breakdance showed no "Additional information" heading above the order notes. */
.ioa-woo-page form.checkout .woocommerce-additional-fields > h3 {
	display: none;
}

.ioa-woo-page :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.ioa-woo-page .woocommerce form .form-row {
	display: block;
	margin: 0;
	padding: 0;
	width: 100%;
}

.ioa-woo-page .woocommerce form :is(.form-row-first, .form-row-last, #billing_state_field, #billing_postcode_field, #shipping_state_field, #shipping_postcode_field) {
	width: calc(50% - 8px);
}

.ioa-woo-page .woocommerce form .form-row label:not(.checkbox) {
	display: block;
	margin: 0 0 8px;
}

.ioa-woo-page .woocommerce form .form-row .required {
	color: #b91c1c;
	display: inline-block;
	text-decoration: none;
}


.ioa-woo-page .woocommerce form .form-row .woocommerce-input-wrapper {
	display: block;
	position: relative;
}

/* Order notes: two rows tall (WooCommerce's rows="2"), so the box follows the text size. */
.ioa-woo-page .woocommerce form textarea {
	height: auto;
}

/* Address fields WooCommerce hides until needed (the second address line keeps its label for screen readers). */
.ioa-woo-page .woocommerce form .form-row label.screen-reader-text {
	margin: 0;
}

/* Country: WooCommerce's select2 box, drawn like the other inputs. */
.ioa-woo-page .select2-container {
	width: 100% !important;
}

.ioa-woo-page .select2-container--default .select2-selection--single {
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	height: auto;
	padding: 12px 32px 12px 16px;
	position: relative;
}

.ioa-woo-page .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #444;
	line-height: 1.4;
	padding: 0;
}

.ioa-woo-page .select2-container--default .select2-selection--single .select2-selection__arrow {
	background-color: var(--wp--preset--color--headings);
	height: 100%;
	-webkit-mask: url(../images/icons/woo-chevron-down.svg) center left / 8px no-repeat;
	mask: url(../images/icons/woo-chevron-down.svg) center left / 8px no-repeat;
	right: 1px;
	top: 0;
	width: 20px;
}

.ioa-woo-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
	display: none;
}

/* Show-password button inside the password box. */
.ioa-woo-page .woocommerce .password-input {
	display: block;
	position: relative;
}

.ioa-woo-page .woocommerce .show-password-input {
	background-color: var(--wp--preset--color--headings);
	border: 0;
	cursor: pointer;
	height: 100%;
	-webkit-mask: url(../images/icons/woo-eye.svg) center / 20px no-repeat;
	mask: url(../images/icons/woo-eye.svg) center / 20px no-repeat;
	opacity: 0.5;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	width: 40px;
}

/* "Deliver to a different address?" */
.ioa-woo-page #ship-to-different-address label {
	align-items: center;
	display: flex;
	font-size: var(--ioa-base);
	font-weight: 500;
	line-height: 1;
}

.ioa-woo-page #ship-to-different-address label span {
	font-size: var(--ioa-h4);
	font-weight: 400;
	line-height: 1.2;
}

/* Checkboxes: a white 1em box (16px, 15px on phones) with a 1px grey border and 3px corners; ticked shows a
   dark tick. */
.ioa-woo-page .woocommerce input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	cursor: pointer;
	flex-shrink: 0;
	font-size: var(--ioa-base);
	height: 1em;
	margin: 0 8px 0 0;
	padding: 0;
	position: relative;
	width: 1em;
}

.ioa-woo-page .woocommerce input[type="checkbox"]:checked::after {
	background-color: var(--wp--preset--color--headings);
	content: "";
	inset: 2px;
	-webkit-mask: url(../images/icons/woo-check.svg) center / contain no-repeat;
	mask: url(../images/icons/woo-check.svg) center / contain no-repeat;
	position: absolute;
}

/* Your order */
.ioa-woo-page #order_review {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ioa-woo-page .woocommerce-checkout-review-order-table tbody td {
	padding: var(--ioa-woo-gap-m) var(--ioa-woo-gap-s);
	vertical-align: middle;
}

.ioa-woo-page .woocommerce-checkout-review-order-table .product-quantity {
	font-weight: 600;
}

.ioa-woo-page .woocommerce-checkout-review-order-table tfoot :is(th, td) {
	padding: var(--ioa-woo-gap-s);
	text-align: left;
}

.ioa-woo-page .woocommerce-checkout-review-order-table tfoot th {
	font-weight: 400;
}

.ioa-woo-page .woocommerce-checkout-review-order-table tfoot td {
	color: var(--wp--preset--color--headings);
	font-weight: 600;
}

.ioa-woo-page .woocommerce-checkout-review-order-table tfoot tr:not(.order-total) :is(th, td) {
	border-bottom: 1px solid var(--ioa-woo-line);
}

/* Payment: a white box with a light shadow; each method's details on light grey. */
.ioa-woo-page #payment {
	background: #fff;
	border: 1px solid var(--ioa-woo-line);
	border-radius: 4px;
	box-shadow: rgba(0, 0, 0, 0.05) 0 1px 3px, rgba(0, 0, 0, 0.05) 0 1px 2px;
	padding: 24px;
}

.ioa-woo-page #payment .wc_payment_methods {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ioa-woo-page #payment .wc_payment_method {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
}

.ioa-woo-page #payment .wc_payment_method > label {
	color: var(--wp--preset--color--headings);
	font-weight: 500;
	line-height: 1;
}

.ioa-woo-page #payment .payment_box {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	margin: 15px 0 0;
	padding: var(--ioa-woo-gap-s);
	width: 100%;
}

.ioa-woo-page #payment .payment_box p {
	margin: 0;
}

.ioa-woo-page #payment .place-order {
	display: flex;
	flex-direction: column;
	gap: var(--ioa-woo-gap-m);
	margin: 0;
	padding: 0;
}

.ioa-woo-page .woocommerce-privacy-policy-text {
	margin: 20px 0 0;
}

.ioa-woo-page .woocommerce-privacy-policy-text p {
	margin: 0;
}

.ioa-woo-page .woocommerce-privacy-policy-link {
	color: var(--wp--preset--color--brand);
	font-weight: 500;
}

.ioa-woo-page .woocommerce [id="place_order"] {
	width: 100%;
}

@media (max-width: 1119px) {
	.ioa-woo-page form.checkout .col2-set,
	.ioa-woo-page form.checkout .ioa-woo-review-column {
		width: calc(50% - var(--ioa-woo-gap-xl) / 2);
	}
}

@media (max-width: 767px) {
	.ioa-woo-page form.checkout {
		flex-direction: column;
	}

	.ioa-woo-page form.checkout .col2-set,
	.ioa-woo-page form.checkout .ioa-woo-review-column {
		width: 100%;
	}
}

/* ---- Empty basket: the blue notice, then "Return to shop" with the browser's 1em paragraph margins
   (in a flex box, so they do not collapse into the notice's margin). */

.ioa-woo-page .woocommerce:has(> .wc-empty-cart-message) {
	display: flex;
	flex-wrap: wrap;
}

.ioa-woo-page .woocommerce > .wc-empty-cart-message {
	width: 100%;
}

.ioa-woo-page .return-to-shop {
	margin: 1em 0;
}

/* ---- My account */

/* The empty green band above the account section (40px top and bottom, nothing inside). */
.ioa-woo-band {
	min-height: 80px;
}

/* Log in: a white 360px box in the middle, 24px padding, light border and shadow; 20.9px between rows. */
.ioa-woo-page .woocommerce:has(> form.woocommerce-form-login) {
	display: flex;
	gap: var(--ioa-woo-gap-l);
}

.ioa-woo-page form.woocommerce-form-login {
	background: #fff;
	border: 1px solid var(--ioa-woo-line);
	border-radius: 4px;
	box-shadow: rgba(0, 0, 0, 0.05) 0 1px 3px, rgba(0, 0, 0, 0.05) 0 1px 2px;
	display: flex;
	flex-direction: column;
	gap: var(--ioa-woo-gap-m);
	margin: 0 auto;
	max-width: 360px;
	padding: 24px;
	width: 360px;
}

/* The Breakdance account page showed no "Login" heading above the box. */
.ioa-woo-page .woocommerce > h2:has(+ form.woocommerce-form-login) {
	display: none;
}

.ioa-woo-page .woocommerce form.woocommerce-form-login .form-row label.woocommerce-form-login__rememberme {
	align-items: center;
	color: var(--wp--preset--color--headings);
	display: flex;
	font-weight: 500;
	line-height: 1;
	margin: 0 0 var(--ioa-woo-gap-l);
}

.ioa-woo-page .woocommerce form.woocommerce-form-login button.woocommerce-form-login__submit {
	width: 100%;
}

.ioa-woo-page .woocommerce .lost_password {
	margin: 0;
}

.ioa-woo-page .woocommerce .lost_password a {
	color: var(--wp--preset--color--brand);
	font-weight: 500;
}

@media (max-width: 767px) {
	.ioa-woo-page form.woocommerce-form-login {
		width: 100%;
	}
}

/* Logged in: tabs on the left (25%, at least 160px), the page on the right; one column on phones.
   Not comparable with live (no log in on live); built from Breakdance's account styling. */
.ioa-woo-page .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ioa-woo-gap-l);
}

.ioa-woo-page .woocommerce-MyAccount-navigation {
	min-width: 160px;
	width: calc(25% - var(--ioa-woo-gap-xl) / 2);
}

.ioa-woo-page .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
}

.ioa-woo-page .woocommerce-MyAccount-navigation li {
	display: flex;
	font-weight: 500;
}

.ioa-woo-page .woocommerce-MyAccount-navigation li a {
	border-radius: 4px;
	color: var(--wp--preset--color--body-text);
	padding: var(--ioa-woo-gap-s) var(--ioa-woo-gap-m);
	transition: all ease 300ms;
	width: 100%;
}

.ioa-woo-page .woocommerce-MyAccount-navigation li.is-active a {
	background: #f9fafb;
	color: var(--wp--preset--color--brand);
}

.ioa-woo-page .woocommerce-MyAccount-navigation li a:hover {
	background: var(--wp--preset--color--brand);
	color: #fff;
}

.ioa-woo-page .woocommerce-MyAccount-content {
	display: flex;
	flex: 1 1 480px;
	flex-direction: column;
	gap: var(--ioa-woo-gap-l);
}

.ioa-woo-page .woocommerce-MyAccount-content > p {
	margin: 0;
}

.ioa-woo-page .woocommerce-MyAccount-content a:not(.button) {
	color: var(--wp--preset--color--brand);
	font-weight: 500;
}

@media (max-width: 767px) {
	.ioa-woo-page .woocommerce-MyAccount-navigation {
		width: 100%;
	}
}

/* ---- Order received (after checkout) and order pages in My account. Not comparable with live (no test orders
   on live); built from Breakdance's WooCommerce styling: green thank-you box, the order facts in a row, the
   order table as elsewhere, the two addresses side by side in white boxes. */

.ioa-woo-page .woocommerce-order {
	display: flex;
	flex-direction: column;
	gap: var(--ioa-woo-gap-l);
}

.ioa-woo-page .woocommerce-order > p,
.ioa-woo-page .woocommerce-order section {
	margin: 0;
}

.ioa-woo-page .woocommerce-thankyou-order-received {
	background: #d1fae5;
	border-radius: 4px;
	color: #047857;
	font-weight: 500;
	padding: 24px 24px 24px 48px;
	position: relative;
}

.ioa-woo-page .woocommerce-thankyou-order-received::before {
	background-color: currentColor;
	content: "";
	height: 16px;
	left: 24px;
	-webkit-mask: url(../images/icons/woo-success.svg) center / contain no-repeat;
	mask: url(../images/icons/woo-success.svg) center / contain no-repeat;
	position: absolute;
	top: calc(50% - 8px);
	width: 16px;
}

.ioa-woo-page ul.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ioa-woo-gap-m) var(--ioa-woo-gap-l);
}

.ioa-woo-page ul.woocommerce-order-overview li {
	display: flex;
	flex-direction: column;
	font-size: 13.3333px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ioa-woo-page ul.woocommerce-order-overview li strong {
	color: var(--wp--preset--color--headings);
	font-size: var(--ioa-base);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}

.ioa-woo-page :is(.woocommerce-order-details, .woocommerce-customer-details) > h2,
.ioa-woo-page .woocommerce-column__title {
	font-size: var(--ioa-h4);
	margin: 0 0 16px;
}

.ioa-woo-page table.woocommerce-table--order-details :is(td, th) {
	padding: var(--ioa-woo-gap-s);
	text-align: left;
}

.ioa-woo-page table.woocommerce-table--order-details tfoot th {
	font-weight: 400;
}

.ioa-woo-page table.woocommerce-table--order-details tfoot td {
	color: var(--wp--preset--color--headings);
	font-weight: 600;
}

.ioa-woo-page table.woocommerce-table--order-details tfoot tr:not(:last-child) :is(th, td) {
	border-bottom: 1px solid var(--ioa-woo-line);
}

.ioa-woo-page table.woocommerce-table--order-details .product-name a {
	color: var(--wp--preset--color--brand);
	font-weight: 500;
}

.ioa-woo-page .woocommerce-columns--addresses {
	display: flex;
	flex-direction: row;
	gap: var(--ioa-woo-gap-l);
}

.ioa-woo-page .woocommerce-columns--addresses > .woocommerce-column {
	flex: 1 1 0;
}

.ioa-woo-page .woocommerce-customer-details address {
	background: #fff;
	border: 1px solid var(--ioa-woo-line);
	border-radius: 4px;
	box-shadow: rgba(0, 0, 0, 0.05) 0 1px 3px, rgba(0, 0, 0, 0.05) 0 1px 2px;
	font-style: normal;
	padding: 24px;
}

.ioa-woo-page .woocommerce-customer-details address p {
	margin: 0;
}

@media (max-width: 767px) {
	.ioa-woo-page .woocommerce-columns--addresses {
		flex-direction: column;
	}
}
