/* Scrap Gold Calculator - shared shortcode styles */

.gc-wrap {
	max-width: 420px;
	margin: 0 auto 14px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #221c14;
	box-sizing: border-box;
}
.gc-wrap * { box-sizing: border-box; }

/* ---- Price table ---- */
.gc-price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	border: 1px solid #d8c7a1;
	border-radius: 6px;
	overflow: hidden;
    color: #000000 !important;
}
.gc-price-title {
	background: #f1e9d6;
	 color: #000000 !important;
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	padding: 9px;
}
.gc-price-cell {
	padding: 8px 14px;
	border-top: 1px solid #ffffff;
     color: #000000 !important;
}
.gc-price-value {
	text-align: right;
	font-weight: 600;
     color: #000000 !important;
}
.gc-price-basis {
	padding: 8px 14px;
	border-top: 1px solid #ffffff;
	text-align: center;
	background: #faf7ef;
	color: #6b6153;
}

/* ---- Inputs ---- */
.gc-field { margin-bottom: 4px; }
.gc-label {
	display: block;
	font-size: 12px;
	color: #6b6153;
	margin-bottom: 5px;
}
.gc-input,
.gc-select {
	width: 100%;
	padding: 9px 10px;
	font-size: 14px;
	border: 1px solid #d8c7a1;
	border-radius: 4px;
	background: #fffdf8;
	color: #221c14;
}
.gc-btn {
	width: 100%;
	padding: 11px;
	font-size: 14px;
	border: 1px solid #a8792f;
	background: #a8792f;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}
.gc-btn:hover { background: #8e6427; }

/* ---- Result output ---- */
.gc-result-box {
	display: block;
	background: #221c14;
	border: 3px dotted #ffffff;
	border-radius: 6px;
	padding: 18px 20px;
	text-align: center;
}
.gc-result-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #ffffff;
	font-weight: 700;
}
.gc-result-value {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 36px;
	font-weight: 700;
	color: #ffffff;
	margin-top: 6px;
}
.gc-result-detail {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	margin-top: 8px;
}

/* ---- Payout output ---- */
.gc-payout-box { display: block; }
.gc-payout-label {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #FFD700;
	font-weight: 700;
	margin-bottom: 10px;
}
.gc-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.gc-payout-table {
	width: 100%;
	min-width: 280px;
	border-collapse: collapse;
	font-size: 13px;
}
.gc-payout-th {
	text-align: left;
	padding: 8px;
	border-bottom: 1px solid #ffffff;
	color: #FFD700;
	font-weight: 700;
}
.gc-payout-td {
	padding: 8px;
	border-bottom: 1px solid #ffffff;
	white-space: nowrap;
	color: #ffffff;
	font-weight: 600;
}
.gc-noborder { border-bottom: none; }
.gc-right { text-align: right; }
.gc-payout-note {
	font-size: 12px;
	color: #ffffff;
	margin-top: 8px;
	line-height: 1.5;
}

/* ---- Explanation output ---- */
.gc-explain-box { display: block; }
.gc-explain-label {
	/* styled as an h3-style heading, white */
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	text-transform: none;
	letter-spacing: normal;
	margin: 0 0 10px;
	line-height: 1.3;
}
.gc-explain-text {
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	line-height: 1.7;
	word-break: break-word;
}

/* ---- Error output ---- */
.gc-err {
	display: none;
	font-size: 12px;
	color: #a83c2f;
	text-align: center;
}

/* =========================================================
 * Header row: [gc_site_title] + [gc_price_table] side by side
 * inside one Kadence HTML element — same layout on every device.
 * ========================================================= */
.gc-header-flex {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 14px !important;
	flex-wrap: nowrap !important;
}
.gc-site-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 20px !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	flex: 0 0 auto !important;
}
.gc-site-title a {
	text-decoration: none !important;
	color: inherit !important;
}
.gc-header-flex .gc-wrap {
	max-width: none !important;
	margin: 0 !important;
	display: inline-block !important;
	vertical-align: middle !important;
	flex: 0 0 auto !important;
}

/* =========================================================
 * Price table merged directly into [gc_inputs_all]
 * Always matches the calculator block's own width — same
 * layout on every screen size, nothing to relocate via JS.
 * ========================================================= */
.gc-price-table-merged {
	width: 100%;
	margin-bottom: 18px;
}

/* =========================================================
 * [gc_output_slip] — printable / shareable estimate slip
 * ========================================================= */
.gc-slip-wrap {
	display: none; /* shown by JS only after a real calculation has run */
	max-width: 480px;
	margin: 0 auto 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.gc-slip-actions {
	display: none; /* shown by JS only after a real calculation has run */
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}
.gc-slip-btn {
	flex: 1 1 140px;
	min-width: 120px;
	width: auto;
}
.gc-slip-btn-secondary {
	background: #fffdf8;
	color: #a8792f;
}
.gc-slip-btn-secondary:hover { background: #f1e9d6; }

.gc-slip {
	background: #fff;
	border: 1px solid #d8c7a1;
	border-radius: 10px;
	padding: 22px 24px;
	color: #221c14;
	box-sizing: border-box;
}
.gc-slip-header {
	text-align: center;
	border-bottom: 2px solid #a8792f;
	padding-bottom: 12px;
	margin-bottom: 16px;
}
.gc-slip-site {
	font-size: 13px;
	font-weight: 700;
	color: #7a561f;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.gc-slip-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 20px;
	margin-top: 4px;
}
.gc-slip-date {
	font-size: 11px;
	color: #8a7f68;
	margin-top: 6px;
}
.gc-slip-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-bottom: 16px;
}
.gc-slip-table tr + tr td {
	border-top: 1px solid #efe8d6;
}
.gc-slip-label {
	padding: 7px 0;
	color: #6b6153;
}
.gc-slip-val {
	padding: 7px 0;
	text-align: right;
	font-weight: 600;
}
.gc-slip-total {
	background: #221c14;
	border-radius: 8px;
	text-align: center;
	padding: 14px;
	margin-bottom: 18px;
}
.gc-slip-total-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #c9bd9f;
}
.gc-slip-total-value {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 28px;
	color: #f0c96b;
	margin-top: 4px;
}
.gc-slip-payout-title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7a561f;
	font-weight: 700;
	margin-bottom: 8px;
}
.gc-slip-payout-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	margin-bottom: 18px;
}
.gc-slip-payout-table th {
	text-align: left;
	padding: 6px 4px;
	border-bottom: 1px solid #d8c7a1;
	color: #7a561f;
}
.gc-slip-payout-amt-th { text-align: right; }
.gc-slip-payout-table td {
	padding: 6px 4px;
	border-bottom: 1px solid #efe8d6;
}
.gc-slip-payout-amt { text-align: right; font-weight: 600; }
.gc-slip-footer {
	font-size: 10.5px;
	color: #8a7f68;
	line-height: 1.5;
	text-align: center;
	border-top: 1px solid #efe8d6;
	padding-top: 12px;
}

/* Print: show only the slip itself, forced to portrait, sized to fit one page */
@media print {
	@page {
		size: portrait;
		margin: 8mm;
	}
	body * {
		visibility: hidden;
	}
	.gc-slip, .gc-slip * {
		visibility: visible;
	}
	.gc-slip {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		border: none;
		box-shadow: none;
		padding: 10px 12px;
		page-break-inside: avoid;
	}
	.gc-slip-actions {
		display: none !important;
	}
	.gc-slip-header {
		padding-bottom: 6px;
		margin-bottom: 8px;
	}
	.gc-slip-site { font-size: 11px; }
	.gc-slip-title { font-size: 15px; margin-top: 2px; }
	.gc-slip-date { font-size: 9px; margin-top: 3px; }
	.gc-slip-table {
		font-size: 10px;
		margin-bottom: 8px;
	}
	.gc-slip-table .gc-slip-label,
	.gc-slip-table .gc-slip-val {
		padding: 3px 0;
	}
	.gc-slip-total {
		padding: 8px;
		margin-bottom: 10px;
	}
	.gc-slip-total-label { font-size: 9px; }
	.gc-slip-total-value { font-size: 18px; margin-top: 2px; }
	.gc-slip-payout-title { font-size: 10px; margin-bottom: 4px; }
	.gc-slip-payout-table {
		font-size: 9.5px;
		margin-bottom: 8px;
	}
	.gc-slip-payout-table th,
	.gc-slip-payout-table td {
		padding: 3px;
	}
	.gc-slip-footer {
		font-size: 8px;
		line-height: 1.3;
		padding-top: 6px;
	}
}

/* =========================================================
 * COMBINED [gc_inputs_all]
 * Dotted 3px border box, 15px radius, wraps cleanly on any
 * screen size, fixed 120px fields, 80% width button.
 * ========================================================= */
.gc-all-inputs {
	max-width: 100%;
	margin: 0 auto 20px;
	padding: 20px;
	border: 3px dotted #a8792f;
	border-radius: 15px;
	background: #fffdf8;
	box-sizing: border-box;
}
.gc-all-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 16px;
	justify-content: center;
	margin-bottom: 18px;
}
.gc-all-field {
	width: 120px;
	max-width: 100%;
	flex: 0 1 120px;
}
.gc-input-fixed {
	width: 100%;
}
.gc-btn-80 {
	display: block;
	width: 80%;
	margin: 0 auto;
}

@media (max-width: 480px) {
	.gc-all-inputs { padding: 16px; }
	.gc-all-row { gap: 12px; }
	.gc-all-field { flex: 0 1 45%; width: auto; }
}

/* =========================================================
 * COMBINED [gc_outputs_all]
 * Full-width stacked output blocks for a dedicated results page.
 * ========================================================= */
.gc-all-outputs {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}
.gc-all-outputs .gc-full {
	width: 100%;
	max-width: 100%;
	margin: 0 0 16px;
	box-sizing: border-box;
}
.gc-err-full {
	width: 100%;
	max-width: 100%;
	margin: 0 0 16px;
	box-sizing: border-box;
}