/* ==========================================================================
   FormRig Product Page — Colour Selector + 3D Viewer
   Dark theme to match site aesthetic.
   ========================================================================== */

:root {
	--frig-orange:      #F4600C;
	--frig-black:       #111111;
	--frig-black-card:  #1C1C1C;
	--frig-black-input: #242424;
	--frig-border:      rgba(255,255,255,0.08);
	--frig-border-focus:rgba(244,96,12,0.6);
	--frig-text:        #F6F6F2;
	--frig-text-muted:  #D4D2CC;
	--frig-radius:      6px;
}

/* WooCommerce single product dark overrides */
.woocommerce div.product { color: var(--frig-text); }
.woocommerce div.product .product_title { color: var(--frig-text); font-weight: 700; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--frig-text-muted); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--frig-orange) !important; font-size: 1.6rem; font-weight: 700; }

/* --------------------------------------------------------------------------
   Colour selector wrapper
   -------------------------------------------------------------------------- */

.formrig-cs {
	margin: 24px 0;
	background: var(--frig-black-card);
	border: 1px solid var(--frig-border);
	border-radius: 10px;
	padding: 20px 20px 16px;
}

.formrig-cs__heading {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--frig-text-muted);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--frig-border);
}

/* --------------------------------------------------------------------------
   Each colour row
   -------------------------------------------------------------------------- */

.formrig-cs__row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.formrig-cs__row:last-of-type { margin-bottom: 0; }

.formrig-cs__label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--frig-text-muted);
	min-width: 100px;
	flex-shrink: 0;
}

.formrig-cs__select-wrap {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
}

.formrig-cs__select {
	width: 100%;
	padding: 9px 32px 9px 12px;
	background: var(--frig-black-input);
	border: 1px solid var(--frig-border);
	border-radius: var(--frig-radius);
	color: var(--frig-text);
	font-size: 0.88rem;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	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 d='M1 1l5 5 5-5' stroke='%23888882' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}

.formrig-cs__select:focus {
	outline: none;
	border-color: var(--frig-border-focus);
	box-shadow: 0 0 0 3px rgba(244,96,12,0.15);
}

.formrig-cs__select option { background: #1C1C1C; color: #F2F2EE; }

/* Base type row — slightly more prominent */
.formrig-cs__row--base .formrig-cs__label {
	color: var(--frig-text);
	font-weight: 700;
}

/* Divider between base and colour sections */
.formrig-cs__divider {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.06);
	margin: 14px 0 10px;
}

.formrig-cs__section-label {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--frig-text-faint, #888882);
	margin: 0 0 10px;
}

/* Live colour dot */
.formrig-cs__swatch-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.15);
	background: transparent;
	flex-shrink: 0;
	transition: background-color 200ms ease, box-shadow 200ms ease;
}

.formrig-cs__swatch-dot.is-set {
	box-shadow: 0 0 6px rgba(244,96,12,0.4);
}

/* --------------------------------------------------------------------------
   Preview bar (shows selected colours across groups)
   -------------------------------------------------------------------------- */

.formrig-cs__preview {
	display: flex;
	gap: 5px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--frig-border);
	min-height: 10px;
}

.formrig-cs__preview-strip {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: rgba(255,255,255,0.06);
	transition: background-color 250ms ease;
}

/* --------------------------------------------------------------------------
   3D Viewer
   -------------------------------------------------------------------------- */

.formrig-3d-viewer-wrap {
	width: 100%;
	margin-bottom: 24px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--frig-border);
	background: var(--frig-black-card);
}

.formrig-3d-viewer-hint {
	text-align: center;
	font-size: 0.72rem;
	color: var(--frig-text-muted);
	margin: 8px 0 0;
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.formrig-contact-form { width: 100%; }

.formrig-cf__group { margin-bottom: 18px; }

.formrig-cf__label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--frig-text-muted);
	margin-bottom: 6px;
	letter-spacing: 0.03em;
}

.formrig-cf__required { color: var(--frig-orange); margin-left: 2px; }

.formrig-cf__input,
.formrig-cf__textarea,
.formrig-cf__select {
	width: 100%;
	padding: 11px 14px;
	background: #1C1C1C !important;
	border: 1px solid rgba(255,255,255,0.12) !important;
	border-radius: var(--frig-radius);
	color: #F4F4F0 !important;
	font-size: 0.9rem;
	font-family: inherit;
	appearance: none;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	caret-color: #F4600C;
}

/* Storefront override — ensure typed text is always visible */
textarea.formrig-cf__textarea,
.formrig-contact-form textarea {
	background-color: #1C1C1C !important;
	color: #F4F4F0 !important;
}

.formrig-cf__input::placeholder,
.formrig-cf__textarea::placeholder,
textarea.formrig-cf__textarea::placeholder {
	color: #7A7A76 !important;
	opacity: 1;
}

.formrig-cf__input:focus,
.formrig-cf__textarea:focus,
.formrig-cf__select:focus {
	outline: none;
	border-color: var(--frig-border-focus);
	box-shadow: 0 0 0 3px rgba(244,96,12,0.12);
}

.formrig-cf__textarea { resize: vertical; min-height: 120px; }

.formrig-cf__submit {
	display: inline-block;
	padding: 13px 32px;
	background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 55%), var(--frig-orange);
	color: #fff;
	border: 1px solid #D14E08;
	border-radius: var(--frig-radius);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: all 150ms ease;
	box-shadow: 0 2px 8px rgba(244,96,12,0.35);
}

.formrig-cf__submit:hover {
	background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 55%), #D14E08;
	box-shadow: 0 4px 16px rgba(244,96,12,0.45);
	transform: translateY(-1px);
}

.formrig-cf__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.formrig-cf__success {
	padding: 14px 18px;
	background: rgba(46,125,50,0.15);
	border: 1px solid rgba(46,125,50,0.4);
	border-radius: var(--frig-radius);
	color: #81c784;
	font-size: 0.9rem;
	margin-bottom: 16px;
}

.formrig-cf__error {
	padding: 14px 18px;
	background: rgba(198,40,40,0.12);
	border: 1px solid rgba(198,40,40,0.35);
	border-radius: var(--frig-radius);
	color: #ef9a9a;
	font-size: 0.9rem;
	margin-bottom: 16px;
}

.formrig-cf__status { margin-top: 14px; }

/* --------------------------------------------------------------------------
   Checkout order review — colour/base summary per item
   -------------------------------------------------------------------------- */

.formrig-checkout-meta {
	font-size: 0.78rem;
	color: var(--frig-text-muted, #D4D2CC);
	margin-top: 5px;
	line-height: 1.7;
}

.formrig-checkout-meta strong {
	color: var(--frig-text-faint, #9A9A96);
	font-weight: 600;
}

/* WooCommerce checkout — dark styling for order review table */
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
	color: var(--frig-text, #F6F6F2) !important;
	border-color: rgba(255,255,255,0.07) !important;
	background: transparent !important;
}

.woocommerce-checkout table.shop_table .amount {
	color: #F4600C;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.frig-fade-in { opacity: 0; transform: translateY(14px); transition: opacity 450ms ease, transform 450ms ease; }
.frig-fade-in.frig-visible { opacity: 1; transform: translateY(0); }
