/**
 * First Foodie — Sally's Baking Addiction 1:1 Tasty Recipes Card Stylesheet
 * Exact match to sallysbakingaddiction.com (#F5F3F2 solid card, 150x150 left photo,
 * rating stars under photo, inline details with clock/cutlery icons, 2x 50% rectangular
 * Print/Save buttons, #BEB9B7 dividers, checkboxes, Cook Mode switch, and 30x30 black circles).
 */

.tasty-recipes,
.tasty-recipes-display,
#recipe-card.tasty-recipes {
	background: #F5F3F2 !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 20px !important;
	margin: 40px 0 !important;
	box-shadow: none !important;
	position: relative !important;
	color: #010101 !important;
	font-family: 'SofiaProLocal', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.tasty-recipes .ff-tr-card-inner {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
}

.tasty-recipes hr {
	background-color: #BEB9B7 !important;
	border: none !important;
	height: 1px !important;
	margin: 30px 0 !important;
}

/* Header Grid: 150x150 Image on Left, Rating Under Image, Content on Right */
.tasty-recipes-entry-header {
	background: transparent !important;
	padding: 0 0 0 166px !important;
	position: relative !important;
	min-height: 220px !important;
}

.tasty-recipes-entry-header .tasty-recipes-image {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 150px !important;
	height: 150px !important;
	margin: 0 !important;
	float: none !important;
}

.tasty-recipes-entry-header .tasty-recipes-image img {
	width: 150px !important;
	height: 150px !important;
	object-fit: cover !important;
	border-radius: 0 !important;
	border: none !important;
	box-shadow: none !important;
	display: block !important;
}

.tasty-recipes-entry-header h2.tasty-recipes-title {
	font-size: 2rem !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	color: #010101 !important;
	margin: 0 0 15px !important;
	padding: 0 !important;
	text-align: left !important;
	text-transform: none !important;
}

.tasty-recipes-entry-header hr {
	margin: 15px 0 !important;
	background-color: #BEB9B7 !important;
}

/* Inline Details List (Author, Prep, Cook, Total, Yield) */
.tasty-recipes-details {
	margin: 0 0 16px !important;
	font-size: 0.92rem !important;
	line-height: 1.6 !important;
	color: #010101 !important;
}

.tasty-recipes-details ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 6px 18px !important;
}

.tasty-recipes-details ul li {
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	color: #010101 !important;
}

.tasty-recipes-details ul li.author {
	width: 100% !important;
	margin-bottom: 4px !important;
}

.tasty-recipes-details .tasty-recipes-label {
	font-weight: 700 !important;
	color: #010101 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	font-style: normal !important;
}

.tasty-recipes-details .tasty-recipes-svg {
	width: 16px !important;
	height: 16px !important;
	fill: #615E5C !important;
	color: #615E5C !important;
	flex-shrink: 0 !important;
}

.tasty-recipes-details a.tasty-recipes-author-name {
	color: #615E5C !important;
	text-decoration: underline !important;
	font-weight: 400 !important;
}

/* Hide Tasty Recipes duplicate print button above card */
.tasty-recipes-print-above-card {
	display: none !important;
}

/* Rating Stars Positioned Directly Under the 150x150 Photo on Desktop */
.tasty-recipes-rating-wrap {
	position: absolute !important;
	top: 158px !important;
	left: 0 !important;
	width: 150px !important;
	text-align: center !important;
	margin: 0 !important;
}

.tasty-recipes-rating-wrap .tasty-recipes-rating {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 3px !important;
}

.tasty-recipes-rating-wrap a {
	text-decoration: none !important;
	color: #010101 !important;
}

.tasty-recipes-rating-stars {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
}

.tasty-recipes-rating-stars .pink-stars {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 2px !important;
	color: #CE7C77 !important;
}

.tasty-recipes-rating-stars .ff-star-rate-btn {
	background: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	color: #CE7C77 !important;
	display: inline-flex !important;
}

.tasty-recipes-rating-stars svg {
	width: 17px !important;
	height: 17px !important;
	fill: #CE7C77 !important;
}

.tasty-recipes-rating-label {
	display: block !important;
	width: 100% !important;
	font-size: 0.78rem !important;
	line-height: 1.3 !important;
	color: #010101 !important;
	margin-top: 2px !important;
	text-align: center !important;
}

.tasty-recipes-rating-label .average,
.tasty-recipes-rating-label .count {
	text-decoration: underline !important;
	font-weight: 700 !important;
}

/* Two 50% Rectangular Action Buttons: PRINT RECIPE & SAVE RECIPE */
.tasty-recipes-HeaderButtons {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
	margin: 15px 0 0 !important;
	width: 100% !important;
}

.tasty-recipes-print-button-container,
.tasty-recipes-save-button-container {
	width: 100% !important;
	margin: 0 !important;
}

.tasty-recipes-HeaderButtons .button,
.tasty-recipes-print-button,
.tasty-recipes-save-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	padding: 12px 15px !important;
	background: #F5F3F2 !important;
	color: #010101 !important;
	border: 1px solid #010101 !important;
	border-radius: 5px !important;
	font-family: 'SofiaProLocal', -apple-system, BlinkMacSystemFont, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05rem !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
	box-shadow: none !important;
}

.tasty-recipes-HeaderButtons .button svg {
	width: 16px !important;
	height: 16px !important;
	fill: currentColor !important;
}

.tasty-recipes-HeaderButtons .button:hover,
.tasty-recipes-HeaderButtons .button.saved {
	background: #CE7C77 !important;
	border-color: #CE7C77 !important;
	color: #010101 !important;
}

a.tasty-recipes-print-above-card,
.tasty-recipes-print-button.tasty-recipes-print-above-card {
	display: none !important;
}

/* Section Headers (Description, Ingredients, Instructions, Notes) */
.tasty-recipes-entry-content h3 {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: #010101 !important;
	margin: 0 0 15px !important;
	text-transform: capitalize !important;
	letter-spacing: 0 !important;
}

.tasty-recipes-description-body p {
	font-style: italic !important;
	font-size: 1rem !important;
	line-height: 1.6 !important;
	color: #010101 !important;
	margin: 0 !important;
}

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

.tasty-recipes-ingredients-header h3 {
	margin: 0 !important;
}

.tasty-recipes-scale-container {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
}

.tasty-recipes-scale-label {
	font-size: 0.85rem !important;
	color: #615E5C !important;
	margin-right: 6px !important;
	font-weight: 600 !important;
}

.tasty-recipes-scale-button,
.tr-scale-btn {
	background: transparent !important;
	border: 1px solid #BEB9B7 !important;
	color: #615E5C !important;
	border-radius: 4px !important;
	padding: 4px 10px !important;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
}

.tasty-recipes-scale-button.active,
.tasty-recipes-scale-button-active,
.tr-scale-btn.active {
	background: #010101 !important;
	border-color: #010101 !important;
	color: #FFFFFF !important;
}

/* Ingredients Checkboxes & Subheadings */
.tasty-recipes-ingredients-body h4 {
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	color: #010101 !important;
	margin: 22px 0 10px !important;
}

.tasty-recipes-ingredients-body ul,
.tr-ingredients-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tasty-recipes-ingredients-body ul li,
.tr-ingredients-list li {
	margin: 0 0 10px !important;
	padding: 0 !important;
	font-size: 1rem !important;
	line-height: 1.5 !important;
	color: #010101 !important;
}

.tr-ingredient-checkbox-label {
	display: flex !important;
	align-items: flex-start !important;
	gap: 10px !important;
	cursor: pointer !important;
}

.tasty-recipes-ingredients-body input[type="checkbox"],
.tr-ingredients-list input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	border: 1px solid #BEB9B7 !important;
	border-radius: 3px !important;
	background: #F5F3F2 !important;
	margin: 2px 0 0 !important;
	cursor: pointer !important;
	position: relative !important;
}

.tasty-recipes-ingredients-body input[type="checkbox"]:checked,
.tr-ingredients-list input[type="checkbox"]:checked {
	background: #010101 !important;
	border-color: #010101 !important;
}

.tasty-recipes-ingredients-body input[type="checkbox"]:checked::after,
.tr-ingredients-list input[type="checkbox"]:checked::after {
	content: "✓" !important;
	color: #FFFFFF !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -52%) !important;
}

.tr-ingredients-list li.checked span {
	text-decoration: line-through !important;
	color: #615E5C !important;
}

/* Cook Mode Switch at Bottom of Ingredients */
.tasty-recipes-cook-mode {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	margin-top: 24px !important;
	padding-top: 4px !important;
	cursor: pointer !important;
	user-select: none !important;
}

.tasty-recipes-cook-mode .cook-switch {
	width: 42px !important;
	height: 24px !important;
	background: #BEB9B7 !important;
	border-radius: 20px !important;
	position: relative !important;
	transition: background 0.2s ease !important;
}

.tasty-recipes-cook-mode .cook-switch::after {
	content: "" !important;
	position: absolute !important;
	top: 3px !important;
	left: 3px !important;
	width: 18px !important;
	height: 18px !important;
	border-radius: 50% !important;
	background: #FFFFFF !important;
	transition: transform 0.2s ease !important;
}

.tasty-recipes-cook-mode.active .cook-switch {
	background: #CE7C77 !important;
}

.tasty-recipes-cook-mode.active .cook-switch::after {
	transform: translateX(18px) !important;
}

.tasty-recipes-cook-mode__label {
	font-size: 1rem !important;
	color: #010101 !important;
}

.tasty-recipes-cook-mode__helper {
	font-size: 0.92rem !important;
	color: #615E5C !important;
}

/* Instructions & Notes Numbered Lists with 30x30 Solid Black Circles */
.tasty-recipes-instructions-body ol,
.tasty-recipes-notes-body ol,
.tr-numbered-list {
	list-style: none !important;
	counter-reset: sba-recipe-step !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tasty-recipes-instructions-body ol > li,
.tasty-recipes-notes-body ol > li,
.tr-numbered-list > li {
	counter-increment: sba-recipe-step !important;
	position: relative !important;
	padding: 0 0 0 45px !important;
	margin: 0 0 20px !important;
	font-size: 1rem !important;
	line-height: 1.65 !important;
	color: #010101 !important;
}

.tasty-recipes-instructions-body ol > li::before,
.tasty-recipes-notes-body ol > li::before,
.tr-numbered-list > li::before {
	content: counter(sba-recipe-step) !important;
	position: absolute !important;
	left: 0 !important;
	top: 2px !important;
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	background: #010101 !important;
	color: #FFFFFF !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
}

.tasty-recipes-notes {
	margin-top: 30px !important;
	background: transparent !important;
	padding: 0 !important;
	border: none !important;
}

.tr-nutrition-bar {
	font-size: 0.95rem !important;
	color: #010101 !important;
	line-height: 1.6 !important;
}

.tr-nutrition-bar a {
	color: #615E5C !important;
	text-decoration: underline !important;
}

@media (max-width: 650px) {
	.tasty-recipes-entry-header {
		padding: 0 !important;
		min-height: 0 !important;
		text-align: center !important;
	}
	.tasty-recipes-entry-header .tasty-recipes-image {
		position: relative !important;
		margin: 0 auto 15px !important;
	}
	.tasty-recipes-entry-header h2.tasty-recipes-title {
		text-align: center !important;
		font-size: 1.65rem !important;
	}
	.tasty-recipes-rating-wrap {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		margin: 12px 0 !important;
	}
	.tasty-recipes-details ul {
		justify-content: center !important;
	}
	.tasty-recipes-HeaderButtons {
		grid-template-columns: 1fr !important;
	}
}
