/**
 * PlatedByHeart.com — 1:1 Natasha's Kitchen (nk2026) Tasty Recipes Card Stylesheet
 * Deep Plum Mulberry (#7B2D52) & Warm Champagne Gold (#D99B26) with Soft Porcelain (#FFFDF9) & Pale Mulberry Highlight (#FDF4F7).
 * Loaded inside Tasty Recipes frontend, print view, and WP-Admin settings preview.
 */

:root {
	--nk-black: #1F181B;
	--nk-darkgrey: #615459;
	--nk-grey: #CFC4C8;
	--nk-lightgrey: #E7DFE2;
	--nk-palegrey: #FFFDF9;
	--nk-yellow: #D99B26;
	--nk-yellow-hover: #B87F18;
	--nk-mediumyellow: #ECC87A;
	--nk-paleyellow: #FDF4F7;
	--nk-red: #7B2D52;
	--nk-red-hover: #5C1F3C;
	--nk-midred: #C48BA6;
	--nk-palered: #FDF4F7;
	--nk-white: #FFFFFF;
}

.tasty-recipes,
.tasty-recipes-wrapper {
	margin: 30px 0;
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
	font-family: 'OutfitLocal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--nk-black);
	max-width: 100%;
	box-sizing: border-box;
}

.tasty-recipes .nk-recipe-wrap {
	padding: 30px;
	border: 1px solid var(--nk-lightgrey);
	background: var(--nk-white);
	box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.07);
	border-radius: 12px;
	max-width: 100%;
	box-sizing: border-box;
}

/* Header Split Layout */
.tasty-recipes .nk-recipe-header {
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 22px;
}

.tasty-recipes .nk-recipe-header-right {
	width: 180px;
	flex-shrink: 0;
	margin: 0;
}

.tasty-recipes .nk-recipe-header-left {
	flex-grow: 1;
	min-width: 0;
}

.tasty-recipes .wprm-recipe-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	position: relative;
}

.tasty-recipes .wprm-recipe-image img {
	width: 180px !important;
	height: 180px !important;
	max-width: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50% !important;
	margin: 0 auto;
}

/* Interactive 5-Star Rating Row */
.tasty-recipes .wprm-recipe-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 6px;
	margin: 0 0 10px 0 !important;
}

.tasty-recipes .pbh-tr-star-btn {
	background: transparent !important;
	border: none !important;
	padding: 0 2px !important;
	margin: 0 !important;
	cursor: pointer;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	transition: transform 0.15s ease;
}

.tasty-recipes .pbh-tr-star-btn:hover {
	transform: scale(1.15);
}

.tasty-recipes .wprm-recipe-rating-details {
	margin-left: 10px !important;
	font-size: 13px !important;
	line-height: 18px !important;
	color: var(--nk-darkgrey);
	font-weight: 500;
}

.tasty-recipes h2.tasty-recipes-title {
	font-size: 32px !important;
	line-height: 40px !important;
	font-weight: 700 !important;
	color: var(--nk-black) !important;
	margin: 0 0 14px 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.tasty-recipes .wprm-recipe-summary {
	font-size: 16px;
	line-height: 25px;
	color: var(--nk-black);
	margin-bottom: 16px;
}

.tasty-recipes .wprm-recipe-summary p {
	margin: 0;
}

/* Header Action Buttons (Print Recipe / Pin Recipe / Save Recipe) */
.tasty-recipes .recipebuttons > ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tasty-recipes .recipebuttons > ul > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tasty-recipes .recipebuttons > ul > li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
	box-sizing: border-box !important;
}

.tasty-recipes .recipebuttons .is-style-red a {
	background: var(--nk-red);
	border: 1px solid var(--nk-red);
	color: var(--nk-white) !important;
}

.tasty-recipes .recipebuttons .is-style-red a:hover {
	background: var(--nk-red-hover);
	border-color: var(--nk-red-hover);
}

.tasty-recipes .recipebuttons .is-style-redoutline a {
	background: var(--nk-white);
	border: 1px solid var(--nk-red);
	color: var(--nk-red) !important;
}

.tasty-recipes .recipebuttons .is-style-redoutline a:hover {
	background: var(--nk-palered);
}

.tasty-recipes .recipebuttons .is-style-outline a {
	background: var(--nk-white);
	border: 1px solid var(--nk-black);
	color: var(--nk-black) !important;
}

.tasty-recipes .recipebuttons .is-style-outline a:hover {
	border-color: var(--nk-red);
	color: var(--nk-red) !important;
}

.tasty-recipes .recipebuttons .cicon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

.tasty-recipes .recipebuttons .customslick .unsave {
	display: none;
}
.tasty-recipes .recipebuttons .customslick.saved .save {
	display: none;
}
.tasty-recipes .recipebuttons .customslick.saved .unsave {
	display: inline;
}

/* Soft Porcelain Times & Yield Bar (.customtimes) */
.tasty-recipes .wprm-recipe-meta-container.customtimes {
	background-color: var(--nk-palegrey);
	background-image:
		repeating-linear-gradient(45deg, rgba(123, 45, 82, 0.025) 0px, rgba(123, 45, 82, 0.025) 2px, transparent 2px, transparent 8px),
		repeating-linear-gradient(-45deg, rgba(123, 45, 82, 0.025) 0px, rgba(123, 45, 82, 0.025) 2px, transparent 2px, transparent 8px);
	border: 1px solid var(--nk-lightgrey);
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	column-gap: 32px;
	row-gap: 14px;
	padding: 20px;
	font-size: 16px;
	line-height: 22px;
	margin-bottom: 20px;
}

.tasty-recipes .wprm-recipe-meta-container.customtimes .wprm-recipe-block-container-inline {
	margin: 0;
}

.tasty-recipes .wprm-recipe-meta-container.customtimes .wprm-recipe-details-label {
	display: block;
	margin-bottom: 4px;
	color: var(--nk-black);
}

/* Cook Mode Toggle Row */
.tasty-recipes .pbh-tr-cookmode-row {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--nk-palegrey);
	border: 1px solid var(--nk-lightgrey);
	border-radius: 10px;
	padding: 10px 16px;
	margin: 4px 0 8px 0;
	max-width: 100%;
	box-sizing: border-box;
}

.tasty-recipes .pbh-tr-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	cursor: pointer;
	margin: 0;
}

.tasty-recipes .pbh-tr-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.tasty-recipes .pbh-tr-switch-slider {
	position: absolute;
	inset: 0;
	background-color: var(--nk-grey);
	border-radius: 24px;
	transition: 0.25s;
}

.tasty-recipes .pbh-tr-switch-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: var(--nk-white);
	border-radius: 50%;
	transition: 0.25s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tasty-recipes .pbh-tr-switch input:checked + .pbh-tr-switch-slider {
	background-color: var(--nk-red);
}

.tasty-recipes .pbh-tr-switch input:checked + .pbh-tr-switch-slider:before {
	transform: translateX(20px);
}

.tasty-recipes .pbh-tr-cookmode-label {
	font-size: 14.5px;
	line-height: 20px;
	font-weight: 600;
	color: var(--nk-black);
	cursor: pointer;
}

/* Section Headings */
.tasty-recipes h3 {
	font-size: 24px !important;
	line-height: 32px !important;
	font-weight: 700 !important;
	color: var(--nk-black) !important;
	margin: 0 0 12px 0 !important;
	text-transform: none !important;
}

/* Ingredients Header + Servings (-/+) + 1x/2x/3x Scale Buttons */
.tasty-recipes .pbh-tr-ing-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px !important;
}

.tasty-recipes .pbh-tr-ing-header h3 {
	margin-bottom: 0 !important;
}

.tasty-recipes .pbh-tr-scale-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	max-width: 100%;
}

.tasty-recipes .pbh-tr-mult-pills,
.tasty-recipes .tasty-recipes-scale-container.pbh-tr-mult-pills {
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid var(--nk-yellow) !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: var(--nk-white) !important;
	padding: 0 !important;
	margin: 0 !important;
	height: 40px !important;
	box-sizing: border-box !important;
}

.tasty-recipes .pbh-tr-mult-pills .tasty-recipes-scale-label {
	display: none !important;
}

.tasty-recipes .pbh-tr-mult-pills .tasty-recipes-scale-button {
	background: var(--nk-white) !important;
	border: none !important;
	border-right: 1px solid var(--nk-yellow) !important;
	color: var(--nk-black) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	height: 38px !important;
	line-height: 38px !important;
	min-width: 38px !important;
	padding: 0 10px !important;
	margin: 0 !important;
	border-radius: 0 !important;
	cursor: pointer;
	transition: background 0.2s;
}

.tasty-recipes .pbh-tr-mult-pills .tasty-recipes-scale-button:last-child {
	border-right: none !important;
}

.tasty-recipes .pbh-tr-mult-pills .tasty-recipes-scale-button:hover {
	background: var(--nk-paleyellow) !important;
}

.tasty-recipes .pbh-tr-mult-pills .tasty-recipes-scale-button.tasty-recipes-scale-button-active {
	background: var(--nk-paleyellow) !important;
	color: var(--nk-black) !important;
	box-shadow: inset 0 0 0 1px var(--nk-yellow);
}

/* Ingredients List & Custom Natasha's Kitchen 22x22 Checkboxes */
.tasty-recipes .pbh-tr-ing-body ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.tasty-recipes .pbh-tr-ing-body ul li {
	position: relative;
	list-style: none !important;
	margin: 0 0 8px 0 !important;
	padding: 2px 0 2px 36px !important;
	font-size: 16px;
	line-height: 24px;
	color: var(--nk-black);
	cursor: pointer;
	user-select: none;
}

.tasty-recipes .pbh-tr-ing-body ul li .tr-ingredient-checkbox-container {
	display: none !important;
}

.tasty-recipes .pbh-tr-ing-body ul li:before {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	left: 0 !important;
	top: 3px !important;
	width: 22px !important;
	height: 22px !important;
	border: 1px solid var(--nk-black) !important;
	border-radius: 0 !important;
	background: var(--nk-white) !important;
	box-sizing: border-box !important;
}

.tasty-recipes .pbh-tr-ing-body ul li.strikeout:after,
.tasty-recipes .pbh-tr-ing-body ul li[data-tr-ingredient-checkbox="checked"]:after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	top: 7px !important;
	left: 4px !important;
	width: 14px !important;
	height: 14px !important;
	background-size: auto 100% !important;
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='28' height='32' viewBox='0 0 28 32'%3E%3Cpath fill='%231F181B' d='M27.175 4.381c0.894 0.65 1.094 1.9 0.444 2.794l-16 22c-0.344 0.475-0.875 0.769-1.463 0.819s-1.156-0.169-1.569-0.581l-8-8c-0.781-0.781-0.781-2.050 0-2.831s2.050-0.781 2.831 0l6.344 6.344 14.625-20.106c0.65-0.894 1.9-1.094 2.794-0.444z'%3E%3C/path%3E%3C/svg%3E") !important;
}

.tasty-recipes .pbh-tr-ing-body ul li.strikeout,
.tasty-recipes .pbh-tr-ing-body ul li[data-tr-ingredient-checkbox="checked"] {
	text-decoration: line-through;
	color: var(--nk-darkgrey);
}

.tasty-recipes .pbh-tr-ing-qty {
	font-weight: 700;
	color: inherit;
}

/* Instructions with Natasha's Kitchen Dark Circle Badges */
.tasty-recipes .pbh-tr-steps-body ol,
.tasty-recipes .pbh-tr-steps-body ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	counter-reset: nk-step-counter;
}

.tasty-recipes .pbh-tr-steps-body ol > li,
.tasty-recipes .pbh-tr-steps-body ul > li {
	position: relative;
	list-style: none !important;
	margin: 0 0 14px 0 !important;
	padding: 0 0 0 40px !important;
	font-size: 16px;
	line-height: 26px;
	color: var(--nk-black);
	counter-increment: nk-step-counter;
}

.tasty-recipes .pbh-tr-steps-body ol > li:last-child,
.tasty-recipes .pbh-tr-steps-body ul > li:last-child {
	margin-bottom: 0 !important;
}

.tasty-recipes .pbh-tr-steps-body ol > li:before,
.tasty-recipes .pbh-tr-steps-body ul > li:before {
	content: counter(nk-step-counter) !important;
	display: block !important;
	position: absolute !important;
	left: 0 !important;
	top: 2px !important;
	width: 26px !important;
	height: 26px !important;
	line-height: 26px !important;
	border-radius: 50% !important;
	background: var(--nk-black) !important;
	color: var(--nk-white) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-align: center !important;
}

.tasty-recipes .pbh-tr-steps-body li p {
	margin: 0;
}

/* Rachel's Kitchen Tips (Notes) */
.tasty-recipes .wprm-recipe-notes-container {
	border: 1px solid var(--nk-grey);
	border-radius: 12px;
	padding: 20px;
	background: var(--nk-white);
}

.tasty-recipes .tasty-recipes-notes-body p:last-child,
.tasty-recipes .tasty-recipes-notes-body ul:last-child {
	margin-bottom: 0;
}

/* Nutrition Facts */
.tasty-recipes .wprm-recipe-nutrition-container {
	background-color: var(--nk-palegrey);
	background-image:
		repeating-linear-gradient(45deg, rgba(123, 45, 82, 0.025) 0px, rgba(123, 45, 82, 0.025) 2px, transparent 2px, transparent 8px),
		repeating-linear-gradient(-45deg, rgba(123, 45, 82, 0.025) 0px, rgba(123, 45, 82, 0.025) 2px, transparent 2px, transparent 8px);
	border: 1px solid var(--nk-lightgrey);
	border-radius: 12px;
	padding: 20px;
}

.tasty-recipes .wprm-recipe-nutrition-container .smalltext {
	font-size: 15px;
	line-height: 22px;
	font-weight: 400;
	color: var(--nk-darkgrey);
	margin-left: 10px;
}

/* Pale Mulberry & Champagne Gold Footer CTA inside Recipe Card */
.tasty-recipes .pbh-tr-footer-cta {
	display: flex;
	align-items: center;
	gap: 16px;
	background-color: var(--nk-paleyellow);
	background-image:
		repeating-linear-gradient(45deg, rgba(123, 45, 82, 0.03) 0px, rgba(123, 45, 82, 0.03) 2px, transparent 2px, transparent 8px),
		repeating-linear-gradient(-45deg, rgba(123, 45, 82, 0.03) 0px, rgba(123, 45, 82, 0.03) 2px, transparent 2px, transparent 8px);
	border: 1px solid var(--nk-mediumyellow);
	border-radius: 12px;
	padding: 18px 20px;
	margin-top: 24px;
}

.tasty-recipes .pbh-tr-footer-cta__icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--nk-white);
	border: 1px solid var(--nk-mediumyellow);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tasty-recipes .pbh-tr-footer-cta__text strong {
	display: block;
	font-size: 17px;
	line-height: 24px;
	color: var(--nk-black);
	margin-bottom: 2px;
}

.tasty-recipes .pbh-tr-footer-cta__text p {
	margin: 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--nk-black);
}

.tasty-recipes .pbh-tr-footer-cta__text a {
	color: var(--nk-red);
	font-weight: 600;
	text-decoration: underline;
}

/* Mobile Responsive Perfection (360px, 390px, <= 767px) */
@media screen and (max-width: 767px) {
	.tasty-recipes .nk-recipe-wrap {
		padding: 18px 16px;
	}
	.tasty-recipes .nk-recipe-header {
		display: block;
	}
	.tasty-recipes .nk-recipe-header-right {
		width: 156px;
		margin: 0 auto 16px auto;
	}
	.tasty-recipes .wprm-recipe-image img {
		width: 156px !important;
		height: 156px !important;
	}
	.tasty-recipes .wprm-recipe-rating {
		justify-content: center;
	}
	.tasty-recipes h2.tasty-recipes-title {
		font-size: 26px !important;
		line-height: 34px !important;
		text-align: center;
	}
	.tasty-recipes .wprm-recipe-details-container-separate {
		text-align: center;
	}
}

@media screen and (max-width: 599px) {
	.tasty-recipes .recipebuttons > ul {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px !important;
	}
	.tasty-recipes .recipebuttons > ul > li:nth-child(3) {
		grid-column: 1 / -1;
	}
	.tasty-recipes .recipebuttons > ul > li a {
		width: 100%;
		padding: 10px 8px !important;
		font-size: 14px !important;
		white-space: normal;
		text-align: center;
		min-height: 42px;
	}
	.tasty-recipes .wprm-recipe-meta-container.customtimes,
	.tasty-recipes .wprm-nutrition-label-container-simple {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px !important;
		row-gap: 12px !important;
		padding: 14px !important;
		font-size: 14.5px !important;
	}
	.tasty-recipes .pbh-tr-ing-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.tasty-recipes .pbh-tr-scale-controls {
		width: 100%;
		justify-content: space-between;
		gap: 8px;
	}
	.tasty-recipes .wprm-recipe-nutrition-container .smalltext {
		display: block;
		margin-left: 0 !important;
		margin-top: 2px;
	}
	.tasty-recipes .pbh-tr-footer-cta {
		flex-direction: column;
		text-align: center;
		padding: 16px;
	}
}

@media print {
	.tasty-recipes-no-print {
		display: none !important;
	}
	.tasty-recipes .nk-recipe-wrap {
		box-shadow: none !important;
		border: 1px solid #ccc !important;
	}
}
