/*
 * Quintal Delivery — configurador de açaí
 * Every selector is scoped to this builder so Elementor and the pizza builder
 * keep their own visual rules.
 */
.qda-acai-builder {
	--qda-berry: #702b72;
	--qda-berry-dark: #431747;
	--qda-berry-soft: #f8f0f8;
	--qda-gold: #f1bf54;
	--qda-ink: #302337;
	--qda-muted: #695c70;
	--qda-line: #e7dbe8;
	--qda-surface: #ffffff;
	--qda-shadow: 0 18px 50px rgba(67, 23, 71, 0.13);
	box-sizing: border-box;
	width: 100%;
	max-width: 920px;
	margin: 28px auto;
	padding: clamp(18px, 3vw, 36px);
	border: 1px solid var(--qda-line);
	border-radius: 24px;
	background: var(--qda-surface);
	box-shadow: var(--qda-shadow);
	color: var(--qda-ink);
	font-family: inherit;
	overflow-wrap: anywhere;
}

.qda-acai-builder *,
.qda-acai-builder *::before,
.qda-acai-builder *::after {
	box-sizing: border-box;
}

.qda-builder-heading {
	margin: -1px -1px 28px;
	padding: clamp(22px, 4vw, 36px);
	border-radius: 18px;
	background:
		radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0) 31%),
		linear-gradient(135deg, var(--qda-berry-dark), var(--qda-berry));
	color: #fff;
}

.qda-builder-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.84);
}

.qda-builder-eyebrow::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--qda-gold);
	content: "";
}

.qda-builder-heading h2 {
	margin: 0;
	color: inherit;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.1;
}

.qda-builder-heading p {
	max-width: 620px;
	margin: 11px 0 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}

.qda-builder-step {
	min-width: 0;
	margin: 0;
	padding: 23px 0;
	border: 0;
	border-bottom: 1px solid var(--qda-line);
}

.qda-builder-step legend {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 0;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--qda-ink);
}

.qda-builder-step legend > span {
	display: inline-grid;
	place-items: center;
	flex: 0 0 25px;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--qda-berry-soft);
	color: var(--qda-berry-dark);
	font-size: 0.78rem;
	font-weight: 800;
}

.qda-builder-step legend small {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--qda-muted);
}

.qda-size-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.qda-choice,
.qda-option {
	position: relative;
	display: flex;
	align-items: stretch;
	min-width: 0;
	cursor: pointer;
}

.qda-choice input,
.qda-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.qda-choice > span {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	min-height: 111px;
	padding: 16px 13px;
	border: 1px solid var(--qda-line);
	border-radius: 14px;
	background: #fff;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.qda-choice > span::before {
	width: 9px;
	height: 9px;
	margin-bottom: auto;
	border: 2px solid #b9aaba;
	border-radius: 50%;
	content: "";
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.qda-choice strong,
.qda-option span {
	font-size: 0.92rem;
	font-weight: 750;
	line-height: 1.25;
	color: var(--qda-ink);
}

.qda-choice small {
	font-size: 0.78rem;
	line-height: 1.28;
	color: var(--qda-muted);
}

.qda-choice em {
	margin-top: auto;
	font-size: 0.92rem;
	font-style: normal;
	font-weight: 800;
	line-height: 1.25;
	color: var(--qda-berry-dark);
}

.qda-choice:hover > span {
	border-color: #bd92be;
	transform: translateY(-1px);
}

.qda-choice input:checked + span {
	border-color: var(--qda-berry);
	background: var(--qda-berry-soft);
	box-shadow: 0 6px 16px rgba(112, 43, 114, 0.12);
}

.qda-choice input:checked + span::before {
	border-color: var(--qda-berry);
	box-shadow: inset 0 0 0 2px var(--qda-berry-soft), inset 0 0 0 8px var(--qda-berry);
}

.qda-selection-help {
	min-height: 1.3em;
	margin: 12px 1px 0;
	font-size: 0.84rem;
	font-weight: 650;
	line-height: 1.45;
	color: var(--qda-muted);
}

.qda-complement-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 15px;
}

.qda-option > span {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	min-height: 54px;
	padding: 12px 79px 12px 43px;
	border: 1px solid var(--qda-line);
	border-radius: 12px;
	background: #fff;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.qda-option > span::before {
	position: absolute;
	left: 15px;
	width: 17px;
	height: 17px;
	border: 2px solid #b9aaba;
	border-radius: 5px;
	background: #fff;
	content: "";
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.qda-option strong {
	position: absolute;
	right: 13px;
	font-size: 0.77rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: right;
	white-space: nowrap;
	color: var(--qda-berry-dark);
}

.qda-option:hover > span {
	border-color: #bd92be;
}

.qda-option input:checked + span {
	border-color: var(--qda-berry);
	background: var(--qda-berry-soft);
	box-shadow: 0 5px 13px rgba(112, 43, 114, 0.09);
}

.qda-option input:checked + span::before {
	border-color: var(--qda-berry);
	box-shadow: inset 0 0 0 3px var(--qda-berry-soft), inset 0 0 0 8px var(--qda-berry);
}

.qda-option.is-disabled {
	cursor: not-allowed;
}

.qda-option.is-disabled > span {
	border-color: #eee7ef;
	background: #faf8fa;
	color: #a096a2;
	opacity: 0.7;
}

.qda-option.is-disabled strong {
	color: #8e8290;
}

.qda-addon-option {
	max-width: 430px;
	margin-top: 16px;
}

.qda-observation {
	display: block;
	width: 100%;
	min-height: 92px;
	margin-top: 16px;
	padding: 12px 13px;
	border: 1px solid #d6c4d8;
	border-radius: 11px;
	background: #fff;
	color: var(--qda-ink);
	font: inherit;
	line-height: 1.4;
	resize: vertical;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.qda-observation:hover {
	border-color: #aa79ad;
}

.qda-observation:focus {
	border-color: var(--qda-berry);
	box-shadow: 0 0 0 3px rgba(112, 43, 114, 0.12);
}

.qda-choice input:focus-visible + span,
.qda-option input:focus-visible + span,
.qda-observation:focus-visible,
.qda-add-to-cart:focus-visible {
	outline: 3px solid rgba(112, 43, 114, 0.34);
	outline-offset: 3px;
}

.qda-builder-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 23px;
	padding: 17px 19px;
	border: 1px solid #d5b9d6;
	border-radius: 14px;
	background: var(--qda-berry-soft);
}

.qda-builder-summary span {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--qda-berry-dark);
}

.qda-builder-summary strong {
	font-size: clamp(1.25rem, 3vw, 1.65rem);
	font-weight: 850;
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
	color: var(--qda-berry-dark);
}

.qda-summary-help {
	min-height: 1.2em;
	margin: 9px 2px 17px;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--qda-muted);
}

.qda-add-to-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	padding: 13px 22px;
	border: 0;
	border-radius: 12px;
	background: var(--qda-berry);
	box-shadow: 0 9px 18px rgba(112, 43, 114, 0.2);
	cursor: pointer;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.25;
	transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.qda-add-to-cart:hover:not(:disabled) {
	background: var(--qda-berry-dark);
	box-shadow: 0 12px 24px rgba(67, 23, 71, 0.25);
	transform: translateY(-1px);
}

.qda-add-to-cart:disabled {
	cursor: wait;
	opacity: 0.72;
}

.qda-builder-message {
	min-height: 1.3em;
	margin: 12px 2px 0;
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.4;
}

.qda-builder-message.is-error {
	color: #ad2f2a;
}

.qda-builder-message.is-success {
	color: #36683e;
}

.qda-builder-message.is-info {
	color: #5a3d69;
}

.qda-builder-notice {
	margin: 24px 0;
	padding: 14px 16px;
	border-left: 4px solid var(--qda-berry, #702b72);
	border-radius: 8px;
	background: var(--qda-berry-soft, #f8f0f8);
	color: var(--qda-ink, #302337);
}

@media (max-width: 700px) {
	.qda-size-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.qda-acai-builder {
		margin: 18px 0;
		padding: 14px;
		border-radius: 18px;
	}

	.qda-builder-heading {
		margin: 0 0 16px;
		padding: 22px 18px;
		border-radius: 13px;
	}

	.qda-builder-step {
		padding: 19px 0;
	}

	.qda-complement-grid,
	.qda-size-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.qda-choice > span {
		min-height: 94px;
	}

	.qda-builder-summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
		padding: 15px;
	}

	.qda-option > span {
		min-height: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qda-acai-builder *,
	.qda-acai-builder *::before,
	.qda-acai-builder *::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
