/**
 * Bag, checkout, order confirmation and My Account (ADR-044): WooCommerce's
 * own blocks and account pages, in the system's type, colours and controls.
 * There are no designs for these pages; they follow the content pages.
 */

/* Titles and content run wide; WooCommerce caps them at 1000px. */
.pc-store-page > .alignwide,
.pc-store-page .pc-store-page__content > .alignwide {
	max-width: var(--wp--style--global--wide-size);
}

.pc-store-page > .pc-page__title {
	margin-block-end: var(--wp--preset--spacing--60);
}

.pc-store-page .wc-block-components-notices {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

/* Section headings inside WooCommerce's blocks, in the display face. ------- */

/* The order confirmation's own headings keep WooCommerce's inline sizes. */
.pc-store-page .wc-block-components-checkout-step__title,
.pc-store-page .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.04em;
}

/* Order confirmation: WooCommerce's status block holds an H1 and a line. --- */

.pc-confirmation__status h1 {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: 0.04em;
}

.pc-confirmation__status p {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.15;
	letter-spacing: 0.04em;
}

/* Later lines (the sign-in prompt without the order key) read as text. */
.pc-confirmation__status p + p {
	margin-top: var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
	letter-spacing: normal;
}

.pc-confirmation-page .pc-confirmation__actions {
	margin-top: var(--wp--preset--spacing--70);
}

/* My Account: the menu as a bordered list. --------------------------------- */

.pc-account-page .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--border);
}

.pc-account-page .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.pc-account-page .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.875rem 0;
	text-decoration: none;
}

.pc-account-page .woocommerce-MyAccount-navigation a:hover,
.pc-account-page .woocommerce-MyAccount-navigation .is-active a {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.pc-account-page .woocommerce-MyAccount-navigation .is-active a {
	font-weight: 600;
}

/* WooCommerce's "Login" heading sits one step below the page title. */
.pc-account-page .woocommerce > h2,
.pc-account-page .woocommerce .u-column1 > h2,
.pc-account-page .woocommerce .u-column2 > h2 {
	margin-block: 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.04em;
}

/* Checkout header: back to the bag, the logo, help. ------------------------ */

.pc-checkout-header,
.pc-checkout-footer {
	padding-inline: max(var(--wp--style--root--padding-left), calc((100% - var(--wp--style--global--wide-size)) / 2));
}

.pc-checkout-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
	align-items: center;
	padding-block: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}

.pc-checkout-header > * {
	margin: 0;
}

.pc-checkout-header a {
	text-decoration: none;
}

.pc-checkout-header a:hover {
	text-decoration: underline;
}

.pc-checkout-header .pc-checkout-header__logo {
	width: 72px;
}

.pc-checkout-header .pc-checkout-header__logo .custom-logo {
	display: block;
	width: 100%;
	height: auto;
}

.pc-checkout-header .pc-checkout-header__help {
	justify-self: end;
}

/* Checkout footer: copyright and the policy links. ------------------------- */

.pc-checkout-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	justify-content: space-between;
	padding-block: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}

.pc-checkout-footer > * {
	margin: 0;
}

.pc-checkout-footer a {
	text-decoration: none;
}

.pc-checkout-footer a:hover {
	text-decoration: underline;
}

@media (min-width: 1024px) {

	.pc-checkout-header .pc-checkout-header__logo {
		width: 96px;
	}
}
