/*
 * Gold Offer Calculator: Texas Gold Vault design.
 * .goc is the whole card (outer frame, header bar, inner panel). Place the block
 * on its own; do not wrap it in another styled card, or the frame doubles.
 * Fonts come from the theme (Lora + Noto Sans), with system fallbacks.
 */
.goc {
	--goc-frame: #8a6a2d;
	--goc-bg: rgba(9, 9, 9, 0.97);
	--goc-panel: #0d0d0c;
	--goc-panel-line: #2d2b27;
	--goc-box: #171716;
	--goc-box-line: #31302d;
	--goc-ink: #f5f0e7;
	--goc-ink-2: #f0e8d9;
	--goc-muted: #9b978e;
	--goc-muted-2: #aaa18f;
	--goc-faint: #8f8779;
	--goc-gold: #e0bc69;
	--goc-gold-2: #dcb54f;
	--goc-gold-fill: #e1b44a;
	--goc-gold-btn: #d4a63f;
	--goc-high: #f3d77f;
	--goc-serif: "Lora", Georgia, "Times New Roman", serif;
	--goc-sans: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 28px 11px 11px;
	border-radius: 24px;
	background: var(--goc-bg);
	box-shadow: inset 0 0 0 1px var(--goc-frame), 0 24px 56px rgba(0, 0, 0, 0.72);
	color: var(--goc-ink);
	font-family: var(--goc-sans);
	line-height: 1.4;
	text-align: left;
}

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

/* reset theme spacing; class rules below win on source order */
.goc :where(p, h2, dl, dd, dt, fieldset, legend, hr) {
	margin: 0;
	padding: 0;
}

/* header bar */
.goc__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 0 16px 18px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
}

.goc__kicker {
	color: #e0b957;
}

.goc__bar-meta {
	color: #9f9685;
}

/* inner panel */
.goc__panel {
	padding: 27px 27px 24px;
	border-radius: 17px;
	background: var(--goc-panel);
	box-shadow: inset 0 0 0 1px var(--goc-panel-line);
}

.goc__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}

.goc h2.goc__title {
	max-width: 330px;
	margin: 0;
	color: var(--goc-ink);
	font-family: var(--goc-serif);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0;
	text-transform: none;
}

.goc__instant {
	flex-shrink: 0;
	padding-bottom: 4px;
	color: #9b927f;
	font-size: 9.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* spot line */
.goc__spotline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin-top: 26px;
	font-variant-numeric: tabular-nums;
}

.goc__spot-flag {
	display: inline-flex;
	align-items: center;
	padding: 7px 11px;
	border-radius: 15px;
	box-shadow: inset 0 0 0 1px #745a28;
	color: var(--goc-gold);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.goc__spot-val {
	color: var(--goc-ink-2);
	font-family: var(--goc-serif);
	font-size: 18px;
	line-height: 1.1;
	white-space: nowrap;
}

.goc__spot-val small {
	margin-left: 3px;
	color: #9c9486;
	font-family: var(--goc-sans);
	font-size: 12px;
}

.goc__dot {
	color: #d8aa47;
	font-size: 16px;
	line-height: 1;
}

.goc__updated {
	margin-top: 8px;
	color: var(--goc-faint);
	font-size: 11px;
}

.goc__rule {
	height: 1px;
	margin: 18px 0 0;
	border: 0;
	background: #292722;
}

/* labels */
.goc__label,
.goc__fieldset .goc__label {
	display: block;
	margin: 0 0 9px;
	padding: 0;
	color: var(--goc-gold-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* purity pills */
.goc__fieldset {
	margin-top: 18px;
	border: 0;
	min-inline-size: 0;
}

.goc__karats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.goc button.goc__karat {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 22px;
	background: var(--goc-panel);
	box-shadow: inset 0 0 0 1px #705725;
	color: var(--goc-muted);
	cursor: pointer;
	font-family: var(--goc-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.goc button.goc__karat:hover {
	box-shadow: inset 0 0 0 1px var(--goc-gold);
	color: var(--goc-ink-2);
}

.goc button.goc__karat.is-selected,
.goc button.goc__karat[aria-pressed="true"] {
	background: var(--goc-gold-fill);
	box-shadow: inset 0 0 0 1px #eac564;
	color: #11100d;
}

/* weight */
.goc__weight {
	margin-top: 19px;
}

.goc__weight-row {
	position: relative;
	display: flex;
	align-items: center;
	height: 50px;
	padding-left: 16px;
	border-radius: 13px;
	background: #111;
}

/* the outline sits on top of the field so the theme's focus styles can't cover it */
.goc__weight-row::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px #5f4b25;
	pointer-events: none;
	transition: box-shadow 0.2s ease;
}

.goc__weight-row:focus-within::after {
	box-shadow: inset 0 0 0 1.5px var(--goc-gold);
}

.goc .goc__weight-row input.goc__weight-input,
.goc .goc__weight-row input.goc__weight-input:hover,
.goc .goc__weight-row input.goc__weight-input:focus,
.goc .goc__weight-row select.goc__unit,
.goc .goc__weight-row select.goc__unit:hover,
.goc .goc__weight-row select.goc__unit:focus {
	border: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
}

.goc input.goc__weight-input {
	appearance: none;
	-webkit-appearance: none;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--goc-ink);
	font-family: var(--goc-sans);
	font-size: 20px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.goc__unit-wrap {
	position: relative;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 30px;
	border-left: 1px solid #3e3523;
}

.goc select.goc__unit {
	appearance: none;
	-webkit-appearance: none;
	width: auto;
	height: 30px;
	margin: 0;
	padding: 0 30px 0 17px;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	color: #d9b45e;
	cursor: pointer;
	font-family: var(--goc-sans);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 30px;
	text-transform: uppercase;
}

.goc select.goc__unit option {
	background: #111;
	color: var(--goc-ink);
	text-transform: none;
}

.goc__unit-wrap::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -4px;
	border-right: 1.5px solid #d9b45e;
	border-bottom: 1.5px solid #d9b45e;
	transform: rotate(45deg);
	pointer-events: none;
}

.goc button.goc__karat:focus-visible,
.goc__cta:focus-visible {
	outline: 2px solid var(--goc-gold);
	outline-offset: 3px;
}

/* results */
.goc__math {
	position: relative;
	margin-top: 17px;
	padding: 18px;
	border-radius: 16px;
	background: var(--goc-box);
	box-shadow: inset 0 0 0 1px var(--goc-box-line);
}

.goc__formula {
	color: var(--goc-faint);
	font-size: 12px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.goc__breakdown {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 16px;
}

.goc__breakdown > div {
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
	min-width: 0;
}

.goc__breakdown dt {
	color: var(--goc-muted-2);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.goc__breakdown dd {
	color: var(--goc-ink);
	font-family: var(--goc-serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.goc__offers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.goc__offer-card {
	min-width: 0;
	padding: 15px 14px 14px;
	border-radius: 13px;
	background: #10100f;
	box-shadow: inset 0 0 0 1px #35332e;
}

.goc__offer-card--high {
	background: #211a0b;
	box-shadow: inset 0 0 0 1px #d7a943;
}

.goc__offer-kicker {
	color: var(--goc-muted-2);
	font-size: 10px;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.goc__offer-value {
	display: block;
	max-width: 100%;
	margin-top: 6px;
	overflow: hidden;
	color: #f4eee3;
	font-family: var(--goc-serif);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.goc__offer-card--high .goc__offer-value {
	color: var(--goc-high);
}

/* payout slider: one payout at the percentage the visitor picks */
.goc__payout {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
	padding: 18px 20px 14px;
	border-radius: 14px;
	background: #0e0e0d;
	box-shadow: inset 0 0 0 1px #d7a943;
}

.goc__payout-head,
.goc__payout-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.goc__payout-row {
	align-items: baseline;
}

.goc__payout-kicker {
	color: #c9a85a;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.goc__payout-tag {
	padding: 5px 10px;
	border-radius: 12px;
	background: rgba(215, 169, 67, 0.14);
	color: var(--goc-high);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}

.goc__payout-value {
	min-width: 0;
	overflow: hidden;
	color: var(--goc-high);
	font-family: var(--goc-serif);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.goc__payout-at {
	flex: 0 0 auto;
	color: #a89a7c;
	font-size: 11px;
	line-height: 1.3;
}

.goc__slider {
	--goc-fill: 50%;
	position: relative;
	height: 28px;
	margin-top: 4px;
}

.goc__slider::before {
	content: "";
	position: absolute;
	top: 11px;
	right: 0;
	left: 0;
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--goc-gold-btn) 0%, var(--goc-high) var(--goc-fill), #3a3222 var(--goc-fill), #3a3222 100%);
	pointer-events: none;
}

.goc input.goc__range {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: block;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	touch-action: pan-y;
}

.goc input.goc__range:focus {
	outline: none;
}

.goc input.goc__range::-webkit-slider-runnable-track {
	height: 6px;
	border: 0;
	background: transparent;
}

.goc input.goc__range::-moz-range-track {
	height: 6px;
	border: 0;
	background: transparent;
}

.goc input.goc__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 26px;
	height: 26px;
	margin-top: -10px;
	border: 4px solid #0e0e0d;
	border-radius: 50%;
	background: var(--goc-high);
	box-shadow: 0 0 0 1.5px #d7a943, 0 4px 14px rgba(0, 0, 0, 0.6);
	transition: box-shadow 0.15s ease;
}

.goc input.goc__range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 4px solid #0e0e0d;
	border-radius: 50%;
	background: var(--goc-high);
	box-shadow: 0 0 0 1.5px #d7a943, 0 4px 14px rgba(0, 0, 0, 0.6);
}

.goc input.goc__range:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 1.5px #d7a943, 0 0 0 7px rgba(215, 169, 67, 0.35);
}

.goc input.goc__range:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 1.5px #d7a943, 0 0 0 7px rgba(215, 169, 67, 0.35);
}

.goc__ticks {
	display: grid;
	margin: 0 -2px;
}

.goc button.goc__tick {
	appearance: none;
	min-width: 0;
	min-height: 30px;
	margin: 0;
	padding: 6px 0;
	border: 0;
	border-radius: 8px;
	background: none;
	box-shadow: none;
	color: #7f7869;
	font-family: var(--goc-sans);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
	text-align: center;
	text-transform: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.goc button.goc__tick:hover,
.goc button.goc__tick:focus-visible {
	background: none;
	color: var(--goc-high);
}

.goc button.goc__tick:focus-visible {
	outline: 2px solid var(--goc-gold);
	outline-offset: -2px;
}

.goc button.goc__tick.is-selected {
	color: var(--goc-high);
	font-weight: 700;
}

.goc__payout-ends {
	display: flex;
	justify-content: space-between;
	color: var(--goc-faint);
	font-size: 9.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* call to action */
.goc__cta,
.goc a.goc__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 54px;
	margin-top: 16px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: var(--goc-gold-btn);
	color: #11100d;
	font-family: var(--goc-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s ease;
}

.goc__cta:hover,
.goc a.goc__cta:hover {
	background: var(--goc-gold);
	color: #11100d;
}

.goc__cta-arrow {
	transition: transform 0.25s ease;
}

.goc__cta:hover .goc__cta-arrow {
	transform: translateX(4px);
}

.goc__disclaimer,
.goc__note,
.goc__unavailable {
	margin-top: 14px;
	color: var(--goc-faint);
	font-size: 10.5px;
	line-height: 1.5;
	text-align: center;
}

.goc__unavailable {
	font-size: 13px;
}

.goc__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* phones */
@media (max-width: 640px) {
	.goc {
		padding: 22px 8px 8px;
		border-radius: 18px;
		box-shadow: inset 0 0 0 1px var(--goc-frame), 0 18px 42px rgba(0, 0, 0, 0.65);
	}

	.goc__bar {
		padding: 0 10px 14px;
		font-size: 9.5px;
	}

	.goc__bar-meta,
	.goc__instant {
		display: none;
	}

	.goc__panel {
		padding: 24px 18px 20px;
	}

	.goc h2.goc__title {
		font-size: 29px;
	}

	.goc__spotline {
		gap: 8px 7px;
		margin-top: 20px;
	}

	.goc__spot-flag {
		padding: 6px 9px;
		font-size: 9px;
	}

	.goc__spot-val {
		font-size: 15px;
	}

	.goc__spot-val small {
		margin-left: 2px;
		font-size: 11px;
	}

	.goc__karats {
		gap: 6px;
	}

	.goc button.goc__karat {
		height: 42px;
		padding: 0 4px;
	}

	.goc__weight-row {
		padding-left: 14px;
	}

	.goc select.goc__unit {
		padding-left: 14px;
		font-size: 9.5px;
		letter-spacing: 0.08em;
	}

	.goc__math {
		padding: 15px;
	}

	.goc__formula {
		font-size: 11px;
	}

	.goc__breakdown {
		gap: 16px;
	}

	.goc__breakdown dt {
		font-size: 9px;
	}

	.goc__breakdown dd {
		font-size: 20px;
	}

	.goc__offers {
		gap: 8px;
	}

	.goc__offer-card {
		padding: 12px 11px 11px;
		border-radius: 12px;
	}

	.goc__offer-kicker {
		font-size: 9px;
	}

	.goc__offer-value {
		font-size: 22px;
	}

	.goc__payout {
		padding: 16px 16px 12px;
	}

	.goc__payout-value {
		font-size: 30px;
	}

	.goc button.goc__tick {
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.goc *,
	.goc *::after {
		transition: none !important;
	}
}
