/*
 * Rádio Hemp: o que o theme.json não alcança.
 *
 * Cores, fontes e espaços vêm do theme.json (variáveis --wp--preset--* e --wp--custom--*).
 * Aqui ficam o tema rádio (escuro), o marca-texto, o movimento dos botões e cartões,
 * o cabeçalho, o rodapé e os componentes do design system (prefixo rh-).
 */

/* Tema rádio --------------------------------------------------------------- */
/* O script do <head> põe data-theme="radio" ou "claro" no <html>. Sem JavaScript,
 * vale a preferência do sistema. O par lima e cinza continua; os papéis se invertem. */
html[data-theme="radio"],
html[data-theme="radio"] body {
	--wp--preset--color--fundo: #3d3d3d;
	--wp--preset--color--superficie: #484848;
	--wp--preset--color--linha: #5e5e5e;
	--wp--preset--color--texto: #f4f4ec;
	--wp--preset--color--texto-suave: #c9c9be;
	--wp--preset--color--primaria: #e3ed55;
	--wp--preset--color--sobre-primaria: #3d3d3d;
	--wp--preset--color--faixa-escura: #1c1c1c;
	--wp--custom--cor--marca-fundo: transparent;
	--wp--custom--cor--marca-texto: #e3ed55;
	--wp--custom--cor--foco: #e3ed55;
	--wp--custom--cor--erro: #ff8a80;
	--wp--custom--cor--sucesso: #8fd19e;
	--wp--custom--cor--moldura-tv: #484848;
	--wp--custom--cor--sombra: #1c1c1c;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {

	html:not([data-theme]),
	html:not([data-theme]) body {
		--wp--preset--color--fundo: #3d3d3d;
		--wp--preset--color--superficie: #484848;
		--wp--preset--color--linha: #5e5e5e;
		--wp--preset--color--texto: #f4f4ec;
		--wp--preset--color--texto-suave: #c9c9be;
		--wp--preset--color--primaria: #e3ed55;
		--wp--preset--color--sobre-primaria: #3d3d3d;
		--wp--preset--color--faixa-escura: #1c1c1c;
		--wp--custom--cor--marca-fundo: transparent;
		--wp--custom--cor--marca-texto: #e3ed55;
		--wp--custom--cor--foco: #e3ed55;
		--wp--custom--cor--erro: #ff8a80;
		--wp--custom--cor--sucesso: #8fd19e;
		--wp--custom--cor--moldura-tv: #484848;
		--wp--custom--cor--sombra: #1c1c1c;
		color-scheme: dark;
	}
}

/* Base --------------------------------------------------------------------- */
body {
	-webkit-font-smoothing: antialiased;
}

/* Cabeçalho, conteúdo e rodapé encostam um no outro: cada faixa tem o seu respiro. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

:where(.wp-site-blocks) a {
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Link no meio do texto: no hover, ganha o marca-texto. */
:where(p, li:not(.wp-block-navigation-item), figcaption, dd, td) > a:not(.wp-element-button):hover {
	background: var(--wp--custom--cor--marca-fundo);
	color: var(--wp--custom--cor--marca-texto);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--custom--cor--foco);
	outline-offset: 2px;
}

/* Marca-texto: uma palavra por título ---------------------------------------- */
.rh-marca {
	padding: 0 0.12em;
	border-radius: 0.14em;
	background: var(--wp--custom--cor--marca-fundo);
	color: var(--wp--custom--cor--marca-texto);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* No tema rádio a palavra fica só em lima, sem fundo, então não precisa de respiro. */
html[data-theme="radio"] .rh-marca {
	padding: 0;
}

@media (prefers-color-scheme: dark) {

	html:not([data-theme]) .rh-marca {
		padding: 0;
	}
}

/* Na faixa lima, o marca-texto inverte; nas faixas escuras, vira só a palavra em lima. */
[class*="is-style-faixa-destaque"] .rh-marca {
	padding: 0 0.12em;
	background: var(--wp--preset--color--sobre-destaque);
	color: var(--wp--preset--color--destaque);
}

[class*="is-style-faixa-escura"] .rh-marca,
[class*="is-style-painel"] .rh-marca,
.rh-cabecalho .rh-marca,
.rh-rodape .rh-marca {
	padding: 0;
	background: transparent;
	color: var(--wp--custom--cor--lima);
}

/* Botões --------------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	max-width: 100%;
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

/* No hover, o botão se descola como um adesivo. */
.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translate(-2px, -2px);
	box-shadow: 3px 3px 0 0 var(--wp--custom--cor--sombra);
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--custom--cor--foco);
	outline-offset: 2px;
}

[class*="is-style-faixa-destaque"] .wp-element-button:focus-visible,
[class*="is-style-faixa-destaque"] .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--sobre-destaque);
}

[class*="is-style-faixa-escura"] .wp-element-button:focus-visible,
[class*="is-style-faixa-escura"] .wp-block-button__link:focus-visible {
	outline-color: var(--wp--custom--cor--lima);
}

/* O anel de foco acompanha a faixa: lima nas escuras, cinza na lima. Vale para links, cartões e caixas. */
[class*="is-style-faixa-escura"] {
	--wp--custom--cor--foco: var(--wp--custom--cor--lima);
}

[class*="is-style-faixa-destaque"] {
	--wp--custom--cor--foco: var(--wp--preset--color--sobre-destaque);
}

/* Com a barra da rádio e o WhatsApp presos no pé da tela, o elemento que recebe o foco
   pelo teclado para acima deles, sem ficar coberto (WCAG 2.4.11). */
html:has(.rh-radio) {
	scroll-padding-bottom: 152px;
}

@media (max-width: 600px) {

	html:has(.rh-radio) {
		scroll-padding-bottom: 160px;
	}
}

/* Atalhos em pílula: os links de "Talvez você procure". */
.wp-block-buttons.is-style-chips {
	gap: 0.625rem;
}

.wp-block-buttons.is-style-chips .wp-block-button__link {
	padding: 0.625rem 1.125rem;
	border: 2px solid var(--wp--preset--color--texto-suave);
	background: transparent;
	color: var(--wp--preset--color--texto);
}

/* Textos ---------------------------------------------------------------------- */
.is-style-legenda {
	font-size: var(--wp--preset--font-size--legenda);
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.4;
	color: var(--wp--preset--color--texto-suave);
}

[class*="is-style-faixa-escura"] .is-style-legenda,
[class*="is-style-faixa-destaque"] .is-style-legenda {
	color: inherit;
}

.is-style-chamada {
	color: var(--wp--preset--color--texto-suave);
}

[class*="is-style-faixa-destaque"] .is-style-chamada,
[class*="is-style-faixa-escura"] .is-style-chamada {
	color: inherit;
}

/* Número em círculo: os passos do "como jogar". */
.is-style-numero {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--wp--preset--color--destaque);
	color: var(--wp--preset--color--sobre-destaque);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--display-s);
	line-height: 1;
}

/* Selos: gênero, categoria e novidade. */
.is-style-selo,
.is-style-selo-novo,
.wp-block-post-terms a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	padding: 6px 12px;
	border: 2px solid var(--wp--preset--color--texto-suave);
	border-radius: var(--wp--custom--raio--pilula);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--legenda);
	line-height: 1;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	color: inherit;
}

/* Selo com link (os atalhos "Nesta página"): o link ocupa a pílula inteira, para a área de toque. */
.is-style-selo:has(> a) {
	padding: 0;
}

.is-style-selo > a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 6px 12px;
	border-radius: inherit;
	color: inherit;
	text-decoration: none;
}

/* O selo de gênero acompanha a cor da faixa onde está: texto e borda na cor do texto. */
.is-style-selo,
.wp-block-post-terms a {
	border-color: color-mix(in srgb, currentColor 55%, transparent);
}

.is-style-selo-novo {
	border-color: var(--wp--preset--color--sobre-destaque);
	background: var(--wp--preset--color--destaque);
	color: var(--wp--preset--color--sobre-destaque);
}

.wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wp-block-post-terms__separator {
	display: none;
}

.wp-block-post-terms a:hover {
	background: var(--wp--preset--color--primaria);
	color: var(--wp--preset--color--sobre-primaria);
	border-color: var(--wp--preset--color--primaria);
}

/* Cartões: tudo abaixo da foto -------------------------------------------------- */
/* O título leva o link e ele cobre o cartão inteiro; os selos ficam por cima e continuam clicáveis. */
.is-style-cartao {
	position: relative;
}

.is-style-cartao .wp-block-post-featured-image,
.is-style-cartao .wp-block-image {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--raio--m);
	background: var(--wp--preset--color--superficie);
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.is-style-cartao .wp-block-post-featured-image img,
.is-style-cartao .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

.is-style-cartao .wp-block-image.is-style-objeto img {
	object-fit: contain;
	padding: 1rem;
}

.is-style-cartao:hover .wp-block-post-featured-image,
.is-style-cartao:hover .wp-block-image {
	transform: translate(-3px, -3px);
	box-shadow: 6px 6px 0 0 var(--wp--custom--cor--sombra);
}

.is-style-cartao :where(.wp-block-post-title, .wp-block-heading) a {
	text-decoration: none;
	background: none;
	color: inherit;
}

.is-style-cartao :where(.wp-block-post-title, .wp-block-heading) a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--raio--m);
}

.is-style-cartao :where(.wp-block-post-title, .wp-block-heading) a:focus-visible {
	outline: none;
}

/* Foco de teclado no cartão inteiro, já que o link cobre o cartão. */
.is-style-cartao:has(:focus-visible) {
	outline: 2px solid var(--wp--custom--cor--foco);
	outline-offset: 4px;
	border-radius: var(--wp--custom--raio--m);
}

.is-style-cartao .wp-block-post-terms {
	position: relative;
	z-index: 1;
}

.is-style-cartao .is-style-titulo-card {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.is-style-cartao .wp-block-post-date {
	color: var(--wp--preset--color--texto-suave);
	font-size: var(--wp--preset--font-size--texto-s);
}

/* Na faixa escura, o texto suave clareia para manter o contraste, até quando a cor foi escolhida no editor. */
[class*="is-style-faixa-escura"] .is-style-cartao,
[class*="is-style-faixa-escura"] .is-style-cartao .wp-block-post-date {
	color: var(--wp--preset--color--sobre-faixa-escura);
}

[class*="is-style-faixa-escura"] .has-texto-suave-color {
	color: var(--wp--preset--color--sobre-faixa-escura) !important;
}

/* Título com link cobre o bloco inteiro: cartão, painel cinza e caixa com borda.
 * Assim o bloco todo é clicável, mas continua com um link só, o do título. */
:is(.is-style-cartao, [class*="is-style-painel"], [class*="is-style-caixa"]):has(:is(.wp-block-heading, .wp-block-post-title) > a) {
	position: relative;
}

:is([class*="is-style-painel"], [class*="is-style-caixa"]) :is(.wp-block-heading, .wp-block-post-title) > a {
	background: none;
	color: inherit;
	text-decoration: none;
}

:is([class*="is-style-painel"], [class*="is-style-caixa"]) :is(.wp-block-heading, .wp-block-post-title) > a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--raio--l);
}

[class*="is-style-caixa"]:has(.wp-block-heading > a) {
	transition: border-color 0.15s ease-out;
}

[class*="is-style-caixa"]:has(.wp-block-heading > a):hover {
	border-color: currentColor;
}

[class*="is-style-caixa"]:has(:focus-visible) {
	outline: 2px solid var(--wp--custom--cor--foco);
	outline-offset: 3px;
}

[class*="is-style-caixa"] .wp-block-heading > a:focus-visible {
	outline: none;
}

/* Balão de conversa: a mensagem de quem escreve; alinhado à direita, vira a resposta em lima. */
.is-style-conversa {
	width: fit-content;
	max-width: 85%;
	padding: 0.75rem 1rem;
	border-radius: 16px 16px 16px 4px;
	background: var(--wp--preset--color--superficie);
	color: var(--wp--preset--color--texto);
}

.is-style-conversa.has-text-align-right {
	margin-left: auto;
	border-radius: 16px 16px 4px 16px;
	background: var(--wp--preset--color--destaque);
	color: var(--wp--preset--color--sobre-destaque);
	text-align: left;
}

/* Painel cinza: os atalhos da Home e as frentes do Sobre nós. Cores, borda e respiro vêm do
 * estilo "Painel cinza" (styles/painel.json); aqui ficam o movimento e o link que cobre o painel. */
[class*="is-style-painel"] {
	position: relative;
	min-height: 196px;
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

[class*="is-style-painel"]:hover {
	transform: translate(-3px, -3px);
	box-shadow: 6px 6px 0 0 var(--wp--custom--cor--sombra);
}

[class*="is-style-painel"] .wp-block-heading a {
	text-decoration: none;
	background: none;
	color: inherit;
}

[class*="is-style-painel"] .wp-block-heading a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--raio--l);
}

[class*="is-style-painel"] .wp-block-heading a:focus-visible {
	outline: none;
}

[class*="is-style-painel"]:has(:focus-visible) {
	outline: 2px solid var(--wp--preset--color--sobre-destaque);
	outline-offset: 3px;
}

[class*="is-style-painel"] .is-style-chamada {
	margin-top: auto !important;
	color: var(--wp--custom--cor--lima);
}

/* Faixa de apoio: os parceiros rolam sem parar -------------------------------------- */
.rh-apoio {
	overflow: hidden;
	border-block: 1px solid var(--wp--preset--color--linha);
}

.is-style-faixa-rolante {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
}

.is-style-faixa-rolante .wp-block-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-faixa-rolante .wp-block-list li {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--texto-s);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* O script duplica a lista (a cópia fica escondida dos leitores de tela) e liga a animação. */
.is-style-faixa-rolante.is-rolando .wp-block-list {
	flex-wrap: nowrap;
	width: max-content;
	animation: rh-rola 40s linear infinite;
}

.is-style-faixa-rolante.is-rolando {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
	mask-image: linear-gradient(to right, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
}

.is-style-faixa-rolante.is-rolando:hover .wp-block-list {
	animation-play-state: paused;
}

@keyframes rh-rola {

	to {
		transform: translateX(-50%);
	}
}

/* Imagem + painel ------------------------------------------------------------------ */
.wp-block-media-text {
	overflow: hidden;
	border-radius: var(--wp--custom--raio--l);
}

.wp-block-media-text > .wp-block-media-text__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: var(--wp--preset--spacing--7) var(--wp--preset--spacing--6);
}

.wp-block-media-text > .wp-block-media-text__content > * {
	margin-block: 0;
}

.wp-block-media-text > .wp-block-media-text__media {
	align-self: stretch;
	min-height: 320px;
}

.wp-block-media-text > .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 600px) {

	.wp-block-media-text > .wp-block-media-text__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.wp-block-media-text > .wp-block-media-text__content {
		padding: var(--wp--preset--spacing--6) var(--wp--preset--spacing--5);
	}
}

/* Foto: balão de fala e produto inteiro ---------------------------------------------- */
/* O corpo do balão ocupa os 80% de cima (o resto é o rabinho). Quadrado, ele mostra 80% da altura
   de uma foto quadrada; a foto alinha pelo topo, para não cortar a cabeça das pessoas. */
.wp-block-image.is-style-balao {
	aspect-ratio: 1;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80' preserveAspectRatio='none'%3E%3Cpath d='M16 0H84Q100 0 100 16V48Q100 64 84 64L90 80L66 64H16Q0 64 0 48V16Q0 0 16 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80' preserveAspectRatio='none'%3E%3Cpath d='M16 0H84Q100 0 100 16V48Q100 64 84 64L90 80L66 64H16Q0 64 0 48V16Q0 0 16 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.wp-block-image.is-style-balao img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
	border-radius: 0;
}

.wp-block-image.is-style-objeto img {
	object-fit: contain;
	padding: 1rem;
	border-radius: var(--wp--custom--raio--m);
	background: var(--wp--preset--color--superficie);
}

/* Perguntas frequentes: o bloco Detalhes, sem script ----------------------------------- */
:not(.wp-block-details) + .wp-block-details,
.wp-block-details:first-child {
	border-top: 2px solid var(--wp--preset--color--linha);
}

.wp-block-details + .wp-block-details {
	margin-block-start: 0;
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 64px;
	padding: 1rem 0;
	font-size: var(--wp--preset--font-size--texto-l);
	font-weight: 600;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--destaque) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' fill='none' stroke='%233d3d3d' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.wp-block-details[open] summary::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10' fill='none' stroke='%233d3d3d' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E");
}

.wp-block-details > :not(summary) {
	max-width: var(--wp--style--global--content-size);
}

.wp-block-details[open] > :last-child {
	padding-bottom: 1.5rem;
}

@media (max-width: 520px) {

	.wp-block-details summary {
		font-size: var(--wp--preset--font-size--texto);
	}
}

/* Citação em destaque --------------------------------------------------------------- */
.wp-block-quote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: 0.75rem;
	font-weight: 400;
}

.wp-block-quote > p {
	margin: 0;
}

/* Campos ---------------------------------------------------------------------------- */
:where(.wp-site-blocks) :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], textarea, select) {
	min-height: 48px;
	padding: 0.75rem 1rem;
	border: 2px solid var(--wp--preset--color--texto-suave);
	border-radius: var(--wp--custom--raio--s);
	background: var(--wp--preset--color--fundo);
	color: var(--wp--preset--color--texto);
	font: inherit;
	font-size: var(--wp--preset--font-size--texto);
}

:where(.wp-site-blocks) textarea {
	min-height: 128px;
	resize: vertical;
}

:where(.wp-site-blocks) ::placeholder {
	color: var(--wp--preset--color--texto-suave);
	opacity: 1;
}

.wp-block-search__inside-wrapper {
	gap: 0.5rem;
	padding: 0;
	border: 0;
}

/* Busca com o botão dentro (blog, busca): o campo vira uma pílula com borda, no fundo da página,
   nos dois temas. Sem isso, a moldura do core ficava branca em volta do botão no tema rádio. */
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	padding: 4px;
	border: 2px solid var(--wp--preset--color--texto-suave);
	border-radius: var(--wp--custom--raio--pilula);
	background: var(--wp--preset--color--fundo);
}

.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--texto);
	outline: 2px solid var(--wp--custom--cor--foco);
	outline-offset: 2px;
}

.wp-block-search__button-inside .wp-block-search__input {
	min-height: 44px;
	padding: 0 0.75rem 0 1rem;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--texto);
}

/* O anel fica na pílula inteira; o campo não desenha um segundo. */
.wp-block-search__button-inside .wp-block-search__input:focus-visible {
	outline: none;
}

.wp-block-search__button-inside .wp-block-search__button {
	min-width: 44px;
	min-height: 44px;
	margin: 0;
}

.wp-block-search__button {
	margin-left: 0;
}

/* Cabeçalho: sempre cinza, logo lima, preso no topo ao rolar a página ---------------------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
}

/* No celular, a barra do admin rola junto com a página; o cabeçalho para no topo da tela. */
@media (max-width: 600px) {

	.wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

/* Âncoras e foco pelo teclado param abaixo do cabeçalho, sem ficar escondidos (WCAG 2.4.11). */
html {
	scroll-padding-top: 88px;
}

.rh-cabecalho {
	border-bottom: 1px solid var(--wp--preset--color--linha);
	background: var(--wp--custom--cor--cinza-radio);
	color: #f4f4ec;
}

.rh-cabecalho__barra {
	gap: var(--wp--preset--spacing--6);
	padding-block: var(--wp--preset--spacing--3);
}

/* Logo à esquerda, menu no meio e ações à direita. O layout flex do core zera as margens dos
   filhos (.is-layout-flex > *), por isso os seletores levam o pai. */
.rh-cabecalho .rh-cabecalho__barra {
	justify-content: space-between;
}

.rh-cabecalho__barra > .rh-cabecalho__acoes {
	margin-left: auto;
}

.rh-cabecalho__barra > .wp-block-navigation {
	margin-inline: auto;
}

.rh-cabecalho__logo {
	flex: none;
	margin: 0;
}

.rh-cabecalho__logo img {
	display: block;
	width: auto;
	height: 44px;
	border-radius: 0;
}

.rh-cabecalho__logo a:hover {
	background: none;
}

.rh-cabecalho__acoes {
	gap: var(--wp--preset--spacing--2);
	margin-left: auto;
}

.rh-cabecalho a {
	color: inherit;
}

/* Menu: uppercase em Righteous; a página aberta fica em lima, sublinhada. */
.rh-cabecalho .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--5);
}

.rh-cabecalho .wp-block-navigation-item__content {
	padding-block: 0.5rem;
	border-bottom: 3px solid transparent;
	text-decoration: none;
	white-space: nowrap;
}

.rh-cabecalho .wp-block-navigation-item__content:hover {
	color: var(--wp--custom--cor--lima);
}

.rh-cabecalho .current-menu-item > .wp-block-navigation-item__content,
.rh-cabecalho .wp-block-navigation-item__content[aria-current="page"] {
	border-bottom-color: var(--wp--custom--cor--lima);
	color: var(--wp--custom--cor--lima);
}

.rh-cabecalho :focus-visible {
	outline-color: var(--wp--custom--cor--lima);
}

/* Ícones do cabeçalho: busca, carrinho e menu, todos com 44px de alvo. */
.rh-cabecalho .wp-block-search__button,
.rh-cabecalho .wc-block-mini-cart__button {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	box-shadow: none;
	transform: none;
}

/* O botão de menu só aparece com o menu recolhido; aqui ele ganha só o tamanho e a cor. */
.rh-cabecalho .wp-block-navigation__responsive-container-open {
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	color: inherit;
}

.rh-cabecalho .wp-block-search__button svg,
.rh-cabecalho .wp-block-navigation__responsive-container-open svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.rh-cabecalho .wp-block-search__input {
	min-height: 44px;
	border-color: #ffffff;
	background: #ffffff;
	color: var(--wp--custom--cor--cinza-radio);
}

.rh-cabecalho .wc-block-mini-cart__badge {
	background: var(--wp--custom--cor--lima);
	color: var(--wp--custom--cor--cinza-radio);
}

/* O core recolhe o menu abaixo de 600px; o design recolhe abaixo de 1180px, porque com o Blog
   o menu tem seis itens e encostaria nas ações. */
@media (min-width: 600px) and (max-width: 1179.98px) {

	.rh-cabecalho .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: grid;
	}

	.rh-cabecalho .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Com o menu recolhido, o botão de menu vai para a ponta direita. */
@media (max-width: 1179.98px) {

	.rh-cabecalho__barra {
		gap: var(--wp--preset--spacing--4);
	}

	.rh-cabecalho__barra > .wp-block-navigation {
		order: 3;
		margin-inline: 0;
	}

	.rh-cabecalho__acoes {
		order: 2;
		margin-left: auto;
	}
}

@media (max-width: 420px) {

	.rh-cabecalho__logo img {
		height: 34px;
	}

	.rh-cabecalho__barra {
		gap: var(--wp--preset--spacing--2);
	}
}

/* Menu do celular: a lista em tela cheia, sobre o cinza. O :not(.has-background) pesa o mesmo
   que a regra do core, que pinta o menu aberto de branco com texto preto. */
.rh-cabecalho .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4) var(--wp--preset--spacing--7);
	background: var(--wp--custom--cor--cinza-radio);
	color: #f4f4ec;
}

.rh-cabecalho .is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}

.rh-cabecalho .is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.rh-cabecalho .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(244, 244, 236, 0.25);
	font-size: var(--wp--preset--font-size--display-s);
	letter-spacing: 0.02em;
}

.rh-cabecalho .is-menu-open .wp-block-navigation-item__content[aria-current="page"] {
	border-bottom-color: rgba(244, 244, 236, 0.25);
}

.rh-cabecalho .wp-block-navigation__responsive-container-close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: inherit;
}

/* Troca de tema: um switch de verdade, com o botão lima sobre o ícone do tema em uso. */
.rh-tema {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	width: 76px;
	height: 44px;
	padding: 0 10px;
	border: 2px solid currentColor;
	border-radius: var(--wp--custom--raio--pilula);
	background: transparent;
	color: #f4f4ec;
	cursor: pointer;
}

.rh-tema__botao {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--custom--cor--lima);
	transition: transform 0.2s ease-out;
}

.rh-tema svg {
	position: relative;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.25;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: color 0.2s ease-out;
}

.rh-tema[aria-checked="true"] .rh-tema__botao {
	transform: translateX(32px);
}

.rh-tema[aria-checked="false"] .rh-tema__sol,
.rh-tema[aria-checked="true"] .rh-tema__lua {
	color: var(--wp--custom--cor--cinza-radio);
}

.rh-tema:hover {
	border-color: var(--wp--custom--cor--lima);
}

.rh-tema:focus-visible {
	outline: 2px solid var(--wp--custom--cor--lima);
	outline-offset: 2px;
}

/* Pouco espaço: a troca de tema vira só o botão, com o ícone do tema em uso. */
@media (max-width: 560px) {

	.rh-cabecalho .rh-tema {
		width: 44px;
		padding: 0;
		justify-content: center;
	}

	.rh-cabecalho .rh-tema[aria-checked="true"] .rh-tema__botao {
		transform: none;
	}

	.rh-cabecalho .rh-tema[aria-checked="false"] .rh-tema__lua,
	.rh-cabecalho .rh-tema[aria-checked="true"] .rh-tema__sol {
		display: none;
	}
}

/* Rodapé ----------------------------------------------------------------------------- */
/* Uma linha discreta separa o rodapé de uma faixa escura logo acima, que tem a mesma cor. */
.rh-rodape {
	border-top: 1px solid rgba(244, 244, 236, 0.14);
}

.rh-rodape a {
	color: inherit;
	text-decoration: none;
}

.rh-rodape a:hover {
	background: none;
	color: var(--wp--custom--cor--lima);
	text-decoration: underline;
}

.rh-rodape :focus-visible {
	outline-color: var(--wp--custom--cor--lima);
}

.rh-rodape .is-style-chamada {
	color: var(--wp--custom--cor--lima);
}

.rh-rodape__marca img {
	width: 96px;
	height: auto;
	border-radius: 0;
}

.rh-rodape .wp-block-list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-rodape__legal {
	padding-top: var(--wp--preset--spacing--4);
	border-top: 1px solid var(--wp--preset--color--linha);
}

/* Post do blog ------------------------------------------------------------------------ */
/* O core deixa o "Por" e a bio do autor bem miúdos. */
.wp-block-post-author .wp-block-post-author__byline {
	font-size: var(--wp--preset--font-size--legenda);
	color: var(--wp--preset--color--texto-suave);
}

.wp-block-post-author .wp-block-post-author__bio {
	font-size: var(--wp--preset--font-size--texto-s);
	line-height: 1.5;
}

.wp-block-post-author__name {
	color: var(--wp--preset--color--texto);
	font-weight: 600;
}

.wp-block-post-author__avatar img {
	border-radius: 50%;
}

.rh-compartilhar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.rh-compartilhar a,
.rh-compartilhar button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid var(--wp--preset--color--linha);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--texto);
	cursor: pointer;
}

.rh-compartilhar a:hover,
.rh-compartilhar button:hover {
	border-color: var(--wp--preset--color--texto);
	background: transparent;
}

.rh-compartilhar svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rh-compartilhar__aviso {
	font-size: var(--wp--preset--font-size--texto-s);
	font-weight: 600;
}

[class*="is-style-caixa"] .wp-block-post-author__avatar img {
	border-radius: 50%;
}

/* Caixa de quem escreve: foto e nome centralizados na altura; sem bio, o parágrafo vazio some. */
[class*="is-style-caixa"] .wp-block-post-author {
	align-items: center;
	gap: var(--wp--preset--spacing--4);
}

.wp-block-post-author__bio:empty {
	display: none;
}

.wp-block-post-author__content > * {
	margin-block: 0;
}

[class*="is-style-caixa"] .wp-block-post-author__name {
	font-size: var(--wp--preset--font-size--texto-l);
	font-weight: 600;
}

.wp-block-post-featured-image.is-style-com-legenda figcaption {
	margin-top: 0.625rem;
}

/* Conteúdo antigo (editor clássico) traz vídeos e imagens com largura fixa: nunca passam da tela. */
.wp-block-post-content :is(iframe, video, embed, object) {
	max-width: 100%;
}

/* Post: cabeçalho, foto e texto no mesmo eixo, centralizados (cabeçalho 860px; foto e texto na
   largura do texto, 680px). Antes, o cabeçalho ia para a esquerda e a foto 3:2 ocupava 800px. */
.rh-post-meta {
	padding-block: var(--wp--preset--spacing--3);
	border-block: 2px solid var(--wp--preset--color--linha);
}

/* Compartilhar vai para a ponta direita da linha. */
.rh-post-meta > .rh-compartilhar {
	margin-left: auto;
}

.wp-block-post-featured-image.rh-post-foto {
	max-width: var(--wp--style--global--content-size, 680px);
	margin-inline: auto;
}

.wp-block-post-featured-image.rh-post-foto img {
	border-radius: var(--wp--custom--raio--l);
}

/* Texto para leitura longa: letra maior, linha mais aberta, títulos internos menores que o
   do post. Vale também para o conteúdo antigo, escrito no editor clássico. */
.rh-post-corpo {
	font-size: 1.1875rem;
	line-height: 1.7;
}

.rh-post-corpo > * + * {
	margin-block-start: 1.25em;
}

.rh-post-corpo > :is(h2, h3, h4) {
	margin-block-start: 2em;
	line-height: 1.1;
}

.rh-post-corpo > h2 {
	font-size: var(--wp--preset--font-size--display-s);
}

.rh-post-corpo > h3 {
	font-family: var(--wp--preset--font-family--corpo);
	font-size: var(--wp--preset--font-size--texto-l);
	font-weight: 600;
	text-transform: none;
}

.rh-post-corpo a {
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.rh-post-corpo a:hover {
	background: var(--wp--preset--color--destaque);
	color: var(--wp--preset--color--sobre-destaque);
}

.rh-post-corpo img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wp--custom--raio--m);
}

.rh-post-corpo > center,
.rh-post-corpo > p:has(> img:only-child) {
	display: block;
	text-align: center;
}

.rh-post-corpo :is(ul, ol) {
	padding-left: 1.25em;
}

.rh-post-corpo li + li {
	margin-top: 0.4em;
}

.rh-post-corpo > blockquote:not([class]) {
	margin-inline: 0;
	padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--6);
	border-radius: var(--wp--custom--raio--l);
	background: var(--wp--preset--color--destaque);
	color: var(--wp--preset--color--sobre-destaque);
	font-size: var(--wp--preset--font-size--texto-l);
	font-weight: 600;
	line-height: 1.45;
}

@media (max-width: 600px) {

	.rh-post-corpo {
		font-size: 1.125rem;
	}

	.rh-post-meta > .rh-compartilhar {
		margin-left: 0;
	}
}

/* Estado vazio: o avatar reage ---------------------------------------------------------- */
.rh-estado__avatar {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	max-width: 420px;
	border-radius: var(--wp--custom--raio--l);
	background: var(--wp--preset--color--faixa-escura);
}

.rh-estado__avatar .wp-block-image {
	width: 56%;
	margin: 0;
}

.rh-estado__avatar img {
	width: 100%;
	border-radius: 0;
	transform-origin: 50% 90%;
	animation: rh-balanco 3s ease-in-out infinite;
}

@keyframes rh-balanco {

	0%,
	100% {
		transform: rotate(-4deg);
	}

	50% {
		transform: rotate(4deg);
	}
}

@media (max-width: 781px) {

	.rh-estado__avatar {
		max-width: 160px;
	}
}

/* TV de clipes (plugin RadioHemp TV) ------------------------------------------------------- */
/* O plugin usa estas variáveis; aqui elas viram as cores e as fontes da marca. */
.wp-site-blocks .rhtv {
	--rhtv-bg: var(--wp--custom--cor--preto);
	--rhtv-surface: var(--wp--custom--cor--moldura-tv);
	--rhtv-fg: #f4f4ec;
	--rhtv-muted: #c9c9be;
	--rhtv-accent: var(--wp--custom--cor--lima);
	--rhtv-accent-fg: var(--wp--custom--cor--cinza-radio);
	--rhtv-radius: var(--wp--custom--raio--l);
	--rhtv-font: var(--wp--preset--font-family--corpo);
	--rhtv-lt-font: var(--wp--preset--font-family--display);
}

/* Player no desenho do tema (radiohemp-tv/player.php): tela e controles à esquerda, canais à
   direita. Cabe na primeira dobra com o cabeçalho e a barra da rádio. */
.rh-tvguia {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
	background: var(--rhtv-surface);
}

/* No computador, a largura acompanha a altura da tela: tela 16:9 + controles (56px) cabem entre o
   cabeçalho (80px) e a barra da rádio, com folga. A lista de canais ocupa os 280px à direita. */
@media (min-width: 782px) {

	.rh-tvguia {
		max-width: calc((100svh - 270px) * 16 / 9 + 280px);
		margin-inline: auto;
	}
}

.rh-tvguia__principal {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rh-tvguia__lado {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--3);
	min-height: 0;
	padding: var(--wp--preset--spacing--4);
	border-left: 1px solid rgba(244, 244, 236, 0.12);
}

.rh-tvguia__titulo {
	margin: 0;
	color: var(--wp--custom--cor--lima);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--legenda);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* A lista ocupa a altura da tela e rola se houver muitos canais. */
.rh-tvguia .rhtv-guide {
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	min-height: 0;
	padding: 0;
	overflow: hidden auto;
	border: 0;
}

.rh-tvguia .rhtv-channel {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--2);
	width: 100%;
	min-width: 0;
	min-height: 48px;
	padding: 10px 16px;
	border: 2px solid rgba(244, 244, 236, 0.25);
	border-radius: var(--wp--custom--raio--pilula);
}

.rh-tvguia .rhtv-channel-name {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--texto-s);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rh-tvguia .rhtv-channel-count {
	opacity: 1;
	color: #c9c9be;
	white-space: nowrap;
}

.rh-tvguia .rhtv-channel.is-active .rhtv-channel-count {
	color: inherit;
}

.rh-tvguia .rhtv-channel:focus-visible,
.rh-tvguia .rhtv-btn:focus-visible,
.rh-tvguia .rhtv-start:focus-visible {
	outline: 2px solid var(--wp--custom--cor--lima);
	outline-offset: 2px;
}

/* O nome do canal no canto do vídeo fica escondido (ele já está na lista e na barra). A tarja com
   a música e o artista, que entra sobre o vídeo no começo de cada clipe, continua: exceção à regra
   "texto nunca sobre imagem", pedida pelo Pedro em 2026-10-09. */
.rh-tvguia .rhtv-bug {
	display: none;
}

/* Tela cheia: só a tela e os controles. */
.rh-tvguia.is-fullscreen {
	display: flex;
}

.rh-tvguia.is-fullscreen .rh-tvguia__principal {
	flex: 1;
}

.rh-tvguia.is-fullscreen .rhtv-screen {
	flex: 1;
}

.rh-tvguia.is-fullscreen .rh-tvguia__lado {
	display: none;
}

/* Celular e tablet em pé: os canais viram uma fileira embaixo da tela. */
@media (max-width: 781px) {

	.rh-tvguia {
		grid-template-columns: minmax(0, 1fr);
	}

	.rh-tvguia__lado {
		padding: var(--wp--preset--spacing--3);
		border-top: 1px solid rgba(244, 244, 236, 0.12);
		border-left: 0;
	}

	.rh-tvguia .rhtv-guide {
		flex: none;
		flex-direction: row;
		overflow: auto hidden;
	}

	.rh-tvguia .rhtv-channel {
		flex: none;
		width: auto;
	}
}

/* A TV parada, quando o plugin está desligado. */
.rh-tv {
	padding: 1rem;
	border-radius: var(--wp--custom--raio--l);
	background: var(--wp--custom--cor--moldura-tv);
	color: #f4f4ec;
}

.rh-tv__tela {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 1rem;
	aspect-ratio: 16 / 9;
	padding: 1rem;
	border-radius: var(--wp--custom--raio--m);
	background: var(--wp--custom--cor--preto);
	text-align: center;
}

.rh-tv__avatar {
	width: 96px;
	height: auto;
}

.rh-tv__aviso {
	max-width: 32ch;
	margin: 0;
	font-size: var(--wp--preset--font-size--texto-s);
}

/* Texto só para leitores de tela: o título da Home, que abre com a TV. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Selo AO VIVO do cabeçalho: liga e desliga a barra da rádio. */
.rh-aovivo {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 6px 12px;
	border: 0;
	border-radius: var(--wp--custom--raio--pilula);
	background: var(--wp--custom--cor--paprica);
	color: var(--wp--custom--cor--preto);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--legenda);
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}

.rh-aovivo::before,
.rh-radio__selo::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	animation: rh-pulso 1.6s ease-out infinite;
}

@keyframes rh-pulso {
	0% { box-shadow: 0 0 0 0 currentColor; }
	70%, 100% { box-shadow: 0 0 0 6px transparent; }
}

.rh-aovivo:hover {
	box-shadow: var(--wp--preset--shadow--adesivo-s);
}

.rh-cabecalho .rh-aovivo:focus-visible {
	outline: 2px solid var(--wp--custom--cor--lima);
	outline-offset: 2px;
}

/* Redes no rodapé: botões redondos só com o ícone, na cor do texto. */
.wp-block-social-links.is-style-logos-only.rh-redes {
	gap: var(--wp--preset--spacing--2);
	margin: 0;
}

.wp-block-social-links.is-style-logos-only.rh-redes .wp-social-link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 2px solid currentColor;
	border-radius: 50%;
	color: inherit;
}

.wp-block-social-links.is-style-logos-only.rh-redes .wp-social-link a {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border-radius: 50%;
}

.wp-block-social-links.is-style-logos-only.rh-redes .wp-social-link svg {
	width: 20px;
	height: 20px;
}

.rh-rodape .rh-redes .wp-social-link:hover {
	border-color: var(--wp--custom--cor--lima);
	background: var(--wp--custom--cor--lima);
	color: var(--wp--custom--cor--cinza-radio);
	transform: none;
}

/* WhatsApp e barra da rádio: presos no pé da tela, em todas as páginas ----------------- */
.rh-flutuantes {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	display: grid;
	justify-items: end;
	gap: var(--wp--preset--spacing--3);
	margin: 0;
	pointer-events: none;
}

.rh-flutuantes > * {
	margin: 0;
	pointer-events: auto;
}

/* O conteúdo termina acima da barra. */
body:has(.rh-radio) .wp-site-blocks {
	padding-bottom: 72px;
}

.rh-whats {
	margin-right: clamp(16px, 3vw, 32px) !important;
}

/* No checkout, o WhatsApp cobria campos do formulário no celular. Some só ali: no pedido
 * recebido ele volta, para quem precisar de atendimento. */
.woocommerce-checkout:not(.woocommerce-order-received) .rh-whats {
	display: none;
}

.rh-whats .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 22px 0 14px;
	border: 2px solid var(--wp--custom--cor--cinza-radio);
	background: var(--wp--custom--cor--lima);
	color: var(--wp--custom--cor--cinza-radio);
	box-shadow: var(--wp--preset--shadow--adesivo-s);
	font-family: var(--wp--preset--font-family--corpo);
	font-weight: 600;
	text-transform: none;
}

/* O ícone vem do assets/images/icone-whatsapp.svg, na cor do texto do botão. */
.rh-whats .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	background: currentColor;
	-webkit-mask: url("../images/icone-whatsapp.svg") center / contain no-repeat;
	mask: url("../images/icone-whatsapp.svg") center / contain no-repeat;
}

.rh-whats .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--custom--cor--foco);
	outline-offset: 3px;
}

.rh-radio {
	justify-self: stretch;
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4);
	padding: 10px clamp(16px, 3vw, 32px);
	border-top: 2px solid var(--wp--custom--cor--lima);
	background: var(--wp--custom--cor--preto);
	color: #f4f4ec;
}

.rh-radio__play {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--custom--cor--lima);
	color: var(--wp--custom--cor--cinza-radio);
	cursor: pointer;
}

.rh-radio__play svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* A rádio vinha tocando e o navegador não deixou retomar sozinho: o play pulsa até o toque. */
.rh-radio.is-retomar .rh-radio__play {
	animation: rh-pulso-play 1.6s ease-out infinite;
}

@keyframes rh-pulso-play {
	0% { box-shadow: 0 0 0 0 rgba(227, 237, 85, 0.7); }
	70%, 100% { box-shadow: 0 0 0 14px rgba(227, 237, 85, 0); }
}

.rh-radio__icone-pausa,
.rh-radio.is-tocando .rh-radio__icone-play {
	display: none;
}

.rh-radio.is-tocando .rh-radio__icone-pausa {
	display: block;
}

.rh-radio :focus-visible {
	outline: 2px solid var(--wp--custom--cor--lima);
	outline-offset: 3px;
}

.rh-radio__avatar {
	flex: none;
	width: 34px;
	height: auto;
}

.rh-radio__texto {
	display: grid;
	flex: 1;
	gap: 2px;
	min-width: 0;
}

.rh-radio__texto p {
	margin: 0;
}

.rh-radio__titulo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--custom--cor--lima);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.0625rem;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rh-radio__selo {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 2px solid currentColor;
	border-radius: var(--wp--custom--raio--pilula);
	font-size: var(--wp--preset--font-size--legenda);
}

.rh-radio__agora {
	overflow: hidden;
	font-size: var(--wp--preset--font-size--texto-s);
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rh-radio__volume {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
}

.rh-radio__volume svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.rh-radio__volume input {
	width: 120px;
	height: 24px;
	accent-color: var(--wp--custom--cor--lima);
}

/* Celular: o WhatsApp vira só o ícone (o nome fica para os leitores de tela); a barra fica
   sem o avatar e sem o volume, que o do aparelho resolve. */
@media (max-width: 600px) {

	.rh-whats .wp-block-button__link {
		position: relative;
		justify-content: center;
		width: 56px;
		padding: 0;
		font-size: 0;
	}

	.rh-radio {
		gap: var(--wp--preset--spacing--3);
	}

	.rh-radio__avatar,
	.rh-radio__volume {
		display: none;
	}
}

/* Telas bem estreitas: o selo AO VIVO vira só o ponto que pulsa (o nome continua no
   aria-label), para o cabeçalho caber inteiro em 320px (WCAG 1.4.10). De 380px para cima,
   o selo cabe com o texto. */
@media (max-width: 379.98px) {

	.rh-aovivo {
		justify-content: center;
		width: 32px;
		padding: 0;
		font-size: 0;
		gap: 0;
	}
}

/* Home: a TV de clipes sozinha na abertura. No celular, encosta mais nas bordas. */
@media (max-width: 600px) {

	.rh-home-abertura {
		padding-right: var(--wp--preset--spacing--2) !important;
		padding-left: var(--wp--preset--spacing--2) !important;
	}
}

/* Capa do blog ------------------------------------------------------------------------ */
/* Editorias: a lista de categorias vira pílulas, como os selos. */
.rh-editorias.wp-block-categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--2);
	margin: var(--wp--preset--spacing--3) 0 0;
	padding: 0;
	list-style: none;
}

.rh-editorias .cat-item a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 16px;
	border: 2px solid currentColor;
	border-radius: var(--wp--custom--raio--pilula);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--legenda);
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.rh-editorias .cat-item a:hover,
.rh-editorias .current-cat a {
	border-color: var(--wp--preset--color--primaria);
	background: var(--wp--preset--color--primaria);
	color: var(--wp--preset--color--sobre-primaria);
}

/* "Mais recentes": lista com foto quadrada pequena e uma linha entre os posts. O respiro fica só
   no padding do item: o espaço entre blocos do core e a margem de baixo das colunas saem. */
.rh-blog-recentes .wp-block-post-template > li {
	margin-block: 0;
	padding: var(--wp--preset--spacing--3) 0;
	border-top: 2px solid var(--wp--preset--color--linha);
}

.rh-blog-recentes .wp-block-columns {
	align-items: center;
	margin: 0;
}

.rh-blog-recentes .wp-block-column > * {
	margin-block: 0;
}

.rh-blog-recentes .wp-block-post-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.rh-blog-recentes .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Autor e data numa linha, separados por um ponto. */
.rh-meta > * + *::before {
	content: "·";
	margin-right: var(--wp--preset--spacing--2);
}

.rh-blog-recentes .wp-block-post-template > li:last-child {
	border-bottom: 2px solid var(--wp--preset--color--linha);
}

.rh-blog-recentes .wp-block-post-template {
	gap: 0;
}

.rh-blog-recentes .wp-block-post-featured-image img {
	border-radius: var(--wp--custom--raio--m);
	object-position: 50% 0;
}

.rh-blog-recentes__editoria a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0;
	border: 0;
	color: var(--wp--preset--color--texto-suave);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--legenda);
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.rh-blog-recentes .wp-block-post-title {
	margin-top: var(--wp--preset--spacing--1);
	font-family: var(--wp--preset--font-family--corpo);
	font-weight: 600;
	line-height: 1.35;
	text-transform: none;
}

/* WooCommerce: o básico, até os templates da loja ---------------------------------------- */
.wc-block-components-product-sale-badge {
	border: 2px solid var(--wp--preset--color--sobre-destaque);
	border-radius: var(--wp--custom--raio--pilula);
	background: var(--wp--preset--color--destaque);
	color: var(--wp--preset--color--sobre-destaque);
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
}

.wc-block-components-product-price,
.wc-block-grid__product-price {
	font-weight: 700;
}

/* Carrinho e checkout em blocos ------------------------------------------------------------ */
/* O WooCommerce pinta campos, seletores, caixas e bolinhas de branco, com texto escuro fixo.
 * Aqui eles seguem as cores do tema, no claro e no rádio. Os :not() só aumentam a
 * especificidade, para vencer as regras do WooCommerce sem !important. */
.wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.wc-block-components-textarea:not([type="checkbox"]):not([type="radio"]),
.wc-blocks-components-select .wc-blocks-components-select__container:not(:empty):not([hidden]),
.wc-block-components-combobox .components-combobox-control__input:not([type="checkbox"]):not([type="radio"]) {
	border: 2px solid var(--wp--preset--color--texto-suave);
	border-radius: var(--wp--custom--raio--s);
	background-color: var(--wp--preset--color--fundo);
	color: var(--wp--preset--color--texto);
	font-family: inherit;
}

.wc-blocks-components-select .wc-blocks-components-select__select:not([hidden]):not([disabled]) {
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--texto);
}

.wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--wp--preset--color--texto);
}

.wc-block-components-form .wc-block-components-text-input label:not([hidden]),
.wc-block-components-text-input label:not([hidden]):not(.screen-reader-text),
.wc-blocks-components-select .wc-blocks-components-select__label:not([hidden]),
.wc-block-components-combobox .components-base-control__label:not([hidden]) {
	color: var(--wp--preset--color--texto-suave);
}

.wc-block-components-text-input.has-error input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.wc-blocks-components-select.has-error .wc-blocks-components-select__container:not(:empty) {
	border-color: var(--wp--custom--cor--erro);
}

.wc-block-components-validation-error,
.wc-block-components-form .wc-block-components-text-input.has-error label:not([hidden]) {
	color: var(--wp--custom--cor--erro);
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:not([disabled]),
.wc-block-components-radio-control .wc-block-components-radio-control__input:not([disabled]) {
	border: 2px solid var(--wp--preset--color--texto-suave);
	background-color: var(--wp--preset--color--fundo);
}

.wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--wp--preset--color--texto);
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked:not([disabled]) {
	border-color: var(--wp--preset--color--texto);
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	background: var(--wp--preset--color--texto);
}

/* O seletor de quantidade tem desenho próprio do WooCommerce. O estilo geral de campo do tema
 * (altura mínima e respiro) estourava a caixa e jogava o botão + em cima da lixeira. */
.wc-block-components-quantity-selector {
	border-color: var(--wp--preset--color--texto-suave);
	color: var(--wp--preset--color--texto);
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input[type="number"] {
	min-height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: inherit;
}

/* A lixeira do carrinho vem com menos de 24px; a WCAG 2.2 pede pelo menos isso para tocar. */
.wc-block-cart-item__quantity .wc-block-cart-item__remove-link.wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	min-height: 24px;
}

/* Os títulos das etapas seguem os títulos do site (Righteous, caixa alta). O nome do produto
 * no resumo é um h3, mas é texto de interface: vai na Fredoka, sem caixa alta. */
.wc-block-components-product-name,
.wc-block-components-order-summary-item__description .wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--corpo);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}

.wc-block-components-checkout-step__title,
.wc-block-components-title.wc-block-components-title {
	color: var(--wp--preset--color--texto);
}

.wc-block-components-checkout-step__description,
.wc-block-components-checkout-step__heading-content,
.wc-block-checkout__guest-checkout-notice,
.wc-block-components-address-form__address_2-toggle {
	color: var(--wp--preset--color--texto-suave);
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--texto);
}

/* Loja: vantagens com ícone ------------------------------------------------------------- */
/* Cada item leva a classe do ícone (rh-icone--envio, --embalagem, --pagamento, --desconto).
 * O ícone é uma máscara na cor do texto; o texto do item continua editável. */
.rh-icone--envio { --rh-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.rh-icone--embalagem { --rh-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5L12 3l9 4.5v9L12 21l-9-4.5z'/%3E%3Cpath d='M3 7.5l9 4.5 9-4.5M12 12v9'/%3E%3C/svg%3E"); }
.rh-icone--pagamento { --rh-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E"); }
.rh-icone--desconto { --rh-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.5'/%3E%3C/svg%3E"); }

[class*="rh-icone--"]::before {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: var(--rh-icone) center / contain no-repeat;
	mask: var(--rh-icone) center / contain no-repeat;
}

.rh-vantagens {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-vantagens > li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--texto-s);
	line-height: 1.4;
}

/* Na abertura da loja: as quatro vantagens numa faixa só, separadas por fios, com o ícone num
   círculo lima. O título vai em negrito e a explicação, mais suave, embaixo. */
.rh-vantagens:not(.rh-vantagens--compra) {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin-block: var(--wp--preset--spacing--7) 0;
	padding: var(--wp--preset--spacing--2);
	border-radius: var(--wp--custom--raio--l);
	background: var(--wp--preset--color--fundo);
}

/* O ícone fica preso à esquerda, e o título e a explicação empilham ao lado dele. */
.rh-vantagens:not(.rh-vantagens--compra) > li {
	display: block;
	position: relative;
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--4) var(--wp--preset--spacing--4) calc(var(--wp--preset--spacing--4) + 44px + var(--wp--preset--spacing--3));
	color: var(--wp--preset--color--texto-suave);
	line-height: 1.4;
}

.rh-vantagens:not(.rh-vantagens--compra) > li + li {
	border-left: 2px solid var(--wp--preset--color--linha);
}

.rh-vantagens:not(.rh-vantagens--compra) > li strong {
	display: block;
	margin-bottom: 2px;
	color: var(--wp--preset--color--texto);
	font-size: var(--wp--preset--font-size--texto);
	font-weight: 600;
}

/* O título já quebra a linha; a quebra que o editor guarda depois dele não soma outra. */
.rh-vantagens:not(.rh-vantagens--compra) > li > strong + br {
	display: none;
}

.rh-vantagens:not(.rh-vantagens--compra) > li::before {
	position: absolute;
	top: 50%;
	left: var(--wp--preset--spacing--4);
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--custom--cor--lima);
	-webkit-mask: none;
	mask: none;
	background-image: var(--rh-icone);
	background-position: center;
	background-size: 22px;
	background-repeat: no-repeat;
}

/* Tablet: duas por linha; celular: uma embaixo da outra, com fio entre elas. */
@media (max-width: 1023.98px) {

	.rh-vantagens:not(.rh-vantagens--compra) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rh-vantagens:not(.rh-vantagens--compra) > li:nth-child(3) {
		border-left: 0;
	}

	.rh-vantagens:not(.rh-vantagens--compra) > li:nth-child(n + 3) {
		border-top: 2px solid var(--wp--preset--color--linha);
	}
}

@media (max-width: 599.98px) {

	.rh-vantagens:not(.rh-vantagens--compra) {
		grid-template-columns: minmax(0, 1fr);
	}

	.rh-vantagens:not(.rh-vantagens--compra) > li + li {
		border-top: 2px solid var(--wp--preset--color--linha);
		border-left: 0;
	}
}

.rh-nota {
	display: flex;
	gap: 0.625rem;
}

.rh-nota::before {
	width: 20px;
	height: 20px;
}

/* Loja: categorias em pílulas -------------------------------------------------------------- */
.rh-categorias__lista {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-categorias__tudo,
.rh-categorias__lista li {
	margin: 0;
}

.rh-categorias__tudo a,
.rh-categorias__lista li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1.125rem;
	border: 2px solid var(--wp--preset--color--linha);
	border-radius: var(--wp--custom--raio--pilula);
	color: var(--wp--preset--color--texto);
	font-size: var(--wp--preset--font-size--texto-s);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.rh-categorias__tudo a:hover,
.rh-categorias__lista li a:hover {
	border-color: var(--wp--preset--color--texto);
}

/* A categoria aberta, ou "Tudo" na loja, fica cheia. */
.rh-categorias__lista li.current-cat > a,
.woocommerce-shop .rh-categorias__tudo a {
	border-color: var(--wp--preset--color--primaria);
	background: var(--wp--preset--color--primaria);
	color: var(--wp--preset--color--sobre-primaria);
}

.rh-loja-filtros .woocommerce-ordering {
	margin: 0;
}

/* A ordem vira uma pílula da mesma altura das categorias, com a seta da marca. */
.rh-loja-filtros .woocommerce-ordering select {
	min-height: 44px;
	padding: 0 2.75rem 0 1.125rem;
	border: 2px solid var(--wp--preset--color--linha);
	border-radius: var(--wp--custom--raio--pilula);
	background: var(--wp--preset--color--fundo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363635b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat;
	color: var(--wp--preset--color--texto);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--texto-s);
	font-weight: 600;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

html[data-theme="radio"] .rh-loja-filtros .woocommerce-ordering select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9c9be' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.rh-loja-filtros .woocommerce-ordering select:hover {
	border-color: var(--wp--preset--color--texto);
}

.rh-loja-filtros .woocommerce-ordering select:focus-visible {
	outline: 2px solid var(--wp--custom--cor--foco);
	outline-offset: 2px;
}

/* Loja: cartões de produto ------------------------------------------------------------------ */
.rh-produtos .wc-block-product-template {
	gap: var(--wp--preset--spacing--7) var(--wp--preset--spacing--5);
}

.rh-produtos .wc-block-product {
	text-align: start;
}

.is-style-cartao .wc-block-components-product-image {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--raio--m);
	background: var(--wp--preset--color--superficie);
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.is-superficie .is-style-cartao .wc-block-components-product-image,
.is-style-superficie .is-style-cartao .wc-block-components-product-image {
	background: var(--wp--preset--color--fundo);
}

.is-style-cartao .wc-block-components-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
}

.is-style-cartao:hover .wc-block-components-product-image {
	transform: translate(-3px, -3px);
	box-shadow: 6px 6px 0 0 var(--wp--custom--cor--sombra);
}

.is-style-cartao .wc-block-components-product-sale-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	margin: 0;
	padding: 6px 12px;
	font-size: var(--wp--preset--font-size--legenda);
}

.is-style-cartao .wc-block-components-product-price,
.rh-compra__preco {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.5rem;
}

:is(.is-style-cartao, .rh-compra) .wc-block-components-product-price del,
.rh-compra .price del {
	order: 2;
	color: var(--wp--preset--color--texto-suave);
	font-size: 0.75em;
	font-weight: 400;
}

:is(.is-style-cartao, .rh-compra) .wc-block-components-product-price ins,
.rh-compra .price ins {
	background: none;
	text-decoration: none;
}

/* No cartão, o estoque só aparece quando o produto esgotou. */
.is-style-cartao .wc-block-components-product-stock-indicator {
	margin: 0;
	font-size: var(--wp--preset--font-size--texto-s);
	font-weight: 600;
}

.is-style-cartao .wc-block-components-product-stock-indicator--in-stock,
.is-style-cartao .wc-block-components-product-stock-indicator--available-on-backorder {
	display: none;
}

.is-style-cartao .wc-block-components-product-stock-indicator--out-of-stock {
	color: var(--wp--custom--cor--erro);
}

/* Paginação da loja e do blog. */
.wp-block-query-pagination {
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--7);
	font-weight: 600;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	border-radius: var(--wp--custom--raio--pilula);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--primaria);
	color: var(--wp--preset--color--sobre-primaria);
}

/* Produto: trilha, galeria e área de compra ------------------------------------------------- */
.rh-trilha,
.rh-trilha .woocommerce-breadcrumb {
	margin: 0;
	color: var(--wp--preset--color--texto-suave);
	font-size: var(--wp--preset--font-size--texto-s);
}

.rh-trilha a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.rh-produto-topo .woocommerce-product-gallery {
	position: relative;
	margin: 0;
}

.rh-produto-topo .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.rh-produto-topo .woocommerce-product-gallery__image img,
.rh-produto-topo .woocommerce-product-gallery .flex-viewport {
	border-radius: var(--wp--custom--raio--l);
}

.rh-produto-topo .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	background: var(--wp--preset--color--superficie);
}

.rh-produto-topo .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.rh-produto-topo .flex-control-thumbs li {
	width: auto !important;
	margin: 0 !important;
}

.rh-produto-topo .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: var(--wp--custom--raio--m);
	opacity: 1;
	cursor: pointer;
}

.rh-produto-topo .flex-control-thumbs img.flex-active {
	border-color: var(--wp--preset--color--texto);
}

/* A lupa do zoom fica acima da foto, com área de toque de 44px. */
.rh-produto-topo .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--fundo);
}

/* Área de compra em coluna: a ordem visual é selos, nome, preço, resumo, comprar, frete e
   vantagens. O simulador de frete do plugin entra logo depois do preço; aqui ele desce para
   baixo do botão, onde a pessoa procura o prazo antes de fechar. */
.rh-compra {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
}

.rh-compra > * {
	margin-block: 0;
}

.rh-compra > #wc-shipping-sim {
	order: 5;
}

.rh-compra > .rh-vantagens {
	order: 6;
}

/* Nomes de produto são longos: o título usa o Título P (no template), para caber em até 3 linhas. */
.rh-compra .wp-block-post-title {
	margin: 0;
	line-height: 1.1;
}

.rh-compra .wp-block-post-excerpt {
	color: var(--wp--preset--color--texto-suave);
}

/* Simulador de frete (plugin de frete): caixa clara com o campo e o botão em pílula. */
#wc-shipping-sim {
	padding: var(--wp--preset--spacing--4);
	border-radius: var(--wp--custom--raio--m);
	background: var(--wp--preset--color--superficie);
	font-size: var(--wp--preset--font-size--texto-s);
}

#wc-shipping-sim-form-title {
	margin-bottom: var(--wp--preset--spacing--2);
	color: var(--wp--preset--color--texto);
}

#wc-shipping-sim-form-fields {
	display: flex;
	gap: var(--wp--preset--spacing--2);
}

/* Dois ids: o CSS do plugin usa um id e duas classes. */
#wc-shipping-sim #wc-shipping-sim-form-fields .input-postcode {
	flex: 1 1 auto;
	width: auto;
	max-width: none;
	height: 44px;
	min-width: 0;
	margin: 0;
	padding: 0 1.125rem;
	border: 2px solid var(--wp--preset--color--texto-suave);
	border-radius: var(--wp--custom--raio--pilula);
	background: var(--wp--preset--color--fundo);
	color: var(--wp--preset--color--texto);
	font: inherit;
	font-size: 1.0625rem;
}

#wc-shipping-sim #wc-shipping-sim-form-fields .input-postcode:focus-visible {
	border-color: var(--wp--preset--color--texto);
	outline: 2px solid var(--wp--custom--cor--foco);
	outline-offset: 2px;
}

#wc-shipping-sim #wc-shipping-sim-form-fields .button.submit {
	flex: none;
	height: 44px;
	padding: 0 1.25rem;
	border: 2px solid var(--wp--preset--color--primaria);
	border-radius: var(--wp--custom--raio--pilula);
	background: var(--wp--preset--color--primaria);
	color: var(--wp--preset--color--sobre-primaria);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

#wc-shipping-sim #wc-shipping-sim-form-fields .button.submit:focus-visible {
	outline: 2px solid var(--wp--custom--cor--foco);
	outline-offset: 2px;
}

#wc-shipping-sim-br-cep-finder {
	margin-top: var(--wp--preset--spacing--2);
}

#wc-shipping-sim-br-cep-finder a {
	color: var(--wp--preset--color--texto-suave);
	text-underline-offset: 3px;
}

#wc-shipping-sim-results:not(:empty) {
	margin-top: var(--wp--preset--spacing--3);
}

.rh-compra .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.rh-compra .wc-block-components-product-price,
.rh-compra__preco {
	font-weight: 700;
	line-height: 1;
}

/* Botão de comprar: quantidade e botão na mesma linha. */
.rh-compra form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
	margin: 0;
}

.rh-compra form.cart .quantity input.qty {
	width: 5.5rem;
	height: 100%;
	min-height: 52px;
	border: 2px solid var(--wp--preset--color--texto-suave);
	border-radius: var(--wp--custom--raio--pilula);
	background: var(--wp--preset--color--fundo);
	color: var(--wp--preset--color--texto);
	font-size: 1.0625rem;
	font-weight: 600;
	text-align: center;
}

.rh-compra form.cart .single_add_to_cart_button {
	flex: 1 1 14rem;
	min-height: 52px;
}

.rh-compra form.variations_form {
	display: grid;
}

.rh-compra .variations {
	width: 100%;
	border: 0;
}

.rh-compra .variations th,
.rh-compra .variations td {
	display: block;
	padding: 0 0 0.5rem;
	border: 0;
	text-align: start;
}

.rh-compra .stock {
	margin: 0;
	font-weight: 600;
}

.rh-compra .stock.out-of-stock {
	color: var(--wp--custom--cor--erro);
}

.rh-vantagens--compra {
	padding-top: var(--wp--preset--spacing--4);
	border-top: 2px solid var(--wp--preset--color--linha);
}

/* Mini carrinho do cabeçalho: fechado, a gaveta só sai da tela pela animação e continuava
 * alcançável pelo Tab. Depois de fechar (0,3s), ela some de verdade. */
.wc-block-components-drawer__screen-overlay--is-hidden {
	visibility: hidden;
	transition-property: opacity, visibility;
	transition-duration: 0.3s, 0s;
	transition-delay: 0s, 0.3s;
}

/* Minha conta: o olho de mostrar a senha com área de toque de 24px. */
.woocommerce .password-input .show-password-input {
	min-width: 24px;
	min-height: 24px;
}

/* Pedido recebido ----------------------------------------------------------------------- */
.rh-pedido-status,
.rh-pedido-status .wc-block-order-confirmation-status {
	margin: 0;
}

.rh-pedido-status h1 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--display-l);
}

.rh-pedido-status p {
	margin: 0;
	font-size: var(--wp--preset--font-size--texto-l);
}

.rh-pedido-resumo .wc-block-order-confirmation-summary-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-pedido-resumo .wc-block-order-confirmation-summary-list-item {
	display: grid;
	gap: 2px;
	margin: 0;
}

.rh-pedido-resumo .wc-block-order-confirmation-summary-list-item__key {
	font-size: var(--wp--preset--font-size--legenda);
	font-weight: 500;
}

.rh-pedido-totais .wc-block-order-confirmation-totals-wrapper {
	display: grid;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--6);
	border-radius: var(--wp--custom--raio--l);
	background: var(--wp--preset--color--superficie);
}

.rh-pedido-totais table {
	width: 100%;
	border-collapse: collapse;
}

.rh-pedido-totais th,
.rh-pedido-totais td {
	padding: 0.625rem 0;
	border: 0;
	border-bottom: 2px solid var(--wp--preset--color--linha);
	text-align: start;
}

.rh-pedido-totais td:last-child,
.rh-pedido-totais th:last-child {
	text-align: end;
}

.rh-pedido-totais tfoot tr:last-child :is(th, td) {
	border-bottom: 0;
	font-size: var(--wp--preset--font-size--texto-l);
	font-weight: 700;
}

/* As etapas do pedido: bolinha, linha entre elas e a etapa feita em lima com o check. */
.rh-etapas {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-etapas > li {
	position: relative;
	margin: 0;
	padding: 0 0 1.125rem 2.75rem;
	color: var(--wp--preset--color--texto-suave);
	font-size: var(--wp--preset--font-size--texto-s);
	line-height: 1.4;
}

.rh-etapas > li strong {
	color: var(--wp--preset--color--texto);
	font-size: var(--wp--preset--font-size--texto);
}

.rh-etapas > li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	border: 2px solid var(--wp--preset--color--texto-suave);
	border-radius: 50%;
	background: var(--wp--preset--color--fundo);
}

.rh-etapas > li::after {
	content: "";
	position: absolute;
	top: 30px;
	bottom: 0;
	left: 13px;
	width: 2px;
	background: var(--wp--preset--color--linha);
}

.rh-etapas > li:last-child {
	padding-bottom: 0;
}

.rh-etapas > li:last-child::after {
	display: none;
}

.rh-etapas > li.is-feita::before {
	border-color: var(--wp--custom--cor--cinza-radio);
	background: var(--wp--custom--cor--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%233d3d3d' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Minha conta (tela clássica do WooCommerce) ----------------------------------------------- */
@media (min-width: 782px) {

	.woocommerce-account .wp-block-post-content > .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
		gap: var(--wp--preset--spacing--8);
		align-items: start;
	}

	.woocommerce-account .wp-block-post-content > .woocommerce > :not(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
		grid-column: 1 / -1;
	}
}

.woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0.625rem 1rem;
	border-radius: var(--wp--custom--raio--m);
	color: var(--wp--preset--color--texto);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation a:hover {
	background: var(--wp--preset--color--superficie);
}

.woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--superficie);
	box-shadow: inset 4px 0 0 var(--wp--preset--color--texto);
}

.woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

/* Sem movimento para quem pediu --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

	.wp-element-button,
	.wp-block-button__link,
	.is-style-cartao .wp-block-post-featured-image,
	.is-style-cartao .wp-block-image,
	.is-style-cartao .wc-block-components-product-image,
	[class*="is-style-painel"],
	.rh-tema__botao,
	.rh-tema svg {
		transition: none;
	}

	.wp-element-button:hover,
	.wp-block-button__link:hover,
	.is-style-cartao:hover .wp-block-post-featured-image,
	.is-style-cartao:hover .wp-block-image,
	.is-style-cartao:hover .wc-block-components-product-image,
	[class*="is-style-painel"]:hover {
		transform: none;
	}

	.is-style-faixa-rolante.is-rolando .wp-block-list,
	.rh-estado__avatar img,
	.rh-aovivo::before,
	.rh-radio__selo::before,
	.rh-radio.is-retomar .rh-radio__play {
		animation: none;
	}
}
