/* InfinitePay para WooCommerce — visual (mobile-first, herda a fonte do tema). */
:root {
	--wcip-accent: #DC2020;
	--wcip-pix: #1a9c8c;
	--wcip-ink: #262525;
	--wcip-muted: #646970;
	--wcip-line: #e3e5e8;
	--wcip-soft: #f8f9fa;
	--wcip-ok: #1e8a4c;
	--wcip-radius: 10px;
}

/* ---------- Vitrine: produto e listagem ---------- */
.wcip-price { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 14px; line-height: 1.35; color: var(--wcip-ink); }
.wcip-price strong, .woocommerce ul.products li.product .wcip-price strong { display: inline !important; font-weight: 700; }
.wcip-price > span { display: block; }
.wcip-price .wcip-price__pix { display: flex; }
.wcip-price .woocommerce-Price-amount { font-weight: inherit; }
.wcip-price__pix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 1.05em; }
.wcip-price__pix strong { color: var(--wcip-accent); font-size: 1.25em; }
.wcip-price__card { font-size: .95em; color: var(--wcip-muted); }
.wcip-price__card strong { color: var(--wcip-ink); }
.wcip-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 5px; border-radius: 999px; background: rgba(26, 156, 140, .1); color: var(--wcip-pix); font-size: .75em; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.wcip-tag .wcip-ico svg { width: 14px; height: 14px; }
.wcip-muted { color: var(--wcip-muted); font-size: .9em; }

.wcip-price--loop { margin: 2px 0 8px; gap: 2px; font-size: .9em; }
.wcip-price--loop .wcip-price__pix { font-size: 1em; gap: 4px; }
.wcip-price--loop .wcip-price__pix strong { font-size: 1.1em; }
.wcip-price--loop .wcip-tag { display: none; }
.products .wcip-price--loop, .wc-block-grid .wcip-price--loop { align-items: inherit; }
.products li.product.text-center .wcip-price--loop, .products .product.has-text-align-center .wcip-price--loop { align-items: center; text-align: center; }

/* ---------- Checkout: caixa do meio de pagamento ---------- */
.wcip-box { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 2px; }
.wcip-opt { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--wcip-line); border-radius: var(--wcip-radius); background: #fff; color: var(--wcip-ink); }
.wcip-opt__txt { display: flex; flex-direction: column; min-width: 0; }
.wcip-opt__name { font-weight: 700; font-size: .95em; }
.wcip-opt__sub { font-size: .8em; color: var(--wcip-muted); }
.wcip-opt__val { font-weight: 700; font-size: 1em; text-align: right; white-space: nowrap; }
.wcip-opt .wcip-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; }
.wcip-opt--pix { border-color: rgba(26, 156, 140, .45); background: linear-gradient(0deg, rgba(26, 156, 140, .05), rgba(26, 156, 140, .05)), #fff; }
.wcip-opt--pix .wcip-ico { background: rgba(26, 156, 140, .12); color: var(--wcip-pix); }
.wcip-opt--pix .wcip-opt__val { color: var(--wcip-accent); font-size: 1.1em; }
.wcip-opt--card .wcip-ico { background: var(--wcip-soft); color: var(--wcip-ink); }
.wcip-trust { display: flex; align-items: flex-start; gap: 6px; margin: 2px 2px 0 !important; font-size: .8em; line-height: 1.4; color: var(--wcip-muted); }
.wcip-trust .wcip-ico { flex: none; margin-top: 2px; color: var(--wcip-ok); }

@media (max-width: 420px) {
	.wcip-opt { grid-template-columns: 32px 1fr; }
	.wcip-opt .wcip-ico { width: 32px; height: 32px; }
	.wcip-opt__val { grid-column: 2; text-align: left; }
}

/* Rótulo no checkout em blocos */
.wcip-label { display: inline-flex; align-items: center; gap: 8px; width: 100%; }
.wcip-label__img { height: 22px; margin-left: auto; }
/* Ícone no checkout clássico */
.wc_payment_method.payment_method_infinitepay > label img { max-height: 22px; margin-left: 6px; vertical-align: middle; float: none; }
.payment_box.payment_method_infinitepay { background: var(--wcip-soft) !important; }
.payment_box.payment_method_infinitepay::before { border-bottom-color: var(--wcip-soft) !important; }

/* Linha "Total no Pix" */
.wcip-total-row th, .wcip-total-row td { color: var(--wcip-accent); border-top: 0 !important; padding-top: 0 !important; }
.wcip-total-row td strong { font-size: 1.05em; }

/* ---------- Página de obrigado ---------- */
.wcip-ty { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--wcip-line); border-left-width: 4px; border-radius: var(--wcip-radius); background: #fff; color: var(--wcip-ink); }
.wcip-ty--paid { border-left-color: var(--wcip-ok); }
.wcip-ty--pending { border-left-color: var(--wcip-accent); }
.wcip-ty__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.wcip-ty--paid .wcip-ty__icon { background: rgba(30, 138, 76, .12); color: var(--wcip-ok); }
.wcip-ty__title { margin: 0 0 4px !important; font-size: 1.15em !important; line-height: 1.3; }
.wcip-ty__text { margin: 0 0 12px !important; color: var(--wcip-muted); }
.wcip-ty__body > :last-child { margin-bottom: 0 !important; }
.wcip-spin { border: 3px solid rgba(0, 0, 0, .08); border-top-color: var(--wcip-accent); animation: wcip-spin .9s linear infinite; width: 34px; height: 34px; }
@keyframes wcip-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wcip-spin { animation: none; } }

.wcip-btn, a.wcip-btn { display: inline-block; padding: 12px 22px; border-radius: 8px; background: var(--wcip-accent); color: #fff !important; font-weight: 700; text-decoration: none !important; line-height: 1.2; border: 2px solid var(--wcip-accent); transition: filter .15s; }
.wcip-btn:hover { filter: brightness(.92); }
.wcip-btn--ghost, a.wcip-btn--ghost { background: transparent; color: var(--wcip-accent) !important; }
@media (max-width: 480px) {
	.wcip-ty { padding: 16px; gap: 12px; }
	.wcip-btn, a.wcip-btn { display: block; text-align: center; }
}

/* ---------- Formas aceitas e selos de confiança ---------- */
.wcip-trustbar { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 16px; }
.wcip-trustbar--checkout { margin: 2px 0 0; padding: 10px 12px; border: 1px dashed var(--wcip-line); border-radius: var(--wcip-radius); background: #fff; }
.wcip-accepts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wcip-accepts__label { font-size: .78em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--wcip-muted); margin-right: 2px; }
.wcip-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border: 1px solid var(--wcip-line); border-radius: 6px; background: #fff; color: var(--wcip-ink); font-size: .75em; font-weight: 700; line-height: 1; white-space: nowrap; }
.wcip-chip[hidden] { display: none !important; }
.wcip-chip--pix { color: var(--wcip-pix); border-color: rgba(26, 156, 140, .4); }
.wcip-chip--pix .wcip-ico svg { width: 13px; height: 13px; }
.wcip-chip--wallet { background: #111; border-color: #111; color: #fff; }
.wcip-seals { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 4px; }
.wcip-seals li { display: flex; align-items: flex-start; gap: 6px; margin: 0 !important; padding: 0 !important; font-size: .82em; line-height: 1.4 !important; color: var(--wcip-muted); }
.wcip-seals .wcip-ico { flex: none; margin-top: 2px; color: var(--wcip-ok); }
.wcip-trustbar--product .wcip-seals li { font-size: .85em; }
.wcip-trust .wcip-ico--arrow { color: var(--wcip-muted); }
