/* Shared, direct navigation for customer, staff and management accounts. */
/* Woo's password guidance is part of its label, so it must wrap on phones. */
body:not(.wp-admin) .ac-account-shell.ac-portal .woocommerce form label {
	display: block;
	min-width: 0;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}
.ac-account-shell .ac-account-breadcrumbs {
	grid-column: 1 / -1;
	grid-row: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--ac-account-muted, #556174);
	font-size: .8125rem;
}
.ac-account-shell .ac-account-breadcrumbs ol {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ac-account-shell .ac-account-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
}
.ac-account-shell .ac-account-breadcrumbs li + li::before {
	content: '/';
	color: #a1aab9;
}
.entry-content .ac-account-shell .ac-account-breadcrumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 4px 2px;
	color: inherit;
	text-decoration: none;
}
.ac-account-shell .ac-account-breadcrumbs [aria-current] { overflow-wrap: anywhere; }
.entry-content .ac-account-shell .ac-account-breadcrumbs a:is(:hover, :focus-visible) {
	color: var(--ac-account-accent, #2448eb);
	text-decoration: underline;
}
/* The earlier studio skin includes body:not(.wp-admin) overrides. Match its
   scope and add the account shell class so the account header owns its layout. */
body:not(.wp-admin) .ac-account-shell.ac-portal > :is(.ac-portal-header, .ac-account-header) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
	grid-template-areas: "title signout" "actions actions";
	align-items: start;
	gap: 4px 12px;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ac-account-ink, #172234);
}
body:not(.wp-admin) .ac-account-shell.ac-portal > :is(.ac-portal-header, .ac-account-header) > div:first-child {
	grid-area: title;
	min-width: 0;
	width: auto;
}
body:not(.wp-admin) .ac-account-shell.ac-portal > :is(.ac-portal-header, .ac-account-header) h1 {
	max-width: 100%;
	margin: 0 0 4px;
	font-size: clamp(1.5rem, 4vw, 1.875rem);
	line-height: 1.2;
	overflow-wrap: anywhere;
	color: inherit;
}
body:not(.wp-admin) .ac-account-shell.ac-portal > :is(.ac-portal-header, .ac-account-header) .ac-account-header-actions {
	display: contents;
}
body:not(.wp-admin) .ac-account-shell.ac-portal > :is(.ac-portal-header, .ac-account-header) .ac-account-signout {
	grid-area: signout;
	position: static;
	inset: auto;
	align-self: start;
	justify-self: end;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 6px 0 6px 4px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	box-shadow: none;
	color: var(--ac-account-muted, #556174);
	font-size: .8125rem;
	line-height: 1.35;
	font-weight: 500;
	white-space: nowrap;
}
body:not(.wp-admin) .ac-account-shell.ac-portal > :is(.ac-portal-header, .ac-account-header) .ac-account-signout:is(:hover, :focus-visible) {
	background: transparent;
	color: var(--ac-account-accent, #2448eb);
	text-decoration: underline;
}
body:not(.wp-admin) .ac-account-shell.ac-portal .ac-account-header-actions > a.ac-button {
	grid-area: actions;
	justify-self: start;
	margin-top: 4px;
	background: var(--ac-account-accent, #2448eb);
	border-color: var(--ac-account-accent, #2448eb);
	color: #fff;
	text-decoration: none;
}
body:not(.wp-admin) .ac-account-shell.ac-portal .ac-account-header-actions > a.ac-button:is(:hover, :focus-visible) {
	background: #1c38bb;
	border-color: #1c38bb;
	color: #fff;
}
.ac-account-shell .ac-account-breadcrumbs a:focus-visible,
.ac-account-shell .ac-account-signout:focus-visible {
	outline: 2px solid var(--ac-account-accent, #2448eb);
	outline-offset: 2px;
}
/* Daily destinations never require a horizontal swipe. */
.ac-account-shell .ac-account-navigation .ac-account-navigation__links {
	display: grid;
	gap: 3px;
	padding: 5px;
	max-height: none;
	overflow: visible;
}
.ac-account-shell .ac-account-navigation .ac-account-navigation__link {
	gap: 9px;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 10px;
	border-radius: 8px;
	font-size: .875rem;
	line-height: 1.3;
	text-decoration: none;
	white-space: normal;
}
.ac-account-shell .ac-account-navigation__icon { flex: 0 0 19px; width: 19px; height: 19px; }
.entry-content .ac-account-shell .ac-account-navigation a.ac-account-navigation__link,
.entry-content .ac-account-shell a.ac-account-signout { text-decoration: none; }
.ac-account-shell .ac-account-navigation .ac-account-navigation__link.is-active {
	background: #edf1ff;
	color: #2448eb;
	box-shadow: inset 0 0 0 1px #d4dcff;
}
.ac-account-shell .ac-account-navigation :is(.ac-account-navigation__link, summary):focus-visible {
	outline: 2px solid var(--ac-account-accent, #2448eb);
	outline-offset: -2px;
}
.ac-account-shell .ac-account-navigation__more { margin: 0; padding: 0; border: 0; border-top: 1px solid #e8edf3; background: transparent; }
.ac-account-shell .ac-account-navigation__more > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	padding: 9px 15px;
	color: var(--ac-account-muted, #556174);
	font-size: .8125rem;
	font-weight: 550;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}
.ac-account-shell .ac-account-navigation__more > summary::-webkit-details-marker { display: none; }
.ac-account-shell .ac-account-navigation__more[open] > summary > span:last-child { transform: rotate(180deg); }
.ac-account-shell .ac-account-navigation__secondary {
	display: grid;
	gap: 2px;
	padding: 0 5px 5px;
	max-height: min(45dvh, 420px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
@media (max-width: 959px) {
	.ac-account-shell .ac-account-navigation { width: 100%; max-width: 100%; border-radius: 12px; box-shadow: 0 3px 12px rgb(20 32 52 / 4%); }
	.ac-account-shell .ac-account-navigation .ac-account-navigation__links {
		grid-template-columns: repeat(var(--ac-primary-count, 5), minmax(0, 1fr));
		gap: 2px;
		max-height: none;
		overflow: visible;
	}
	.ac-account-shell .ac-account-navigation .ac-account-navigation__links > .ac-account-navigation__link {
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		min-height: 62px;
		padding: 7px 3px;
		font-size: .6875rem;
		font-weight: 600;
		text-align: center;
		overflow-wrap: normal;
	}
	.ac-account-shell .ac-account-navigation__links .ac-account-navigation__icon { flex: 0 0 18px; width: 18px; height: 18px; }
	.ac-account-shell .ac-account-navigation__secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 959px) {
	.ac-account-shell .ac-account-navigation .ac-account-navigation__links > .ac-account-navigation__link { flex-direction: row; gap: 7px; min-height: 52px; font-size: .8125rem; }
	.ac-account-shell .ac-account-navigation__secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.ac-account-shell .ac-account-navigation { max-height: calc(100dvh - var(--ac-account-sticky-top) - 16px); overflow-y: auto; }
}
