/**
 * SEC Wholesale — Frontend form styles.
 * Product cards, stepper UI, order summary, origin hiding.
 */

/* Hide inactive origin slots */
.gform_wrapper .gf-hidden { display: none !important; }

/* GF small input override */
.gform_wrapper.gravity-theme .gfield input.small,
.gform_wrapper.gravity-theme .gfield select.small {
	width: auto;
}

/* ---- Product card layout ---- */

.gform_wrapper .gf-wholesale-qty {
	background: var(--nectar-gc-jRkoIpyGcU, #141821);
	border: 1px solid var(--nectar-gc-xqV56LDsR3, #1e2330);
	border-radius: 10px;
	padding: 1.25rem;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	text-align: center;
}

.gform_wrapper .gf-wholesale-qty:hover {
	border-color: var(--accentPrimary, #00f0b5);
	box-shadow: 0 0 16px rgba(0, 240, 181, 0.06);
}

/* Image stacked above content */
.sec-product-image {
	width: 100px;
	height: 100px;
	border-radius: 8px;
	overflow: hidden;
	margin: 0 auto 0.75rem;
}

.sec-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- Product label ---- */

.gf-wholesale-qty .gfield_label {
	font-family: "Space Grotesk", "Satoshi", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--light, #f0ece3);
	margin-bottom: 0.15rem;
}

/* ---- Price description ---- */

.gf-wholesale-qty .gfield_description {
	font-family: "Satoshi", sans-serif;
	color: var(--accentPrimary, #00f0b5);
	font-size: 0.85rem;
	font-weight: 600;
	margin-top: 0.25rem;
	margin-bottom: 0;
}

/* ---- Stepper UI ---- */

.sec-stepper {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1px solid var(--nectar-gc-xqV56LDsR3, #1e2330);
	border-radius: 6px;
	overflow: hidden;
	margin-top: 0.5rem;
}

.sec-stepper button {
	width: 40px;
	height: 40px;
	border: none;
	background: var(--nectar-gc-xqV56LDsR3, #1e2330);
	color: var(--light, #f0ece3);
	font-size: 1.2rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
}

.sec-stepper button:hover {
	background: var(--accentPrimary, #00f0b5);
	color: var(--dark, #0b0e14);
}

.sec-stepper button:active {
	transform: scale(0.95);
}

.sec-stepper input[type="number"] {
	width: 60px;
	height: 40px;
	border: none;
	border-left: 1px solid var(--nectar-gc-xqV56LDsR3, #1e2330);
	border-right: 1px solid var(--nectar-gc-xqV56LDsR3, #1e2330);
	background: var(--dark, #0b0e14);
	color: var(--light, #f0ece3);
	font-family: "Space Grotesk", "Satoshi", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	padding: 0;
	margin: 0;
	border-radius: 0;
}

.sec-stepper input[type="number"]::-webkit-inner-spin-button,
.sec-stepper input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sec-stepper input[type="number"]:focus {
	outline: none;
	box-shadow: inset 0 0 0 1px var(--accentPrimary, #00f0b5);
}

.sec-stepper-unit {
	padding: 0 0.6rem;
	color: var(--nectar-gc-N4DSDsB94F, #b8b2a6);
	font-family: "Satoshi", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Hide GF's default validation range message on qty fields */
.gf-wholesale-qty .instruction {
	display: none;
}

/* ---- Order summary ---- */

.sec-order-summary {
	background: var(--nectar-gc-jRkoIpyGcU, #141821);
	border: 1px solid var(--nectar-gc-xqV56LDsR3, #1e2330);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}

.sec-order-summary__title {
	font-family: "Space Grotesk", "Satoshi", sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nectar-gc-N4DSDsB94F, #b8b2a6);
	margin: 0 0 0.75rem;
}

.sec-order-summary__empty {
	color: var(--nectar-gc-N4DSDsB94F, #b8b2a6);
	font-family: "Satoshi", sans-serif;
	font-size: 0.9rem;
	font-style: italic;
}

.sec-order-summary__lines {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sec-order-summary__line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.35rem 0;
	border-bottom: 1px solid rgba(240, 236, 227, 0.06);
	font-family: "Satoshi", sans-serif;
	font-size: 0.9rem;
	color: var(--light, #f0ece3);
}

.sec-order-summary__line:last-child {
	border-bottom: none;
}

.sec-order-summary__line-name {
	flex: 1;
}

.sec-order-summary__line-qty {
	color: var(--nectar-gc-N4DSDsB94F, #b8b2a6);
	margin: 0 1rem;
	white-space: nowrap;
	font-size: 0.85rem;
}

.sec-order-summary__line-price {
	font-weight: 600;
	color: var(--accentPrimary, #00f0b5);
	white-space: nowrap;
}

.sec-order-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(240, 236, 227, 0.12);
}

.sec-order-summary__total-label {
	font-family: "Space Grotesk", "Satoshi", sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--light, #f0ece3);
}

.sec-order-summary__total-amount {
	font-family: "Space Grotesk", "Satoshi", sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--accentPrimary, #00f0b5);
}

/* ---- Billing terms notice ---- */

.sec-billing-notice {
	font-family: "Satoshi", sans-serif;
	font-size: 0.8rem;
	color: var(--nectar-gc-N4DSDsB94F, #b8b2a6);
	text-align: center;
	margin: 1rem 0 0.5rem;
	line-height: 1.5;
}

/* ---- Section headers ---- */

.gform_wrapper .gsection.sec-styled-section {
	border-bottom: none;
	margin-top: 1.5rem;
}

/* ---- Readonly customer code field ---- */

.sec-readonly-field input {
	background: var(--nectar-gc-jRkoIpyGcU, #141821) !important;
	opacity: 0.7;
	cursor: not-allowed;
	pointer-events: none;
}

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

@media (max-width: 600px) {
	.sec-product-image {
		width: 80px;
		height: 80px;
	}

	.sec-stepper button {
		width: 44px;
		height: 44px;
	}
}
