/* Cartão presente: campo de código no carrinho e no checkout. A cor vem de --ppgc-cor. */
.ppgc-resgate {
	margin: 0 0 16px;
	font-size: 14px;
}

.ppgc-resgate .ppgc-aplicado {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 0 0 8px;
	padding: 10px 12px;
	border: 1px solid var(--ppgc-cor, #1f2937);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.02);
}

.ppgc-resgate .ppgc-aplicado__txt {
	display: flex;
	flex: 1 1 160px;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ppgc-resgate .ppgc-aplicado__txt small {
	opacity: 0.7;
}

.ppgc-resgate .ppgc-aplicado__valor {
	font-weight: 700;
	white-space: nowrap;
}

.ppgc-resgate .ppgc-remover {
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	opacity: 0.75;
}

.ppgc-resgate .ppgc-remover:hover {
	opacity: 1;
}

.ppgc-resgate .ppgc-abrir > summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--ppgc-cor, inherit);
	list-style-position: inside;
}

/* 0.1.1: campo e botão se defendem do tema. Na Vancci (Flatsome), ".cart_totals .button" tem
   min-width: 100%: o "Aplicar" ocupava a linha toda e o campo ficava com 26px, sem dar para ler
   o código. O campo garante espaço para o código inteiro; sem espaço, o botão desce. */
.ppgc-resgate .ppgc-campo {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.ppgc-resgate .ppgc-codigo {
	flex: 1 1 15em; /* O código inteiro (19 caracteres) com folga. */
	width: auto;
	max-width: 100%;
	min-width: min(15em, 100%);
	margin: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ppgc-resgate .ppgc-aplicar {
	flex: 0 0 auto;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100%;
	margin: 0;
}

.ppgc-resgate .ppgc-msg {
	min-height: 1.2em;
	margin: 6px 0 0;
	font-size: 13px;
}

.ppgc-resgate .ppgc-msg.is-erro {
	color: #b42318;
}
