/* VV Wholesale - front-end styling. Uses theme tokens when present, with fallbacks. */

:root {
	--vvw-maroon: var(--vv-maroon, #7a1230);
	--vvw-gold: var(--vv-gold, #c9a227);
	--vvw-ink: var(--vv-ink, #1f1a1d);
	--vvw-line: var(--vv-line, #e6ddcd);
	--vvw-cream: var(--vv-cream, #fbf6ec);
	--vvw-wa: #25d366;
	--vvw-radius: var(--vv-radius, 12px);
}

/* ---------- price meta ---------- */

.vvw-unit {
	font-size: .78em;
	opacity: .65;
	margin-left: 1px;
}

.vvw-moq,
.vvw-badge {
	display: inline-block;
	margin-left: .5em;
	padding: .18em .55em;
	border-radius: 999px;
	font-size: .68em;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	vertical-align: middle;
}

.vvw-moq {
	background: var(--vvw-cream);
	color: var(--vvw-maroon);
	border: 1px solid var(--vvw-line);
}

.vvw-badge {
	background: var(--vvw-maroon);
	color: #fff;
}

.vvw-price-hidden {
	font-size: .85rem;
	font-weight: 600;
	color: var(--vvw-maroon);
}

/* ---------- quantity slab table ---------- */

.vvw-tiers {
	margin: 1.25rem 0;
	border: 1px solid var(--vvw-line);
	border-radius: var(--vvw-radius);
	overflow: hidden;
	background: #fff;
}

.vvw-tiers__head {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	flex-wrap: wrap;
	padding: .7rem 1rem;
	background: var(--vvw-cream);
	border-bottom: 1px solid var(--vvw-line);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vvw-maroon);
}

.vvw-tiers__lock {
	font-weight: 500;
	font-size: .72rem;
	letter-spacing: .02em;
	text-transform: none;
	color: #8a7f70;
}

.vvw-tiers table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.vvw-tiers th,
.vvw-tiers td {
	padding: .6rem 1rem;
	border-bottom: 1px solid var(--vvw-line);
	font-size: .92rem;
	text-align: left;
}

.vvw-tiers tr:last-child th,
.vvw-tiers tr:last-child td {
	border-bottom: 0;
}

.vvw-tiers th {
	font-weight: 500;
	color: #5f574d;
}

.vvw-tiers td {
	text-align: right;
	font-weight: 700;
	color: var(--vvw-ink);
}

.vvw-tiers__hidden {
	letter-spacing: .18em;
	color: #c3b8a6;
}

/* ---------- calls to action ---------- */

.vvw-cta {
	margin: 1rem 0;
	font-size: .92rem;
}

.vvw-cta a {
	color: var(--vvw-maroon);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px dashed currentColor;
	padding-bottom: 1px;
}

.vvw-cta a:hover {
	color: var(--vvw-gold);
}

.vvw-cta--pending {
	color: #8a6d1f;
}

/* ---------- notices ---------- */

.vvw-note {
	padding: .9rem 1.1rem;
	border-radius: var(--vvw-radius);
	border-left: 4px solid;
	margin: 0 0 1.25rem;
	font-size: .94rem;
	line-height: 1.55;
}

.vvw-note ul {
	margin: 0;
	padding-left: 1.1rem;
}

.vvw-note--ok {
	background: #eaf7ee;
	border-color: #1a7f37;
	color: #14532d;
}

.vvw-note--wait {
	background: #fdf6e3;
	border-color: #bf8700;
	color: #6b4e00;
}

.vvw-note--error {
	background: #fdecec;
	border-color: #b32d2e;
	color: #7a1f20;
}

/* ---------- application form ---------- */

.vvw-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1.25rem;
}

@media (max-width: 640px) {
	.vvw-form__grid {
		grid-template-columns: 1fr;
	}
}

.vvw-field {
	margin: 0 0 1.15rem;
}

.vvw-field label {
	display: block;
	margin-bottom: .35rem;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #5f574d;
}

.vvw-field label span {
	color: var(--vvw-maroon);
}

.vvw-field input,
.vvw-field textarea {
	width: 100%;
	padding: .75rem .9rem;
	border: 1px solid var(--vvw-line);
	border-radius: var(--vvw-radius);
	background: #fff;
	font: inherit;
	color: var(--vvw-ink);
	transition: border-color .2s, box-shadow .2s;
}

.vvw-field input:focus,
.vvw-field textarea:focus {
	outline: 0;
	border-color: var(--vvw-maroon);
	box-shadow: 0 0 0 3px rgba(122, 18, 48, .12);
}

.vvw-field small {
	display: block;
	margin-top: .3rem;
	color: #8a7f70;
	font-size: .78rem;
}

/* Honeypot: hidden from people, reachable by bots. */
.vvw-field--hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vvw-submit {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1.9rem;
	border: 0;
	border-radius: 999px;
	background: var(--vvw-maroon);
	color: #fff;
	font: inherit;
	font-weight: 700;
	letter-spacing: .03em;
	cursor: pointer;
	transition: transform .18s, box-shadow .18s, background .18s;
}

.vvw-submit:hover {
	background: #5d0d24;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(122, 18, 48, .25);
}

/* ---------- WhatsApp buttons ---------- */

.vvw-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .8rem 1.5rem;
	border-radius: 999px;
	background: var(--vvw-wa);
	color: #fff !important;
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
	line-height: 1;
	transition: transform .18s, box-shadow .18s, filter .18s;
}

.vvw-wa-btn:hover {
	filter: brightness(.94);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(37, 211, 102, .3);
}

.vvw-wa-btn--product {
	margin-top: .9rem;
}

.vvw-wa-btn--cart {
	display: flex;
	width: 100%;
	margin-top: .75rem;
}

.vvw-wa-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .8rem 1.1rem;
	border-radius: 999px;
	background: var(--vvw-wa);
	color: #fff !important;
	font-weight: 700;
	font-size: .9rem;
	text-decoration: none;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
	transition: transform .2s, box-shadow .2s;
}

.vvw-wa-float:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}

@media (max-width: 640px) {
	.vvw-wa-float span {
		display: none;
	}

	.vvw-wa-float {
		padding: .95rem;
		right: 14px;
		bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.vvw-submit,
	.vvw-wa-btn,
	.vvw-wa-float {
		transition: none;
	}

	.vvw-submit:hover,
	.vvw-wa-btn:hover,
	.vvw-wa-float:hover {
		transform: none;
	}
}
