/**
 * Header v2.
 *
 * One bar for every screen: full menu from 1100px, slide-in panel below.
 */

.cb-header-v2 {
	--cb-h-bg: #ffffff;
	--cb-h-text: #1f2430;
	--cb-h-muted: #5b6270;
	--cb-h-line: #e8e9ee;
	--cb-h-focus: #0e5887;
	--cb-h-height: 96px;
	--cb-h-height-scrolled: 68px;
	--cb-h-font: "Poppins", sans-serif;

	/* Brand colours of the menu items (same as the previous buttons) */
	--cb-c-about: #951b81;
	--cb-c-educators: #25b6bd;
	--cb-c-parents: #0e5887;
	--cb-c-blog: #3acbe0;
	--cb-c-contact: #9d1c66;
	--cb-c-accent: #972149;
}

.cb-header-v2 .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cb-header-v2 .cb-skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: #fff;
	color: var(--cb-h-text);
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

/* Bar ------------------------------------------------------------------ */

.cb-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	background: var(--cb-h-bg);
	font-family: var(--cb-h-font);
	transition: box-shadow 0.25s ease;
}

.cb-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(16, 24, 40, 0.08);
}

.cb-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1280px;
	height: var(--cb-h-height);
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	transition: height 0.25s ease;
}

.cb-header.is-scrolled .cb-header__bar {
	height: var(--cb-h-height-scrolled);
}

.cb-header__brand {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	line-height: 0;
}

.cb-header img.cb-header__logo {
	display: block;
	width: auto !important;
	max-width: none !important;
	transition: height 0.25s ease;
}

.cb-header img.cb-header__logo--full {
	height: 72px !important;
}

.cb-header.is-scrolled img.cb-header__logo--full {
	height: 50px !important;
}

.cb-header img.cb-header__logo--icon {
	display: none;
	height: 44px !important;
}

/* Resets against the legacy (BeTheme) global styles */
.cb-header-v2 #Wrapper {
	padding-top: 0 !important;
}

.cb-header button,
.cb-header a {
	box-shadow: none;
	text-shadow: none;
	min-height: 0;
	letter-spacing: inherit;
}

.cb-header .cb-nav button.cb-nav__link,
.cb-header .cb-nav button.cb-nav__subtoggle,
.cb-header .cb-nav button.cb-nav__link:hover,
.cb-header .cb-nav button.cb-nav__subtoggle:hover,
.cb-header .cb-nav button.cb-nav__link:focus,
.cb-header .cb-nav button.cb-nav__subtoggle:focus {
	background: transparent !important;
	border-radius: 0;
}

/* Icon buttons ---------------------------------------------------------- */

.cb-header .cb-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--cb-h-text);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.cb-header .cb-icon-btn:hover {
	background: #f2f3f6;
}

.cb-header svg,
.cb-drawer svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cb-header :focus-visible {
	outline: 3px solid var(--cb-h-focus);
	outline-offset: 2px;
}

.cb-header__actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.cb-header__cart .header-cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	box-sizing: border-box;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	color: #fff;
	text-align: center;
	background: var(--cb-c-accent);
	border-radius: 9px;
}

/* An empty cart shows just the bag. */
.cb-header__cart .header-cart-count.mfn-header-icon-0 {
	display: none;
}

.cb-header__menu-toggle {
	display: none !important;
}

/* Desktop menu ---------------------------------------------------------- */

.cb-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.cb-nav__panel-head,
.cb-nav__extras {
	display: none;
}

.cb-nav__list,
.cb-nav__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cb-nav__list {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.cb-nav__item {
	position: relative;
	margin: 0;
}

.cb-nav__item--depth-0 {
	--cb-item: var(--cb-c-accent);
}

.cb-nav__item.cb-nav-elprimero { --cb-item: var(--cb-c-about); }
.cb-nav__item.cb-nav-elsegundo { --cb-item: var(--cb-c-educators); }
.cb-nav__item.cb-nav-eltercero { --cb-item: var(--cb-c-parents); }
.cb-nav__item.cb-nav-elsexto { --cb-item: var(--cb-c-blog); }
.cb-nav__item.cb-nav-elseptimo { --cb-item: var(--cb-c-contact); }

.cb-nav__link,
.cb-nav__subtoggle {
	margin: 0;
	font-family: var(--cb-h-font);
	background: none;
	border: 0;
	cursor: pointer;
}

.cb-nav__item--depth-0 {
	display: flex;
	align-items: stretch;
	border-radius: 10px;
	background: var(--cb-item);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cb-nav__item--depth-0:hover,
.cb-nav__item--depth-0:focus-within,
.cb-nav__item--depth-0.is-open {
	box-shadow: 0 6px 16px color-mix(in srgb, var(--cb-item) 35%, transparent);
	transform: translateY(-1px);
}

.cb-nav__item--depth-0.is-current {
	box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.55);
}

.cb-nav__item--depth-0 > .cb-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.cb-nav__item--depth-0 > .cb-nav__subtoggle {
	display: inline-flex;
	align-items: center;
	padding: 0 10px 0 0;
	color: #fff;
}

.cb-nav__item--depth-0 > .cb-nav__link svg,
.cb-nav__item--depth-0 > .cb-nav__subtoggle svg {
	width: 16px;
	height: 16px;
	stroke-width: 2;
	transition: transform 0.2s ease;
}

.cb-nav__item.is-open > .cb-nav__link svg,
.cb-nav__item.is-open > .cb-nav__subtoggle svg {
	transform: rotate(180deg);
}

/* Dropdowns */
.cb-nav__sub {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 10;
	min-width: 240px;
	padding: 8px;
	background: #fff;
	border-top: 3px solid var(--cb-item);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
}

.cb-nav__sub::before {
	/* Hover bridge between the button and the dropdown */
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 14px;
}

.cb-nav__sub .cb-nav__sub {
	position: static;
	min-width: 0;
	margin: 2px 0 4px 12px;
	padding: 0 0 0 10px;
	border-top: 0;
	border-left: 2px solid var(--cb-h-line);
	border-radius: 0;
	box-shadow: none;
}

.cb-nav__sub .cb-nav__sub::before {
	display: none;
}

.cb-nav__sub .cb-nav__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.cb-nav__sub .cb-nav__link {
	flex: 1 1 auto;
	display: block;
	padding: 10px 12px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--cb-h-text);
	text-decoration: none;
	border-radius: 8px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cb-nav__sub .cb-nav__link:hover,
.cb-nav__sub .cb-nav__link:focus-visible,
.cb-nav__sub .is-current > .cb-nav__link {
	color: var(--cb-item);
	background: color-mix(in srgb, var(--cb-item) 10%, #fff);
}

.cb-nav__sub .cb-nav__subtoggle {
	display: none;
}

.cb-nav__sub .cb-nav__sub[hidden] {
	display: block;
}

/* Search popover -------------------------------------------------------- */

.cb-search-pop {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	padding: 16px 24px 20px;
	background: #fff;
	border-top: 1px solid var(--cb-h-line);
	box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.cb-search-pop__inner {
	max-width: 760px;
	margin: 0 auto;
}

.cb-search-pop__form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 6px 0 16px;
	border: 2px solid var(--cb-h-line);
	border-radius: 12px;
}

.cb-search-pop__form:focus-within {
	border-color: var(--cb-h-focus);
}

.cb-search-pop__form svg {
	flex-shrink: 0;
	color: var(--cb-h-muted);
}

.cb-search-pop__form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0;
	font-family: var(--cb-h-font);
	font-size: 17px;
	color: var(--cb-h-text);
	background: transparent;
	border: 0;
	box-shadow: none;
	outline: none;
}

/* The legacy styles tint focused fields pink; the box itself shows focus. */
.cb-search-pop__form input[type="search"],
.cb-search-pop__form input[type="search"]:focus {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.cb-search-pop__form input[type="search"]::-webkit-search-cancel-button,
.cb-search-pop__form input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.cb-search-pop__form input[type="search"]::placeholder {
	color: var(--cb-h-muted);
	opacity: 1;
}

.cb-header .cb-search-pop__clear {
	flex-shrink: 0;
	min-height: 0;
	margin: 0;
	padding: 6px 10px;
	font-family: var(--cb-h-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--cb-h-muted);
	background: #f3f4f6;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.cb-header .cb-search-pop__clear:hover {
	color: var(--cb-h-text);
	background: #e5e7eb;
}

.cb-header .cb-search-pop__clear[hidden] {
	display: none;
}

/* Live results */
.cb-search-results {
	max-height: min(70vh, 560px);
	margin-top: 10px;
	overflow-y: auto;
	overscroll-behavior: contain;
	font-family: var(--cb-h-font);
}

.cb-search-results[hidden] {
	display: none;
}

.cb-sr__group + .cb-sr__group {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--cb-h-line);
}

.cb-sr__label {
	padding: 8px 10px 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cb-h-muted);
}

.cb-header a.cb-sr__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	color: var(--cb-h-text);
	text-decoration: none;
	border-radius: 10px;
}

.cb-header a.cb-sr__item.is-active,
.cb-header a.cb-sr__item:focus-visible {
	background: #f4f5f8;
	outline: none;
}

.cb-sr__thumb {
	display: block;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	overflow: hidden;
	background: #f3f4f6;
	border-radius: 8px;
}

.cb-sr__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cb-sr__group--page .cb-sr__thumb.is-empty,
.cb-sr__thumb.is-empty {
	background: #f3f4f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.cb-sr__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.cb-sr__title {
	overflow: hidden;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cb-sr__title mark {
	padding: 0;
	font-weight: 700;
	color: inherit;
	background: none;
	box-shadow: inset 0 -0.4em 0 rgba(242, 195, 51, 0.45);
}

.cb-sr__meta {
	font-size: 13px;
	line-height: 1.35;
	color: var(--cb-h-muted);
}

.cb-sr__price {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--cb-c-accent, #a31647);
	white-space: nowrap;
}

.cb-header a.cb-sr__all {
	display: block;
	margin-top: 6px;
	padding: 12px 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cb-c-accent, #a31647);
	text-align: center;
	text-decoration: none;
	border-top: 1px solid var(--cb-h-line);
	border-radius: 0 0 10px 10px;
}

.cb-header a.cb-sr__all.is-active,
.cb-header a.cb-sr__all:hover {
	background: #fdf2f6;
}

.cb-sr__empty {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 10px;
	font-size: 14px;
	color: var(--cb-h-muted);
	text-align: center;
}

.cb-sr__empty strong {
	font-size: 15px;
	font-weight: 600;
	color: var(--cb-h-text);
}

.cb-sr__skel-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
}

.cb-sr__skel-img,
.cb-sr__skel-line {
	display: block;
	background: linear-gradient(90deg, #f1f2f4 25%, #e6e8eb 37%, #f1f2f4 63%);
	background-size: 400% 100%;
	animation: cb-sr-shimmer 1.2s ease infinite;
}

.cb-sr__skel-img {
	flex: 0 0 44px;
	height: 44px;
	border-radius: 8px;
}

.cb-sr__skel-lines {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 7px;
}

.cb-sr__skel-line {
	width: 70%;
	height: 12px;
	border-radius: 6px;
}

.cb-sr__skel-line.is-short {
	width: 35%;
}

@keyframes cb-sr-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

@media (max-width: 1099px) {
	.cb-search-results {
		max-height: calc(100vh - var(--cb-h-height) - 110px);
	}

	.cb-sr__title {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cb-sr__skel-img,
	.cb-sr__skel-line {
		animation: none;
	}
}

/* Shared buttons of the header panels ---------------------------------- */

.cb-header-v2 .cb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	font-family: var(--cb-h-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cb-header-v2 .cb-btn--primary {
	color: #fff;
	background: #a31647;
	border-color: #a31647;
}

.cb-header-v2 .cb-btn--primary:hover {
	color: #fff;
	background: #8a1239;
	border-color: #8a1239;
}

.cb-header-v2 .cb-btn--ghost {
	color: var(--cb-h-text);
	background: #fff;
	border-color: #d1d5db;
}

.cb-header-v2 .cb-btn--ghost:hover {
	color: var(--cb-h-text);
	border-color: #9ca3af;
}

.cb-header-v2 .cb-btn--block {
	width: 100%;
}

/* Account dropdown ------------------------------------------------------ */

.cb-header__account-wrap {
	position: relative;
}

.cb-header__account.is-logged-in::after {
	content: "";
	position: absolute;
	right: 9px;
	bottom: 9px;
	width: 8px;
	height: 8px;
	background: #22c55e;
	border: 2px solid #fff;
	border-radius: 50%;
}

.cb-pop {
	position: absolute;
	top: calc(100% + 10px);
	right: -8px;
	z-index: 1001;
	box-sizing: border-box;
	width: 320px;
	padding: 18px;
	font-family: var(--cb-h-font);
	color: var(--cb-h-text);
	background: #fff;
	border: 1px solid var(--cb-h-line);
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(16, 24, 40, 0.16);
	animation: cb-pop-in 0.16s ease;
}

.cb-pop::before {
	content: "";
	position: absolute;
	top: -7px;
	right: 22px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-top: 1px solid var(--cb-h-line);
	border-left: 1px solid var(--cb-h-line);
	transform: rotate(45deg);
}

.cb-pop[hidden] {
	display: none;
}

@keyframes cb-pop-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

.cb-pop__title {
	margin: 0 0 2px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.cb-pop__lead {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--cb-h-muted);
}

.cb-login label {
	display: block;
	margin: 0 0 5px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--cb-h-text);
}

.cb-header .cb-login input[type="text"],
.cb-header .cb-login input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	margin: 0 0 12px;
	padding: 0 12px;
	font-family: inherit;
	font-size: 15px;
	color: var(--cb-h-text);
	background: #fff !important;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	box-shadow: none;
}

.cb-header .cb-login input:focus {
	border-color: var(--cb-h-focus);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(14, 88, 135, 0.2);
}

.cb-login__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 13px;
}

.cb-login .cb-login__remember {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 400;
	color: var(--cb-h-muted);
}

.cb-login__remember input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #a31647;
}

.cb-header .cb-login a {
	color: #a31647;
	text-decoration: none;
}

.cb-header .cb-login a:hover {
	text-decoration: underline;
}

.cb-login .cb-btn {
	width: 100%;
}

.cb-login__signup {
	margin: 14px 0 0;
	padding-top: 14px;
	font-size: 13px;
	text-align: center;
	color: var(--cb-h-muted);
	border-top: 1px solid var(--cb-h-line);
}

.cb-header .cb-login__signup a {
	font-weight: 600;
}

.cb-account-pop {
	padding: 8px;
}

.cb-account-pop__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 6px;
	padding: 10px 10px 14px;
	border-bottom: 1px solid var(--cb-h-line);
}

.cb-account-pop__avatar {
	display: inline-flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-weight: 600;
	color: #fff;
	background: #a31647;
	border-radius: 50%;
}

.cb-account-pop__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.cb-account-pop__who strong {
	font-size: 15px;
	font-weight: 600;
}

.cb-account-pop__who span {
	overflow: hidden;
	font-size: 13px;
	color: var(--cb-h-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cb-header .cb-account-pop__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cb-header .cb-account-pop__menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cb-header .cb-account-pop__menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--cb-h-text);
	text-decoration: none;
	border-radius: 10px;
}

.cb-header .cb-account-pop__menu a::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--cb-ico) center / contain no-repeat;
	mask: var(--cb-ico) center / contain no-repeat;
	opacity: 0.75;
}

.cb-header .cb-account-pop__menu a:hover,
.cb-header .cb-account-pop__menu a:focus-visible {
	background: #f4f5f8;
	outline: none;
}

.cb-header .cb-account-pop__menu .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--cb-h-line);
}

.cb-header .cb-account-pop__menu .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #b91c1c;
}

/* Side cart --------------------------------------------------------------- */

html.cb-drawer-open {
	overflow: hidden;
}

.cb-drawer {
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(16, 24, 40, 0);
	transition: background-color 0.25s ease;
}

.cb-drawer[hidden] {
	display: none;
}

.cb-drawer.is-open {
	background: rgba(16, 24, 40, 0.45);
}

.cb-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: min(420px, 100vw);
	font-family: var(--cb-h-font);
	color: var(--cb-h-text);
	background: #fff;
	box-shadow: -18px 0 48px rgba(16, 24, 40, 0.18);
	transform: translateX(100%);
	transition: transform 0.25s ease;
}

.cb-drawer.is-open .cb-drawer__panel {
	transform: none;
}

.cb-drawer__head {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	padding: 14px 12px 14px 22px;
	border-bottom: 1px solid var(--cb-h-line);
}

.cb-header-v2 .cb-drawer__title {
	margin: 0;
	font-family: var(--cb-h-font);
	font-size: 19px !important;
	font-weight: 600;
	line-height: 1.3;
	color: var(--cb-h-text);
}

.cb-drawer .cb-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--cb-h-text);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.cb-drawer .cb-icon-btn:hover {
	background: #f4f5f8;
}

.cb-drawer__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	transition: opacity 0.15s ease;
}

.cb-drawer.is-busy .cb-drawer__body {
	opacity: 0.55;
	pointer-events: none;
}

.cb-header-v2 .cb-cart-list {
	flex: 1 1 auto;
	margin: 0;
	padding: 6px 22px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.cb-cart-item {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 16px 0;
	list-style: none;
	border-bottom: 1px solid var(--cb-h-line);
	transition: opacity 0.2s ease;
}

.cb-cart-item:last-child {
	border-bottom: 0;
}

.cb-cart-item.is-removing {
	opacity: 0.35;
}

.cb-cart-item__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	overflow: hidden;
	background: #f3f4f6;
	border-radius: 10px;
}

.cb-cart-item__thumb img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.cb-cart-item__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.cb-header-v2 .cb-cart-item__name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.cb-header-v2 .cb-cart-item__name a {
	color: var(--cb-h-text);
	text-decoration: none;
}

.cb-header-v2 .cb-cart-item__name a:hover {
	color: #a31647;
}

/* Item details (child, registration, add-ons) as a compact list */
.cb-header-v2 .cb-cart-item dl.variation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 8px;
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--cb-h-muted);
	border: 0;
}

.cb-header-v2 .cb-cart-item dl.variation dt,
.cb-header-v2 .cb-cart-item dl.variation dd {
	float: none;
	margin: 0;
	padding: 0;
	font-weight: 400;
	border: 0;
}

.cb-header-v2 .cb-cart-item dl.variation dt {
	color: #8a909c;
}

.cb-header-v2 .cb-cart-item dl.variation dd p {
	margin: 0;
	color: var(--cb-h-text);
}

.cb-cart-item__foot {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.cb-qty {
	display: inline-flex;
	align-items: center;
	height: 34px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
}

.cb-header-v2 .cb-qty__btn {
	min-height: 0;
	letter-spacing: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 1;
	color: var(--cb-h-text);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.cb-header-v2 .cb-qty__btn:hover:not([disabled]) {
	background: #f4f5f8;
}

.cb-header-v2 .cb-qty__btn[disabled] {
	opacity: 0.35;
	cursor: default;
}

.cb-qty__value {
	min-width: 22px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.cb-cart-item__qty-fixed {
	font-size: 13px;
	color: var(--cb-h-muted);
}

.cb-header-v2 .cb-cart-item__remove {
	min-height: 0;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cb-h-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
	background: none;
	border: 0;
	cursor: pointer;
}

.cb-header-v2 .cb-cart-item__remove:hover {
	color: #b91c1c;
}

.cb-cart-item__price {
	margin-left: auto;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

/* Prices keep the text colour (the legacy styles paint amounts green). */
.cb-drawer .woocommerce-Price-amount,
.cb-drawer .amount {
	color: inherit !important;
}

.cb-drawer__foot {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 22px 22px;
	background: #fafbfc;
	border-top: 1px solid var(--cb-h-line);
}

.cb-header-v2 .cb-drawer__line {
	display: flex;
	justify-content: space-between;
	margin: 0;
	font-size: 14px;
}

.cb-header-v2 .cb-drawer__line--discount {
	color: #15803d;
}

.cb-header-v2 .cb-drawer__line--total {
	font-size: 17px;
	font-weight: 600;
}

.cb-header-v2 .cb-drawer__note {
	margin: -4px 0 4px;
	font-size: 12px;
	color: var(--cb-h-muted);
}

.cb-drawer__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	gap: 6px;
	padding: 32px 28px;
	font-size: 14px;
	text-align: center;
	color: var(--cb-h-muted);
}

.cb-drawer__empty p {
	margin: 0;
}

.cb-drawer__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 8px;
	color: #a31647;
	background: #fdf2f6;
	border-radius: 50%;
}

.cb-drawer .cb-drawer__empty-icon svg {
	width: 32px;
	height: 32px;
	stroke-width: 1.5;
}

.cb-header-v2 .cb-drawer__empty-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--cb-h-text);
}

.cb-drawer__empty-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
	.cb-drawer,
	.cb-drawer__panel,
	.cb-pop {
		transition: none;
		animation: none;
	}
}

/* Mobile and tablet ------------------------------------------------------ */

@media (max-width: 1099px) {
	.cb-header-v2 {
		--cb-h-height: 64px;
		--cb-h-height-scrolled: 58px;
	}

	.cb-header__bar {
		gap: 8px;
		padding: 0 12px 0 16px;
	}

	.cb-header img.cb-header__logo--full {
		height: 50px !important;
	}

	.cb-header.is-scrolled img.cb-header__logo--full {
		height: 44px !important;
	}

	.cb-header__account {
		display: none !important;
	}

	.cb-header__menu-toggle {
		display: inline-flex !important;
	}

	.cb-nav {
		flex: 0 0 0;
	}

	.cb-nav__panel {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1002;
		display: flex;
		flex-direction: column;
		width: min(88vw, 380px);
		padding: 0 0 24px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		box-shadow: -16px 0 40px rgba(16, 24, 40, 0.18);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.3s ease, visibility 0s linear 0.3s;
	}

	.cb-nav.is-open .cb-nav__panel {
		transform: none;
		visibility: visible;
		transition: transform 0.3s ease;
	}

	.cb-nav__panel-head {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 10px 10px 20px;
		background: #fff;
		border-bottom: 1px solid var(--cb-h-line);
	}

	.cb-nav__panel-title {
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0.08em;
		color: var(--cb-h-muted);
		text-transform: uppercase;
	}

	.cb-nav__list {
		display: block;
		padding: 12px 12px 0;
	}

	.cb-nav__item--depth-0 {
		flex-wrap: wrap;
		margin: 0 0 8px;
		background: #fff;
		border: 1px solid var(--cb-h-line);
		border-left: 5px solid var(--cb-item);
		border-radius: 10px;
		transform: none !important;
		box-shadow: none !important;
	}

	.cb-nav__item--depth-0 > .cb-nav__link {
		flex: 1 1 auto;
		justify-content: space-between;
		height: 52px;
		padding: 0 16px;
		font-size: 15px;
		color: var(--cb-h-text);
	}

	.cb-nav__item--depth-0 > .cb-nav__subtoggle {
		width: 52px;
		justify-content: center;
		padding: 0;
		color: var(--cb-h-text);
		border-left: 1px solid var(--cb-h-line);
	}

	.cb-nav__item--depth-0 > .cb-nav__link svg,
	.cb-nav__item--depth-0 > .cb-nav__subtoggle svg {
		width: 20px;
		height: 20px;
		color: var(--cb-item);
	}

	.cb-nav__item--depth-0.is-current > .cb-nav__link {
		color: var(--cb-item);
	}

	.cb-nav__sub {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 8px 8px;
		border-top: 1px solid var(--cb-h-line);
		border-radius: 0;
		box-shadow: none;
	}

	.cb-nav__sub::before {
		display: none;
	}

	.cb-nav__sub .cb-nav__link {
		padding: 12px;
	}

	.cb-nav__extras {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin-top: auto;
		padding: 16px 12px 0;
	}

	.cb-nav__extra {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		height: 48px;
		font-size: 14px;
		font-weight: 500;
		color: var(--cb-h-text);
		text-decoration: none;
		background: #f4f5f8;
		border-radius: 10px;
	}

	.cb-nav-overlay {
		/* Below the header: the panel lives inside the header's stacking context. */
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(16, 24, 40, 0.45);
	}

	.cb-search-pop {
		padding: 12px 16px 16px;
	}

	html.cb-nav-open {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cb-header,
	.cb-header *,
	.cb-nav__panel {
		transition: none !important;
	}
}
