/* WP Catálogo Zap — página da oferta */

body.czap-mode-limpa {
	margin: 0;
	background: #f5f6f7;
}

.czap-oferta {
	--czap-primary: #00a63e;
	--czap-primary-dark: #008a33;
	--czap-ink: #16181c;
	--czap-muted: #6b7280;
	--czap-line: #e6e8eb;
	--czap-radius: 14px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 16px 80px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--czap-ink);
	display: grid;
	gap: 16px;
}

.czap-oferta * {
	box-sizing: inherit;
}

body.czap-mode-tema .czap-oferta {
	padding-top: 32px;
}

.czap-oferta__voltar {
	color: var(--czap-primary);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	justify-self: start;
}

.czap-oferta__logo {
	text-align: center;
}

.czap-oferta__logo img {
	max-width: 180px;
	height: auto;
}

/* ------------------------------------------------------------- Stepper */

.czap-stepper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.czap-stepper__item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--czap-muted);
	white-space: nowrap;
}

.czap-stepper__item:not(:last-child)::after {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--czap-line);
	margin-left: 8px;
}

.czap-stepper__dot {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--czap-line);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.czap-stepper__item.is-done .czap-stepper__dot,
.czap-stepper__item.is-active .czap-stepper__dot {
	background: var(--czap-primary);
}

.czap-stepper__item.is-active {
	color: var(--czap-ink);
	font-weight: 600;
}

/* ----------------------------------------------------------- Estrutura */

.czap-oferta__panel {
	display: grid;
	gap: 16px;
}

@media (min-width: 900px) {
	.czap-oferta__panel#czap-panel-form {
		grid-template-columns: 1.15fr 1fr;
		align-items: start;
	}

	.czap-produto {
		grid-row: span 2;
		position: sticky;
		top: 20px;
	}
}

.czap-box {
	background: #fff;
	border: 1px solid var(--czap-line);
	border-radius: var(--czap-radius);
	padding: 20px;
}

.czap-box__title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
}

.czap-box__title + .czap-box__title,
.czap-fields + .czap-box__title {
	margin-top: 24px;
}

/* ------------------------------------------------------------- Produto */

.czap-produto__media {
	aspect-ratio: 4 / 3;
	background: #f5f6f7;
	border-radius: 10px;
	overflow: hidden;
	display: grid;
	place-items: center;
}

.czap-produto__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.czap-produto__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin-top: 10px;
	padding-bottom: 4px;
}

.czap-thumb {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 2px solid var(--czap-line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
}

.czap-thumb.is-active {
	border-color: var(--czap-primary);
}

.czap-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.czap-produto__title {
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	margin: 16px 0 10px;
}

.czap-produto__prices {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.czap-produto__from {
	font-size: 13px;
	color: var(--czap-muted);
	text-decoration: line-through;
}

.czap-produto__price {
	display: block;
	width: 100%;
	font-size: 30px;
	font-weight: 800;
	color: var(--czap-primary);
	line-height: 1.1;
}

.czap-produto__limite,
.czap-produto__curta {
	font-size: 12.5px;
	color: var(--czap-muted);
	margin: 10px 0 0;
}

.czap-produto__desc {
	margin-top: 16px;
	border-top: 1px solid var(--czap-line);
	padding-top: 12px;
}

.czap-produto__desc summary {
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.czap-produto__desc-body {
	font-size: 14px;
	line-height: 1.6;
	margin-top: 10px;
}

/* -------------------------------------------------------------- Resumo */

.czap-resumo__linha,
.czap-resumo__total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--czap-line);
}

.czap-resumo__linha--cupom {
	color: var(--czap-primary);
}

.czap-resumo__total {
	border-bottom: 0;
	background: rgba(0, 166, 62, 0.08);
	border-radius: 10px;
	padding: 12px 14px;
	margin-top: 8px;
	font-weight: 700;
}

.czap-resumo__total strong {
	font-size: 17px;
}

.czap-resumo__nota,
.czap-resumo__prazo {
	font-size: 12.5px;
	color: var(--czap-muted);
	margin: 12px 0 0;
}

.czap-aviso {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff8e6;
	border: 1px solid #f4dfa8;
	font-size: 13px;
	line-height: 1.55;
}

.czap-aviso strong {
	display: block;
	margin-bottom: 4px;
}

.czap-aviso p {
	margin: 0;
}

.czap-disponibilidade {
	margin: 14px 0 0;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 12px;
	border-radius: 10px;
	line-height: 1.5;
}

.czap-disponibilidade.is-livre {
	background: rgba(0, 166, 62, 0.1);
	color: var(--czap-primary-dark);
}

.czap-disponibilidade.is-fila {
	background: #eef2ff;
	color: #3730a3;
	font-weight: 500;
}

/* ------------------------------------------------------------ Entrega */

.czap-entrega {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.czap-entrega__opt {
	display: grid;
	gap: 6px;
	justify-items: center;
	padding: 16px 10px;
	border: 2px solid var(--czap-line);
	border-radius: 12px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--czap-ink);
	cursor: pointer;
}

.czap-entrega__opt.is-active {
	border-color: var(--czap-primary);
	background: rgba(0, 166, 62, 0.06);
}

.czap-entrega__ico {
	font-size: 20px;
}

.czap-endereco-loja {
	margin-top: 14px;
	padding: 14px;
	border: 1px solid var(--czap-primary);
	border-radius: 12px;
	background: rgba(0, 166, 62, 0.05);
	font-size: 13px;
}

.czap-endereco-loja p {
	margin: 6px 0;
	color: var(--czap-muted);
}

.czap-endereco-loja a {
	color: var(--czap-primary);
	font-weight: 600;
}

/* ------------------------------------------------------------- Campos */

.czap-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.czap-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.czap-field--sm {
	grid-column: span 1;
}

.czap-field--xs {
	max-width: 90px;
}

.czap-field label {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--czap-muted);
}

.czap-field input {
	width: 100%;
	border: 1px solid var(--czap-line);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 15px;
	background: #fff;
	color: var(--czap-ink);
}

.czap-field input:focus {
	outline: 0;
	border-color: var(--czap-primary);
	box-shadow: 0 0 0 3px rgba(0, 166, 62, 0.15);
}

.czap-field.has-error input {
	border-color: #dc2626;
}

.czap-field__hint {
	font-size: 11.5px;
	color: var(--czap-muted);
}

.czap-field.has-error .czap-field__hint {
	color: #dc2626;
}

/* -------------------------------------------------------------- Cupom */

.czap-cupom {
	margin-top: 16px;
	border: 1px solid var(--czap-line);
	border-radius: 12px;
	padding: 12px 14px;
	background: #fafbfb;
}

.czap-cupom summary {
	cursor: pointer;
	font-size: 13px;
	display: grid;
}

.czap-cupom summary span {
	color: var(--czap-muted);
	font-size: 12px;
}

.czap-cupom__row {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.czap-cupom__row input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--czap-line);
	border-radius: 10px;
	padding: 11px 12px;
	font-size: 14px;
	text-transform: uppercase;
}

/* ------------------------------------------------------- Consentimento */

.czap-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 16px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--czap-muted);
}

.czap-consent input {
	margin-top: 2px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: var(--czap-primary);
}

.czap-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------ Botões */

.czap-btn {
	display: block;
	width: 100%;
	text-align: center;
	border: 0;
	border-radius: 12px;
	padding: 15px 20px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.czap-btn--primary {
	background: var(--czap-primary);
	color: #fff;
}

.czap-btn--primary:hover,
.czap-btn--primary:focus {
	background: var(--czap-primary-dark);
	color: #fff;
}

.czap-btn--ghost {
	background: #fff;
	color: var(--czap-ink);
	border: 1px solid var(--czap-line);
	font-weight: 600;
}

.czap-btn[disabled],
.czap-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.czap-submit {
	margin-top: 18px;
}

.czap-form-box__nota {
	font-size: 12px;
	color: var(--czap-muted);
	text-align: center;
	margin: 10px 0 0;
}

.czap-erro {
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 13px;
	line-height: 1.5;
}

/* -------------------------------------------------------- Confirmação */

.czap-ok {
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
	display: grid;
	gap: 12px;
}

.czap-ok__icone {
	width: 56px;
	height: 56px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--czap-primary);
	color: #fff;
	font-size: 28px;
	display: grid;
	place-items: center;
}

.czap-ok__icone.is-fila {
	background: #4f46e5;
}

.czap-ok__title {
	font-size: 20px;
	margin: 0;
}

.czap-ok__codigo {
	font-size: 13px;
	color: var(--czap-muted);
	margin: 0;
}

.czap-contador {
	background: #fff8e6;
	border: 1px solid #f4dfa8;
	border-radius: 12px;
	padding: 14px;
	display: grid;
	gap: 4px;
}

.czap-contador__label {
	font-size: 12px;
	color: #8a6d1f;
}

.czap-contador__tempo {
	font-size: 34px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.czap-contador.is-urgente {
	background: #fef2f2;
	border-color: #fecaca;
}

.czap-contador.is-urgente .czap-contador__tempo {
	color: #b91c1c;
}

.czap-fila-info {
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	border-radius: 12px;
	padding: 14px;
	font-size: 13px;
	line-height: 1.55;
	text-align: left;
	color: #3730a3;
}

.czap-fila-info p {
	margin: 6px 0 0;
}

.czap-ok__msg {
	font-size: 13.5px;
	color: var(--czap-muted);
	line-height: 1.6;
	margin: 0;
}

.czap-ok__link {
	font-size: 11.5px;
	color: var(--czap-muted);
	word-break: break-all;
	margin: 4px 0 0;
}

.czap-encerrada {
	text-align: center;
	display: grid;
	gap: 12px;
}

.czap-oferta__footer {
	text-align: center;
	font-size: 11.5px;
	color: var(--czap-muted);
}

.czap-oferta :focus-visible {
	outline: 2px solid var(--czap-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.czap-oferta * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ---------------------------------------------------------------------------
 * O atributo hidden precisa vencer.
 *
 * A regra do navegador é [hidden]{display:none}, com especificidade de
 * atributo — qualquer `display: grid/flex/block` numa classe a sobrepõe. Sem
 * isto, todo elemento escondido por hidden e estilizado por classe aparece na
 * tela: painel de confirmação, campos condicionais, skeletons e paginação.
 * ------------------------------------------------------------------------- */
.czap-oferta [hidden],
.czap-oferta[hidden] {
	display: none !important;
}
