/* ============================================================
   MOSE — B2B "Trade Terminal"
   The wholesale area as the back-of-house trade desk: the retail
   brand system (Archivo display + Space Mono data layer + pink
   conveyor accent + square corners + hairline rules) inverted to
   a dark control surface. Scoped under .mose-b2b.
   ============================================================ */

.mose-b2b {
	--b2b-bg:      #111111;
	--b2b-surface: #181818;
	--b2b-line:    rgba( 255, 255, 255, 0.14 );
	--b2b-line-2:  rgba( 255, 255, 255, 0.28 );
	--b2b-ink:     #ffffff;
	--b2b-dim:     rgba( 255, 255, 255, 0.55 );
	--b2b-mono:    "Space Mono", ui-monospace, monospace;
	--b2b-pink:    var( --mose-pink, #fc0075 );

	/* full-bleed: span the viewport between the (white) header & footer */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc( 50% - 50vw );
	margin-right: calc( 50% - 50vw );
	background: var( --b2b-bg );
	color: var( --b2b-ink );
	font-family: var( --mose-font, "Archivo", sans-serif );
	padding: clamp( 48px, 8vh, 96px ) clamp( 20px, 5vw, 64px ) clamp( 72px, 12vh, 128px );
	overflow-x: clip;
}

.mose-b2b__inner { max-width: 1140px; margin: 0 auto; }

/* neutralise theme container padding so the dark zone is flush top/bottom */
body.mose-b2b-page .site-main,
body.mose-b2b-page .page-content,
body.mose-b2b-page .ast-container,
body.mose-b2b-page .elementor-section-wrap { padding-top: 0 !important; padding-bottom: 0 !important; }

/* selection + links */
.mose-b2b ::selection { background: var( --b2b-pink ); color: #fff; }
.mose-b2b a { color: inherit; }

/* ---- masthead (centered, tech-page treatment) ---- */
.mose-b2b__head {
	text-align: center;
	max-width: 940px;
	margin: 0 auto clamp( 40px, 6vh, 76px );
}
.mose-b2b__title {
	font-weight: 800;
	font-size: clamp( 44px, 8vw, 96px );
	line-height: 0.94;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	margin: 0;
	color: var( --b2b-ink );
}
.mose-b2b__lede {
	max-width: 56ch;
	margin: 24px auto 0;
	font-size: clamp( 16px, 1.5vw, 21px );
	line-height: 1.55;
	color: var( --b2b-dim );
}
.mose-b2b__note {
	font-family: var( --b2b-mono );
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var( --b2b-dim );
	margin: 22px 0 28px;
}

/* ---- SIGNATURE: conditions readout strip ---- */
.mose-b2b__readout {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	margin: 0 0 8px;
	border: 1px solid var( --b2b-line );
	background: var( --b2b-surface );
}
.mose-b2b__field {
	position: relative;
	padding: 18px 22px;
	border-right: 1px solid var( --b2b-line );
}
.mose-b2b__field:last-child { border-right: 0; }
/* pink "live" tick, echoing the eventos bib / PDP cat-bar accent */
.mose-b2b__field::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 22px; height: 2px;
	background: var( --b2b-pink );
}
.mose-b2b__field dt {
	font-family: var( --b2b-mono );
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var( --b2b-dim );
	margin-bottom: 8px;
}
.mose-b2b__field dd {
	font-family: var( --b2b-mono );
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: var( --b2b-ink );
}
.mose-b2b__field:first-child dd { color: var( --b2b-pink ); } /* discount = the headline number */

/* ---- panels (access / register) ---- */
.mose-b2b__cols {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	border: 1px solid var( --b2b-line );
}
.mose-b2b__panel {
	padding: clamp( 28px, 4vw, 44px );
	border-right: 1px solid var( --b2b-line );
	background: var( --b2b-surface );
}
.mose-b2b__panel:last-child { border-right: 0; }
.mose-b2b__kicker {
	font-family: var( --b2b-mono );
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var( --b2b-ink );
	margin: 0 0 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid var( --b2b-line );
}

/* ---- forms (custom + wp_login_form) ---- */
.mose-b2b__form label,
.mose-b2b #loginform p { display: block; margin: 0 0 16px; }
.mose-b2b__form label {
	font-family: var( --b2b-mono );
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --b2b-dim );
}
.mose-b2b #loginform label {
	font-family: var( --b2b-mono );
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --b2b-dim );
}
.mose-b2b__form input,
.mose-b2b__form select,
.mose-b2b #loginform input.input,
.mose-b2b #loginform input[type="text"],
.mose-b2b #loginform input[type="password"] {
	display: block;
	width: 100%;
	margin-top: 7px;
	padding: 12px 14px;
	background: #0d0d0d;
	border: 1px solid var( --b2b-line );
	border-radius: 0;
	color: var( --b2b-ink );
	font-family: var( --b2b-mono );
	font-size: 14px;
	letter-spacing: 0.01em;
	transition: border-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.mose-b2b__form input:focus,
.mose-b2b__form select:focus,
.mose-b2b #loginform input:focus {
	outline: none;
	border-color: var( --b2b-pink );
}
.mose-b2b__form select { background-image: none; }
.mose-b2b #loginform .login-remember label {
	display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0;
}
.mose-b2b #loginform .login-remember input { width: auto; margin: 0; }

/* ---- buttons: pink fill + diagonal conveyor sheen on hover ---- */
.mose-b2b__btn,
.mose-b2b #loginform .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var( --b2b-mono );
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff !important;
	background: var( --b2b-pink );
	border: 1.5px solid var( --b2b-pink );
	border-radius: 0;
	padding: 15px 30px;
	margin-top: 6px;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
	-webkit-appearance: none;
	appearance: none;
}
.mose-b2b__btn:hover,
.mose-b2b #loginform .button:hover {
	transform: translateY( -2px );
	background-color: var( --b2b-pink );
	background-image: linear-gradient( 45deg,
		rgba( 255, 255, 255, 0.22 ) 25%, transparent 25%, transparent 50%,
		rgba( 255, 255, 255, 0.22 ) 50%, rgba( 255, 255, 255, 0.22 ) 75%, transparent 75% );
	background-size: 16px 16px;
}
.mose-b2b__btn--ghost {
	background: transparent;
	color: var( --b2b-ink ) !important;
	border-color: var( --b2b-line-2 );
}
.mose-b2b__btn--ghost:hover {
	background-color: transparent;
	background-image: none;
	border-color: var( --b2b-pink );
	color: var( --b2b-pink ) !important;
}
.mose-b2b__btn--sm { padding: 9px 16px; font-size: 11px; margin-top: 0; }
.mose-b2b__btn[disabled],
.mose-b2b__btn:disabled { opacity: 0.3; cursor: not-allowed; }

.mose-b2b__muted { margin: 16px 0 0; }
.mose-b2b__muted a {
	font-family: var( --b2b-mono );
	font-size: 12px;
	color: var( --b2b-dim );
	text-decoration: none;
	border-bottom: 1px solid var( --b2b-line );
}
.mose-b2b__muted a:hover { color: var( --b2b-pink ); border-color: var( --b2b-pink ); }

.mose-b2b__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- flash ---- */
.mose-b2b__flash {
	font-family: var( --b2b-mono );
	font-size: 13px;
	padding: 14px 18px;
	margin-bottom: 28px;
	border: 1px solid var( --b2b-line );
	border-left-width: 3px;
}
.mose-b2b__flash--ok  { border-left-color: var( --b2b-pink ); color: var( --b2b-ink ); }
.mose-b2b__flash--err { border-left-color: #ff5247; color: #ffb3ae; }

/* ---- order pad ---- */
.mose-b2b__toolbar {
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px; flex-wrap: wrap; margin: 22px 0 0;
}
.mose-b2b__count {
	font-family: var( --b2b-mono );
	font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var( --b2b-dim );
}
.mose-b2b__tablewrap { margin-top: 14px; border: 1px solid var( --b2b-line ); }
.mose-b2b__table { width: 100%; border-collapse: collapse; }
.mose-b2b__table thead th {
	position: sticky; top: 0; z-index: 1;
	background: var( --b2b-surface );
	font-family: var( --b2b-mono );
	font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	color: var( --b2b-dim );
	text-align: left;
	padding: 14px 16px;
	border-bottom: 1px solid var( --b2b-line-2 );
}
.mose-b2b__table th.num, .mose-b2b__table td.num { text-align: right; }
.mose-b2b__table th.act, .mose-b2b__table td.act { text-align: right; width: 180px; }
.mose-b2b__table tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid var( --b2b-line );
	font-size: 14px;
	vertical-align: middle;
}
.mose-b2b__table tbody tr:last-child td { border-bottom: 0; }
.mose-b2b__table tbody tr:hover { background: rgba( 255, 255, 255, 0.03 ); }
.mose-b2b__table .mono { font-family: var( --b2b-mono ); }
.mose-b2b__table .dim { color: var( --b2b-dim ); }
.mose-b2b__pname { font-weight: 600; text-decoration: none; color: var( --b2b-ink ); }
.mose-b2b__pname:hover { color: var( --b2b-pink ); }
.mose-b2b__table .price {
	font-family: var( --b2b-mono );
	font-weight: 700;
	color: var( --b2b-pink );
	white-space: nowrap;
}
.mose-b2b__table .price .woocommerce-Price-amount { color: var( --b2b-pink ); }
.mose-b2b__oos { font-family: var( --b2b-mono ); font-size: 12px; color: #ff5247; }
.mose-b2b__table tr.is-oos { opacity: 0.45; }
.mose-b2b__add { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin: 0; }
.mose-b2b__add input[type="number"] {
	width: 60px; padding: 9px 8px; text-align: center;
	background: #0d0d0d; border: 1px solid var( --b2b-line ); border-radius: 0;
	color: var( --b2b-ink ); font-family: var( --b2b-mono ); font-size: 13px;
	-webkit-appearance: none; appearance: none;
}
.mose-b2b__add input[type="number"]:focus { outline: none; border-color: var( --b2b-pink ); }

/* ---- a11y ---- */
.mose-b2b a:focus-visible,
.mose-b2b button:focus-visible,
.mose-b2b input:focus-visible,
.mose-b2b select:focus-visible {
	outline: 2px solid var( --b2b-pink );
	outline-offset: 2px;
}

/* ---- responsive ---- */
@media ( max-width: 860px ) {
	.mose-b2b__cols { grid-template-columns: 1fr; }
	.mose-b2b__panel { border-right: 0; border-bottom: 1px solid var( --b2b-line ); }
	.mose-b2b__panel:last-child { border-bottom: 0; }
	.mose-b2b__readout { grid-template-columns: 1fr; }
	.mose-b2b__field { border-right: 0; border-bottom: 1px solid var( --b2b-line ); }
	.mose-b2b__field:last-child { border-bottom: 0; }
}

@media ( max-width: 680px ) {
	.mose-b2b__table thead { display: none; }
	.mose-b2b__table, .mose-b2b__table tbody, .mose-b2b__table tr, .mose-b2b__table td { display: block; width: 100%; }
	.mose-b2b__table tr { border-bottom: 1px solid var( --b2b-line-2 ); padding: 6px 0; }
	.mose-b2b__table tbody tr:last-child td { border-bottom: 1px solid var( --b2b-line ); }
	.mose-b2b__table td {
		display: flex; justify-content: space-between; align-items: center; gap: 16px;
		border-bottom: 1px solid var( --b2b-line ); text-align: right;
	}
	.mose-b2b__table td::before {
		content: attr( data-label );
		font-family: var( --b2b-mono ); font-size: 11px; font-weight: 700;
		letter-spacing: 0.08em; text-transform: uppercase; color: var( --b2b-dim );
		text-align: left;
	}
	.mose-b2b__table td.act { width: auto; }
	.mose-b2b__add { justify-content: flex-end; }
}

@media ( prefers-reduced-motion: reduce ) {
	.mose-b2b *, .mose-b2b *::before { transition: none !important; }
}
