/**
 * My Account — typography and spacing.
 *
 * WooCommerce's account templates inherit whatever the theme gives them, which
 * across these pages meant three different heading scales, list markers on the
 * navigation, and section gaps that ranged from nothing to enormous. Nothing
 * here restyles the theme: it sets one type scale and one vertical rhythm so
 * the dashboard, orders, order detail and settings pages read as one thing.
 *
 * Everything is scoped under .woocommerce-account so it cannot leak onto the
 * shop, checkout or booking pages.
 */

.woocommerce-account {
	/* One scale, used throughout, so a change here moves every page together. */
	--eseb-acc-h1: 30px;
	--eseb-acc-h2: 20px;
	--eseb-acc-h3: 16px;
	--eseb-acc-body: 15px;
	--eseb-acc-small: 13px;

	--eseb-acc-gap: 32px;   /* between major sections */
	--eseb-acc-gap-sm: 16px; /* within a section */
	--eseb-acc-top: 48px;    /* clearance below the site header */

	--eseb-acc-line: #e2e4e7;
	--eseb-acc-muted: #6b7280;
	--eseb-acc-ink: #1d2327;
}

/* ---------------------------------------------------------------------
   Headings
   ------------------------------------------------------------------ */

/* The page title sits directly beneath the site header, which has no bottom
   spacing of its own, so the clearance has to come from here. */
.woocommerce-account .entry-content > h1,
.woocommerce-account .woocommerce-MyAccount-content h1,
.woocommerce-account h1.entry-title,
.woocommerce-account .page-title,
.woocommerce-account .entry-header h1 {
	font-size: var(--eseb-acc-h1);
	line-height: 1.2;
	margin: var(--eseb-acc-top) 0 var(--eseb-acc-gap);
	color: var(--eseb-acc-ink);
}

/* "Order details", "Your paid invoice", "Your information" and friends. These
   were rendering at the theme's article h2 size — far larger than the page
   title they sat under. */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-order-details__title,
.woocommerce-account .woocommerce-column__title,
.woocommerce-account .woocommerce-customer-details h2 {
	font-size: var(--eseb-acc-h2);
	line-height: 1.3;
	font-weight: 600;
	margin: var(--eseb-acc-gap) 0 var(--eseb-acc-gap-sm);
	color: var(--eseb-acc-ink);
}

/* The first heading in the content column should not push the page down; the
   page title above it has already provided the gap. */
.woocommerce-account .woocommerce-MyAccount-content > h2:first-child {
	margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content h3 {
	font-size: var(--eseb-acc-h3);
	font-weight: 600;
	margin: var(--eseb-acc-gap-sm) 0 8px;
}

.woocommerce-account .woocommerce-MyAccount-content p {
	font-size: var(--eseb-acc-body);
	line-height: 1.6;
	margin: 0 0 var(--eseb-acc-gap-sm);
}

/* ---------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--eseb-acc-line);
	border-radius: 4px;
	overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--eseb-acc-line);
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 11px 16px;
	font-size: var(--eseb-acc-body);
	line-height: 1.4;
	text-decoration: none;
	color: var(--eseb-acc-ink);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li a:focus {
	background: #f6f7f7;
}

/* The current page, so it is obvious where you are without counting. */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: #f6f7f7;
	font-weight: 600;
	box-shadow: inset 3px 0 0 currentColor;
}

/* ---------------------------------------------------------------------
   Tables — order details, orders list, downloads
   ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--eseb-acc-line);
	border-radius: 4px;
	margin: 0 0 var(--eseb-acc-gap);
	font-size: var(--eseb-acc-body);
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--eseb-acc-line);
	vertical-align: top;
	line-height: 1.5;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th {
	font-size: var(--eseb-acc-small);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--eseb-acc-muted);
	font-weight: 600;
	background: #f6f7f7;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot td {
	font-weight: 600;
}

/* The per-candidate meta WooCommerce prints under each line item. It was
   running at body size and the same weight as the product name, which made a
   two-candidate order hard to scan. */
.woocommerce-account .woocommerce-MyAccount-content .wc-item-meta,
.woocommerce-account .woocommerce-MyAccount-content .variation {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--eseb-acc-small);
	line-height: 1.65;
	color: #3c434a;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-item-meta li,
.woocommerce-account .woocommerce-MyAccount-content .variation > * {
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-item-meta li p,
.woocommerce-account .woocommerce-MyAccount-content .wc-item-meta li strong {
	display: inline;
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

/* ---------------------------------------------------------------------
   Addresses and customer details
   ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-customer-details address {
	font-size: var(--eseb-acc-body);
	line-height: 1.7;
	font-style: normal;
	padding: 16px;
	border: 1px solid var(--eseb-acc-line);
	border-radius: 4px;
}

/* ---------------------------------------------------------------------
   Plugin sections rendered into the account pages
   ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-eseb-invoice {
	margin: var(--eseb-acc-gap) 0;
	padding: 20px;
	border: 1px solid var(--eseb-acc-line);
	border-radius: 4px;
	background: #f6f7f7;
}

.woocommerce-account .woocommerce-eseb-invoice h2 {
	margin-top: 0;
}

.woocommerce-account .woocommerce-eseb-invoice p:last-child {
	margin-bottom: 0;
}

/* Reschedule history under a booking line. Set apart from the booking meta
   above it, but quieter than the booking itself. */
.woocommerce-account .eseb-reschedule-history {
	margin: 12px 0 0;
	padding: 10px 14px;
	background: #f6f7f7;
	border-left: 3px solid #c3c4c7;
	border-radius: 2px;
	font-size: var(--eseb-acc-small);
	line-height: 1.6;
}

.woocommerce-account .eseb-reschedule-history strong {
	display: block;
	margin-bottom: 4px;
	font-size: var(--eseb-acc-small);
}

/* ---------------------------------------------------------------------
   Notices and buttons
   ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
	font-size: var(--eseb-acc-body);
	line-height: 1.5;
	margin-bottom: var(--eseb-acc-gap);
}

.woocommerce-account .woocommerce-MyAccount-content .button {
	font-size: var(--eseb-acc-body);
	line-height: 1.4;
}

/* ---------------------------------------------------------------------
   Narrow screens
   ------------------------------------------------------------------ */

@media (max-width: 782px) {
	.woocommerce-account {
		--eseb-acc-h1: 24px;
		--eseb-acc-h2: 18px;
		--eseb-acc-gap: 24px;
		--eseb-acc-top: 32px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: var(--eseb-acc-gap);
	}

	.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
	.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
		padding: 10px;
	}
}

/* Documents an admin has attached to the order (credit notes, examining body
   notices). Styled to match the invoice section above it. */
.woocommerce-account .woocommerce-eseb-documents {
	margin: var(--eseb-acc-gap) 0;
	padding: 20px;
	border: 1px solid var(--eseb-acc-line);
	border-radius: 4px;
}

.woocommerce-account .woocommerce-eseb-documents h2 {
	margin-top: 0;
}

.woocommerce-account .eseb-document-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .eseb-document-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--eseb-acc-line);
	font-size: var(--eseb-acc-body);
}

.woocommerce-account .eseb-document-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.woocommerce-account .eseb-document-meta {
	color: var(--eseb-acc-muted);
	font-size: var(--eseb-acc-small);
	margin-left: 8px;
}
