:root {
	--wax-hub-aqua: #2bbbcb;
	--wax-hub-black: #000;
	--wax-hub-ink: #171513;
	--wax-hub-white: #fff;
	--wax-hub-rule: rgba(255, 255, 255, 0.34);
}

/* Keep Elementor as the page shell while allowing WooCommerce to span it. */
.wax-my-wax-account.logged-in .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce {
	display: block;
}

.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation,
.wax-my-wax-account.logged-in .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
}

.wax-my-wax-account.logged-in .woocommerce-MyAccount-content {
	padding: 0 !important;
}

.wax-my-wax-account.logged-in.woocommerce-dashboard .woocommerce-MyAccount-content-wrapper {
	width: 100% !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

/* Local navigation: a strong WAX rail with an unmistakable current section. */
.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation {
	clear: both;
	margin: 0 0 clamp(28px, 4vw, 48px);
	border-block: 2px solid var(--wax-hub-white);
	background: var(--wax-hub-black);
}

.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation ul {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation li {
	min-width: 0;
	width: 100% !important;
	margin: 0;
	border: 0;
	border-right: 1px solid var(--wax-hub-rule);
}

.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation li:last-child {
	border-right: 0;
}

/* Override Elementor's widget typography and block-link layout. */
.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation li a {
	display: flex !important;
	min-height: 58px;
	align-items: center !important;
	justify-content: center !important;
	padding: 12px 16px !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--wax-hub-white) !important;
	-webkit-text-fill-color: currentColor !important;
	-webkit-text-stroke: 0 !important;
	font-family: Inter, Arial, sans-serif !important;
	font-size: clamp(16px, 1.2vw, 20px) !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-transform: none !important;
	white-space: nowrap;
}

.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation li a:hover {
	background: var(--wax-hub-black) !important;
	color: var(--wax-hub-aqua) !important;
}

.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wax-hub-aqua) !important;
	color: var(--wax-hub-ink) !important;
	-webkit-text-fill-color: var(--wax-hub-ink);
	-webkit-text-stroke: 0;
}

.wax-my-wax-account a:focus-visible,
.wax-my-wax-account button:focus-visible,
.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation a:focus-visible {
	outline: 3px solid var(--wax-hub-aqua);
	outline-offset: 4px;
}

.wax-my-wax {
	color: var(--wax-hub-white);
	font-family: "din-2014", sans-serif;
}

/* A compact greeting lets the event imagery lead. */
.wax-hub-intro {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(24px, 3vw, 38px);
}

.wax-hub-intro p {
	margin: 0;
}

.wax-hub-intro__eyebrow {
	margin-bottom: 4px !important;
	color: var(--wax-hub-aqua);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wax-hub-intro__statement {
	font-family: "din-2014-narrow", sans-serif;
	font-size: clamp(24px, 2.6vw, 36px);
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

.wax-hub-signout {
	flex: 0 0 auto;
	padding: 8px 0;
	border-bottom: 2px solid var(--wax-hub-aqua);
	color: var(--wax-hub-white);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
}

/* Homepage-inspired event feature: image first, hard edges, black panel. */
.wax-hub-next {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
	margin-bottom: clamp(48px, 7vw, 88px);
	border: 2px solid var(--wax-hub-white);
	border-top: 8px solid var(--wax-hub-aqua);
	background: var(--wax-hub-black);
	color: var(--wax-hub-white);
}

.wax-hub-next__media {
	align-self: stretch;
	aspect-ratio: 16 / 9;
	min-width: 0;
	overflow: hidden;
	border-right: 2px solid var(--wax-hub-white);
	background: var(--wax-hub-black);
}

.wax-hub-next__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	aspect-ratio: 16 / 9;
	object-fit: contain;
}

.wax-hub-next__image--fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--wax-hub-white);
	font-family: Inter, sans-serif;
	font-size: clamp(70px, 10vw, 150px);
	font-weight: 900;
	letter-spacing: -0.08em;
	line-height: 0.75;
	text-transform: uppercase;
}

.wax-hub-next__image--fallback small {
	color: var(--wax-hub-aqua);
	font-size: 0.32em;
	letter-spacing: 0.38em;
}

.wax-hub-next__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(16px, 1.4vw, 24px);
}

.wax-hub-next__topline {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wax-hub-rule);
	color: var(--wax-hub-aqua);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.wax-my-wax-account .wax-my-wax .wax-hub-next h2 {
	margin: 0 0 14px;
	color: var(--wax-hub-white) !important;
	font-family: Inter, sans-serif !important;
	font-size: clamp(24px, 2vw, 36px) !important;
	font-weight: 900 !important;
	letter-spacing: -0.045em;
	line-height: 1 !important;
	text-transform: uppercase !important;
}

.wax-hub-next__facts {
	display: grid;
	gap: 0;
	margin: 0 0 14px;
}

.wax-hub-next__facts > div {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
	padding: 6px 0;
	border-top: 1px solid var(--wax-hub-rule);
}

.wax-hub-next__facts dt,
.wax-hub-next__facts dd {
	margin: 0;
}

.wax-hub-next__facts dt {
	color: var(--wax-hub-aqua);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wax-hub-next__facts dd {
	color: var(--wax-hub-white);
	font-size: 14px;
	line-height: 1.3;
}

.wax-hub-next .wax-hub-button {
	min-height: 40px;
	padding: 10px 16px;
	font-size: 12px;
}

.wax-hub-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wax-hub-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 2px solid var(--wax-hub-white);
	border-radius: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.wax-hub-button--primary {
	border-color: var(--wax-hub-aqua);
	background: var(--wax-hub-aqua);
	color: var(--wax-hub-ink) !important;
}

.wax-hub-button--secondary {
	background: transparent;
	color: var(--wax-hub-white) !important;
}

.wax-hub-button:hover,
.wax-hub-button:focus-visible {
	border-color: var(--wax-hub-white);
	background: var(--wax-hub-white);
	color: var(--wax-hub-ink) !important;
}

/* Compact lists reuse the homepage's hard rules and condensed headings. */
.wax-hub-section {
	margin-bottom: clamp(48px, 7vw, 86px);
}

.wax-hub-section__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 12px;
	border-bottom: 5px solid var(--wax-hub-aqua);
}

.wax-hub-section__heading h2,
.wax-hub-section__heading p {
	margin: 0;
}

.wax-my-wax-account .wax-my-wax .wax-hub-section__heading h2 {
	font-family: "din-2014-narrow", sans-serif !important;
	font-size: clamp(30px, 4vw, 48px) !important;
	font-weight: 600 !important;
	letter-spacing: -0.01em;
	line-height: 0.95 !important;
	text-transform: uppercase !important;
}

.wax-hub-section__heading > span {
	color: var(--wax-hub-aqua);
	font-family: "din-2014-narrow", sans-serif;
	font-size: 34px;
	font-weight: 600;
}

.wax-hub-row {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr) minmax(105px, auto) minmax(88px, auto);
	align-items: center;
	gap: clamp(16px, 3vw, 42px);
	padding: 20px 0;
	border-bottom: 1px solid var(--wax-hub-rule);
}

.wax-hub-row__date {
	display: flex;
	flex-direction: column;
	color: var(--wax-hub-aqua);
	line-height: 1;
	text-transform: uppercase;
}

.wax-hub-row__date strong {
	font-family: "din-2014-narrow", sans-serif;
	font-size: 38px;
	font-weight: 600;
}

.wax-hub-row__date span {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.wax-hub-row__main h3,
.wax-hub-row__main p,
.wax-hub-row__meta {
	margin: 0;
}

.wax-my-wax-account .wax-my-wax .wax-hub-row__main h3 {
	font-family: "din-2014-narrow", sans-serif !important;
	font-size: clamp(22px, 2.4vw, 30px) !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	line-height: 1 !important;
	text-transform: uppercase !important;
}

.wax-hub-row__main p {
	margin-top: 5px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 1.25;
}

.wax-hub-row__meta,
.wax-hub-row__status {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
}

.wax-hub-row__meta span {
	display: block;
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
}

.wax-hub-row__link {
	padding: 9px 0;
	border-bottom: 2px solid var(--wax-hub-aqua);
	color: var(--wax-hub-white);
	font-size: 13px;
	font-weight: 700;
	text-align: right;
	text-transform: uppercase;
}

.wax-hub-row__status {
	color: rgba(255, 255, 255, 0.58);
	text-align: right;
}

/* Empty/error states stay on the black page instead of becoming app cards. */
.wax-hub-empty,
.wax-hub-error {
	margin-bottom: clamp(48px, 7vw, 86px);
	padding: clamp(28px, 4vw, 48px) 0;
	border-top: 8px solid var(--wax-hub-aqua);
	border-bottom: 1px solid var(--wax-hub-rule);
	background: var(--wax-hub-black);
	color: var(--wax-hub-white);
}

.wax-my-wax-account .wax-my-wax .wax-hub-empty h2,
.wax-my-wax-account .wax-my-wax .wax-hub-error h2 {
	max-width: 800px;
	margin: 10px 0 16px;
	color: var(--wax-hub-white) !important;
	font-family: "din-2014-narrow", sans-serif !important;
	font-size: clamp(38px, 5vw, 64px) !important;
	font-weight: 600 !important;
	line-height: 0.95 !important;
	text-transform: uppercase !important;
}

.wax-hub-empty > p,
.wax-hub-error > p {
	max-width: 650px;
	margin: 0 0 25px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 17px;
}

@media (max-width: 1024px) {
	.wax-hub-next {
		grid-template-columns: minmax(0, 1fr);
	}

	.wax-hub-next__media,
	.wax-hub-next__content {
		min-width: 0;
	}

	.wax-hub-next__media {
		min-height: auto;
		aspect-ratio: 16 / 9;
		border-right: 0;
		border-bottom: 2px solid var(--wax-hub-white);
	}

	.wax-hub-next__image {
		min-height: auto;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 767px) {
	.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation {
		position: sticky;
		top: 104px;
		z-index: 30;
		margin-inline: calc(50% - 50vw);
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation ul {
		display: flex;
		width: max-content;
		min-width: 100%;
		gap: 0;
		padding-inline: 0;
	}

	.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
		width: auto !important;
	}

	.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation li a {
		min-height: 52px;
		padding-inline: 20px;
		font-size: 18px;
	}

	.wax-hub-intro {
		align-items: flex-end;
		margin-bottom: 24px;
	}

	.wax-hub-intro__statement {
		font-size: 24px;
	}

	.wax-hub-signout {
		font-size: 12px;
	}

	.wax-hub-next {
		margin-inline: calc(50% - 50vw);
		border-inline: 0;
	}

	.wax-hub-next__content {
		padding: 24px max(20px, calc((100vw - 100%) / 2));
	}

	.wax-hub-next__topline {
		margin-bottom: 30px;
	}

	.wax-my-wax-account .wax-my-wax .wax-hub-next h2 {
		overflow-wrap: anywhere;
	}

	.wax-hub-next__facts > div {
		grid-template-columns: 66px minmax(0, 1fr);
	}

	.wax-hub-actions,
	.wax-hub-button {
		width: 100%;
	}

	.wax-hub-row {
		grid-template-columns: 60px minmax(0, 1fr) auto;
		gap: 14px;
		padding: 18px 0;
	}

	.wax-hub-row__date strong {
		font-size: 30px;
	}

	.wax-hub-row__meta {
		grid-column: 2 / -1;
		margin-top: -6px;
	}

	.wax-hub-row__link,
	.wax-hub-row__status {
		grid-column: 3;
		grid-row: 1;
	}

	.wax-hub-row--history {
		grid-template-columns: 68px minmax(0, 1fr);
	}

	.wax-hub-row--history .wax-hub-row__meta {
		grid-column: 2;
	}

	.wax-hub-row--history .wax-hub-row__status {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wax-my-wax-account.logged-in .woocommerce-MyAccount-navigation {
		scroll-behavior: auto;
	}
}
