.mpb {
	--mpb-green: #1B4332;
	--mpb-coral: #FF5C5C;
	--mpb-border: #e2e2e2;
	--mpb-muted: #6b6b6b;
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	font-family: inherit;
	color: #1a1a1a;
}

/* Leyenda superior */
.mpb__leyenda {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	padding: 14px 16px;
	background: #f3f7f4;
	border: 1px solid #dbe6df;
	border-left: 4px solid var(--mpb-green);
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #2f4a3d;
}

.mpb__leyenda-icon {
	display: flex;
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--mpb-green);
}

/* Título */
.mpb__titulo {
	margin: 0 0 14px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #17301f;
}

/* Caja de búsqueda */
.mpb__field {
	display: flex;
	align-items: stretch;
	height: 56px;
	background: #fff;
	border: 2px solid var(--mpb-green);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow .15s ease;
}

.mpb__field:focus-within {
	box-shadow: 0 0 0 3px rgba(27, 67, 50, .15);
}

.mpb__input {
	flex: 1;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	padding: 0 18px;
	font-size: 16px;
	color: #1a1a1a;
	min-width: 0;
}

.mpb__input::placeholder {
	color: #9a9a9a;
}

.mpb__search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	flex-shrink: 0;
	background: var(--mpb-green);
	color: #fff;
}

/* Estado (buscando / errores) */
.mpb__status {
	min-height: 20px;
	margin: 10px 2px 0;
	font-size: 13px;
	color: var(--mpb-muted);
}

/* Lista de resultados */
.mpb__results {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mpb__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--mpb-border);
	border-radius: 10px;
}

.mpb__thumb {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f2f2f0;
}

.mpb__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mpb__thumb--placeholder::after {
	content: "";
	width: 24px;
	height: 24px;
	border-radius: 4px;
	background: #d9d9d6;
}

.mpb__info {
	flex: 1;
	min-width: 0;
}

.mpb__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a1a;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpb__name:hover {
	color: var(--mpb-green);
	text-decoration: underline;
}

.mpb__price {
	font-size: 15px;
	font-weight: 700;
	color: var(--mpb-green);
	white-space: nowrap;
}

.mpb__price del {
	color: var(--mpb-muted);
	font-weight: 400;
	margin-right: 4px;
}

.mpb__add {
	flex-shrink: 0;
	height: 38px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: var(--mpb-coral);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}

.mpb__add:hover {
	background: #e64a4a;
}

.mpb__add:disabled {
	cursor: default;
}

.mpb__add.is-loading {
	opacity: .7;
}

.mpb__add.is-added {
	background: var(--mpb-green);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 480px) {
	.mpb__titulo {
		font-size: 22px;
	}
	.mpb__item {
		flex-wrap: wrap;
	}
	.mpb__add {
		width: 100%;
		margin-top: 4px;
	}
}
