/**
 * Triton Aminos wholesale front-end styles.
 * Palette matches the site's electric-blue-on-navy system.
 */

.tw-wrap {
	--tw-navy: #0a0a12;
	--tw-panel: #0c0d15;
	--tw-panel-2: #0f1626;
	--tw-line: rgba(0, 150, 255, 0.28);
	--tw-line-soft: rgba(255, 255, 255, 0.08);
	--tw-blue: #0096ff;
	--tw-cyan: #00e5ff;
	--tw-ink: #ffffff;
	--tw-body: #c9d8ee;
	--tw-muted: #8195b0;

	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 20px 64px;
	color: var(--tw-body);
	font-size: 16px;
	line-height: 1.65;
}

.tw-wrap--narrow { max-width: 780px; }
.tw-wrap--flush { padding-left: 0; padding-right: 0; }

.tw-wrap *,
.tw-wrap *::before,
.tw-wrap *::after { box-sizing: border-box; }

.tw-wrap a { color: var(--tw-blue); }
.tw-wrap a:hover { color: var(--tw-cyan); }

.tw-h2 {
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.2;
	color: var(--tw-ink);
	margin: 0 0 8px;
	font-weight: 700;
}

.tw-h3 {
	font-size: 19px;
	color: var(--tw-ink);
	margin: 0 0 8px;
	font-weight: 700;
}

.tw-muted { color: var(--tw-muted); }
.tw-small { font-size: 13.5px; line-height: 1.6; }

/* ---------------------------------------------------------------- Hero */

.tw-hero {
	position: relative;
	padding: 44px 36px;
	margin: 24px 0 32px;
	border: 1px solid var(--tw-line);
	border-radius: 18px;
	background:
		radial-gradient(120% 160% at 8% -20%, rgba(0, 150, 255, 0.20), transparent 58%),
		radial-gradient(90% 120% at 100% 0%, rgba(0, 229, 255, 0.12), transparent 55%),
		var(--tw-panel);
	overflow: hidden;
}

.tw-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--tw-blue), var(--tw-cyan), transparent);
	opacity: 0.75;
}

.tw-hero--compact { padding: 34px 30px; }

.tw-eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tw-cyan);
}

.tw-hero__title {
	margin: 0 0 14px;
	font-size: clamp(28px, 4.4vw, 44px);
	line-height: 1.12;
	color: var(--tw-ink);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.tw-hero__lede {
	margin: 0;
	max-width: 62ch;
	font-size: 17px;
	color: var(--tw-body);
}

.tw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

/* -------------------------------------------------------------- Buttons */

.tw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 9px;
	border: 1px solid transparent;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	min-height: 46px;
}

.tw-btn--primary {
	background: linear-gradient(90deg, var(--tw-blue), var(--tw-cyan));
	color: #04121f !important;
	box-shadow: 0 6px 22px rgba(0, 150, 255, 0.28);
}

.tw-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(0, 150, 255, 0.4);
	color: #04121f !important;
}

.tw-btn--ghost {
	background: transparent;
	border-color: var(--tw-line);
	color: var(--tw-ink) !important;
}

.tw-btn--ghost:hover {
	border-color: var(--tw-cyan);
	background: rgba(0, 150, 255, 0.08);
	color: var(--tw-ink) !important;
}

.tw-btn--sm { padding: 9px 16px; font-size: 13.5px; min-height: 40px; }
.tw-btn--wide { width: 100%; }

.tw-btn:focus-visible {
	outline: 3px solid var(--tw-cyan);
	outline-offset: 2px;
}

/* -------------------------------------------------------------- Alerts */

.tw-alert {
	border-radius: 11px;
	padding: 15px 18px;
	margin: 0 0 22px;
	border: 1px solid var(--tw-line);
	background: var(--tw-panel-2);
	color: var(--tw-body);
	font-size: 15px;
}

.tw-alert--ok { border-color: rgba(0, 200, 130, 0.45); }
.tw-alert--error { border-color: rgba(255, 90, 90, 0.5); }
.tw-alert--info { border-color: var(--tw-line); }

/* --------------------------------------------------------------- Rules */

.tw-rules { margin: 0 0 40px; }

.tw-rules__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
	gap: 14px;
	margin-top: 20px;
}

.tw-rule {
	padding: 22px 20px;
	border: 1px solid var(--tw-line-soft);
	border-radius: 13px;
	background: var(--tw-panel);
}

.tw-rule h3 {
	margin: 10px 0 6px;
	font-size: 15px;
	color: var(--tw-ink);
	font-weight: 700;
}

.tw-rule p { margin: 0; font-size: 14px; color: var(--tw-muted); }

.tw-rule__num {
	display: block;
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(90deg, var(--tw-blue), var(--tw-cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tw-rule__icon { display: block; font-size: 28px; line-height: 1; color: var(--tw-cyan); }

.tw-rules__foot { margin: 18px 0 0; font-size: 14px; color: var(--tw-muted); }

/* -------------------------------------------------------------- Locked */

.tw-locked {
	text-align: center;
	padding: 48px 30px;
	border: 1px solid var(--tw-line);
	border-radius: 18px;
	background:
		radial-gradient(100% 120% at 50% 0%, rgba(0, 150, 255, 0.14), transparent 62%),
		var(--tw-panel);
}

.tw-locked__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	margin-bottom: 18px;
	color: var(--tw-cyan);
	border: 1px solid var(--tw-line);
	background: rgba(0, 150, 255, 0.10);
}

.tw-locked__title {
	margin: 0 0 12px;
	font-size: clamp(21px, 3vw, 27px);
	color: var(--tw-ink);
	font-weight: 700;
}

.tw-locked__body {
	margin: 0 auto;
	max-width: 58ch;
	color: var(--tw-body);
}

.tw-locked__list {
	list-style: none;
	margin: 24px auto;
	padding: 0;
	max-width: 460px;
	text-align: left;
	display: grid;
	gap: 9px;
}

.tw-locked__list li {
	position: relative;
	padding-left: 26px;
	font-size: 14.5px;
	color: var(--tw-body);
}

.tw-locked__list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--tw-blue), var(--tw-cyan));
}

.tw-locked__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 8px;
}

.tw-locked__foot { margin-top: 22px; }

/* -------------------------------------------------------------- Status */

.tw-status {
	padding: 24px 26px;
	border-radius: 14px;
	border: 1px solid var(--tw-line);
	background: var(--tw-panel);
}

.tw-status--ok { border-color: rgba(0, 200, 130, 0.42); }
.tw-status .tw-locked__actions { justify-content: flex-start; margin-top: 16px; }

/* ------------------------------------------------------------- Catalog */

.tw-catalog { margin-top: 8px; }

.tw-catalog__head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 18px;
}

.tw-catalog__tools { display: flex; gap: 10px; flex-wrap: wrap; }

.tw-catalog__tools input,
.tw-catalog__tools select {
	background: var(--tw-panel-2);
	border: 1px solid var(--tw-line-soft);
	border-radius: 9px;
	color: var(--tw-ink);
	padding: 10px 13px;
	font-size: 14px;
	min-height: 44px;
	min-width: 190px;
}

.tw-catalog__tools input:focus,
.tw-catalog__tools select:focus {
	border-color: var(--tw-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.22);
}

.tw-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--tw-line-soft);
	border-radius: 14px;
	background: var(--tw-panel);
}

.tw-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
	margin: 0;
}

.tw-table th,
.tw-table td {
	padding: 13px 14px;
	text-align: left;
	border-bottom: 1px solid var(--tw-line-soft);
	vertical-align: middle;
}

.tw-table thead th {
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tw-muted);
	font-weight: 700;
	white-space: nowrap;
	background: rgba(0, 150, 255, 0.05);
}

.tw-table tbody tr:last-child td { border-bottom: none; }
.tw-table tbody tr:hover { background: rgba(0, 150, 255, 0.045); }

.tw-cell-name { color: var(--tw-ink); font-weight: 650; }
.tw-col-num { text-align: right; white-space: nowrap; }
.tw-col-img { width: 62px; }
.tw-col-qty { width: 108px; }

.tw-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	border: 1px solid var(--tw-line-soft);
}

.tw-kits {
	width: 88px;
	background: var(--tw-panel-2);
	border: 1px solid var(--tw-line-soft);
	border-radius: 8px;
	color: var(--tw-ink);
	padding: 9px 10px;
	font-size: 15px;
	min-height: 44px;
	text-align: center;
}

.tw-kits:focus {
	border-color: var(--tw-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.22);
}

.tw-stock {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.tw-stock--in { background: rgba(0, 200, 130, 0.14); color: #4fe0a8; }
.tw-stock--low { background: rgba(255, 160, 60, 0.14); color: #ffc078; }

.tw-row--short { opacity: 0.55; }
.tw-row.is-hidden { display: none; }

.tw-catalog__foot { margin-top: 14px; }
.tw-order-form { margin: 0; }

.tw-table--compact th,
.tw-table--compact td { padding: 10px 12px; }

/* ---------------------------------------------------------------- Forms */

.tw-form {
	background: var(--tw-panel);
	border: 1px solid var(--tw-line-soft);
	border-radius: 16px;
	padding: 30px;
}

.tw-fieldset {
	border: none;
	border-top: 1px solid var(--tw-line-soft);
	margin: 0 0 26px;
	padding: 22px 0 0;
}

.tw-fieldset:first-of-type { border-top: none; padding-top: 0; }

.tw-fieldset legend {
	padding: 0 10px 0 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tw-cyan);
}

.tw-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
}

.tw-field { display: block; margin-bottom: 14px; }

.tw-field > span {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tw-ink);
}

.tw-field em { color: var(--tw-cyan); font-style: normal; }

.tw-field input[type="text"],
.tw-field input[type="email"],
.tw-field input[type="tel"],
.tw-field input[type="password"],
.tw-field input[type="search"],
.tw-field select,
.tw-field textarea {
	width: 100%;
	background: var(--tw-panel-2);
	border: 1px solid var(--tw-line-soft);
	border-radius: 9px;
	color: var(--tw-ink);
	padding: 12px 14px;
	font-size: 15.5px;
	min-height: 48px;
	font-family: inherit;
}

.tw-field textarea { min-height: 110px; resize: vertical; }

.tw-field input:focus,
.tw-field select:focus,
.tw-field textarea:focus {
	border-color: var(--tw-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.22);
}

.tw-field input[readonly] { opacity: 0.72; }

.tw-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--tw-muted); }

.tw-check {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	margin-bottom: 13px;
	font-size: 14.5px;
	line-height: 1.55;
}

.tw-check input {
	margin: 3px 0 0;
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	accent-color: var(--tw-blue);
}

.tw-privacy { margin: 4px 0 22px; }
.tw-form__foot { margin: 16px 0 0; text-align: center; }

.tw-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------- Login */

.tw-login {
	background: var(--tw-panel);
	border: 1px solid var(--tw-line-soft);
	border-radius: 16px;
	padding: 30px;
}

.tw-login .woocommerce-form-login { border: none !important; padding: 0 !important; margin: 0 !important; }
.tw-login__foot { margin: 18px 0 0; text-align: center; }

/* --------------------------------------------------- Cart and checkout */

.tw-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: linear-gradient(90deg, #0096ff, #00e5ff);
	color: #04121f;
	vertical-align: middle;
}

.tw-checkout-note {
	border-left: 3px solid #0096ff;
	background: rgba(0, 150, 255, 0.07);
	padding: 13px 16px;
	margin: 0 0 18px;
	border-radius: 0 9px 9px 0;
	font-size: 14.5px;
	line-height: 1.6;
}

.tw-checkout-note--warn {
	border-left-color: #ffa63c;
	background: rgba(255, 166, 60, 0.09);
}

/* --------------------------------------------------------- Responsive */

@media (max-width: 860px) {
	.tw-wrap { padding: 4px 15px 48px; }
	.tw-hero { padding: 32px 22px; border-radius: 15px; }
	.tw-form, .tw-login { padding: 22px 18px; }
	.tw-catalog__head { align-items: stretch; }
	.tw-catalog__tools { width: 100%; }
	.tw-catalog__tools input,
	.tw-catalog__tools select { flex: 1 1 160px; min-width: 0; }

	.tw-table-scroll { border: none; background: transparent; overflow-x: visible; }
	.tw-table, .tw-table thead, .tw-table tbody, .tw-table tr, .tw-table td { display: block; width: 100%; }
	.tw-table thead { display: none; }

	.tw-table tbody tr {
		border: 1px solid var(--tw-line-soft);
		border-radius: 13px;
		background: var(--tw-panel);
		margin-bottom: 12px;
		padding: 12px 14px;
		display: grid;
		grid-template-columns: 52px 1fr;
		grid-gap: 4px 12px;
		align-items: center;
	}

	.tw-table tbody tr:hover { background: var(--tw-panel); }

	.tw-table td {
		border: none;
		padding: 4px 0;
		grid-column: 2;
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		text-align: right;
	}

	.tw-table td.tw-col-img { grid-column: 1; grid-row: 1 / span 2; padding: 0; }
	.tw-table td.tw-cell-name { grid-row: 1; font-size: 16px; text-align: left; justify-content: flex-start; }

	.tw-table td::before {
		content: attr(data-label);
		font-size: 11.5px;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--tw-muted);
		font-weight: 700;
		text-align: left;
	}

	.tw-table td.tw-col-img::before,
	.tw-table td.tw-cell-name::before,
	.tw-table td.tw-col-add::before { content: none; }

	.tw-table td.tw-col-add { padding-top: 10px; }
	.tw-table td.tw-col-add .tw-btn,
	.tw-table td.tw-col-add form { width: 100%; }

	.tw-kits { width: 104px; }
	.tw-thumb { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
	.tw-btn { transition: none; }
	.tw-btn--primary:hover { transform: none; }
}

/* --------------------------------------------------- Volume price tiers */

.tw-cell-price .tw-price-now {
	display: block;
	font-weight: 700;
	color: var(--tw-ink);
}

.tw-tierlist {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: flex-end;
	margin-top: 5px;
}

.tw-tier {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	padding: 2px 7px;
	border-radius: 20px;
	border: 1px solid var(--tw-line-soft);
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--tw-muted);
	white-space: nowrap;
}

.tw-tier .woocommerce-Price-amount { color: inherit; }

.tw-tier.is-active {
	border-color: var(--tw-blue);
	background: rgba(0, 150, 255, 0.14);
	color: var(--tw-cyan);
	font-weight: 700;
}

/* ------------------------------------------------------- Masked pricing */

.tw-price-locked {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border-radius: 20px;
	border: 1px dashed var(--tw-line);
	background: rgba(0, 150, 255, 0.06);
	color: var(--tw-muted);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.tw-price-locked svg { color: var(--tw-cyan); flex: 0 0 auto; }

.tw-table--locked tbody tr:hover { background: transparent; }

.tw-stock--out { background: rgba(255, 90, 90, 0.13); color: #ff9b9b; }

.tw-locked + .tw-catalog { margin-top: 34px; }

@media (max-width: 860px) {
	.tw-tierlist { justify-content: flex-end; }
	.tw-cell-price .tw-price-now { display: inline; }
}

.tw-badge--off {
	background: rgba(255, 120, 120, 0.18);
	color: #ff9b9b;
}

/* ------------------------------------------------------------------
 * Retail "Buy as" toggle on single product pages
 * --------------------------------------------------------------- */

.tw-buyas {
	/* The theme lays the add-to-cart form out as a flex row, so claim a full
	   row of our own above the quantity box rather than being squeezed
	   alongside it. Harmless when the form is not a flex container. */
	flex: 1 0 100%;
	width: 100%;
	order: -1;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid rgba(128, 160, 200, .34);
	border-radius: 10px;
	background: rgba(128, 160, 200, .06);
}

.tw-buyas__legend {
	display: block;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .72;
	margin-bottom: 10px;
}

.tw-buyas__opts { display: grid; gap: 8px; }

@media (min-width: 560px) {
	.tw-buyas__opts { grid-template-columns: 1fr 1fr; }
}

.tw-buyas__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.3;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid rgba(128, 160, 200, .38);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .12s, background .12s;
}

.tw-buyas__opt:hover { border-color: rgba(128, 160, 200, .7); }

.tw-buyas__opt:has(input:checked) {
	border-color: currentColor;
	background: rgba(128, 160, 200, .12);
}

.tw-buyas__opt:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }

.tw-buyas__opt input { width: 18px; height: 18px; flex: none; margin: 0; }
.tw-buyas__label { flex: 1 1 auto; font-weight: 600; }
.tw-buyas__price { font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .92; }
.tw-buyas__price:empty::after { content: "Select a strength"; opacity: .6; font-size: .85em; }

.tw-buyas__note { margin: 10px 0 0; font-size: 13px; opacity: .72; }

.tw-buyas--nokit { display: none; }
