/**
 * Estilos Específicos para a Single de Receita (single-recipe.css).
 * Carregado condicionalmente apenas em páginas de receitas.
 *
 * @package ReceitasProTheme
 */

/* ==========================================================================
 * 1. CABEÇALHO DA RECEITA
 * ======================================================================== */

.rpt-recipe-header {
	margin-bottom: 2.5rem;
}

.rpt-recipe-badge {
	display: inline-block;
	background: var(--rpt-primary, #d94f38);
	color: #ffffff !important;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.35rem 0.95rem;
	border-radius: 20px;
	margin-bottom: 1rem;
	transition: background-color var(--rpt-transition-fast);
}

.rpt-recipe-badge:hover {
	background: var(--rpt-primary-hover, #bf3f29);
}

.rpt-recipe-title {
	font-size: clamp(1.65rem, 5vw, 3.2rem);
	font-weight: 800;
	line-height: 1.18;
	margin-bottom: 1.25rem;
	letter-spacing: -0.02em;
	word-break: break-word;
}

.rpt-recipe-author-meta,
.rpt-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.65rem 0.75rem;
	font-size: 0.92rem;
	color: var(--rpt-text-muted, #726861);
	margin-bottom: 2rem;
	line-height: 1.4;
}

.rpt-author-item {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.55rem;
	line-height: 1.2;
}

.rpt-author-avatar,
.rpt-author-item img.avatar,
.rpt-author-item img {
	width: 30px;
	height: 30px;
	border-radius: 50% !important;
	object-fit: cover;
	display: inline-block !important;
	vertical-align: middle;
	flex-shrink: 0;
	margin: 0 !important;
}

.rpt-author-name,
.rpt-author-item a {
	font-weight: 700;
	color: var(--rpt-text, #26211e);
	text-decoration: none;
	transition: color var(--rpt-transition-fast);
}

.rpt-author-name:hover,
.rpt-author-item a:hover {
	color: var(--rpt-primary, #d94f38);
}

.rpt-date-item,
.rpt-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	line-height: 1.2;
}

.rpt-reading-time svg {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

.rpt-meta-sep {
	color: var(--rpt-border, #e8dfd7);
}

/* Fita de Metadados Culinários */
.rpt-recipe-meta-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.25rem;
	background: var(--rpt-bg-card, #ffffff);
	border: 1px solid var(--rpt-border, #e8dfd7);
	border-radius: var(--rpt-radius, 16px);
	padding: 1.15rem 1.75rem;
	margin-bottom: 2.25rem;
	box-shadow: var(--rpt-shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
	box-sizing: border-box;
}

.rpt-recipe-meta-box {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 0 1 auto;
	min-width: 0;
	box-sizing: border-box;
}

.rpt-recipe-meta-box__icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(217, 79, 56, 0.08);
	background: color-mix(in srgb, var(--rpt-primary, #d94f38) 8%, transparent);
	color: var(--rpt-primary, #d94f38);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rpt-recipe-meta-box__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rpt-recipe-meta-box__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rpt-text-muted, #726861);
	line-height: 1.2;
	margin-bottom: 2px;
	white-space: nowrap;
}

.rpt-recipe-meta-box__value {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--rpt-text, #26211e);
	line-height: 1.25;
	white-space: nowrap;
}

.rpt-recipe-meta-box--yield {
	flex: 0 1 auto;
}

.rpt-recipe-meta-box__value-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex-wrap: nowrap;
	white-space: nowrap;
}

.rpt-recipe-meta-box__multiplier {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	background: rgba(0, 0, 0, 0.06);
	padding: 2px 4px;
	border-radius: 12px;
	vertical-align: middle;
	flex-shrink: 0;
}

[data-theme="dark"] .rpt-recipe-meta-box__multiplier {
	background: rgba(255, 255, 255, 0.1);
}

.rpt-recipe-meta-box__multiplier .rpt-multiplier-btn {
	padding: 0.1rem 0.38rem;
	font-size: 0.7rem;
	font-weight: 700;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	line-height: 1.15;
	background: transparent;
	color: var(--rpt-text-muted, #726861);
	transition: all 0.15s ease;
}

.rpt-recipe-meta-box__multiplier .rpt-multiplier-btn:hover {
	color: var(--rpt-text, #26211e);
	background: rgba(0, 0, 0, 0.05);
}

.rpt-recipe-meta-box__multiplier .rpt-multiplier-btn.is-active {
	background: var(--rpt-primary, #d94f38);
	color: #ffffff;
}

.rpt-recipe-meta-box--rating {
	flex: 0 0 auto;
	white-space: nowrap;
}

.rpt-recipe-meta-box--rating .rpt-recipe-meta-box__value {
	display: flex;
	align-items: center;
}

.rpt-recipe-meta-box--rating .rpt-stars {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.88rem;
	line-height: 1.2;
	white-space: nowrap;
	flex-shrink: 0;
}

.rpt-recipe-meta-box--rating .rpt-stars__track {
	letter-spacing: 1px;
	font-size: 0.85rem;
}

.rpt-recipe-meta-box--rating .rpt-stars__value {
	font-size: 0.95rem;
	font-weight: 700;
}

.rpt-recipe-meta-box--rating .rpt-stars__count {
	font-size: 0.78rem;
	color: var(--rpt-text-muted, #726861);
}

@media (max-width: 991px) {
	.rpt-recipe-meta-strip:not(.rpt-recipe-meta-strip--grid) {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem 1rem;
		padding: 1.25rem;
	}
}

@media (max-width: 600px) {
	.rpt-recipe-meta-strip,
	.rpt-recipe-meta-strip:not(.rpt-recipe-meta-strip--grid),
	.rpt-recipe-meta-strip--grid {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 0.9rem 0.65rem !important;
		padding: 0.95rem 1rem !important;
		border-radius: var(--rpt-radius, 14px) !important;
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.rpt-recipe-meta-box {
		gap: 0.55rem;
		min-width: 0;
		box-sizing: border-box;
	}

	.rpt-recipe-meta-box__icon {
		width: 34px;
		height: 34px;
		flex-shrink: 0;
	}

	.rpt-recipe-meta-box__icon svg {
		width: 17px;
		height: 17px;
	}

	.rpt-recipe-meta-box__label {
		font-size: 0.68rem;
		letter-spacing: 0.04em;
	}

	.rpt-recipe-meta-box__value {
		font-size: 0.88rem;
	}

	/* Rendimento (com multiplicador) e Avaliação (com estrelas) ocupam a linha inteira para não colidir nem cortar */
	.rpt-recipe-meta-box--yield,
	.rpt-recipe-meta-box--rating {
		grid-column: 1 / -1 !important;
		padding-top: 0.65rem;
		border-top: 1px dashed var(--rpt-border, #e8dfd7);
		width: 100%;
	}

	.rpt-recipe-meta-box--yield .rpt-recipe-meta-box__info {
		width: 100%;
	}

	.rpt-recipe-meta-box--yield .rpt-recipe-meta-box__value-wrap {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		flex-wrap: wrap;
		width: 100%;
	}

	.rpt-recipe-meta-box--rating .rpt-recipe-meta-box__info {
		width: 100%;
	}

	.rpt-recipe-meta-box--rating .rpt-recipe-meta-box__value {
		display: flex;
		align-items: center;
		gap: 0.45rem;
		flex-wrap: wrap;
	}
}

/* Jump Bar Responsiva no Mobile: botão principal 100% e botões secundários 50% lado a lado */
@media (max-width: 768px) {
	.rwpx-jump-bar {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 8px !important;
		padding: 10px 12px !important;
		margin: 18px 0 24px 0 !important;
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.rwpx-jump-left-group {
		width: 100% !important;
		display: block !important;
	}

	.rwpx-jump-bar .rwpx-jump-btn,
	.rwpx-jump-btn {
		width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		justify-content: center !important;
		text-align: center !important;
		display: flex !important;
		padding: 9px 12px !important;
		font-size: 13.5px !important;
		margin: 0 !important;
	}

	.rwpx-jump-sub-actions {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 8px !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.rwpx-jump-bar .rwpx-jump-cook-btn,
	.rwpx-jump-cook-btn,
	.rwpx-jump-bar .rwpx-jump-print-btn,
	.rwpx-jump-print-btn,
	#rwpx-jump-bar button.rwpx-jump-print-btn,
	.entry-content #rwpx-jump-bar button.rwpx-jump-print-btn {
		width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		justify-content: center !important;
		text-align: center !important;
		display: inline-flex !important;
		align-items: center !important;
		padding: 8px 6px !important;
		font-size: 13px !important;
		min-height: 40px !important;
		white-space: nowrap !important;
		margin: 0 !important;
	}

	body.rpt-no-cookmode .rwpx-jump-sub-actions {
		grid-template-columns: 1fr !important;
	}

	/* Fallback para HTML legado sem o wrapper sub-actions */
	.rwpx-jump-bar:not(:has(.rwpx-jump-sub-actions)) {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	.rwpx-jump-bar:not(:has(.rwpx-jump-sub-actions)) .rwpx-jump-left-group {
		display: contents !important;
	}
	.rwpx-jump-bar:not(:has(.rwpx-jump-sub-actions)) .rwpx-jump-btn {
		grid-column: 1 / -1 !important;
	}
	.rwpx-jump-bar:not(:has(.rwpx-jump-sub-actions)) .rwpx-jump-cook-btn {
		grid-column: 1 !important;
	}
	.rwpx-jump-bar:not(:has(.rwpx-jump-sub-actions)) .rwpx-jump-print-btn {
		grid-column: 2 !important;
	}
	body.rpt-no-cookmode .rwpx-jump-bar:not(:has(.rwpx-jump-sub-actions)) .rwpx-jump-print-btn {
		grid-column: 1 / -1 !important;
	}

	/* Card da Receita Responsivo no Mobile */
	.rwpx-recipe-card-box {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	.rwpx-card-badge-row {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 8px !important;
		width: 100% !important;
	}

	.rwpx-badge-group-left,
	.rwpx-badge-group-right {
		width: 100% !important;
		flex-wrap: wrap !important;
		gap: 6px !important;
	}

	/* Tabela Nutricional: Cabeçalho empilhado (Título acima da porção) no Mobile */
	.rwpx-nutrition-summary {
		padding: 12px 14px !important;
		gap: 8px !important;
	}

	.rwpx-nutrition-summary-title {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 4px !important;
		min-width: 0 !important;
		flex: 1 1 auto !important;
	}

	.rwpx-nutri-heading {
		display: inline-flex !important;
		align-items: center !important;
		gap: 6px !important;
		min-width: 0 !important;
		font-size: 13.5px !important;
		line-height: 1.3 !important;
	}

	.rwpx-nutri-serving-badge {
		display: block !important;
		margin-left: 0 !important;
		font-size: 11.5px !important;
		line-height: 1.3 !important;
		color: inherit !important;
		opacity: 0.85 !important;
		white-space: normal !important;
	}

	/* Ações de Rodapé do Card: botões Imprimir Ficha e Limpar Seleção 50% lado a lado no Mobile */
	.rwpx-card-actions {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 12px !important;
	}

	.rwpx-actions-group-left {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
		width: 100% !important;
	}

	.rwpx-recipe-card-box .rwpx-card-actions .rwpx-print-btn,
	.entry-content .rwpx-card-actions .rwpx-print-btn,
	.rwpx-print-btn,
	#rwpx-recipe-card button.rwpx-reset-checks-btn,
	.entry-content #rwpx-recipe-card button.rwpx-reset-checks-btn,
	.rwpx-recipe-card-box .rwpx-card-actions .rwpx-reset-checks-btn,
	.entry-content .rwpx-card-actions .rwpx-reset-checks-btn,
	.rwpx-reset-checks-btn {
		width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		text-align: center !important;
		padding: 9px 6px !important;
		font-size: 12.5px !important;
		min-height: 40px !important;
		white-space: nowrap !important;
	}

	.rwpx-print-text,
	.rwpx-reset-text {
		font-size: 12.5px !important;
		white-space: nowrap !important;
	}
}

/* Mídia / Imagem Principal com Crop CSS */
.rpt-recipe-media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--rpt-sr-aspect, 16 / 9);
	border-radius: calc(var(--rpt-radius, 16px) * 1.2);
	overflow: hidden;
	box-shadow: var(--rpt-shadow-md, 0 8px 24px rgba(0,0,0,0.08));
	background: var(--rpt-border, #e8dfd7);
}

.rpt-recipe-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rpt-recipe-media[style*="aspect-ratio: auto"] {
	aspect-ratio: auto;
}

.rpt-recipe-media[style*="aspect-ratio: auto"] .rpt-recipe-image {
	height: auto;
	max-height: 580px;
}

.rpt-pinterest-btn {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: #e60023;
	color: #ffffff !important;
	padding: 0.45rem 0.95rem;
	border-radius: 30px;
	font-size: 0.82rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
	transition: all var(--rpt-transition-fast);
}

.rpt-pinterest-btn:hover {
	background: #b8001c;
	transform: scale(1.06);
}

/* Layout 2: Duas Colunas */
.rpt-recipe-header--layout-2 .rpt-recipe-header__split {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 2.5rem;
	align-items: center;
}

@media (max-width: 860px) {
	.rpt-recipe-header--layout-2 .rpt-recipe-header__split {
		grid-template-columns: 1fr;
	}
}

.rpt-recipe-excerpt {
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--rpt-text-muted, #726861);
	margin-bottom: 1.75rem;
}

.rpt-recipe-meta-strip--grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

/* ==========================================================================
 * 2. QUICKBAR (BARRA DE AÇÃO RÁPIDA)
 * ======================================================================== */

.rpt-quickbar {
	position: sticky;
	top: calc(var(--rpt-header-height, 80px) + 10px);
	z-index: 800;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--rpt-border, #e8dfd7);
	border-radius: 50px;
	padding: 0.45rem 0.85rem;
	margin-bottom: 2.5rem;
	box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

[data-theme="dark"] .rpt-quickbar {
	background: rgba(32, 27, 24, 0.92);
}

.rpt-quickbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.rpt-quickbar__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1.1rem;
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--rpt-text, #26211e);
	background: transparent;
	transition: all var(--rpt-transition-fast);
}

.rpt-quickbar__btn:hover {
	background: rgba(217, 79, 56, 0.08);
	color: var(--rpt-primary, #d94f38);
}

.rpt-quickbar__btn--jump {
	background: var(--rpt-primary, #d94f38);
	color: #ffffff !important;
}

.rpt-quickbar__btn--jump:hover {
	background: var(--rpt-primary-hover, #bf3f29);
	color: #ffffff !important;
}

.rpt-quickbar__btn.is-active svg {
	fill: var(--rpt-primary, #d94f38);
	stroke: var(--rpt-primary, #d94f38);
}

.rpt-quickbar__share {
	position: relative;
}

.rpt-share-popover {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 0.5rem;
	background: var(--rpt-bg-card, #ffffff);
	border: 1px solid var(--rpt-border, #e8dfd7);
	border-radius: var(--rpt-radius, 16px);
	box-shadow: var(--rpt-shadow-lg, 0 12px 32px rgba(0,0,0,0.12));
	padding: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 170px;
	z-index: 1000;
}

.rpt-share-popover__item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.85rem;
	border-radius: calc(var(--rpt-radius, 16px) * 0.5);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--rpt-text, #26211e);
	text-decoration: none;
	transition: background-color var(--rpt-transition-fast);
}

.rpt-share-popover__item:hover {
	background: var(--rpt-bg, #fbf8f5);
	color: var(--rpt-primary, #d94f38);
}

/* ==========================================================================
 * 3. CARD ESTRUTURADO DA RECEITA (INGREDIENTES & PREPARO)
 * ======================================================================== */

.rpt-recipe-card-box {
	background: var(--rpt-bg-card, #ffffff);
	border: 2px solid var(--rpt-border, #e8dfd7);
	border-radius: calc(var(--rpt-radius, 16px) * 1.5);
	padding: 2.75rem 2.5rem;
	margin-top: 2.5rem;
	margin-bottom: 3.5rem;
	box-shadow: var(--rpt-shadow-md, 0 8px 28px rgba(0,0,0,0.06));
}

@media (max-width: 640px) {
	.rpt-recipe-card-box {
		padding: 1.5rem 1.25rem;
	}
}

/* --- Skins Visuais da Caixa de Receita --- */
.rpt-recipe-card-box.rpt-skin-clean-modern,
.rpt-recipe-card-box.rwpx-skin-clean-modern {
	background: #ffffff !important;
	border-color: #e2e8f0 !important;
}

.rpt-recipe-card-box.rpt-skin-bistro-gourmet,
.rpt-recipe-card-box.rwpx-skin-bistro-gourmet {
	background: #faf8f5 !important;
	border-color: #e7dfd5 !important;
	color: #292524 !important;
}
.rpt-recipe-card-box.rpt-skin-bistro-gourmet .rpt-ingredients-title,
.rpt-recipe-card-box.rpt-skin-bistro-gourmet .rpt-instructions-title,
.rpt-recipe-card-box.rpt-skin-bistro-gourmet .rpt-nutrition-title,
.rpt-recipe-card-box.rwpx-skin-bistro-gourmet .rpt-ingredients-title,
.rpt-recipe-card-box.rwpx-skin-bistro-gourmet .rpt-instructions-title,
.rpt-recipe-card-box.rwpx-skin-bistro-gourmet .rpt-nutrition-title {
	font-family: Georgia, "Playfair Display", serif !important;
	color: #1c1917 !important;
}
.rpt-recipe-card-box.rpt-skin-bistro-gourmet .rpt-servings-multiplier,
.rpt-recipe-card-box.rwpx-skin-bistro-gourmet .rpt-servings-multiplier {
	background: #ffffff !important;
	border-color: #ede5da !important;
}
.rpt-recipe-card-box.rpt-skin-bistro-gourmet .rpt-multiplier-btn.is-active,
.rpt-recipe-card-box.rwpx-skin-bistro-gourmet .rpt-multiplier-btn.is-active {
	background: #1c1917 !important;
	color: #f5ede4 !important;
}

.rpt-recipe-card-box.rpt-skin-rustico-caseiro,
.rpt-recipe-card-box.rwpx-skin-rustico-caseiro {
	background: #fdfbf7 !important;
	border-color: #fed7aa !important;
	color: #451a03 !important;
}
.rpt-recipe-card-box.rpt-skin-rustico-caseiro .rpt-ingredients-title,
.rpt-recipe-card-box.rpt-skin-rustico-caseiro .rpt-instructions-title,
.rpt-recipe-card-box.rpt-skin-rustico-caseiro .rpt-nutrition-title,
.rpt-recipe-card-box.rwpx-skin-rustico-caseiro .rpt-ingredients-title,
.rpt-recipe-card-box.rwpx-skin-rustico-caseiro .rpt-instructions-title,
.rpt-recipe-card-box.rwpx-skin-rustico-caseiro .rpt-nutrition-title {
	color: #7c2d12 !important;
}
.rpt-recipe-card-box.rpt-skin-rustico-caseiro .rpt-servings-multiplier,
.rpt-recipe-card-box.rwpx-skin-rustico-caseiro .rpt-servings-multiplier {
	background: #fff7ed !important;
	border-color: #fed7aa !important;
}
.rpt-recipe-card-box.rpt-skin-rustico-caseiro .rpt-multiplier-btn.is-active,
.rpt-recipe-card-box.rwpx-skin-rustico-caseiro .rpt-multiplier-btn.is-active {
	background: #7c2d12 !important;
	color: #ffffff !important;
}

.rpt-recipe-card-box.rpt-skin-dark-gourmet,
.rpt-recipe-card-box.rwpx-skin-dark-gourmet {
	background: #0f172a !important;
	border-color: #334155 !important;
	color: #e2e8f0 !important;
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5) !important;
}
.rpt-recipe-card-box.rpt-skin-dark-gourmet .rpt-ingredients-title,
.rpt-recipe-card-box.rpt-skin-dark-gourmet .rpt-instructions-title,
.rpt-recipe-card-box.rpt-skin-dark-gourmet .rpt-nutrition-title,
.rpt-recipe-card-box.rwpx-skin-dark-gourmet .rpt-ingredients-title,
.rpt-recipe-card-box.rwpx-skin-dark-gourmet .rpt-instructions-title,
.rpt-recipe-card-box.rwpx-skin-dark-gourmet .rpt-nutrition-title {
	color: #f8fafc !important;
}
.rpt-recipe-card-box.rpt-skin-dark-gourmet .rpt-servings-multiplier,
.rpt-recipe-card-box.rwpx-skin-dark-gourmet .rpt-servings-multiplier {
	background: #1e293b !important;
	border-color: #334155 !important;
	color: #cbd5e1 !important;
}
.rpt-recipe-card-box.rpt-skin-dark-gourmet .rpt-multiplier-btn.is-active,
.rpt-recipe-card-box.rwpx-skin-dark-gourmet .rpt-multiplier-btn.is-active {
	background: #ea580c !important;
	color: #ffffff !important;
}

.rpt-recipe-section {
	margin-bottom: 3rem;
}

.rpt-recipe-section:last-child {
	margin-bottom: 0;
}

/* --- INGREDIENTES --- */
.rpt-ingredients-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid var(--rpt-border, #e8dfd7);
	margin-bottom: 1.75rem;
}

.rpt-ingredients-title-wrap {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.rpt-ingredients-title {
	font-size: 1.65rem;
	font-weight: 800;
	margin: 0;
}

.rpt-servings-multiplier {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: var(--rpt-bg, #fbf8f5);
	padding: 0.4rem 0.85rem;
	border-radius: 30px;
	border: 1px solid var(--rpt-border, #e8dfd7);
	font-size: 0.85rem;
}

.rpt-multiplier-buttons {
	display: flex;
	gap: 0.25rem;
}

.rpt-multiplier-btn {
	padding: 0.2rem 0.6rem;
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--rpt-text-muted, #726861);
	background: transparent;
	transition: all var(--rpt-transition-fast);
}

.rpt-multiplier-btn.is-active {
	background: var(--rpt-primary, #d94f38);
	color: #ffffff;
}

.rpt-ingredients-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.rpt-ingredient-item {
	font-size: 1.05rem;
	line-height: 1.5;
}

.rpt-ingredient-label {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	cursor: pointer;
	user-select: none;
}

.rpt-ingredient-checkbox {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.rpt-custom-check {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 2px solid var(--rpt-border, #e8dfd7);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
	transition: all var(--rpt-transition-fast);
}

.rpt-custom-check svg {
	opacity: 0;
	color: #ffffff;
	transition: opacity var(--rpt-transition-fast);
}

.rpt-ingredient-checkbox:checked + .rpt-custom-check {
	background: #2b9348;
	border-color: #2b9348;
}

.rpt-ingredient-checkbox:checked + .rpt-custom-check svg {
	opacity: 1;
}

.rpt-ingredient-checkbox:checked ~ .rpt-ingredient-text {
	text-decoration: line-through;
	opacity: 0.55;
}

.rpt-ingredient-text {
	transition: opacity var(--rpt-transition-fast);
}

/* --- MODO DE PREPARO --- */
.rpt-instructions-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid var(--rpt-border, #e8dfd7);
	margin-bottom: 2rem;
}

.rpt-instructions-title-wrap {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.rpt-instructions-title {
	font-size: 1.65rem;
	font-weight: 800;
	margin: 0;
}

.rpt-instructions-progress {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--rpt-primary, #d94f38);
	background: rgba(217, 79, 56, 0.08);
	padding: 0.35rem 0.85rem;
	border-radius: 20px;
}

.rpt-instructions-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.rpt-instruction-step {
	display: flex;
	gap: 1.5rem;
	position: relative;
}

.rpt-step-number {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--rpt-primary, #d94f38);
	color: #ffffff;
	font-weight: 800;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rpt-step-content {
	flex: 1;
}

.rpt-step-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.rpt-step-label {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rpt-text-muted, #726861);
}

.rpt-step-check-label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	color: var(--rpt-text-muted, #726861);
	cursor: pointer;
}

.rpt-step-checkbox {
	accent-color: #2b9348;
}

.rpt-instruction-step.is-completed .rpt-step-text {
	opacity: 0.55;
	text-decoration: line-through;
}

.rpt-instruction-step.is-completed .rpt-step-number {
	background: #2b9348;
}

.rpt-step-text {
	font-size: 1.08rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.rpt-step-timer {
	margin-bottom: 1rem;
}

.rpt-step-image-wrap {
	max-width: 460px;
	border-radius: var(--rpt-radius, 16px);
	overflow: hidden;
	box-shadow: var(--rpt-shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}

.rpt-step-img {
	width: 100%;
	height: auto;
}

/* --- FATOS NUTRICIONAIS --- */
.rpt-nutrition-box {
	background: var(--rpt-bg, #fbf8f5);
	border: 1px solid var(--rpt-border, #e8dfd7);
	border-radius: var(--rpt-radius, 16px);
	padding: 1.5rem 1.8rem;
}

.rpt-nutrition-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.rpt-nutrition-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0;
}

.rpt-nutrition-servings {
	font-size: 0.82rem;
	color: var(--rpt-text-muted, #726861);
}

.rpt-nutrition-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 1rem;
}

.rpt-nutri-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0.75rem;
	background: var(--rpt-bg-card, #ffffff);
	border-radius: calc(var(--rpt-radius, 16px) * 0.5);
	border: 1px solid var(--rpt-border, #e8dfd7);
}

.rpt-nutri-value {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--rpt-text, #26211e);
}

.rpt-nutri-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rpt-text-muted, #726861);
	margin-top: 0.2rem;
}

/* --- CAIXA DO CHEF / AUTOR --- */
.rpt-author-box {
	margin-top: 2.5rem;
	margin-bottom: 3rem;
}

.rpt-author-box__inner {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	background: var(--rpt-bg-card, #ffffff);
	border: 1px solid var(--rpt-border, #e8dfd7);
	border-radius: var(--rpt-radius, 16px);
	padding: 2rem;
	box-shadow: var(--rpt-shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
}

.rpt-author-box__avatar-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rpt-author-box__avatar,
.rpt-author-box__avatar-wrap img {
	width: 90px;
	height: 90px;
	border-radius: 50% !important;
	object-fit: cover;
	display: block;
	border: 3px solid var(--rpt-border, #e8dfd7);
}

.rpt-author-box__info {
	flex: 1;
	min-width: 0;
}

.rpt-author-box__badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rpt-primary, #d94f38);
	margin-bottom: 0.15rem;
}

.rpt-author-box__name {
	font-size: 1.35rem;
	margin: 0.15rem 0 0.5rem 0;
	line-height: 1.25;
}

.rpt-author-box__name a {
	color: var(--rpt-text, #26211e);
	text-decoration: none;
	transition: color var(--rpt-transition-fast);
}

.rpt-author-box__name a:hover {
	color: var(--rpt-primary, #d94f38);
}

.rpt-author-box__bio {
	font-size: 0.95rem;
	color: var(--rpt-text-muted, #726861);
	margin-bottom: 1.15rem;
	line-height: 1.6;
}

.rpt-author-box__action {
	display: flex;
	align-items: center;
}

@media (max-width: 640px) {
	.rpt-author-box__inner {
		flex-direction: column;
		text-align: center;
		padding: 1.5rem 1.25rem;
		gap: 1.25rem;
	}

	.rpt-author-box__action {
		justify-content: center;
	}
}

/* Banner de Modo Cozinha Ativo */
.rpt-cookmode-banner {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #1e3a2f;
	color: #ffffff;
	padding: 0.65rem 1.4rem;
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	z-index: 10000;
}

/* ==========================================================================
 * 8. HARMONIZAÇÃO E SUPRESSÃO DE DUPLICIDADE COM O PLUGIN RECEITASPROWPX
 * ======================================================================== */
.rwpx-recipe-card-box {
	margin-top: 2.5rem !important;
	margin-bottom: 3.5rem !important;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06) !important;
}

.rwpx-jump-bar {
	margin-top: 0.5rem !important;
	margin-bottom: 2rem !important;
}

/* Suprime a grade de metadados interna repetida do card quando a fita do topo estiver visível */
body.rpt-suppress-card-meta .rwpx-recipe-card-box .rwpx-meta-grid,
body.rpt-suppress-card-meta .rpt-recipe-card-box .rpt-recipe-card-meta {
	display: none !important;
}

/* Suprime o autor duplicado no card da receita quando já estiver exibido no cabeçalho */
body.rpt-suppress-card-author .rwpx-recipe-card-box .rwpx-author-badge,
body.rpt-suppress-card-author .rwpx-recipe-card-box .rwpx-badge-group-right {
	display: none !important;
}

/* Suprime o autor no cabeçalho quando configurado para exibir apenas no card */
body.rpt-suppress-header-author .rpt-recipe-author-meta .rpt-author-item,
body.rpt-suppress-header-author .rpt-recipe-author-meta .rpt-meta-sep:first-of-type {
	display: none !important;
}

/* Quando a fita do topo estiver explicitamente desativada/oculta pelo Customizer */
body.rpt-no-top-meta-strip .rpt-recipe-meta-strip {
	display: none !important;
}

/* Ajuste fino para Layout 2 se a foto destacada estiver oculta */
.rpt-recipe-header--layout-2 .rpt-recipe-header__split:has(.rpt-recipe-header__media-col:empty) {
	grid-template-columns: 1fr;
}

/* Controladores de Single Recipe do Customizer (atuam no tema e no card do plugin) */
body.rpt-no-quickbar .rpt-recipe-quickbar,
body.rpt-no-quickbar .rwpx-jump-bar,
body.rpt-no-quickbar #rwpx-jump-bar {
	display: none !important;
}

body.rpt-no-cookmode .rpt-cookmode-toggle,
body.rpt-no-cookmode .rwpx-card-cook-cta,
body.rpt-no-cookmode .rwpx-cook-mode-btn,
body.rpt-no-cookmode #rwpx-trigger-cook-mode-card,
body.rpt-no-cookmode .rwpx-jump-cook-btn {
	display: none !important;
}

body.rpt-no-multiplier .rpt-servings-multiplier,
body.rpt-no-multiplier .rpt-multiplier-buttons,
body.rpt-no-multiplier .rpt-recipe-meta-box__multiplier,
body.rpt-no-multiplier .rpt-servings-scaler,
body.rpt-no-multiplier button.rwpx-servings-btn,
body.rpt-no-multiplier .rwpx-servings-btn,
body.rpt-no-multiplier .rwpx-servings-minus,
body.rpt-no-multiplier .rwpx-servings-plus,
body.rpt-no-multiplier #rwpx-recipe-card button.rwpx-servings-btn,
body.rpt-no-multiplier .entry-content button.rwpx-servings-btn,
body.rpt-no-multiplier .rwpx-recipe-card-box button.rwpx-servings-btn,
body.rpt-no-multiplier #rwpx-recipe-card .rwpx-servings-btn,
body.rpt-no-multiplier .rwpx-recipe-card-box .rwpx-servings-btn,
body.rpt-no-multiplier .entry-content .rwpx-servings-btn {
	display: none !important;
}

body.rpt-no-multiplier .rwpx-servings-control,
body.rpt-no-multiplier #rwpx-recipe-card .rwpx-servings-control,
body.rpt-no-multiplier .entry-content .rwpx-servings-control,
body.rpt-no-multiplier .rwpx-recipe-card-box .rwpx-servings-control,
body.rpt-no-multiplier .rwpx-recipe-card-box.rwpx-skin-rustico-caseiro .rwpx-servings-control,
body.rpt-no-multiplier .rwpx-recipe-card-box.rwpx-skin-bistro-gourmet .rwpx-servings-control,
body.rpt-no-multiplier .rwpx-recipe-card-box.rwpx-skin-dark-gourmet .rwpx-servings-control,
body.rpt-no-multiplier .rwpx-skin-rustico-caseiro .rwpx-servings-control,
body.rpt-no-multiplier .rwpx-skin-bistro-gourmet .rwpx-servings-control {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	gap: 0 !important;
	box-shadow: none !important;
}

body.rpt-no-multiplier .rwpx-servings-display,
body.rpt-no-multiplier .rwpx-servings-count,
body.rpt-no-multiplier .rwpx-servings-label {
	pointer-events: none !important;
	cursor: default !important;
}

body.rpt-no-checkboxes .rpt-checkbox,
body.rpt-no-checkboxes .rwpx-step-checkbox,
body.rpt-no-checkboxes .rwpx-ingredient-checkbox,
body.rpt-no-checkboxes .rwpx-step-item input[type="checkbox"],
body.rpt-no-checkboxes .rwpx-ingredient-item input[type="checkbox"] {
	display: none !important;
}

body.rpt-no-pinterest .rpt-pinterest-btn,
body.rpt-no-pinterest .rwpx-pinterest-pin,
body.rpt-no-pinterest [data-pin-hover] {
	display: none !important;
}

body.rpt-no-authorbox .rpt-author-box,
body.rpt-no-authorbox .rwpx-author-box {
	display: none !important;
}

body.rpt-no-related .rpt-related-section,
body.rpt-no-related .rpt-related-recipes-section,
body.rpt-no-related .rwpx-related-recipes {
	display: none !important;
}

body.rpt-no-breadcrumbs .rpt-breadcrumbs,
body.rpt-no-breadcrumbs .rpt-recipe-header .rpt-breadcrumbs {
	display: none !important;
}

body.rpt-no-featured .rpt-recipe-media,
body.rpt-no-featured .rpt-recipe-header__media-col {
	display: none !important;
}

body.rpt-no-author-date .rpt-recipe-author-meta {
	display: none !important;
}

/* Módulos do Recipe Card controlados pelo Customizer */
body.rpt-no-rc-user-rating .rwpx-rating-interactive,
body.rpt-no-rc-user-rating .rpt-rating-stars {
	display: none !important;
}

body.rpt-no-rc-social-share .rwpx-card-share-row,
body.rpt-no-rc-social-share .rpt-recipe-share {
	display: none !important;
}

body.rpt-no-rc-print-qrcode .rwpx-print-header,
body.rpt-no-rc-print-qrcode .rwpx-print-footer,
body.rpt-no-rc-print-qrcode #rwpx-open-qr-modal,
body.rpt-no-rc-print-qrcode .rwpx-share-qrcode {
	display: none !important;
}

body.rpt-no-rc-business-box .rwpx-business-box {
	display: none !important;
}

body.rpt-no-rc-nutrition-box .rwpx-nutrition-details,
body.rpt-no-rc-nutrition-box .rpt-recipe-nutrition {
	display: none !important;
}

body.rpt-no-rc-meta-grid .rwpx-meta-grid,
body.rpt-no-rc-meta-grid .rpt-recipe-card-meta,
body.rpt-no-rc-meta-grid .rpt-recipe-meta-strip {
	display: none !important;
}
