/**
 * BarberPrime SaaS — Payments CSS
 *
 * Estilos para:
 *  - Checkout (form embedded, tabs de método/ciclo, campos de cartão)
 *  - Página de invoice (PIX QR, boleto, status)
 *  - Lista de faturas em /minha-conta/
 */

/* ==========================================================================
   CHECKOUT — Wrapper 2 colunas (resumo + form)
   ========================================================================== */
.bp-checkout { padding-top: 40px; padding-bottom: 80px; }

.bp-checkout__wrap {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
}
@media (min-width: 900px) {
	.bp-checkout__wrap {
		grid-template-columns: 380px 1fr;
	}
}

/* ==========================================================================
   COLUNA 1 — Summary
   ========================================================================== */
.bp-checkout__summary {
	background: var(--bp-bg-elevated, #fff);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 16px;
	padding: 28px;
	position: sticky;
	top: 24px;
}
.bp-checkout__summary-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bp-text-muted, #6B6258);
	font-weight: 700;
	margin: 0 0 16px;
}

.bp-checkout__plan h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	margin: 0 0 8px;
	color: var(--bp-text, #1A1612);
}
.bp-checkout__plan-desc { color: var(--bp-text-muted, #6B6258); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }

.bp-checkout__features {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.bp-checkout__features li {
	padding: 6px 0;
	font-size: 13.5px;
	color: var(--bp-text, #1A1612);
}

.bp-checkout__cycle {
	margin: 24px 0;
	padding-top: 24px;
	border-top: 1px solid var(--bp-border, #E5E0D8);
}
.bp-checkout__cycle > label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--bp-text-muted, #6B6258);
	margin-bottom: 12px;
}
.bp-checkout__cycle-tabs { display: flex; gap: 8px; }
.bp-checkout__cycle-tab {
	flex: 1;
	background: var(--bp-bg, #FAFAF8);
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 12px;
	padding: 14px 12px;
	cursor: pointer;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	transition: all 180ms ease;
	color: var(--bp-text, #1A1612);
	font-size: 13px;
	font-weight: 500;
	position: relative;
}
.bp-checkout__cycle-tab:hover { border-color: var(--bp-accent, #C8A96E); }
.bp-checkout__cycle-tab.is-active {
	border-color: var(--bp-accent, #C8A96E);
	background: rgba(200, 169, 110, 0.08);
}
.bp-checkout__cycle-tab strong {
	font-family: Georgia, serif;
	font-size: 18px;
	font-weight: 700;
}
.bp-checkout__cycle-save {
	font-size: 11px;
	background: var(--bp-accent, #C8A96E);
	color: #1A1612;
	padding: 2px 8px;
	border-radius: 9999px;
	font-weight: 600;
	margin-top: 4px;
}

.bp-checkout__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 20px;
	border-top: 1px solid var(--bp-border, #E5E0D8);
	margin-top: 20px;
}
.bp-checkout__total span { color: var(--bp-text-muted, #6B6258); font-size: 14px; }
.bp-checkout__total strong {
	font-family: Georgia, serif;
	font-size: 32px;
	color: var(--bp-accent, #C8A96E);
	font-weight: 700;
}
.bp-checkout__total-meta {
	font-size: 12.5px;
	color: var(--bp-text-muted, #6B6258);
	margin-top: 4px;
	text-align: right;
}
.bp-checkout__security {
	margin-top: 20px;
	padding: 12px 16px;
	background: rgba(46, 125, 91, 0.06);
	border: 1px solid rgba(46, 125, 91, 0.2);
	border-radius: 8px;
	font-size: 12.5px;
	color: #1E6B47;
	text-align: center;
	font-weight: 600;
}

/* ==========================================================================
   COLUNA 2 — Form
   ========================================================================== */
.bp-checkout__form-wrap {
	background: var(--bp-bg-elevated, #fff);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 16px;
	padding: 32px;
}
@media (max-width: 600px) { .bp-checkout__form-wrap { padding: 24px 20px; } }

.bp-checkout__step {
	border: 0;
	margin: 0 0 32px;
	padding: 0;
}
.bp-checkout__step legend {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--bp-text, #1A1612);
	padding: 0;
	margin-bottom: 20px;
	display: block;
}

.bp-form-row { margin-bottom: 16px; }
.bp-form-row > label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-text, #1A1612);
	margin-bottom: 8px;
}
.bp-form-row input[type="text"],
.bp-form-row input[type="email"],
.bp-form-row input[type="tel"],
.bp-form-row select {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 10px;
	font-size: 15px;
	background: var(--bp-bg-elevated, #fff);
	color: var(--bp-text, #1A1612);
	font-family: inherit;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}
.bp-form-row input:focus,
.bp-form-row select:focus {
	outline: 0;
	border-color: var(--bp-accent, #C8A96E);
	box-shadow: 0 0 0 4px rgba(200, 169, 110, 0.15);
}

.bp-form-grid-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 600px) { .bp-form-grid-2 { grid-template-columns: 1fr 1fr; } }

.bp-checkout__submit { margin-top: 24px; }
.bp-checkout__terms {
	text-align: center;
	font-size: 12px;
	color: var(--bp-text-muted, #6B6258);
	margin: 16px 0 0;
	line-height: 1.5;
}
.bp-checkout__terms a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

.bp-checkout-empty {
	text-align: center;
	padding: 60px 20px;
}
.bp-checkout-empty h1 { font-size: 28px; margin-bottom: 16px; }

/* ==========================================================================
   INVOICE — Detalhe (PIX, Boleto, Status)
   ========================================================================== */
.bp-invoice-detail { display: flex; flex-direction: column; gap: 20px; }

.bp-invoice-detail__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--bp-border, #E5E0D8);
}
.bp-invoice-detail__back {
	font-size: 13px;
	color: var(--bp-text-muted, #6B6258);
	text-decoration: none;
}
.bp-invoice-detail__back:hover { color: var(--bp-accent, #C8A96E); }
.bp-invoice-detail h1 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 28px;
	margin: 0;
	color: var(--bp-text, #1A1612);
}

.bp-invoice-status {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 20px 24px;
	border-radius: 14px;
	border: 1px solid;
}
.bp-invoice-status__icon {
	font-size: 32px;
	flex-shrink: 0;
}
.bp-invoice-status strong { display: block; font-size: 16px; margin-bottom: 4px; }
.bp-invoice-status p { margin: 0; font-size: 14px; line-height: 1.5; }

.bp-invoice-status--paid {
	background: rgba(46, 125, 91, 0.08);
	border-color: rgba(46, 125, 91, 0.25);
	color: #1E6B47;
}
.bp-invoice-status--pending {
	background: rgba(194, 138, 30, 0.08);
	border-color: rgba(194, 138, 30, 0.25);
	color: #8A5A0E;
}
.bp-invoice-status--failed {
	background: rgba(184, 58, 58, 0.08);
	border-color: rgba(184, 58, 58, 0.25);
	color: #9B2A2A;
}

/* CTA — Ir para o painel (tela da fatura) */
.bp-invoice-panel-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding: 22px 26px;
	border-radius: 14px;
	border: 1px solid var(--bp-gold-border, rgba(198, 160, 92, 0.35));
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(198, 160, 92, 0.12) 0%, rgba(198, 160, 92, 0) 55%),
		var(--bp-bg-elevated, #fff);
	box-shadow: 0 6px 20px rgba(26, 22, 18, 0.06);
}
.bp-invoice-panel-cta__text strong {
	display: block;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 17px;
	color: var(--bp-text, #1A1612);
	margin-bottom: 3px;
}
.bp-invoice-panel-cta__text p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--bp-text-muted, #6B6257);
}
.bp-invoice-panel-cta__btn {
	flex-shrink: 0;
	white-space: nowrap;
}
@media (max-width: 560px) {
	.bp-invoice-panel-cta { flex-direction: column; align-items: stretch; text-align: center; }
	.bp-invoice-panel-cta__btn { width: 100%; justify-content: center; }
}

/* PIX */
.bp-invoice-pix,
.bp-invoice-boleto,
.bp-invoice-summary {
	background: var(--bp-bg-elevated, #fff);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 14px;
	padding: 28px;
}
.bp-invoice-pix h2,
.bp-invoice-boleto h2,
.bp-invoice-summary h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	margin: 0 0 12px;
	color: var(--bp-text, #1A1612);
}
.bp-invoice-pix__lead,
.bp-invoice-boleto__lead {
	font-size: 14px;
	color: var(--bp-text-muted, #6B6258);
	margin: 0 0 20px;
}

.bp-invoice-pix__qr {
	display: flex;
	justify-content: center;
	padding: 20px;
	background: var(--bp-bg, #FAFAF8);
	border-radius: 12px;
	margin-bottom: 20px;
}
.bp-invoice-pix__qr #bp-pix-qr-canvas {
	display: inline-block;
	background: #fff;
	padding: 12px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	min-width: 240px;
	min-height: 240px;
}
.bp-invoice-pix__qr #bp-pix-qr-canvas canvas,
.bp-invoice-pix__qr #bp-pix-qr-canvas img {
	display: block !important;
	max-width: 240px !important;
	width: 240px !important;
	height: auto !important;
	margin: 0 auto;
}
/* Fallback quando renderiza <img> diretamente (sem canvas div) */
.bp-invoice-pix__qr > img {
	display: block;
	width: 240px;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	background: #fff;
	padding: 12px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	image-rendering: pixelated;
}

.bp-invoice-pix__code label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--bp-text-muted, #6B6258);
	margin-bottom: 8px;
}
.bp-invoice-pix__code-wrap {
	display: flex;
	gap: 8px;
}
.bp-invoice-pix__code-wrap input {
	flex: 1;
	font-family: 'SFMono-Regular', Menlo, monospace;
	font-size: 12px;
	padding: 12px 14px;
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 8px;
	background: var(--bp-bg, #FAFAF8);
	color: var(--bp-text, #1A1612);
	min-width: 0;
}

.bp-invoice-pix__meta {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--bp-border, #E5E0D8);
	font-size: 13px;
	color: var(--bp-text-muted, #6B6258);
}

.bp-invoice-boleto__barcode { margin-top: 20px; }
.bp-invoice-boleto__barcode label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--bp-text-muted, #6B6258);
	margin-bottom: 8px;
}

/* Lista de invoices no /minha-conta/ */
.bp-account-invoices { display: flex; flex-direction: column; gap: 8px; }
.bp-account-invoice {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 16px;
	background: var(--bp-bg, #FAFAF8);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 10px;
	text-decoration: none;
	color: var(--bp-text, #1A1612);
	transition: all 180ms ease;
}
.bp-account-invoice:hover {
	border-color: var(--bp-accent, #C8A96E);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(200, 169, 110, 0.12);
}
.bp-account-invoice__left {
	display: flex;
	flex-direction: column;
	min-width: 80px;
}
.bp-account-invoice__left strong { font-size: 13px; font-family: 'SFMono-Regular', monospace; }
.bp-account-invoice__left small { font-size: 11.5px; color: var(--bp-text-muted, #6B6258); }
.bp-account-invoice__middle { font-size: 14px; color: var(--bp-text, #1A1612); }
.bp-account-invoice__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}
.bp-account-invoice__right strong { font-family: Georgia, serif; font-size: 16px; }

/* ==========================================================================
   COUPON — campo no resumo do checkout
   ========================================================================== */
.bp-checkout__coupon {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed var(--bp-border, #E5E0D8);
}
.bp-checkout__coupon > label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--bp-text-muted, #6B6258);
	margin-bottom: 8px;
}
.bp-checkout__coupon-row {
	display: flex;
	gap: 8px;
}
.bp-checkout__coupon-row input {
	flex: 1;
	min-height: 42px;
	padding: 10px 14px;
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 8px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-family: 'SFMono-Regular', Menlo, monospace;
	background: var(--bp-bg-elevated, #fff);
	color: var(--bp-text, #1A1612);
	min-width: 0;
}
.bp-checkout__coupon-row input:focus {
	outline: 0;
	border-color: var(--bp-accent, #C8A96E);
	box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}
.bp-checkout__coupon-row button {
	white-space: nowrap;
	min-height: 42px;
}
.bp-checkout__coupon-feedback {
	margin-top: 10px;
	font-size: 12.5px;
	line-height: 1.4;
	min-height: 18px;
}
.bp-checkout__coupon-feedback.is-success { color: var(--bp-success, #1E6B47); font-weight: 600; }
.bp-checkout__coupon-feedback.is-error   { color: var(--bp-danger, #9B2A2A); }
.bp-checkout__coupon-feedback.is-loading { color: var(--bp-text-muted, #6B6258); }

/* ==========================================================================
   RECIBO — Página /recibo/
   ========================================================================== */
.bp-receipt-page { padding-top: 40px; padding-bottom: 60px; }

.bp-receipt {
	background: var(--bp-bg-elevated, #fff);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 16px;
	padding: 48px;
	position: relative;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}
@media (max-width: 600px) { .bp-receipt { padding: 28px 20px; } }

.bp-receipt__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 24px;
	border-bottom: 2px solid var(--bp-text, #1A1612);
	margin-bottom: 24px;
}
.bp-receipt__brand .bp-logo { font-size: 24px; }
.bp-receipt__id {
	text-align: right;
	display: flex;
	flex-direction: column;
}
.bp-receipt__id small {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--bp-text-muted, #6B6258);
	font-weight: 700;
}
.bp-receipt__id strong {
	font-family: 'SFMono-Regular', monospace;
	font-size: 18px;
	color: var(--bp-text, #1A1612);
}

.bp-receipt__stamp {
	position: absolute;
	top: 60px;
	right: 48px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: #1E6B47;
	border: 3px solid #1E6B47;
	padding: 8px 20px;
	border-radius: 8px;
	transform: rotate(-8deg);
	opacity: 0.85;
}
@media (max-width: 600px) { .bp-receipt__stamp { top: 90px; right: 20px; font-size: 12px; padding: 6px 14px; } }

.bp-receipt__parties {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--bp-border, #E5E0D8);
}
@media (min-width: 600px) { .bp-receipt__parties { grid-template-columns: 1fr 1fr; } }

.bp-receipt__parties h3 {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bp-text-muted, #6B6258);
	font-weight: 700;
	margin: 0 0 8px;
}
.bp-receipt__parties strong { font-size: 16px; color: var(--bp-text, #1A1612); }
.bp-receipt__parties small { font-size: 12.5px; color: var(--bp-text-muted, #6B6258); line-height: 1.6; }

.bp-receipt__details { margin-bottom: 32px; }
.bp-receipt__details table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}
.bp-receipt__details th,
.bp-receipt__details td {
	padding: 10px 0;
	border-bottom: 1px dashed var(--bp-border, #E5E0D8);
	text-align: left;
	vertical-align: top;
}
.bp-receipt__details th {
	font-weight: 500;
	color: var(--bp-text-muted, #6B6258);
	font-size: 13px;
	white-space: nowrap;
	width: 40%;
}
.bp-receipt__details td {
	font-weight: 600;
	color: var(--bp-text, #1A1612);
	font-size: 14px;
	text-align: right;
}
.bp-receipt__details tr.bp-receipt__discount td { color: #1E6B47; }
.bp-receipt__details tr.bp-receipt__discount th code {
	background: rgba(46, 125, 91, 0.08);
	padding: 2px 8px;
	border-radius: 4px;
	color: #1E6B47;
	font-size: 12px;
}

.bp-receipt__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 16px 0;
	border-top: 2px solid var(--bp-text, #1A1612);
	border-bottom: 2px solid var(--bp-text, #1A1612);
}
.bp-receipt__total span { font-size: 14px; font-weight: 600; color: var(--bp-text-muted, #6B6258); }
.bp-receipt__total strong {
	font-family: Georgia, serif;
	font-size: 32px;
	font-weight: 700;
	color: var(--bp-accent, #C8A96E);
}

.bp-receipt__foot {
	margin-top: 24px;
	padding-top: 16px;
	font-size: 12px;
	color: var(--bp-text-muted, #6B6258);
	line-height: 1.6;
	text-align: center;
}
.bp-receipt__foot code {
	font-size: 10px;
	word-break: break-all;
	background: var(--bp-bg, #FAFAF8);
	padding: 2px 6px;
	border-radius: 3px;
}

.bp-receipt__actions {
	margin-top: 24px;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.bp-receipt-empty {
	text-align: center;
	padding: 60px 20px;
	background: var(--bp-bg-elevated, #fff);
	border-radius: 14px;
}

/* ── Modo impressão ── */
@media print {
	body * { visibility: hidden; }
	.bp-receipt, .bp-receipt * { visibility: visible; }
	.bp-receipt {
		position: absolute;
		top: 0; left: 0; width: 100%;
		padding: 20px;
		border: 0;
		box-shadow: none;
	}
	.no-print { display: none !important; }
}

/* ==========================================================================
   CANCELAMENTO — Caixa na área do cliente
   ========================================================================== */
.bp-account-cancel {
	background: var(--bp-bg-elevated, #fff);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 14px;
	padding: 24px 28px;
	margin-top: 24px;
	text-align: center;
}
.bp-account-cancel h3 {
	font-size: 16px;
	font-weight: 600;
	color: var(--bp-text, #1A1612);
	margin: 0 0 8px;
}
.bp-account-cancel__hint {
	font-size: 13.5px;
	color: var(--bp-text-muted, #6B6258);
	margin: 0 0 16px;
	line-height: 1.5;
}

.bp-account-cancel-status {
	background: rgba(107, 98, 88, 0.06);
	border: 1px solid rgba(107, 98, 88, 0.2);
	border-radius: 14px;
	padding: 24px 28px;
	margin-top: 24px;
	text-align: center;
}
.bp-account-cancel-status h3 {
	font-size: 16px;
	color: #5C544A;
	margin: 0 0 8px;
}
.bp-account-cancel-status p {
	font-size: 14px;
	color: var(--bp-text-muted, #6B6258);
	margin: 0;
	line-height: 1.5;
}

/* Botão danger */
.bp-btn--danger {
	background: #B83A3A !important;
	color: #fff !important;
	border: 0 !important;
}
.bp-btn--danger:hover {
	background: #9B2A2A !important;
	transform: translateY(-1px);
}
.bp-btn--danger:disabled {
	background: #B83A3A !important;
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* ==========================================================================
   MODAL — Genérico
   ========================================================================== */
.bp-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.bp-modal[hidden] { display: none; }
.bp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 22, 18, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: bpModalFade 200ms ease;
}
@keyframes bpModalFade { from { opacity: 0; } to { opacity: 1; } }

.bp-modal__dialog {
	position: relative;
	background: var(--bp-bg-elevated, #fff);
	border-radius: 16px;
	padding: 32px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
	animation: bpModalSlide 200ms cubic-bezier(0.16, 1, 0.3, 1);
	max-height: 90vh;
	overflow-y: auto;
}
@keyframes bpModalSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 600px) { .bp-modal__dialog { padding: 24px 20px; } }

.bp-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: transparent;
	border: 0;
	font-size: 18px;
	color: var(--bp-text-muted, #6B6258);
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 150ms ease;
}
.bp-modal__close:hover {
	background: var(--bp-bg, #FAFAF8);
	color: var(--bp-text, #1A1612);
}

.bp-modal__dialog h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	margin: 0 0 12px;
	color: var(--bp-text, #1A1612);
	padding-right: 32px;
}
.bp-modal__dialog p {
	color: var(--bp-text-muted, #6B6258);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 20px;
}
.bp-modal__alt {
	padding: 12px 16px;
	background: var(--bp-accent-soft, #FFFCF5);
	border-radius: 8px;
	font-size: 13px;
	border-left: 3px solid var(--bp-accent, #C8A96E);
}
.bp-modal__alt a { color: var(--bp-accent, #C8A96E); font-weight: 600; text-decoration: underline; }

.bp-modal__dialog .bp-form-row { margin-bottom: 16px; }
.bp-modal__dialog .bp-form-row select,
.bp-modal__dialog .bp-form-row textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: var(--bp-bg-elevated, #fff);
	color: var(--bp-text, #1A1612);
	resize: vertical;
	min-height: 40px;
}
.bp-modal__dialog .bp-form-row select:focus,
.bp-modal__dialog .bp-form-row textarea:focus {
	outline: 0;
	border-color: var(--bp-accent, #C8A96E);
	box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.12);
}
.bp-modal__dialog .bp-form-row label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--bp-text-muted, #6B6258);
	margin-bottom: 8px;
}

.bp-modal__actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
	flex-wrap: wrap-reverse;
}
@media (max-width: 480px) {
	.bp-modal__actions { flex-direction: column-reverse; }
	.bp-modal__actions .bp-btn { width: 100%; }
}

/* ==========================================================================
   TRIAL — Banner no checkout
   ========================================================================== */
.bp-checkout__trial-banner {
	background: linear-gradient(135deg, #FFFCF5 0%, #FFF4D6 100%);
	border: 1.5px solid var(--bp-accent, #C8A96E);
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 20px;
}
.bp-checkout__trial-banner strong {
	display: block;
	font-size: 15px;
	color: #8A5A0E;
	font-weight: 700;
	margin-bottom: 4px;
}
.bp-checkout__trial-banner p {
	font-size: 12.5px;
	color: var(--bp-text-muted, #6B6258);
	margin: 0;
	line-height: 1.4;
}

/* Trial badge no /minha-conta/ */
.bp-account-trial-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background: var(--bp-accent-soft, #FFFCF5);
	border: 1px solid var(--bp-accent, #C8A96E);
	color: #8A5A0E;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	margin-left: 8px;
}

/* ==========================================================================
   REDIRECT MODE — info card no checkout
   ========================================================================== */
.bp-checkout__redirect-info {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px 24px;
	background: linear-gradient(135deg, rgba(46, 125, 91, 0.06) 0%, rgba(46, 125, 91, 0.02) 100%);
	border: 1.5px solid rgba(46, 125, 91, 0.25);
	border-radius: 12px;
	margin-bottom: 20px;
}
.bp-checkout__redirect-icon {
	font-size: 32px;
	line-height: 1;
	flex-shrink: 0;
}
.bp-checkout__redirect-info strong {
	display: block;
	font-size: 15px;
	color: #1E6B47;
	font-weight: 700;
	margin-bottom: 6px;
}
.bp-checkout__redirect-info p {
	margin: 0;
	font-size: 13.5px;
	color: var(--bp-text-muted, #6B6258);
	line-height: 1.5;
}

/* ==========================================================================
   CHECKOUT — Responsividade refinada
   ========================================================================== */

/* Mobile: pilha vertical, summary primeiro */
@media (max-width: 899px) {
	.bp-checkout__wrap {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.bp-checkout__summary {
		position: static !important;
		order: 0;
	}
	.bp-checkout__form-wrap {
		order: 1;
	}
	.bp-checkout__summary-title,
	.bp-checkout__plan h3 { font-size: 18px; }
	.bp-checkout__plan-desc { font-size: 13px; }
	.bp-checkout__total strong { font-size: 26px; }
	.bp-checkout__cycle-tab strong { font-size: 16px; }
}

/* Tablet: 320px de coluna esquerda */
@media (min-width: 900px) and (max-width: 1099px) {
	.bp-checkout__wrap {
		grid-template-columns: 320px 1fr;
		gap: 24px;
	}
	.bp-checkout__summary { padding: 22px; }
}

/* Mobile ainda menor: reduz padding e fontes */
@media (max-width: 480px) {
	.bp-checkout { padding-top: 24px; padding-bottom: 60px; }
	.bp-checkout__summary { padding: 20px 18px; border-radius: 12px; }
	.bp-checkout__form-wrap { padding: 22px 18px; border-radius: 12px; }
	.bp-checkout__step legend { font-size: 17px; }
	.bp-checkout__cycle-tabs { flex-direction: column; }
	.bp-checkout__cycle-tab { padding: 12px 10px; }
	.bp-form-grid-2 { grid-template-columns: 1fr; gap: 12px; }
	.bp-form-row input[type="text"],
	.bp-form-row input[type="email"],
	.bp-form-row input[type="tel"],
	.bp-form-row select {
		min-height: 46px;
		font-size: 16px; /* evita zoom no iOS */
		padding: 10px 14px;
	}
	.bp-card-fields input { font-size: 16px; min-height: 44px; }
	.bp-checkout__total strong { font-size: 22px; }
	.bp-checkout__redirect-info { padding: 16px 18px; gap: 12px; }
	.bp-checkout__redirect-icon { font-size: 26px; }
	.bp-checkout__redirect-info strong { font-size: 14px; }
	.bp-checkout__redirect-info p { font-size: 12.5px; }
	#bp-checkout-submit { font-size: 14px !important; padding: 14px 16px !important; }
	.bp-checkout__terms { font-size: 11px; padding: 0 8px; }
	.bp-checkout__coupon-row { flex-direction: column; gap: 8px; }
	.bp-checkout__coupon-row input { width: 100%; }
	.bp-checkout__coupon-row button { width: 100%; }
	.bp-checkout__trial-banner { padding: 12px 14px; }
	.bp-checkout__trial-banner strong { font-size: 13.5px; }
	.bp-checkout__trial-banner p { font-size: 11.5px; }
}

/* iPhone SE / Galaxy S antigos (≤ 380px) */
@media (max-width: 380px) {
	.bp-checkout__summary { padding: 18px 14px; }
	.bp-checkout__form-wrap { padding: 18px 14px; }
	.bp-checkout__total strong { font-size: 20px; }
	.bp-checkout__step legend { font-size: 16px; }
}

/* ─── Bug fix: largura máxima do container narrow no checkout ─── */
.bp-checkout .bp-container { max-width: 1100px; }

/* ─── Bug fix: input do cupom quebrava no mobile ─── */
.bp-checkout__coupon-row {
	flex-wrap: wrap;
}

/* ─── Bug fix: btn block dentro do checkout ─── */
.bp-btn--block { width: 100%; box-sizing: border-box; }

/* ==========================================================================
   ACCOUNT — Banner CTA de provisionamento (na /minha-conta/)
   ========================================================================== */
.bp-account-prov-cta {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px 24px;
	background: linear-gradient(135deg, #1A1612 0%, #2A241C 100%);
	color: #F5F0E8;
	border-radius: 14px;
	margin-bottom: 24px;
	border: 1px solid #C8A96E;
	box-shadow: 0 8px 24px rgba(26, 22, 18, 0.15);
	flex-wrap: wrap;
}
.bp-account-prov-cta__icon {
	font-size: 36px;
	line-height: 1;
	flex-shrink: 0;
}
.bp-account-prov-cta__body {
	flex: 1;
	min-width: 200px;
}
.bp-account-prov-cta__body h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	margin: 0 0 4px;
	color: #E8C97E;
}
.bp-account-prov-cta__body p {
	margin: 0;
	font-size: 13.5px;
	color: rgba(245, 240, 232, 0.85);
	line-height: 1.5;
}
@media (max-width: 600px) {
	.bp-account-prov-cta { padding: 18px 20px; flex-direction: column; text-align: center; }
	.bp-account-prov-cta .bp-btn { width: 100%; }
}

/* =============================================================================
   CHECKOUT — Polimento premium + responsividade total (v2.4.1)
   ============================================================================= */
.bp-checkout {
	background: linear-gradient(180deg, var(--bp-bg, #FAFAF8) 0%, var(--bp-bg-subtle, #F5F0E8) 100%);
	padding: 40px 0 80px;
	min-height: 70vh;
}
.bp-checkout .bp-container {
	max-width: 1180px;
	padding-left: 24px;
	padding-right: 24px;
}

.bp-checkout__wrap {
	gap: 24px;
}
@media (min-width: 980px) {
	.bp-checkout__wrap {
		grid-template-columns: 400px 1fr;
		gap: 28px;
	}
}

/* Resumo (coluna esquerda) — card mais premium */
.bp-checkout__summary {
	background: var(--bp-bg-elevated, #fff);
	border-radius: 18px;
	border: 1px solid var(--bp-border, #F0EAE0);
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 12px 28px rgba(0,0,0,.06);
	padding: 28px;
}
.bp-checkout__summary-title {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 11px;
	letter-spacing: 0.8px;
}
.bp-checkout__plan h3 {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
}

/* Form (coluna direita) — também premium */
.bp-checkout__form,
.bp-checkout__main {
	background: var(--bp-bg-elevated, #fff);
	border-radius: 18px;
	padding: 32px;
	border: 1px solid var(--bp-border, #F0EAE0);
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 12px 28px rgba(0,0,0,.06);
}

/* Inputs do checkout: visual mais polido */
.bp-checkout input[type="text"],
.bp-checkout input[type="email"],
.bp-checkout input[type="tel"],
.bp-checkout input[type="password"],
.bp-checkout select,
.bp-checkout textarea {
	border-radius: 10px !important;
	border: 1.5px solid var(--bp-border, #EAE4DA) !important;
	background: var(--bp-bg, #fff) !important;
	color: var(--bp-text, #1A1612) !important;
	padding: 12px 14px !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bp-checkout input::placeholder,
.bp-checkout textarea::placeholder {
	color: var(--bp-text-muted, #9A9183) !important;
	opacity: 0.7;
}
.bp-checkout input:focus,
.bp-checkout select:focus,
.bp-checkout textarea:focus {
	outline: none !important;
	border-color: var(--bp-accent, #C8A96E) !important;
	box-shadow: 0 0 0 3px rgba(200,169,110,0.18) !important;
}

/* Banner trial — fundo amarelo fixo, texto sempre escuro (legível nos 2 temas) */
.bp-checkout__trial-banner {
	background: linear-gradient(135deg, #FFF9E8 0%, #FFF3D0 100%);
	border: 1px solid #E8AF3D;
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 20px;
}
.bp-checkout__trial-banner strong {
	color: #1A1612 !important;
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}
.bp-checkout__trial-banner p,
.bp-checkout__trial-banner {
	margin: 0;
	font-size: 13px;
	color: #6B5A2E !important;
}

/* Total */
.bp-checkout__total {
	background: #1A1612;
	color: #fff;
	border-radius: 12px;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0 8px;
}
.bp-checkout__total span {
	font-size: 13px;
	color: rgba(255,255,255,0.7);
}
.bp-checkout__total strong {
	font-size: 22px;
	color: #E8AF3D;
	font-weight: 700;
}
.bp-checkout__total-meta {
	font-size: 12px;
	color: var(--bp-text-muted, #6B6258);
	text-align: center;
	margin: 0;
}

/* Tabs de ciclo (mensal/anual) — pills */
.bp-checkout__cycle { margin-bottom: 20px; }
.bp-checkout__cycle label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--bp-text-muted, #6B6258);
	font-weight: 600;
	margin-bottom: 8px;
}
.bp-checkout__cycle-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	background: var(--bp-bg-subtle, #F5F0E8);
	padding: 4px;
	border-radius: 12px;
}
.bp-checkout__cycle-tab {
	background: transparent;
	border: none;
	padding: 12px 14px;
	border-radius: 9px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-text-muted, #6B6258);
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: all .18s ease;
	text-align: center;
}
.bp-checkout__cycle-tab.is-active {
	background: var(--bp-bg-elevated, #fff);
	color: var(--bp-text, #1A1612);
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bp-checkout__cycle-tab strong {
	font-size: 16px;
	color: var(--bp-text, #1A1612);
}
.bp-checkout__cycle-save {
	display: inline-block;
	font-size: 10px;
	background: #2E7D5B;
	color: #fff;
	padding: 2px 8px;
	border-radius: 999px;
	font-weight: 600;
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

/* Features list (no resumo) */
.bp-checkout__features {
	background: var(--bp-bg-subtle, #FAFAF8);
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 20px;
}
.bp-checkout__features li {
	font-size: 13px !important;
	color: var(--bp-text, #1A1612) !important;
	padding: 4px 0 !important;
	line-height: 1.5 !important;
}

/* Mobile — checkout */
@media (max-width: 768px) {
	.bp-checkout { padding: 24px 0 50px; }
	.bp-checkout .bp-container { padding-left: 16px; padding-right: 16px; }
	.bp-checkout__summary,
	.bp-checkout__form,
	.bp-checkout__main { padding: 22px 20px; border-radius: 14px; }
	.bp-checkout__summary { position: static; }
	.bp-checkout__plan h3 { font-size: 19px !important; }
	.bp-checkout__total strong { font-size: 19px; }
	.bp-checkout__cycle-tab { padding: 10px 8px; }
	.bp-checkout__cycle-tab strong { font-size: 14px; }
}
@media (max-width: 480px) {
	.bp-checkout__wrap { gap: 16px; }
	.bp-checkout__summary,
	.bp-checkout__form,
	.bp-checkout__main { padding: 18px 16px; }
}

/* ============================================================
   🔄 Aviso de assinatura recorrente (checkout)
   ============================================================ */
.bp-checkout__recurring-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--bp-accent-soft, #FBF7EF);
	border: 1px solid var(--bp-accent, #C8A96E);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
}
.bp-checkout__recurring-icon {
	font-size: 20px;
	line-height: 1.3;
	flex-shrink: 0;
}
.bp-checkout__recurring-text {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--bp-text, #4A4034);
}
.bp-checkout__recurring-text strong {
	color: var(--bp-text, #1A1612);
	font-weight: 700;
}

/* Dark mode */
[data-theme="dark"] .bp-checkout__recurring-note {
	background: rgba(200, 169, 110, 0.08);
	border-color: rgba(200, 169, 110, 0.4);
}
[data-theme="dark"] .bp-checkout__recurring-text {
	color: #C9C0B0;
}
[data-theme="dark"] .bp-checkout__recurring-text strong {
	color: #F5F0E8;
}

/* ============================================================
   Escolha de modo de renovação (checkout)
   ============================================================ */
.bp-checkout__renewal-choice legend {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 10px;
	color: var(--bp-text, #1A1612);
}
.bp-checkout__renewal-opt {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 12px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: all 150ms ease;
}
.bp-checkout__renewal-opt:hover {
	border-color: var(--bp-accent, #C8A96E);
}
.bp-checkout__renewal-opt input[type="radio"] {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--bp-accent, #C8A96E);
}
.bp-checkout__renewal-opt span {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.bp-checkout__renewal-opt strong {
	font-size: 14.5px;
	color: var(--bp-text, #1A1612);
}
.bp-checkout__renewal-opt small {
	font-size: 13px;
	color: var(--bp-text-muted, #6B6258);
	line-height: 1.45;
}
.bp-checkout__renewal-opt:has(input:checked) {
	border-color: var(--bp-accent, #C8A96E);
	background: var(--bp-accent-soft, #FBF7EF);
}

/* Dark mode */
[data-theme="dark"] .bp-checkout__renewal-opt {
	border-color: #33302A;
}
[data-theme="dark"] .bp-checkout__renewal-opt strong { color: #F5F0E8; }
[data-theme="dark"] .bp-checkout__renewal-opt small { color: #A89F90; }
[data-theme="dark"] .bp-checkout__renewal-opt:has(input:checked) {
	background: rgba(200, 169, 110, 0.08);
	border-color: rgba(200, 169, 110, 0.5);
}
[data-theme="dark"] .bp-checkout__renewal-choice legend { color: #F5F0E8; }

/* ============================================================
 *  Feedback de validação de campos (CPF/CNPJ, telefone)
 * ============================================================ */
.bp-field-hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
}
.bp-field-hint[data-state="error"] {
	color: #B83A3A;
}
.bp-field-hint[data-state="ok"] {
	color: #2E7D5B;
}
.bp-field-hint[hidden] {
	display: none;
}

/* Contorno do campo inválido — sinal visual imediato, sem ser agressivo. */
input[aria-invalid="true"] {
	border-color: #B83A3A !important;
}
input[aria-invalid="true"]:focus {
	outline-color: #B83A3A;
	box-shadow: 0 0 0 3px rgba(184, 58, 58, 0.12);
}

/* ============================================================
   Checkout — seleção de gateway/método + bloco de segurança
   (v2.61.0)
   ============================================================ */
.bp-pay-block { margin: 0 0 20px; }
.bp-pay-block__title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--bp-text-muted, #6B6258);
	margin: 0 0 10px;
}

/* Gateways (cards) */
.bp-pay-gateways { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .bp-pay-gateways { grid-template-columns: 1fr 1fr; } }
.bp-pay-gateway {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--bp-bg, #FAFAF8);
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.bp-pay-gateway:hover { border-color: var(--bp-accent, #C8A15A); }
.bp-pay-gateway input { position: absolute; opacity: 0; pointer-events: none; }
.bp-pay-gateway.is-selected,
.bp-pay-gateway:has(input:checked) {
	border-color: var(--bp-accent, #C8A15A);
	background: var(--bp-accent-soft, #F6EEDD);
	box-shadow: 0 0 0 3px var(--bp-accent-soft, #F6EEDD);
}
.bp-pay-gateway__logo { width: 34px; height: 34px; flex: 0 0 34px; color: var(--bp-text, #1A1612); object-fit: contain; }
.bp-pay-gateway__name { font-weight: 600; color: var(--bp-text, #1A1612); font-size: 15px; display: flex; align-items: center; gap: 6px; }
.bp-pay-gateway__methods { margin-left: auto; display: inline-flex; gap: 4px; }
.bp-pay-gateway__methods img { width: 22px; height: 22px; color: var(--bp-text-muted, #6B6258); opacity: .8; }
.bp-pay-badge {
	font-style: normal; font-size: 10px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em;
	background: #E8B4344d; color: #7a5a12; border-radius: 4px; padding: 1px 5px;
}

/* Métodos (cards) */
.bp-pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .bp-pay-methods { grid-template-columns: repeat(4, 1fr); } }
.bp-pay-method {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding: 14px 8px;
	background: var(--bp-bg, #FAFAF8);
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.bp-pay-method:hover { border-color: var(--bp-accent, #C8A15A); }
.bp-pay-method.is-hidden { display: none; }
.bp-pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.bp-pay-method:has(input:checked) {
	border-color: var(--bp-accent, #C8A15A);
	background: var(--bp-accent-soft, #F6EEDD);
	box-shadow: 0 0 0 3px var(--bp-accent-soft, #F6EEDD);
}
.bp-pay-method__icon { width: 30px; height: 30px; color: var(--bp-text, #1A1612); }
.bp-pay-method__label { font-weight: 600; font-size: 14px; color: var(--bp-text, #1A1612); }
.bp-pay-method__hint { font-size: 11px; color: var(--bp-text-muted, #6B6258); line-height: 1.2; }

/* Bloco de confiança */
.bp-pay-trust {
	margin-top: 18px;
	padding: 16px;
	background: var(--bp-bg-subtle, #F3F1EC);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 12px;
}
.bp-pay-trust__head { display: flex; align-items: flex-start; gap: 12px; }
.bp-pay-trust__lock { width: 34px; height: 34px; flex: 0 0 34px; color: #2E7D5B; }
.bp-pay-trust__head strong { display: block; color: var(--bp-text, #1A1612); font-size: 15px; }
.bp-pay-trust__head p { margin: 2px 0 0; font-size: 13px; color: var(--bp-text-muted, #6B6258); line-height: 1.45; }
.bp-pay-trust__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.bp-pay-trust__list li {
	position: relative; padding-left: 24px;
	font-size: 13px; color: var(--bp-text, #1A1612); line-height: 1.4;
}
.bp-pay-trust__list li::before {
	content: ""; position: absolute; left: 0; top: 2px;
	width: 16px; height: 16px; border-radius: 50%;
	background: #2E7D5B;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/12px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.bp-pay-accepted {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin-top: 14px; padding-top: 12px;
	border-top: 1px solid var(--bp-border, #E5E0D8);
}
.bp-pay-accepted__label { font-size: 12px; color: var(--bp-text-muted, #6B6258); }
.bp-pay-accepted__icons { display: inline-flex; gap: 8px; }
.bp-pay-accepted__icons img { width: 30px; height: 30px; color: var(--bp-text-muted, #6B6258); }

/* ============================================================
   Checkout — bloco INFORMATIVO de formas aceitas (não-clicável)
   (v2.61.2)
   ============================================================ */
.bp-pay-accepted-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.bp-pay-accepted-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: var(--bp-bg, #FAFAF8);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 10px;
}
.bp-pay-accepted-item__icon { width: 26px; height: 26px; }
.bp-pay-accepted-item__label {
	font-weight: 600;
	font-size: 14px;
	color: var(--bp-text, #1A1612);
}
.bp-pay-accepted-note {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--bp-text-muted, #6B6258);
	line-height: 1.45;
}

/* Banner informativo por IMAGEM (opcional — quando o admin fornece uma) */
.bp-pay-accepted-banner { margin-top: 4px; }
.bp-pay-accepted-banner img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid var(--bp-border, #E5E0D8);
}

/* ============================================================
   Checkout — uma "forma de pagamento" por gateway (v2.62.0)
   ============================================================ */
.bp-pay-accepted-banner--top { margin: 0 0 22px; }

.bp-pay-options { display: grid; gap: 16px; margin: 12px 0 4px; }
.bp-pay-option {
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 16px;
	padding: 18px;
	background: var(--bp-bg-elevated, #fff);
	transition: border-color .15s, box-shadow .15s;
}
.bp-pay-option:hover { border-color: var(--bp-accent, #C8A96E); box-shadow: 0 6px 18px rgba(26,22,18,.06); }
.bp-pay-option__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bp-pay-option__logo { width: 34px; height: 34px; flex: 0 0 34px; color: var(--bp-text, #1A1612); object-fit: contain; }
.bp-pay-option__name {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700; font-size: 19px; color: var(--bp-text, #1A1612);
	display: flex; align-items: center; gap: 8px;
}

.bp-pay-option__methods {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin-bottom: 12px;
}
.bp-pay-option__methods-label { font-size: 13px; color: var(--bp-text-muted, #6B6258); margin-right: 2px; }
.bp-pay-option__methods--banner { display: block; }
.bp-pay-option__methods--banner img { max-width: 100%; max-height: 56px; height: auto; display: block; }
.bp-pay-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px 6px 8px;
	background: var(--bp-bg, #FAFAF8);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 999px;
	font-size: 13px; font-weight: 600; color: var(--bp-text, #1A1612);
}
.bp-pay-chip img { width: 20px; height: 20px; }

.bp-pay-option__note {
	display: flex; align-items: flex-start; gap: 8px;
	font-size: 13px; line-height: 1.45;
	padding: 10px 12px; border-radius: 10px; margin: 0 0 14px;
}
.bp-pay-option__note-ic { flex: 0 0 auto; }
.bp-pay-option__note--auto {
	background: rgba(46,125,91,.08);
	color: #245c44;
	border: 1px solid rgba(46,125,91,.20);
}
.bp-pay-option__note--manual {
	background: var(--bp-accent-soft, #F6EEDD);
	color: #7a5a12;
	border: 1px solid rgba(200,161,110,.35);
}

.bp-pay-btn { margin-top: 2px; }

/* ============================================================
   Checkout — card premium por gateway + descrição (v2.62.1)
   ============================================================ */
.bp-pay-option {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(var(--bp-bg-elevated,#fff), var(--bp-bg-elevated,#fff)) padding-box,
		linear-gradient(135deg, rgba(200,169,110,.55), rgba(200,169,110,.12)) border-box;
	border: 1.5px solid transparent;
}
.bp-pay-option::before {
	content: "";
	position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, #C8A96E, #E4CE9C);
	opacity: .9;
}
.bp-pay-option:hover { box-shadow: 0 10px 28px rgba(26,22,18,.10); transform: translateY(-1px); }
.bp-pay-option__head { align-items: flex-start; }
.bp-pay-option__head-text { display: flex; flex-direction: column; gap: 2px; }
.bp-pay-option__logo {
	background: var(--bp-accent-soft,#F6EEDD);
	border-radius: 10px; padding: 6px; box-sizing: content-box;
	width: 26px; height: 26px; flex: 0 0 26px;
}
.bp-pay-option__desc { font-size: 13px; color: var(--bp-text-muted,#6B6258); line-height: 1.4; }

/* ============================================================
   CHECKOUT — polimento premium (v2.64.57)
   Cascata: bloco final, prevalece. Usa tokens com fallback.
   ============================================================ */

/* ── Card de resumo: profundidade, cantos suaves, fio dourado no topo ── */
.bp-checkout__summary {
  border: 1px solid var(--bp-border, #ece7df);
  border-top: 3px solid var(--bp-accent, #C8A96E);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(26,22,18,.08);
  background:
    radial-gradient(120% 60% at 50% -10%, var(--bp-accent-soft, #F6EEDD), transparent 60%),
    var(--bp-bg-elevated, #fff);
}
.bp-checkout__summary-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--bp-font-display, Georgia, serif);
  letter-spacing: -.01em;
}
.bp-checkout__plan h3 {
  font-family: var(--bp-font-display, Georgia, serif);
  font-size: 20px; letter-spacing: -.01em;
}

/* ── Abas de ciclo (mensal/anual): estado ativo dourado + transição suave ── */
.bp-checkout__cycle-tab {
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.bp-checkout__cycle-tab:hover { transform: translateY(-1px); }
.bp-checkout__cycle-tab.is-active {
  border-color: var(--bp-accent, #C8A96E);
  background: linear-gradient(180deg, var(--bp-accent-soft, #F6EEDD), transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--bp-accent, #C8A96E) 22%, transparent);
}
.bp-checkout__cycle-save {
  background: linear-gradient(120deg, var(--bp-accent, #C8A96E), var(--bp-accent-hover, #B8965A));
  color: #1A1612; font-weight: 800;
}

/* ── Total: preço com gradiente dourado + destaque ── */
.bp-checkout__total { align-items: baseline; }
.bp-checkout__total strong {
  font-family: var(--bp-font-display, Georgia, serif);
  font-size: 30px; line-height: 1;
  /* O card do total é escuro (#1A1612) — o gradiente precisa ser CLARO para
     aparecer. (Antes começava em --bp-text, que era a própria cor do fundo.) */
  background: linear-gradient(120deg, #F7E9C2, #E8C97E);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Selo de segurança: refinado ── */
.bp-checkout__security {
  border: 1px dashed color-mix(in srgb, var(--bp-accent, #C8A96E) 40%, transparent);
  border-radius: 12px; background: color-mix(in srgb, var(--bp-accent, #C8A96E) 6%, transparent);
}

/* ── Passos numerados (badge dourado antes da legenda) ── */
.bp-checkout__form { counter-reset: bpstep; }
.bp-checkout__step > legend {
  display: flex; align-items: center; gap: 10px;
}
.bp-checkout__step > legend::before {
  counter-increment: bpstep; content: counter(bpstep);
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bp-accent, #C8A96E), var(--bp-accent-hover, #B8965A));
  color: #1A1612; font-size: 14px; font-weight: 800;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--bp-accent, #C8A96E) 30%, transparent);
}
/* a escolha de renovação não é um "passo" numerado */
.bp-checkout__renewal-choice > legend::before { content: none; counter-increment: none; }

/* ── Inputs: foco dourado suave + transições ── */
.bp-form-row input[type="text"],
.bp-form-row input[type="email"],
.bp-form-row input[type="tel"] {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  border-radius: 10px;
}
.bp-form-row input:focus {
  border-color: var(--bp-accent, #C8A96E);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bp-accent, #C8A96E) 20%, transparent);
  outline: none;
}
.bp-form-row label { font-weight: 600; }

/* ── Cards de gateway: elevação + seta que desliza no hover ── */
.bp-pay-option {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.bp-pay-option:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(26,22,18,.12); }
.bp-pay-option__head { position: relative; }
.bp-pay-option__head::after {
  content: "→"; position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%) translateX(-4px); opacity: 0;
  color: var(--bp-accent, #C8A96E); font-weight: 700; font-size: 18px;
  transition: opacity .25s ease, transform .25s ease;
}
.bp-pay-option:hover .bp-pay-option__head::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.bp-pay-option__logo { transition: transform .3s ease; }
.bp-pay-option:hover .bp-pay-option__logo { transform: scale(1.06); }

/* ── Botão de pagar: brilho (sheen) no hover ── */
.bp-pay-btn { position: relative; overflow: hidden; }
.bp-pay-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: translateX(-120%); pointer-events: none;
}
.bp-pay-btn:hover::after { animation: bpPaySheen .8s ease; }
@keyframes bpPaySheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* ── Cupom: input + botão alinhados e suaves ── */
.bp-checkout__coupon input { transition: border-color .2s ease, box-shadow .2s ease; border-radius: 10px; }
.bp-checkout__coupon input:focus { border-color: var(--bp-accent, #C8A96E); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bp-accent,#C8A96E) 18%, transparent); outline: none; }

/* ── Mobile: no celular o resumo vem depois do essencial, com respiro ── */
@media (max-width: 860px) {
  .bp-checkout__summary { border-radius: 16px; }
  .bp-pay-option:hover { transform: none; } /* sem lift no toque */
  .bp-checkout__step > legend::before { width: 24px; height: 24px; flex-basis: 24px; font-size: 13px; }
}

/* ── Acessibilidade: menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  .bp-pay-option, .bp-pay-option:hover,
  .bp-checkout__cycle-tab, .bp-checkout__cycle-tab:hover { transition: none !important; transform: none !important; }
  .bp-pay-btn::after, .bp-pay-btn:hover::after { animation: none !important; }
}

/* ── Modo escuro: consistência dos novos elementos ── */
[data-theme="dark"] .bp-checkout__summary {
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--bp-accent,#C8A96E) 14%, transparent), transparent 60%),
    var(--bp-bg-elevated, #1c1a17);
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .bp-checkout__total strong {
  background: linear-gradient(120deg, #F5F0E8, var(--bp-accent, #E8C97E));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Notas de recorrência das formas de pagamento — texto marrom/verde escuro filava
   contra o fundo escuro (ex.: "Pagamento único." quase ilegível). Clareados no dark. */
[data-theme="dark"] .bp-pay-option__note--auto {
  background: rgba(78,203,148,.14);
  color: #7fe0b0;
  border-color: rgba(78,203,148,.32);
}
[data-theme="dark"] .bp-pay-option__note--manual {
  background: rgba(232,201,126,.14);
  color: #ecc766;
  border-color: rgba(232,201,126,.34);
}
/* Chip de método e descrição legíveis no dark */
[data-theme="dark"] .bp-pay-chip {
  background: var(--bp-bg-subtle, #221F18);
  border-color: var(--bp-border, #33302A);
  color: var(--bp-text, #F5F0E8);
}
[data-theme="dark"] .bp-pay-badge {
  background: rgba(232,201,126,.18);
  color: #ecc766;
  border-color: rgba(232,201,126,.34);
}
/* Cartão de confiança: cadeado verde continua ok; textos herdam tokens */
[data-theme="dark"] .bp-pay-trust {
  background: var(--bp-bg-subtle, #221F18);
  border-color: var(--bp-border, #33302A);
}
/* Banner de trial do checkout mantém fundo claro proposital → garante texto escuro legível */
[data-theme="dark"] .bp-checkout__trial-banner strong { color: #1A1612 !important; }
[data-theme="dark"] .bp-checkout__trial-banner,
[data-theme="dark"] .bp-checkout__trial-banner p { color: #6B5A2E !important; }

/* Quando há um só ciclo (ex.: plano só mensal), a aba ocupa a largura toda —
   evita ficar meia-largura à esquerda destoando do resto. */
.bp-checkout__cycle-tabs:has(.bp-checkout__cycle-tab:only-child) { grid-template-columns: 1fr; }
