/**
 * Fluxo de Orçamento — front-end.
 *
 * Estética de ticket alto: muito espaço em branco, tipografia serifada nos
 * títulos, traços finos e movimentos curtos. As cores vêm de variáveis
 * definidas em WooCommerce → Orçamento e podem ser sobrescritas por widget.
 */

:root {
	--wcqf-accent: #202020;
	--wcqf-gold: #985630;
	--wcqf-surface: #ffffff;
	--wcqf-text: #202020;
	--wcqf-muted: #6f6f6f;
	--wcqf-line: rgba(32, 32, 32, 0.12);
	--wcqf-radius: 4px;
	--wcqf-shadow: 0 24px 60px -24px rgba(32, 32, 32, 0.28);
	--wcqf-shadow-soft: 0 8px 30px -12px rgba(32, 32, 32, 0.18);
	--wcqf-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--wcqf-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;

	/* Pares de cor sempre declarados juntos: nenhum estado de hover pode
	   herdar metade do par do tema e virar texto ilegível sobre o fundo. */
	--wcqf-on-accent: #ffffff;
	--wcqf-danger: #985630;
	--wcqf-on-danger: #ffffff;
	--wcqf-hover-surface: rgba(32, 32, 32, 0.06);
}

.wcqf-bag *,
.wcqf-atc *,
.wcqf-quote *,
.wcqf-summary *,
.wcqf-modal * {
	box-sizing: border-box;
}

/* Ícones traçados seguem a cor do texto do elemento pai. O seletor [stroke]
   evita atingir os ícones sólidos (WhatsApp), que usam fill. */
.wcqf-icon[stroke] {
	stroke: currentColor;
}

.wcqf-icon {
	flex: none;
	vertical-align: middle;
}

/* Sem a variável definida no painel, a tipografia do tema é mantida. */
.wcqf-bag,
.wcqf-atc,
.wcqf-quote,
.wcqf-summary,
.wcqf-modal__dialog {
	font-family: var(--wcqf-sans, inherit);
}

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

.wcqf-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	padding: 0.95em 1.9em;
	border: 1px solid transparent;
	border-radius: var(--wcqf-radius);
	background: var(--wcqf-accent);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.35s var(--wcqf-ease), color 0.35s var(--wcqf-ease),
		border-color 0.35s var(--wcqf-ease), transform 0.35s var(--wcqf-ease),
		box-shadow 0.35s var(--wcqf-ease);
}

.wcqf-btn:hover,
.wcqf-btn:focus-visible {
	transform: translateY(-1px);
	box-shadow: var(--wcqf-shadow-soft);
	color: #fff;
}

.wcqf-btn:active {
	transform: translateY(0);
}

.wcqf-btn .wcqf-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

.wcqf-btn--outline {
	background: transparent;
	border-color: var(--wcqf-accent);
	color: var(--wcqf-accent);
}

.wcqf-btn--outline:hover,
.wcqf-btn--outline:focus-visible {
	background: var(--wcqf-accent);
	color: #fff;
}

.wcqf-btn--muted {
	background: #9ca3af;
	color: #fff;
}

.wcqf-btn--muted:hover {
	background: #6b7280;
}

.wcqf-btn--soft {
	background: transparent;
	border-color: var(--wcqf-line);
	color: var(--wcqf-muted);
	font-size: 0.7rem;
	padding: 0.8em 1.6em;
}

.wcqf-btn--soft:hover {
	border-color: var(--wcqf-accent);
	color: var(--wcqf-accent);
}

.wcqf-btn--ghost {
	background: transparent;
	border-color: var(--wcqf-line);
	color: var(--wcqf-text);
}

.wcqf-btn--whats {
	background: #111b21;
	color: #fff;
}

.wcqf-btn--whats:hover {
	background: #25d366;
	color: #08170f;
}

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

.wcqf-btn__spinner {
	display: none;
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: wcqf-spin 0.7s linear infinite;
}

.wcqf-btn.is-loading .wcqf-btn__spinner {
	display: inline-block;
}

@keyframes wcqf-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------------------------------------------------------------------------
 * Sacola + popup
 * ------------------------------------------------------------------------ */

.wcqf-bag {
	position: relative;
	display: flex;
	align-items: center;
	line-height: 1;
}

.wcqf-bag__trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.35em;
	color: var(--wcqf-text);
	text-decoration: none;
	transition: color 0.3s var(--wcqf-ease), transform 0.3s var(--wcqf-ease);
}

.wcqf-bag__trigger:hover,
.wcqf-bag__trigger:focus-visible {
	color: var(--wcqf-gold);
}

.wcqf-bag__icon {
	display: inline-flex;
}

.wcqf-bag__icon .wcqf-icon {
	width: 26px;
	height: 26px;
	display: block;
	transition: transform 0.4s var(--wcqf-ease);
}

.wcqf-bag:hover .wcqf-bag__icon .wcqf-icon {
	transform: translateY(-2px);
}

.wcqf-bag__count {
	position: absolute;
	top: -4px;
	right: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--wcqf-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	transition: transform 0.35s var(--wcqf-ease), background-color 0.3s var(--wcqf-ease);
}

.wcqf-bag__count.wcqf-pulse {
	animation: wcqf-pop 0.45s var(--wcqf-ease);
}

@keyframes wcqf-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.35); }
	100% { transform: scale(1); }
}

.wcqf-bag__label {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.wcqf-bag--align-left { justify-content: flex-start; }
.wcqf-bag--align-center { justify-content: center; }
.wcqf-bag--align-right { justify-content: flex-end; }

/* Popup */

/*
 * O popup nasce absoluto (funciona sem JavaScript) e, assim que o JS mede o
 * espaço disponível, passa a position:fixed com left/top calculados. Isso o
 * impede de vazar da viewport quando a sacola fica no canto direito e de ser
 * cortado por cabeçalhos com overflow:hidden.
 *
 * --wcqf-popup-anchor  right | left | center  (lido pelo JS, responsivo)
 * --wcqf-popup-offset  distância vertical até o gatilho, em px
 */
.wcqf-bag__popup {
	--wcqf-popup-anchor: right;
	--wcqf-popup-offset: 14px;

	position: absolute;
	top: calc(100% + var(--wcqf-popup-offset));
	right: 0;
	z-index: 9998;
	width: 340px;
	max-width: calc(100vw - 24px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.32s var(--wcqf-ease), transform 0.32s var(--wcqf-ease),
		visibility 0.32s;
	pointer-events: none;
}

.wcqf-bag__popup.is-positioned {
	position: fixed;
	right: auto;
	bottom: auto;
}

.wcqf-bag:hover .wcqf-bag__popup,
.wcqf-bag:focus-within .wcqf-bag__popup,
.wcqf-bag.is-open .wcqf-bag__popup {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* Ponte invisível para o mouse não perder o hover no caminho. */
.wcqf-bag__popup::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--wcqf-popup-offset);
	transform: translateY(-100%);
}

.wcqf-bag__popup-inner {
	display: flex;
	flex-direction: column;
	max-height: var(--wcqf-popup-max, none);
	padding: 22px;
	background: var(--wcqf-surface);
	border: 1px solid var(--wcqf-line);
	border-radius: var(--wcqf-radius);
	box-shadow: var(--wcqf-shadow);
	color: var(--wcqf-text);
	overflow: hidden;
}

.wcqf-bag__popup-title {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wcqf-line);
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wcqf-muted);
}

.wcqf-bag__popup-body {
	flex: 1 1 auto;
	min-height: 0;
	max-height: 320px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.wcqf-bag__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wcqf-bag__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wcqf-line);
	animation: wcqf-fade-in 0.4s var(--wcqf-ease) both;
}

.wcqf-bag__item:last-child {
	border-bottom: 0;
}

@keyframes wcqf-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.wcqf-bag__item-thumb img {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: calc(var(--wcqf-radius) / 1.5);
}

.wcqf-bag__item-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.wcqf-bag__item-name {
	font-size: 0.9rem;
	line-height: 1.35;
}

.wcqf-bag__item-details,
.wcqf-bag__item-qty {
	font-size: 0.75rem;
	color: var(--wcqf-muted);
}

.wcqf-bag__item-remove {
	flex: none;
	display: inline-flex;
	padding: 5px;
	border: 0;
	border-radius: 50%;
	background-color: transparent;
	color: var(--wcqf-muted);
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.25s var(--wcqf-ease), color 0.25s var(--wcqf-ease),
		background-color 0.25s var(--wcqf-ease);
}

.wcqf-bag__item-remove:hover,
.wcqf-bag__item-remove:focus-visible {
	opacity: 1;
	background-color: var(--wcqf-danger);
	color: var(--wcqf-on-danger);
}

.wcqf-bag__item-remove .wcqf-icon {
	width: 14px;
	height: 14px;
}

.wcqf-bag__empty {
	margin: 0;
	padding: 18px 0;
	text-align: center;
	font-size: 0.85rem;
	color: var(--wcqf-muted);
}

.wcqf-bag__popup-cta {
	width: 100%;
	margin-top: 16px;
}

/* ---------------------------------------------------------------------------
 * Quantidade
 * ------------------------------------------------------------------------ */

.wcqf-qty {
	display: inline-flex;
	align-items: center;
	height: 48px;
	border: 1px solid var(--wcqf-line);
	border-radius: var(--wcqf-radius);
	background: var(--wcqf-surface);
	color: var(--wcqf-text);
	overflow: hidden;
}

.wcqf-qty--sm {
	height: 38px;
}

/*
 * Cor declarada explicitamente (não `inherit`) porque temas costumam definir
 * `button { color: #fff }` com seletores mais específicos, o que deixava as
 * setas brancas sobre o fundo branco do seletor.
 */
.wcqf-qty .wcqf-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: var(--wcqf-text);
	cursor: pointer;
	opacity: 0.65;
	transition: opacity 0.25s var(--wcqf-ease), background-color 0.25s var(--wcqf-ease),
		color 0.25s var(--wcqf-ease);
}

.wcqf-qty .wcqf-qty__btn:hover,
.wcqf-qty .wcqf-qty__btn:focus-visible {
	opacity: 1;
	background-color: var(--wcqf-hover-surface);
	color: var(--wcqf-text);
}

.wcqf-qty .wcqf-qty__btn .wcqf-icon {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	stroke-width: 1.8;
}

.wcqf-qty .wcqf-qty__input {
	width: 46px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: var(--wcqf-text);
	font-size: 0.95rem;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.wcqf-qty__input:focus {
	outline: none;
	box-shadow: none;
}

.wcqf-qty__input::-webkit-outer-spin-button,
.wcqf-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

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

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

.wcqf-field__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.wcqf-field__label {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wcqf-muted);
}

.wcqf-field__required {
	color: var(--wcqf-gold);
}

/* Aviso discreto de obrigatoriedade, alinhado à direita do rótulo. */
.wcqf-field__hint {
	font-size: 0.64rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wcqf-gold);
	opacity: 0.85;
}

.wcqf-field__hint--soft {
	color: var(--wcqf-muted);
	opacity: 0.7;
}

.wcqf-field__help {
	font-size: 0.76rem;
	line-height: 1.55;
	color: var(--wcqf-muted);
	opacity: 0.85;
}

.wcqf-field__control--area {
	min-height: 120px;
	resize: vertical;
	line-height: 1.6;
}

.wcqf-field__control {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--wcqf-line);
	border-radius: var(--wcqf-radius);
	background: var(--wcqf-surface);
	color: var(--wcqf-text);
	font-size: 0.95rem;
	line-height: 1.4;
	transition: border-color 0.3s var(--wcqf-ease), box-shadow 0.3s var(--wcqf-ease);
}

.wcqf-field__control::placeholder {
	color: color-mix(in srgb, var(--wcqf-muted) 70%, transparent);
}

.wcqf-field__control:focus {
	outline: none;
	border-color: var(--wcqf-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcqf-accent) 12%, transparent);
}

.wcqf-field__control.has-error {
	border-color: #b91c1c;
}

.wcqf-field__error {
	display: none;
	font-size: 0.78rem;
	color: #b91c1c;
}

.wcqf-field__error.is-visible {
	display: block;
}

.wcqf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.wcqf-field--wide {
	grid-column: 1 / -1;
}

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

/* ---------------------------------------------------------------------------
 * Adicionar ao orçamento
 * ------------------------------------------------------------------------ */

.wcqf-atc {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 22px 0;
}

.wcqf-atc__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wcqf-atc__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.wcqf-atc--stacked .wcqf-atc__actions {
	flex-direction: column;
	align-items: stretch;
}

.wcqf-atc--full .wcqf-atc__submit,
.wcqf-atc--stacked .wcqf-atc__submit {
	flex: 1;
	width: 100%;
}

.wcqf-atc__submit {
	min-height: 48px;
}

.wcqf-atc__error {
	margin: 0;
	font-size: 0.85rem;
	color: #b91c1c;
}

.wcqf-placeholder {
	padding: 16px 18px;
	border: 1px dashed var(--wcqf-line);
	border-radius: var(--wcqf-radius);
	color: var(--wcqf-muted);
	font-size: 0.85rem;
}

/* ---------------------------------------------------------------------------
 * Etapas
 * ------------------------------------------------------------------------ */

.wcqf-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
	counter-reset: wcqf-step;
}

.wcqf-steps__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 26px;
	color: var(--wcqf-muted);
}

.wcqf-steps__item + .wcqf-steps__item::before {
	content: "";
	position: absolute;
	left: -26px;
	top: 50%;
	width: 52px;
	height: 1px;
	background: var(--wcqf-line);
}

.wcqf-steps__dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 1px solid currentColor;
	border-radius: 50%;
	transition: box-shadow 0.35s var(--wcqf-ease);
}

.wcqf-steps__item.is-active {
	color: var(--wcqf-accent);
}

.wcqf-steps__item.is-active .wcqf-steps__dot {
	box-shadow: inset 0 0 0 3px var(--wcqf-accent);
}

.wcqf-steps__label {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
}

/* ---------------------------------------------------------------------------
 * Carrinho + formulário
 * ------------------------------------------------------------------------ */

.wcqf-quote {
	color: var(--wcqf-text);
}

.wcqf-quote__intro {
	margin: 0 0 28px;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--wcqf-muted);
}

.wcqf-quote__cart-inner {
	padding: 8px 28px;
	border: 1px solid var(--wcqf-line);
	border-radius: var(--wcqf-radius);
	background: var(--wcqf-surface);
}

.wcqf-cart-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.wcqf-cart-table th {
	padding: 18px 12px;
	border-bottom: 1px solid var(--wcqf-line);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wcqf-muted);
	text-align: left;
}

.wcqf-cart-table td {
	padding: 20px 12px;
	border-bottom: 1px solid var(--wcqf-line);
	vertical-align: middle;
}

.wcqf-cart-table tbody tr:last-child td {
	border-bottom: 0;
}

.wcqf-cart-table__row {
	transition: opacity 0.3s var(--wcqf-ease), transform 0.3s var(--wcqf-ease);
}

.wcqf-cart-table__row.is-removing {
	opacity: 0;
	transform: translateX(-12px);
}

.wcqf-cart-table__col-remove,
.wcqf-cart-table__col-thumb {
	width: 1%;
	white-space: nowrap;
}

.wcqf-cart-table__col-qty {
	width: 150px;
	text-align: center;
}

.wcqf-cart-table__col-name {
	text-align: center;
}

.wcqf-cart-table__col-thumb img {
	display: block;
	width: 64px;
	height: auto;
	border-radius: calc(var(--wcqf-radius) / 1.5);
}

.wcqf-cart-table__name {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s var(--wcqf-ease);
}

.wcqf-cart-table__name:hover {
	color: var(--wcqf-gold);
}

.wcqf-cart-table__details {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.78rem;
	color: var(--wcqf-muted);
}

.wcqf-cart-table__details span {
	letter-spacing: 0.04em;
}

.wcqf-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid var(--wcqf-line);
	border-radius: 50%;
	background-color: transparent;
	color: var(--wcqf-muted);
	cursor: pointer;
	transition: color 0.25s var(--wcqf-ease), border-color 0.25s var(--wcqf-ease),
		background-color 0.25s var(--wcqf-ease), transform 0.25s var(--wcqf-ease);
}

/* Fundo e ícone mudam sempre juntos: o X fica branco sobre o terracota,
   nunca terracota sobre terracota. */
.wcqf-remove:hover,
.wcqf-remove:focus-visible {
	background-color: var(--wcqf-danger);
	border-color: var(--wcqf-danger);
	color: var(--wcqf-on-danger);
	transform: rotate(90deg);
}

.wcqf-remove:hover .wcqf-icon,
.wcqf-remove:focus-visible .wcqf-icon,
.wcqf-bag__item-remove:hover .wcqf-icon,
.wcqf-bag__item-remove:focus-visible .wcqf-icon {
	stroke: currentColor;
	stroke-width: 2;
}

.wcqf-remove .wcqf-icon {
	width: 12px;
	height: 12px;
}

.wcqf-quote__cart-actions {
	display: flex;
	justify-content: flex-start;
	margin: 18px 0 0;
}

.wcqf-cart__empty {
	padding: 48px 20px;
	text-align: center;
	color: var(--wcqf-muted);
}

.wcqf-cart__empty p {
	margin: 0 0 18px;
}

/* Painel: formulário + cartão de resumo lado a lado. */

.wcqf-quote__panel {
	--wcqf-summary-width: 340px;

	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--wcqf-summary-width);
	align-items: start;
	gap: 34px;
	margin-top: 56px;
}

.wcqf-quote:not(.wcqf-quote--with-summary) .wcqf-quote__panel {
	grid-template-columns: minmax(0, 1fr);
}

.wcqf-quote__form-wrap {
	position: relative;
	padding: 46px 44px 40px;
	background: var(--wcqf-surface);
	border: 1px solid var(--wcqf-line);
	border-radius: calc(var(--wcqf-radius) + 4px);
	box-shadow: var(--wcqf-shadow-soft);
}

/* Fio dourado no topo — a assinatura visual do bloco. */
.wcqf-quote__form-wrap::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 2px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--wcqf-gold) 22%,
		var(--wcqf-gold) 78%,
		transparent
	);
	border-radius: calc(var(--wcqf-radius) + 4px) calc(var(--wcqf-radius) + 4px) 0 0;
}

.wcqf-quote__header {
	margin-bottom: 34px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--wcqf-line);
}

.wcqf-quote__eyebrow {
	display: block;
	margin-bottom: 10px;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wcqf-gold);
}

.wcqf-quote__title {
	margin: 0;
	font-family: var(--wcqf-serif);
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wcqf-text);
}

.wcqf-quote__lead {
	margin: 16px 0 0;
	max-width: 56ch;
	font-size: 0.92rem;
	line-height: 1.75;
	color: var(--wcqf-muted);
}

.wcqf-quote__actions {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--wcqf-line);
}

.wcqf-quote__privacy {
	margin: 14px 0 0;
	font-size: 0.76rem;
	line-height: 1.6;
	color: var(--wcqf-muted);
}

/* Cartão de resumo das peças. */

.wcqf-summary {
	position: relative;
	padding: 34px 30px;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--wcqf-gold) 6%, var(--wcqf-surface)),
		var(--wcqf-surface) 55%
	);
	border: 1px solid var(--wcqf-line);
	border-radius: calc(var(--wcqf-radius) + 4px);
	box-shadow: var(--wcqf-shadow-soft);
	color: var(--wcqf-text);
}

.wcqf-summary__head {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--wcqf-line);
}

.wcqf-summary__eyebrow {
	display: block;
	margin-bottom: 8px;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--wcqf-gold);
}

.wcqf-summary__title {
	margin: 0;
	font-family: var(--wcqf-serif);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--wcqf-text);
}

.wcqf-summary__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wcqf-summary__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--wcqf-line);
}

.wcqf-summary__item:last-child {
	border-bottom: 0;
}

.wcqf-summary__thumb img {
	display: block;
	width: 58px;
	height: 58px;
	object-fit: cover;
	border-radius: calc(var(--wcqf-radius) / 1.5);
	filter: saturate(0.96);
}

.wcqf-summary__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wcqf-summary__name {
	font-size: 0.92rem;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.wcqf-summary__details {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.wcqf-summary__detail {
	font-size: 0.74rem;
	color: var(--wcqf-muted);
}

.wcqf-summary__detail em {
	font-style: normal;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.64rem;
	color: var(--wcqf-gold);
}

.wcqf-summary__detail em::after {
	content: " ";
}

.wcqf-summary__qty {
	flex: none;
	padding-top: 2px;
	font-size: 0.86rem;
	letter-spacing: 0.06em;
	color: var(--wcqf-muted);
}

.wcqf-summary__foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--wcqf-line);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wcqf-muted);
}

.wcqf-summary__foot-value {
	color: var(--wcqf-text);
}

.wcqf-summary__note {
	margin: 18px 0 0;
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--wcqf-muted);
}

.wcqf-summary__empty {
	margin: 0;
	padding: 12px 0 4px;
	font-size: 0.86rem;
	color: var(--wcqf-muted);
}

.wcqf-quote__feedback {
	margin: 20px 0 0;
	padding: 12px 16px;
	border-left: 2px solid #b91c1c;
	background: rgba(185, 28, 28, 0.06);
	font-size: 0.88rem;
	color: #b91c1c;
}

.wcqf-quote__feedback.is-success {
	border-color: var(--wcqf-gold);
	background: color-mix(in srgb, var(--wcqf-gold) 10%, transparent);
	color: var(--wcqf-text);
}

.wcqf-quote__submit {
	min-width: 240px;
	padding-top: 1.15em;
	padding-bottom: 1.15em;
}

/* ---------------------------------------------------------------------------
 * Modais
 * ------------------------------------------------------------------------ */

.wcqf-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.wcqf-modal[hidden] {
	display: none;
}

.wcqf-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 24, 0.55);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.35s var(--wcqf-ease);
}

.wcqf-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 430px;
	padding: 44px 36px 34px;
	border-radius: calc(var(--wcqf-radius) + 8px);
	background: var(--wcqf-surface);
	box-shadow: var(--wcqf-shadow);
	text-align: center;
	opacity: 0;
	transform: translateY(18px) scale(0.97);
	transition: opacity 0.4s var(--wcqf-ease), transform 0.4s var(--wcqf-ease);
}

.wcqf-modal.is-open .wcqf-modal__overlay {
	opacity: 1;
}

.wcqf-modal.is-open .wcqf-modal__dialog {
	opacity: 1;
	transform: none;
}

.wcqf-modal__x {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	padding: 7px;
	border: 0;
	border-radius: 50%;
	background-color: transparent;
	color: var(--wcqf-muted);
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.25s var(--wcqf-ease), background-color 0.25s var(--wcqf-ease),
		color 0.25s var(--wcqf-ease);
}

.wcqf-modal__x:hover,
.wcqf-modal__x:focus-visible {
	opacity: 1;
	background-color: var(--wcqf-hover-surface);
	color: var(--wcqf-text);
}

.wcqf-modal__x .wcqf-icon {
	width: 16px;
	height: 16px;
}

.wcqf-modal__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin-bottom: 20px;
	border: 1px solid rgba(34, 197, 94, 0.35);
	border-radius: 50%;
	background: rgba(34, 197, 94, 0.1);
	color: #16a34a;
	animation: wcqf-badge 0.55s var(--wcqf-ease) both;
}

.wcqf-modal__badge .wcqf-icon {
	width: 30px;
	height: 30px;
	stroke-width: 1.8;
}

@keyframes wcqf-badge {
	from { opacity: 0; transform: scale(0.6); }
	to { opacity: 1; transform: scale(1); }
}

.wcqf-modal__title {
	margin: 0 0 10px;
	font-family: var(--wcqf-serif);
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--wcqf-text);
}

.wcqf-modal__text {
	margin: 0 0 26px;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--wcqf-muted);
}

.wcqf-modal__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.wcqf-modal__actions .wcqf-btn {
	flex: 1 1 auto;
	min-width: 150px;
}

body.wcqf-modal-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Responsivo
 * ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
	/* Empilha o resumo abaixo do formulário; acima ficaria redundante com a
	   tabela do carrinho, que já aparece logo antes. */
	.wcqf-quote__panel {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 782px) {
	.wcqf-grid {
		grid-template-columns: 1fr;
	}

	.wcqf-quote__form-wrap {
		padding: 32px 22px 28px;
	}

	.wcqf-summary {
		padding: 26px 20px;
	}

	.wcqf-summary__foot {
		flex-direction: column;
		gap: 4px;
	}

	.wcqf-quote__cart-inner {
		padding: 8px 14px;
	}

	.wcqf-cart-table thead {
		display: none;
	}

	.wcqf-cart-table,
	.wcqf-cart-table tbody,
	.wcqf-cart-table tr,
	.wcqf-cart-table td {
		display: block;
		width: 100%;
	}

	.wcqf-cart-table__row {
		position: relative;
		display: grid;
		grid-template-columns: 76px 1fr;
		grid-template-areas:
			"thumb name"
			"thumb qty";
		gap: 4px 16px;
		padding: 20px 0;
		border-bottom: 1px solid var(--wcqf-line);
	}

	.wcqf-cart-table td {
		padding: 0;
		border: 0;
	}

	.wcqf-cart-table__col-thumb { grid-area: thumb; }
	.wcqf-cart-table__col-name { grid-area: name; text-align: left; }
	.wcqf-cart-table__col-qty { grid-area: qty; text-align: left; width: auto; }

	.wcqf-cart-table__col-remove {
		position: absolute;
		top: 18px;
		right: 0;
		width: auto;
	}

	.wcqf-steps {
		gap: 0;
		margin-bottom: 28px;
	}

	.wcqf-steps__item {
		padding: 0 12px;
		flex-direction: column;
		gap: 6px;
		text-align: center;
	}

	.wcqf-steps__item + .wcqf-steps__item::before {
		left: -14px;
		top: 7px;
		width: 28px;
	}

	.wcqf-steps__label {
		font-size: 0.68rem;
	}

	.wcqf-modal__dialog {
		padding: 36px 22px 26px;
	}

	.wcqf-modal__actions .wcqf-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcqf-btn,
	.wcqf-bag__popup,
	.wcqf-modal__dialog,
	.wcqf-modal__overlay,
	.wcqf-cart-table__row,
	.wcqf-bag__icon .wcqf-icon {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
