/* Pedido Mínimo para WooCommerce */

.pmwc-box {
	--pmwc-accent: #d63638;
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
}

.pmwc-box * {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------
 * Layout compacto (padrão)
 * ------------------------------------------------------------ */
.pmwc-box--compact {
	margin: 0 0 14px;
	padding: 9px 12px;
	border: 1px solid var(--pmwc-accent);
	border-left: 4px solid var(--pmwc-accent);
	border-radius: 6px;
	background: #fff;
	font-size: 13.5px;
	line-height: 1.35;
}

.pmwc-box--compact .pmwc-box__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--pmwc-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.pmwc-box--compact .pmwc-box__content {
	flex: 1 1 auto;
	min-width: 0;
}

.pmwc-box__line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: 1.35;
}

.pmwc-box--compact .pmwc-box__title {
	color: var(--pmwc-accent);
	font-weight: 700;
	font-size: inherit;
	margin: 0;
	padding: 0;
}

.pmwc-inline {
	white-space: nowrap;
	opacity: .95;
}

.pmwc-inline__label {
	opacity: .7;
}

.pmwc-inline strong,
.pmwc-inline strong .amount,
.pmwc-inline strong bdi {
	font-weight: 700;
}

.pmwc-inline--miss {
	padding: 1px 7px;
	border-radius: 4px;
	background: var(--pmwc-accent);
	color: #fff;
	font-weight: 600;
}

.pmwc-inline--miss strong,
.pmwc-inline--miss strong .amount,
.pmwc-inline--miss strong bdi {
	color: #fff;
}

.pmwc-progress--thin {
	height: 4px;
	margin-top: 6px;
}

/* ---------------------------------------------------------------
 * Layout destacado (opcional)
 * ------------------------------------------------------------ */
.pmwc-box--large {
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 22px;
	padding: 16px 18px;
	border: 2px solid var(--pmwc-accent);
	border-left-width: 6px;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	line-height: 1.45;
}

.pmwc-box--large .pmwc-box__icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--pmwc-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}

.pmwc-box--large .pmwc-box__content {
	flex: 1 1 auto;
	min-width: 0;
}

.pmwc-box--large .pmwc-box__title {
	margin: 0 0 3px;
	font-size: 16px;
	font-weight: 700;
	color: var(--pmwc-accent);
}

.pmwc-box--large .pmwc-box__text {
	margin: 0 0 10px;
}

.pmwc-figures {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.pmwc-figure {
	flex: 1 1 130px;
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 7px 10px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 6px;
	background: #fff;
}

.pmwc-figure__label {
	font-size: 11px;
	letter-spacing: .03em;
	text-transform: uppercase;
	opacity: .7;
}

.pmwc-figure__value {
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.pmwc-figure--highlight {
	border-color: var(--pmwc-accent);
	background: var(--pmwc-accent);
	color: #fff;
}

.pmwc-figure--highlight .pmwc-figure__label { opacity: .9; }

.pmwc-figure--highlight .pmwc-figure__value,
.pmwc-figure--highlight .pmwc-figure__value .amount,
.pmwc-figure--highlight .pmwc-figure__value bdi { color: #fff; }

/* ---------------------------------------------------------------
 * Barra de progresso
 * ------------------------------------------------------------ */
.pmwc-progress {
	position: relative;
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(0, 0, 0, .1);
}

.pmwc-progress__bar {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--pmwc-accent);
	transition: width .4s ease;
}

.pmwc-progress__label {
	margin: 4px 0 0;
	font-size: 12px;
	font-weight: 600;
	opacity: .75;
}

/* ---------------------------------------------------------------
 * Botão bloqueado no carrinho
 * ------------------------------------------------------------ */
.pmwc-wrap:empty {
	display: none;
}

.pmwc-blocked-button {
	display: block;
	text-align: center;
	cursor: not-allowed;
	opacity: .7;
}

button.pmwc-blocked-button,
input.pmwc-blocked-button {
	display: inline-block;
}

/* ---------------------------------------------------------------
 * Mobile
 * ------------------------------------------------------------ */
@media (max-width: 600px) {
	.pmwc-box--compact {
		align-items: flex-start;
		font-size: 13px;
	}

	.pmwc-box__line {
		gap: 2px 8px;
	}

	.pmwc-box--large {
		flex-direction: column;
		gap: 10px;
		padding: 14px;
	}

	.pmwc-figure {
		flex: 1 1 100%;
	}
}
