/* ==========================================================================
   OCV Order Form — all rules scoped to .ocv-order-wrap
   Brand: black bg (#000), green accent (rgb(12,245,126)), white text (#fff)
   Fonts: Exo 2 (headings/labels/buttons), Open Sans (body/descriptions)
   ========================================================================== */

/* Google Fonts — load only what we need */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700&family=Open+Sans:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.ocv-order-wrap {
	box-sizing: border-box;
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	max-width: 680px;
	margin: 0 auto;
	padding: 0 16px 40px;
}

.ocv-order-wrap *,
.ocv-order-wrap *::before,
.ocv-order-wrap *::after {
	box-sizing: inherit;
}

/* --------------------------------------------------------------------------
   Auth gate
   -------------------------------------------------------------------------- */
.ocv-auth-gate {
	text-align: center;
	padding: 48px 24px;
}

.ocv-auth-gate__icon {
	color: rgb(12, 245, 126);
	margin-bottom: 20px;
}

.ocv-auth-gate__icon svg {
	display: block;
	margin: 0 auto;
}

.ocv-auth-gate__heading {
	font-family: 'Exo 2', sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}

.ocv-auth-gate__body {
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 28px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ocv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'Exo 2', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	padding: 14px 32px;
	transition: opacity 0.15s ease, transform 0.1s ease;
	position: relative;
	white-space: nowrap;
}

.ocv-btn--primary {
	background: rgb(12, 245, 126);
	color: #000;
}

.ocv-btn--primary:hover,
.ocv-btn--primary:focus-visible {
	opacity: 0.88;
	outline: 2px solid rgb(12, 245, 126);
	outline-offset: 3px;
}

.ocv-btn--primary:active {
	transform: scale(0.98);
}

.ocv-btn--primary:disabled,
.ocv-btn--primary[aria-busy="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Spinner inside submit button */
.ocv-btn__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0, 0, 0, 0.3);
	border-top-color: #000;
	border-radius: 50%;
	animation: ocv-spin 0.7s linear infinite;
}

.ocv-btn[aria-busy="true"] .ocv-btn__spinner {
	display: inline-block;
}

@keyframes ocv-spin {
	to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Distributor banner (locked state)
   -------------------------------------------------------------------------- */
.ocv-distributor-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(12, 245, 126, 0.08);
	border: 1px solid rgba(12, 245, 126, 0.3);
	border-radius: 6px;
	padding: 16px 20px;
	margin-bottom: 32px;
}

.ocv-distributor-banner__logo {
	max-height: 40px;
	max-width: 100px;
	object-fit: contain;
	flex-shrink: 0;
}

.ocv-distributor-banner__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ocv-distributor-banner__label {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgb(12, 245, 126);
	font-family: 'Exo 2', sans-serif;
	font-weight: 600;
}

.ocv-distributor-banner__name {
	font-family: 'Exo 2', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Form sections, labels, inputs
   -------------------------------------------------------------------------- */
.ocv-form-section {
	margin-bottom: 32px;
}

.ocv-label {
	display: block;
	font-family: 'Exo 2', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 8px;
}

.ocv-required {
	color: rgb(12, 245, 126);
	margin-left: 2px;
}

/* Distributor dropdown */
.ocv-select {
	width: 100%;
	background: #111;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	padding: 12px 16px;
	font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' opacity='.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px;
	cursor: pointer;
}

.ocv-select:focus {
	outline: 2px solid rgb(12, 245, 126);
	outline-offset: 2px;
	border-color: rgb(12, 245, 126);
}

/* --------------------------------------------------------------------------
   Distributor radio buttons
   -------------------------------------------------------------------------- */
.ocv-dist-radios {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ocv-dist-radio {
	display: flex;
	align-items: center;
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	padding: 12px 16px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ocv-dist-radio:hover {
	border-color: rgba(12, 245, 126, 0.4);
	background: rgba(12, 245, 126, 0.04);
}

.ocv-dist-radio--selected,
.ocv-dist-radio:has(input:checked) {
	border-color: rgb(12, 245, 126);
	background: rgba(12, 245, 126, 0.08);
}

.ocv-dist-radio input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: transparent;
	margin: 0;
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
}

.ocv-dist-radio input[type="radio"]:checked {
	border-color: rgb(12, 245, 126);
}

.ocv-dist-radio input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgb(12, 245, 126);
}

.ocv-dist-radio input[type="radio"]:focus-visible {
	outline: 2px solid rgb(12, 245, 126);
	outline-offset: 2px;
}

.ocv-dist-radio__content {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: 12px;
	min-width: 0;
}

.ocv-dist-radio__logo {
	max-height: 40px;
	max-width: 150px;
	object-fit: contain;
	flex-shrink: 0;
}

.ocv-dist-radio__name {
	font-family: 'Exo 2', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Quantity section
   -------------------------------------------------------------------------- */
.ocv-qty-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ocv-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	padding: 20px 24px;
}

.ocv-qty-info {
	flex: 1;
	min-width: 0;
}

.ocv-qty-info .ocv-label {
	margin-bottom: 4px;
}

.ocv-qty-desc {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.85rem;
	margin: 0;
	line-height: 1.4;
}

.ocv-qty-control {
	display: flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
}

.ocv-qty-btn {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	padding: 0;
	user-select: none;
}

.ocv-qty-btn--dec {
	border-radius: 4px 0 0 4px;
}

.ocv-qty-btn--inc {
	border-radius: 0 4px 4px 0;
}

.ocv-qty-btn:hover {
	background: rgba(12, 245, 126, 0.15);
	border-color: rgb(12, 245, 126);
	color: rgb(12, 245, 126);
}

.ocv-qty-btn:active {
	background: rgba(12, 245, 126, 0.25);
}

.ocv-qty-input {
	width: 60px;
	height: 36px;
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-left: none;
	border-right: none;
	color: #fff;
	font-family: 'Exo 2', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	text-align: center;
	padding: 0;
	appearance: textfield;
	-moz-appearance: textfield;
}

.ocv-qty-input::-webkit-inner-spin-button,
.ocv-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ocv-qty-input:focus {
	outline: 2px solid rgb(12, 245, 126);
	outline-offset: -2px;
	border-color: rgb(12, 245, 126);
}

/* --------------------------------------------------------------------------
   Pricing table
   -------------------------------------------------------------------------- */
.ocv-pricing-table {
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.ocv-pricing-table__header {
	font-family: 'Exo 2', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgb(12, 245, 126);
	margin-bottom: 16px;
}

/* One row per product line */
.ocv-pricing-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
}

.ocv-pricing-row__label {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	flex: 1;
	min-width: 0;
}

/* Right side: unit × qty = ext */
.ocv-pricing-row__right {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-shrink: 0;
	font-size: 0.9rem;
	font-family: 'Exo 2', sans-serif;
}

.ocv-pricing-row__unit {
	color: rgba(255, 255, 255, 0.45);
	min-width: 60px;
	text-align: right;
}

/* Override wc_price() wrapper span color */
.ocv-pricing-row__unit .woocommerce-Price-amount,
.ocv-pricing-row__unit .woocommerce-Price-currencySymbol {
	color: inherit;
}

.ocv-pricing-row__sep {
	color: rgba(255, 255, 255, 0.3);
	user-select: none;
}

.ocv-pricing-row__qty {
	color: #fff;
	min-width: 20px;
	text-align: center;
}

.ocv-pricing-row__ext {
	color: #fff;
	min-width: 72px;
	text-align: right;
	font-weight: 600;
}

/* Divider between rows and subtotal */
.ocv-pricing-divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin: 12px 0;
}

/* Subtotal row */
.ocv-pricing-subtotal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
}

.ocv-pricing-subtotal__label {
	font-family: 'Exo 2', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.ocv-pricing-subtotal__value {
	font-family: 'Exo 2', sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.35);
	transition: color 0.2s ease;
}

/* Green subtotal when qty > 0 */
.ocv-pricing-table--has-qty .ocv-pricing-subtotal__value {
	color: rgb(12, 245, 126);
}

/* Helper note */
.ocv-pricing-note {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.35);
	margin: 12px 0 0;
	text-align: right;
}

/* --------------------------------------------------------------------------
   Error message
   -------------------------------------------------------------------------- */
.ocv-form-error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.5);
	border-radius: 4px;
	color: #fca5a5;
	font-size: 0.9rem;
	padding: 12px 16px;
	margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Submit row
   -------------------------------------------------------------------------- */
.ocv-submit-row {
	display: flex;
	justify-content: flex-start;
}

.ocv-btn--submit {
	min-width: 180px;
}

/* Kiosk cancel button — appears below submit/cart/checkout actions */
.ocv-kiosk-cancel-wrap {
	margin-top: 20px;
	text-align: left;
}

.ocv-kiosk-cancel-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255,255,255,0.35);
	font-family: 'Exo 2', sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.15s;
}

.ocv-kiosk-cancel-btn:hover {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 540px) {
	.ocv-qty-row {
		flex-direction: column;
		align-items: flex-start;
		padding: 16px;
		gap: 12px;
	}

	.ocv-qty-control {
		align-self: flex-end;
	}

	.ocv-distributor-banner {
		flex-direction: column;
		align-items: flex-start;
	}

	.ocv-btn--submit {
		width: 100%;
		justify-content: center;
	}
}
