/* WP EasyCart Docs as Markdown: Copy page and its menu. Quiet on purpose: a small outlined control the height of BetterDocs'
   breadcrumb pill, at the other end of the breadcrumb bar. Every rule names two classes, so a theme's or a kit's own button and
   link rules ( one class and an element, 0,1,1; hovered 0,2,1 ) never fill it in. --wpec-docmd-accent ( the kit's primary colour )
   draws the focus ring and the tick; the template's CSS can restyle any class. */
.wpec-docmd {
	--wpec-docmd-accent: var( --e-global-color-primary, #2563eb );
	--wpec-docmd-ink: #344054;
	--wpec-docmd-strong: #101828;
	--wpec-docmd-muted: #667085;
	--wpec-docmd-line: #d0d5dd;
	--wpec-docmd-soft: #f2f4f7;
	position: relative;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: inherit;
}

/* The breadcrumb bar: the breadcrumb at one end, the control at the other. */
.wpec-docmd-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}
.wpec-docmd-bar > :first-child {
	flex: 0 1 auto;
	min-width: 0;
}
.wpec-docmd-bar > .wpec-docmd {
	margin-left: auto;
}

/* ---- Copy page | ▾ ---- */
.wpec-docmd .wpec-docmd__split {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var( --wpec-docmd-line );
	border-radius: 999px;
	background: #fff;
}
.wpec-docmd .wpec-docmd__main,
.wpec-docmd .wpec-docmd__more {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var( --wpec-docmd-ink );
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.wpec-docmd .wpec-docmd__main {
	padding-left: 14px;
	border-radius: 999px 0 0 999px;
}
.wpec-docmd .wpec-docmd__more {
	padding: 0 10px 0 9px;
	border-left: 1px solid var( --wpec-docmd-line );
	border-radius: 0 999px 999px 0;
}
.wpec-docmd .wpec-docmd__main:hover,
.wpec-docmd .wpec-docmd__more:hover,
.wpec-docmd .wpec-docmd__more[aria-expanded="true"] {
	background: var( --wpec-docmd-soft );
	color: var( --wpec-docmd-strong );
	box-shadow: none;
}
.wpec-docmd .wpec-docmd__main:focus,
.wpec-docmd .wpec-docmd__more:focus {
	background: transparent;
	color: var( --wpec-docmd-ink );
	outline: none;
	box-shadow: none;
}
.wpec-docmd .wpec-docmd__main:focus-visible,
.wpec-docmd .wpec-docmd__more:focus-visible {
	z-index: 1;
	background: var( --wpec-docmd-soft );
	color: var( --wpec-docmd-strong );
	outline: 2px solid var( --wpec-docmd-accent );
	outline-offset: 2px;
}
.wpec-docmd .wpec-docmd__icon {
	display: inline-flex;
	flex: none;
}
.wpec-docmd .wpec-docmd__icon--done,
.wpec-docmd .is-copied .wpec-docmd__icon--copy {
	display: none;
}
.wpec-docmd .is-copied .wpec-docmd__icon--done {
	display: inline-flex;
	color: var( --wpec-docmd-accent );
}
.wpec-docmd .wpec-docmd__more svg {
	transition: transform 0.15s ease;
}
.wpec-docmd .wpec-docmd__more[aria-expanded="true"] svg {
	transform: rotate( 180deg );
}

/* ---- the menu ---- */
.wpec-docmd .wpec-docmd__menu {
	position: absolute;
	top: calc( 100% + 6px );
	right: 0;
	z-index: 1000;
	display: grid;
	gap: 2px;
	width: 300px;
	max-width: calc( 100vw - 32px );
	padding: 6px;
	border: 1px solid #eaecf0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba( 16, 24, 40, 0.14 ), 0 2px 6px rgba( 16, 24, 40, 0.06 );
	text-align: left;
}
.wpec-docmd .wpec-docmd__menu[hidden] {
	display: none;
}
.wpec-docmd .wpec-docmd__menu.is-left {
	right: auto;
	left: 0;
}
.wpec-docmd .wpec-docmd__item,
.wpec-docmd .wpec-docmd__item:visited {
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	grid-template-columns: 18px minmax( 0, 1fr ) auto;
	gap: 10px;
	align-items: start;
	width: 100%;
	margin: 0;
	padding: 9px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var( --wpec-docmd-strong );
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}
.wpec-docmd .wpec-docmd__item:hover,
.wpec-docmd .wpec-docmd__item:focus {
	background: var( --wpec-docmd-soft );
	color: var( --wpec-docmd-strong );
	box-shadow: none;
	outline: none;
	text-decoration: none;
}
.wpec-docmd .wpec-docmd__item:focus-visible {
	outline: 2px solid var( --wpec-docmd-accent );
	outline-offset: -2px;
}
.wpec-docmd .wpec-docmd__item .wpec-docmd__icon {
	padding-top: 1px;
	color: var( --wpec-docmd-muted );
}
.wpec-docmd .wpec-docmd__title {
	display: block;
	font-weight: 600;
}
.wpec-docmd .wpec-docmd__hint {
	display: block;
	margin-top: 2px;
	color: var( --wpec-docmd-muted );
	font-size: 12.5px;
}
.wpec-docmd .wpec-docmd__out {
	display: inline-flex;
	padding-top: 1px;
	color: var( --wpec-docmd-muted );
}

/* ---- style="buttons": a row of outlined buttons ---- */
.wpec-docmd .wpec-docmd__btn,
.wpec-docmd .wpec-docmd__btn:visited {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var( --wpec-docmd-line );
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: var( --wpec-docmd-ink );
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}
.wpec-docmd .wpec-docmd__btn:hover,
.wpec-docmd .wpec-docmd__btn:focus {
	background: var( --wpec-docmd-soft );
	color: var( --wpec-docmd-strong );
	box-shadow: none;
	text-decoration: none;
}
.wpec-docmd .wpec-docmd__btn:focus-visible {
	outline: 2px solid var( --wpec-docmd-accent );
	outline-offset: 2px;
}

/* ---- shared ---- */
.wpec-docmd .wpec-docmd__status {
	color: var( --wpec-docmd-muted );
	font-size: 13px;
}
.wpec-docmd--menu .wpec-docmd__status,
.wpec-docmd .wpec-docmd__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}
.wpec-docmd .wpec-docmd__status:empty {
	display: none;
}
/* A copy that failed says so where it can be seen, under the control. */
.wpec-docmd--menu .wpec-docmd__status.is-error {
	top: calc( 100% + 6px );
	right: 0;
	z-index: 1000;
	width: max-content;
	max-width: min( 300px, calc( 100vw - 32px ) );
	height: auto;
	margin: 0;
	padding: 8px 10px;
	overflow: visible;
	clip: auto;
	white-space: normal;
	border: 1px solid #eaecf0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba( 16, 24, 40, 0.12 );
	color: #b42318;
}
@media ( prefers-reduced-motion: reduce ) {
	.wpec-docmd .wpec-docmd__more svg {
		transition: none;
	}
}
@media print {
	.wpec-docmd {
		display: none;
	}
}
