/* Customer pages share the catalogue's ink, fine rules and open spacing. */
.cs-customer-page {
	width: min(var(--cs-width), 1180px);
	margin-inline: auto;
	padding-block: clamp(24px, 4vw, 58px) clamp(28px, 4vw, 62px);
}
.cs-customer-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--cs-rule);
	padding-bottom: clamp(16px, 2.4vw, 30px);
	margin-bottom: clamp(20px, 3vw, 38px);
}
.cs-customer-heading .wp-block-post-title,
.cs-reading-page > .wp-block-post-title,
.cs-missing-page h1,
.cs-order-complete h1 {
	font-size: clamp(2.15rem, 4.5vw, 3.8rem);
	line-height: 1.07;
	letter-spacing: -.05em;
	margin-block: 0;
	text-wrap: balance;
}
.cs-customer-link {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 16px;
	border: 1px solid var(--cs-ink);
	border-radius: 6px;
	color: var(--cs-ink);
	background: var(--cs-white);
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}
.cs-customer-link:hover { background: var(--cs-sage); }
.cs-customer-link .cs-icon { order: 2; width: 18px; height: 18px; }
.cs-customer-link.cs-to-cart .cs-icon { order: 0; transform: rotate(180deg); }
.cs-customer-page .cs-customer-heading > * { margin: 0; }
.cs-cart-page .wc-block-cart,
.cs-checkout-page .wc-block-checkout { color: var(--cs-ink); margin-block: 0; }
.cs-customer-page :where(.wc-block-cart__main, .wc-block-cart__sidebar, .wc-block-checkout__main, .wc-block-checkout__sidebar) { min-width: 0; }
.cs-cart-page .wc-block-cart__main table.wc-block-cart-items {
	background: var(--cs-white);
	border-top: 2px solid var(--cs-ink);
	width: 100%;
	margin-top: 0;
}
.cs-cart-page .wc-block-cart-items .wc-block-cart-item__image,
.cs-cart-page .wc-block-cart-items .wc-block-cart-items__header-image { padding-inline-start: clamp(8px, 1.8vw, 22px); }
.cs-cart-page .wc-block-cart-items .wc-block-cart-item__total,
.cs-cart-page .wc-block-cart-items .wc-block-cart-items__header-total { padding-inline-end: clamp(8px, 1.8vw, 22px); }
.cs-cart-page .wc-block-components-product-name,
.cs-checkout-page .wc-block-components-product-name { color: var(--cs-ink); font-weight: 700; }
.cs-cart-page .wc-block-cart-item__image img,
.cs-checkout-page .wc-block-components-order-summary-item__image img { border-radius: 5px; }
.cs-customer-page .wc-block-components-quantity-selector { border-radius: 4px; background: var(--cs-white); }
.cs-customer-page .wc-block-cart-item__remove-link { color: var(--cs-muted); text-underline-offset: .15em; }
.cs-cart-page .wp-block-woocommerce-cart-order-summary-block,
.cs-checkout-page .wp-block-woocommerce-checkout-order-summary-block {
	background: var(--cs-white);
	border: 1px solid var(--cs-rule);
	border-top: 2px solid var(--cs-ink);
	border-radius: 0 0 8px 8px;
}
.cs-cart-page .wc-block-cart .wc-block-cart__totals-title {
	padding: 20px 16px 14px;
	text-align: start;
	text-transform: none;
	font-size: 1.3rem;
	line-height: 1.25;
	letter-spacing: -.03em;
}
.cs-cart-page .wc-block-cart__submit { margin-top: 14px; }
.cs-customer-page .wc-block-components-totals-footer-item { font-weight: 700; }
.cs-customer-page :where(.wc-block-components-totals-item__value, .wc-block-formatted-money-amount) { font-variant-numeric: tabular-nums; }
.cs-cart-page .wc-block-cart__empty-cart__title {
	margin-top: 0;
	padding: clamp(30px, 5vw, 64px) 15px 0;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.cs-cart-page .wc-block-cart__empty-cart__title::before {
	content: "";
	display: block;
	width: 70px;
	height: 70px;
	margin: 0 auto 15px;
	background: var(--cs-sage) url("brand/icons/cos.svg") center / 43px 43px no-repeat;
	border-radius: 50%;
}
.cs-cart-page .wp-block-woocommerce-empty-cart-block > .wp-block-buttons { justify-content: center; }
.cs-customer-page .wc-block-components-button.wc-block-cart__submit-button,
.cs-customer-page .wc-block-components-button.wc-block-components-checkout-place-order-button,
.cs-cart-page .wp-block-woocommerce-empty-cart-block .wp-block-button__link,
.cs-customer-page .woocommerce a.checkout-button,
.woocommerce-account .cs-document .woocommerce .button,
.cs-reading-page .cari-request button[type=submit] {
	min-height: 48px;
	padding: .8rem 1.15rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--cs-ink);
	border: 1px solid var(--cs-ink);
	border-radius: 6px;
	color: var(--cs-white);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}
.cs-cart-page .wc-block-cart__submit-button,
.cs-checkout-page .wc-block-components-checkout-place-order-button { width: 100%; }
.cs-customer-page .wc-block-components-button:where(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):hover,
.cs-cart-page .wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover,
.woocommerce-account .cs-document .woocommerce .button:hover { background-color: #10392e; color: white; }
.cs-customer-page .wc-block-components-checkout-step__title { letter-spacing: -.025em; }
.cs-checkout-page .wc-block-components-text-input input,
.cs-checkout-page .wc-blocks-components-select select,
.cs-checkout-page .wc-block-components-textarea { background-color: var(--cs-white); color: var(--cs-ink); }
.cs-checkout-page .wc-block-components-radio-control__option-checked,
.cs-checkout-page .wc-block-components-radio-control-accordion-option--checked-option-highlighted { background-color: #eef4ee; }
.cs-checkout-page .wc-block-components-checkout-return-to-cart-button { min-height: 44px; color: var(--cs-ink); }
.cs-customer-page :where(.wc-block-components-error, .wc-block-components-validation-error) { overflow-wrap: anywhere; }
.cs-customer-page :where(a, button, input, select, textarea):focus-visible,
.cs-reading-page :where(a, button, input, select, textarea):focus-visible { outline: 3px solid #995a23; outline-offset: 3px; }

.cs-reading-page {
	max-width: 800px;
	margin-inline: auto;
	padding-block: clamp(34px, 5vw, 70px);
}
.cs-reading-page > :is(.wp-block-post-title, .wp-block-query-title) {
	margin: 0 auto clamp(22px, 3vw, 40px);
	padding-bottom: clamp(16px, 2vw, 25px);
	border-bottom: 1px solid var(--cs-rule);
}
.cs-reading-page .entry-content { line-height: 1.75; }
.cs-reading-page .entry-content :where(h2,h3) { margin-top: 1.65em; }
.cs-reading-page .entry-content a:not(.button, .wp-element-button) { text-underline-offset: .2em; }
.cs-reading-page .cari-request, .woocommerce-account .cs-document .woocommerce form:is(.login,.register,.lost_reset_password) {
	border: 1px solid var(--cs-rule);
	border-top: 2px solid var(--cs-ink);
	border-radius: 0 0 8px 8px;
	background: var(--cs-white);
	padding: clamp(17px, 3vw, 32px);
	margin-block: 1rem 2rem;
}
.cs-reading-page .cari-request :is(input,textarea):not([type=hidden]),
.woocommerce-account .cs-document .woocommerce :is(input.input-text, select, textarea) {
	min-height: 44px;
	border: 1px solid #9cad9f;
	border-radius: 5px;
	padding: .65rem .8rem;
	font: inherit;
	color: var(--cs-ink);
	background: var(--cs-white);
}
.cs-reading-page button:disabled { opacity: .6; cursor: not-allowed; }
.woocommerce-account .cs-reading-page { max-width: 1080px; }
.woocommerce-account .cs-reading-page > .wp-block-post-title,
.woocommerce-account .cs-reading-page > .wp-block-post-content,
.woocommerce-account .cs-reading-page .wp-block-post-content > .woocommerce { max-width: none; }
.woocommerce-account:not(.logged-in) .cs-document .woocommerce:not(:has(#customer_login)) { max-width: 35rem; margin-inline: auto; }
.woocommerce-account:not(.logged-in) .cs-document .woocommerce > h2 { margin: 0 0 1rem; }
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	border-block: 1px solid var(--cs-rule);
}
.woocommerce-account .woocommerce-MyAccount-navigation li + li { border-top: 1px solid var(--cs-rule); }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: .75rem 1rem;
	color: var(--cs-ink);
	font-weight: 600;
	text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { border-inline-start: 3px solid var(--cs-ink); background: var(--cs-sage); }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--cs-white); text-decoration: underline; }
.woocommerce-account .woocommerce-MyAccount-content { overflow-wrap: anywhere; }
.woocommerce-account .woocommerce-MyAccount-content fieldset { border: 1px solid var(--cs-rule); padding: 1rem; margin: 1rem 0; }
.cs-order-complete .wp-block-woocommerce-order-confirmation-status { border-bottom: 1px solid var(--cs-rule); padding-bottom: 1rem; }
.cs-order-complete :is(.wc-block-order-confirmation-summary,.wc-block-order-confirmation-totals) {
	background: var(--cs-white);
	border: 1px solid var(--cs-rule);
	padding: clamp(14px, 2.5vw, 30px);
}
.cs-order-complete .cs-customer-link { margin-top: 1.5rem; }
.cs-missing-page { text-align: center; padding-block: clamp(52px, 9vw, 125px); }
.cs-missing-page .cs-customer-link { margin-top: 1.25rem; }
@media (min-width: 783px) {
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
		gap: 0 clamp(30px, 5vw, 72px);
		align-items: start;
	}
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after { display: none; }
	.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce > .woocommerce-MyAccount-content { width: auto; float: none; }
	.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.cs-customer-heading { flex-wrap: wrap; }
	.cs-customer-page .wc-block-cart__main table.wc-block-cart-items { padding-inline: 8px; }
	.cs-cart-page .wc-block-cart__submit-container--sticky {
		padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
		background: var(--cs-white);
		border-top: 1px solid var(--cs-rule);
	}
	.woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 1.5rem; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem 0; }
	.woocommerce-account .woocommerce-MyAccount-navigation li + li { border-top: 0; }
	.woocommerce-account .woocommerce-MyAccount-navigation li a { padding-inline: .65rem; }
}
