.rcc-wrap {
	max-width: 780px;
	margin: 0 auto;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: #2c2c2a;
	overflow-x: hidden;
}

.rcc-page-title {
	font-family: 'Lora', serif;
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 10px;
}

.rcc-page-desc {
	font-size: 16px;
	color: #5c5c58;
	text-align: center;
	max-width: 600px;
	margin: 0 auto 28px;
}

.rcc-wrap h1,
.rcc-wrap h2,
.rcc-wrap h3,
.rcc-wrap h4 {
	font-family: 'Lora', serif;
}

.rcc-wrap * {
	box-sizing: border-box;
}

.rcc-field {
	margin-bottom: 16px;
}

.rcc-field label,
.rcc-section h3 {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.rcc-section h3 {
	font-size: 19px;
	margin-top: 0;
}

.rcc-hint {
	font-size: 14px;
	color: #7a7a76;
	margin: 4px 0 0;
}

.rcc-wrap input[type="text"],
.rcc-wrap input[type="number"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d8d6cd;
	border-radius: 6px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
}

.rcc-wrap input[type="range"] {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	border-radius: 3px;
	background: #eae8de;
	outline: none;
	margin: 10px 0;
	cursor: pointer;
}

.rcc-wrap input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #b3305a;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.rcc-wrap input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #b3305a;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.rcc-wrap input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: transparent;
}

.rcc-section {
	background: #faf9f5;
	border: 1px solid #eae8de;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 16px;
}

.rcc-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 640px) {
	.rcc-two-col {
		grid-template-columns: 1fr;
	}
}

.rcc-ing-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	background: #fff;
	border: 1px solid #eae8de;
	border-radius: 8px;
	padding: 14px 44px 14px 14px;
	margin-bottom: 10px;
	position: relative;
}

.rcc-ing-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rcc-ing-field label {
	font-size: 12px;
	font-weight: 600;
	color: #7a7a76;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0;
}

.rcc-ing-field-name {
	flex: 1 1 100%;
}

.rcc-ing-field-amount,
.rcc-ing-field-pkgsize {
	flex: 1 1 110px;
}

.rcc-ing-field-unit,
.rcc-ing-field-pkgunit {
	flex: 1 1 90px;
}

.rcc-ing-field-pkgcost {
	flex: 1 1 120px;
}

.rcc-ing-field-line {
	flex: 1 1 90px;
}

.rcc-ing-row input,
.rcc-ing-row select {
	padding: 7px 8px;
	border: 1px solid #d8d6cd;
	border-radius: 6px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 15px;
	width: 100%;
}

.rcc-ing-line {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #2c2c2a;
	padding: 7px 0;
}

.rcc-ing-remove {
	background: none;
	border: none;
	color: #a33;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 4px;
	position: absolute;
	top: 12px;
	right: 12px;
}

.rcc-btn {
	background: #fff;
	border: 1px solid #d8d6cd;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.rcc-btn:hover {
	background: #f2f1ea;
}

.rcc-inline {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rcc-inline > div {
	flex: 1;
}

.rcc-op {
	font-weight: 600;
	color: #7a7a76;
	padding-top: 18px;
}

.rcc-readout {
	font-weight: 600;
	white-space: nowrap;
}

.rcc-radio-row {
	display: flex;
	gap: 16px;
	font-size: 15px;
	font-weight: 400;
	margin-bottom: 8px;
}

.rcc-radio-row label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
}

.rcc-results {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}

@media (max-width: 640px) {
	.rcc-results {
		grid-template-columns: repeat(2, 1fr);
	}
}

.rcc-metric {
	background: #fff;
	border: 1px solid #eae8de;
	border-radius: 10px;
	padding: 14px;
	text-align: left;
}

.rcc-metric-label {
	font-size: 13px;
	color: #7a7a76;
	margin: 0 0 4px;
}

.rcc-metric-value {
	font-family: 'Lora', serif;
	font-size: 24px;
	font-weight: 700;
	margin: 0;
}

.rcc-breakdown {
	background: #faf9f5;
	border: 1px solid #eae8de;
	border-radius: 10px;
	padding: 16px 18px;
}

.rcc-bar {
	display: flex;
	width: 100%;
	height: 14px;
	border-radius: 7px;
	overflow: hidden;
	background: #eae8de;
	margin-bottom: 12px;
}

.rcc-bar-seg {
	height: 100%;
}

.rcc-bar-ingredients {
	background: #d85a30;
}

.rcc-bar-labor {
	background: #378add;
}

.rcc-bar-overhead {
	background: #63992a;
}

.rcc-legend {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 14px;
	margin-bottom: 10px;
}

.rcc-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	margin-right: 6px;
}

.rcc-dot-ingredients {
	background: #d85a30;
}

.rcc-dot-labor {
	background: #378add;
}

.rcc-dot-overhead {
	background: #63992a;
}

/* Try an example recipe (compact chip row) */

.rcc-example-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.rcc-example-label {
	font-size: 14px;
	color: #7a7a76;
	margin-right: 2px;
}

.rcc-example-chip {
	background: #eef4fc;
	border: 1px solid #cfe0f3;
	color: #1d3f6e;
	border-radius: 999px;
	padding: 6px 14px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.rcc-example-chip:hover {
	background: #dcebfa;
}

.rcc-example-chip.rcc-example-active {
	background: #378add;
	border-color: #378add;
	color: #fff;
}

/* Print + share action row */

.rcc-action-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
	position: relative;
}

.rcc-action-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #d8d6cd;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.rcc-action-btn:hover {
	background: #f2f1ea;
}

.rcc-share-label {
	font-size: 13px;
	color: #7a7a76;
	margin-left: 8px;
}

.rcc-share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #d8d6cd;
	background: #fff;
	color: #4a4a46;
	cursor: pointer;
	text-decoration: none;
}

.rcc-share-btn:hover {
	background: #f2f1ea;
}

.rcc-share-whatsapp:hover {
	color: #25d366;
	border-color: #25d366;
}

.rcc-share-facebook:hover {
	color: #1877f2;
	border-color: #1877f2;
}

.rcc-share-x:hover {
	color: #000;
	border-color: #000;
}

.rcc-copy-feedback {
	position: absolute;
	right: 0;
	top: -28px;
	background: #2c2c2a;
	color: #fff;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.rcc-copy-feedback.rcc-visible {
	opacity: 1;
}

/* How to use section */

.rcc-howto {
	max-width: 780px;
	margin: 40px auto 0;
	text-align: center;
	font-family: 'Nunito Sans', sans-serif;
}

.rcc-howto-title {
	font-family: 'Lora', serif;
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 6px;
}

.rcc-howto-sub {
	font-size: 15px;
	color: #7a7a76;
	margin: 0 0 28px;
}

.rcc-howto-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
	position: relative;
}

.rcc-howto-steps li {
	display: flex;
	gap: 16px;
	position: relative;
	padding-bottom: 28px;
}

.rcc-howto-steps li:last-child {
	padding-bottom: 0;
}

.rcc-howto-steps li::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 32px;
	bottom: 0;
	width: 1px;
	background: #eadfe4;
}

.rcc-howto-steps li:last-child::before {
	display: none;
}

.rcc-howto-num {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fbe3ea;
	color: #b3305a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
}

.rcc-howto-steps h4 {
	font-family: 'Lora', serif;
	margin: 4px 0 4px;
	font-size: 17px;
}

.rcc-howto-steps p {
	margin: 0;
	font-size: 15px;
	color: #5c5c58;
}

/* Print styles */

@media print {
	.rcc-example-row,
	.rcc-action-row,
	.rcc-howto,
	#rcc-add-ingredient,
	.rcc-ing-remove {
		display: none !important;
	}
}
