/* Shared breadcrumbs — single line; ellipsis only on current / long last crumb */
.book-breadcrumb,
.bn-breadcrumbs {
	max-width: 100%;
}

.book-breadcrumb ol,
.bn-breadcrumbs ol,
#left-area .bn-breadcrumbs ol,
.et_pb_text .bn-breadcrumbs ol {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 0;
	max-width: 100%;
	margin: 0;
	padding: 0.15rem 0 0;
	list-style: none !important;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #d7cdc8 transparent;
}

.book-breadcrumb ol::-webkit-scrollbar,
.bn-breadcrumbs ol::-webkit-scrollbar {
	height: 3px;
}

.book-breadcrumb ol::-webkit-scrollbar-thumb,
.bn-breadcrumbs ol::-webkit-scrollbar-thumb {
	background: #d7cdc8;
	border-radius: 999px;
}

.book-breadcrumb li,
.bn-breadcrumbs li,
#left-area .bn-breadcrumbs li,
.et_pb_text .bn-breadcrumbs li {
	display: inline-flex !important;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
	max-width: none;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	white-space: nowrap;
}

/* Only the current (last) crumb shrinks + ellipsizes */
.book-breadcrumb li:last-child,
.bn-breadcrumbs li:last-child,
#left-area .bn-breadcrumbs li:last-child,
.et_pb_text .bn-breadcrumbs li:last-child {
	flex: 1 1 auto;
	min-width: 4rem;
	max-width: 100%;
	overflow: hidden;
}

.book-breadcrumb li:last-child,
.book-breadcrumb li:last-child > a,
.bn-breadcrumbs li:last-child > a,
.bn-breadcrumbs li:last-child > span,
#left-area .bn-breadcrumbs li:last-child > a,
#left-area .bn-breadcrumbs li:last-child > span,
.et_pb_text .bn-breadcrumbs li:last-child > a,
.et_pb_text .bn-breadcrumbs li:last-child > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

/* Kill Divi / theme list bullets before our separators */
.bn-breadcrumbs li::before,
.bn-breadcrumbs li::after,
#left-area .bn-breadcrumbs li::before,
#left-area .bn-breadcrumbs li::after,
.et_pb_text .bn-breadcrumbs li::before,
.et_pb_text .bn-breadcrumbs li::after {
	content: none !important;
	display: none !important;
}

/* Separators stay outside truncated text */
.book-breadcrumb li:not(:last-child)::after {
	content: "/";
	flex: 0 0 auto;
	margin-left: 0.5rem;
	margin-right: 0.5rem;
	color: #b7bec8;
}

.bn-breadcrumbs li + li::before,
#left-area .bn-breadcrumbs li + li::before,
.et_pb_text .bn-breadcrumbs li + li::before {
	content: "›" !important;
	display: inline-block !important;
	flex: 0 0 auto;
	margin: 0 8px;
	color: #b3aaa6;
	font-weight: 400;
}

.page-carte .book-breadcrumb {
	padding: 0.2rem 0 0;
	margin: 0;
	background: transparent;
}

.page-carte .book-breadcrumb > .container {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.page-carte .book-breadcrumb ol {
	font-size: 0.82rem;
	line-height: 1.4;
	color: #6d7585;
}

.page-carte .book-breadcrumb a {
	color: #BF5D54;
	text-decoration: none;
	font-weight: 600;
}

.page-carte .book-breadcrumb a:hover {
	color: #3E4A64;
	text-decoration: underline;
}

.page-carte .book-breadcrumb li[aria-current="page"] {
	color: #3E4A64;
	font-weight: 600;
}
