.millys-pb-builder {
	--pb-accent: #ef5d91;
	--pb-ink: #2b2025;
	--pb-muted: #6d6267;
	--pb-border: #eadfe3;
	margin: 24px 0;
	padding: 18px;
	border: 1px solid var(--pb-border);
	border-radius: 20px;
	background: #fffafb;
	color: var(--pb-ink);
}

.millys-pb-builder__eyebrow {
	margin: 0 0 4px;
	color: var(--pb-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.millys-pb-builder__header h2 { margin: 0 0 8px; font-size: 24px; }
.millys-pb-builder__header p:last-child { margin: 0; color: var(--pb-muted); }
.millys-pb-builder__size { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #f7eef1; }
.millys-pb-builder__groups { display: grid; gap: 14px; margin-top: 16px; }

.millys-pb-group {
	min-width: 0;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--pb-border);
	border-radius: 16px;
	background: #fff;
}

.millys-pb-group[aria-invalid="true"] { border-color: #c62828; }
.millys-pb-group legend { padding: 0 6px; font-size: 17px; font-weight: 700; }
.millys-pb-group__help { margin: 0 0 10px; color: var(--pb-muted); font-size: 13px; }
.millys-pb-group__slots { display: grid; gap: 9px; }
.millys-pb-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }

.millys-pb-slot select,
.millys-pb-notes textarea {
	width: 100%;
	min-height: 46px;
	margin: 0;
	border: 1px solid #cfc3c7;
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
}

.millys-pb-slot select:focus,
.millys-pb-notes textarea:focus,
.millys-pb-add:focus,
.millys-pb-remove:focus { outline: 3px solid rgba(239, 93, 145, .28); outline-offset: 2px; }

.millys-pb-add,
.millys-pb-remove {
	min-height: 44px;
	border: 1px solid var(--pb-border);
	border-radius: 12px;
	background: #fff;
	color: var(--pb-ink);
	font-weight: 700;
	cursor: pointer;
}

.millys-pb-add { width: 100%; margin-top: 9px; }
.millys-pb-add[hidden], .millys-pb-remove[hidden] { display: none; }
.millys-pb-notes { margin-top: 16px; }
.millys-pb-notes label { display: block; margin-bottom: 7px; }
.millys-pb-notes small { display: block; margin-top: 4px; text-align: right; color: var(--pb-muted); }

.millys-pb-summary {
	display: grid;
	gap: 8px;
	margin-top: 16px;
	padding: 14px;
	border-radius: 14px;
	background: #2b2025;
	color: #fff;
}

.millys-pb-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.millys-pb-summary > div:last-child { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.2); font-size: 18px; }
.millys-pb-feedback { margin-top: 12px; }
.millys-pb-feedback ul { margin: 0; padding-left: 20px; color: #a31515; }
.millys-pb-feedback.is-valid { color: #237a3b; font-weight: 700; }
.millys-pb-feedback.is-pending { color: var(--pb-muted); }
.millys-pb-preview-note { margin: 12px 0 0; padding: 10px 12px; border-left: 4px solid #e4a11b; background: #fff6df; font-size: 13px; }
.single_add_to_cart_button.millys-pb-locked { cursor: not-allowed; opacity: .6; }

@media (min-width: 760px) {
	.millys-pb-builder { padding: 24px; }
	.millys-pb-builder__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.millys-pb-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.millys-pb-summary > div:last-child { padding: 0 0 0 16px; border-top: 0; border-left: 1px solid rgba(255,255,255,.2); }
}

/* 0.5.0 · Armador genérico */
.millys-pb-builder--generic .millys-pb-group { border: 1px solid #ead8cc; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: #fff; }
.millys-pb-builder--generic .millys-pb-group legend { font-weight: 600; color: #512a00; padding: 0 4px; }
.millys-pb-builder--generic .millys-pb-group[aria-invalid="true"] { border-color: #b3261e; }
.millys-pb-group__options { display: flex; flex-wrap: wrap; gap: 8px; }
.millys-pb-choice { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; border: 1px solid #e1b1a5; border-radius: 999px; background: #fbf1e9; cursor: pointer; font-size: 14px; line-height: 1.2; }
.millys-pb-choice input { margin: 0; accent-color: #512a00; }
.millys-pb-choice:has(input:checked) { background: #512a00; border-color: #512a00; color: #fff; }
.millys-pb-choice:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.millys-pb-choice--sin { border-style: dashed; }
.millys-pb-step { display: grid; grid-template-columns: 1fr 34px 28px 34px; align-items: center; gap: 6px; width: 100%; padding: 4px 0; border-bottom: 1px dashed #f0e2d8; font-size: 14px; }
.millys-pb-step button { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid #512a00; background: #fff; color: #512a00; font-size: 18px; line-height: 1; }
.millys-pb-step button:disabled { opacity: .35; }
.millys-pb-step output { text-align: center; font-weight: 600; }
@media (min-width: 768px) { .millys-pb-step { width: calc(50% - 4px); } }
.millys-pb-builder--generic .millys-pb-builder__groups { display: block; }
.millys-pb-builder--generic .millys-pb-group { min-width: 0; }
