/* Smart NFC — componentes de configuração (funcionam com qualquer tema). */
.snfc-fields, .snfc-edit__form { --snfc-line: var(--line, #e5e7eb); --snfc-ink: var(--ink, #09090b); --snfc-muted: var(--muted, #6b7280); --snfc-action: var(--action, #1769e0); --snfc-danger: #b91c1c; --snfc-soft: var(--soft, #f4f6fa); }
.snfc-biz__title { font-weight: 600; color: var(--snfc-ink); margin: 0 0 4px; font-size: 1.02rem; }
.snfc-panel { margin-bottom: 12px; }
.snfc-panel > .snfc-help:first-of-type { margin: 0 0 12px; }
.snfc-search__box { position: relative; }
.snfc-search__results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--snfc-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(9,9,11,.12); overflow: hidden; }
.snfc-search__results ul { list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto; }
.snfc-search__results li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.snfc-search__results li strong { color: var(--snfc-ink); font-weight: 500; }
.snfc-search__results li span { color: var(--snfc-muted); font-size: .85rem; }
.snfc-search__results li[aria-selected="true"], .snfc-search__results li:hover { background: var(--snfc-soft); }
.snfc-search__attr { margin: 0; padding: 6px 12px; font-size: .75rem; color: var(--snfc-muted); text-align: right; border-top: 1px solid var(--snfc-line); }
.snfc-chosen .snfc-search__attr { border: 0; padding: 4px 0 0; text-align: left; }
.snfc-search__status { min-height: 1.2em; margin: 6px 0 0; font-size: .85rem; color: var(--snfc-muted); }
.snfc-search__status.is-warning { color: #92400e; }
.snfc-chosen { border: 1px solid var(--snfc-action); background: #fff; border-radius: 12px; padding: 12px 14px; }
.snfc-chosen p { margin: 0; }
.snfc-chosen__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--snfc-action); font-weight: 600; }
.snfc-chosen__name { font-weight: 600; color: var(--snfc-ink); margin-top: 2px !important; }
.snfc-chosen__address { color: var(--snfc-muted); font-size: .9rem; }
.snfc-chosen__note { margin-top: 8px !important; font-size: .85rem; color: #92400e; }
.snfc-chosen__actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px !important; }
.snfc-linkbtn { background: none !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; color: var(--snfc-action) !important; font: inherit; font-size: .9rem; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; white-space: nowrap; }
.snfc-linkbtn:hover { color: var(--snfc-ink) !important; }
.snfc-inline { display: flex; gap: 12px; align-items: center; }
.snfc-inline input { flex: 1; min-width: 0; }
.snfc-alts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--snfc-line); }
.snfc-alt { background: none; border: 0; padding: 4px 0; color: var(--snfc-ink); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--snfc-line); cursor: pointer; text-align: left; }
.snfc-alt:hover { text-decoration-color: currentColor; }
.snfc-alt::before { content: "→ "; color: var(--snfc-action); }
.snfc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.snfc-grid .snfc-field--full { grid-column: 1 / -1; }
@media (max-width: 480px) { .snfc-grid { grid-template-columns: 1fr; } }
.snfc-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 4px 0 8px; cursor: pointer; }
.snfc-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.snfc-notice { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.snfc-error { display: block; color: var(--snfc-danger); font-size: .85rem; margin-top: 6px; font-weight: 500; }
.snfc-fields [aria-invalid="true"], .snfc-edit__form [aria-invalid="true"], form.cart select[aria-invalid="true"] { border-color: var(--snfc-danger) !important; box-shadow: 0 0 0 3px rgba(185,28,28,.12); }
.snfc-design { border-top: 1px solid var(--snfc-line); padding-top: 12px; margin-top: 4px; }
.snfc-fields__foot { margin: 8px 0 4px !important; }
.snfc-qty-note { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--snfc-muted); }
.snfc-pay { margin: 4px 0 18px; padding: 12px 14px; border: 1px solid var(--snfc-line); border-radius: 12px; }
.snfc-pay__title { margin: 0 0 8px; font-size: .85rem; color: var(--snfc-muted); }
.snfc-pay__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.snfc-pay__list li { padding: 3px 10px; border: 1px solid var(--snfc-line); border-radius: 999px; font-size: .82rem; color: var(--snfc-ink); background: #fff; }
.snfc-pay__note { margin: 8px 0 0; font-size: .78rem; color: var(--snfc-muted); }
.snfc-device__summary { display: grid; gap: 2px; margin: 4px 0 6px; font-size: .9rem; }
.snfc-device__summary div { display: flex; gap: 6px; flex-wrap: wrap; }
.snfc-device__summary dt { color: var(--snfc-muted); }
.snfc-device__summary dt::after { content: ":"; }
.snfc-device__summary dd { margin: 0; color: var(--snfc-ink); word-break: break-all; }
.snfc-device__state { margin: 0; font-size: .85rem; color: var(--snfc-muted); }
.single_add_to_cart_button.is-loading { opacity: .7; pointer-events: none; }
.snfc-biz__title--main { font-size: 1.05rem; margin-bottom: 8px; }
.snfc-biz__sub { font-weight: 500; color: var(--snfc-ink); margin: 0 0 2px; }
.snfc-fields .snfc-fields__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--snfc-muted); font-weight: 600; }
.snfc-fields [hidden], .snfc-edit__form [hidden], form.cart [hidden] { display: none !important; }
/* Pesquisa Google simplificada: confirmação do negócio + opção discreta de apoio */
.snfc-search input#snfc_g_query { width: 100%; min-height: 48px; font-size: 16px; }
.snfc-chosen:not([hidden]) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1.5px solid var(--snfc-action); background: #f5f9ff; border-radius: 12px; padding: 12px 14px; }
.snfc-chosen__check { width: 28px; height: 28px; border-radius: 50%; background: var(--snfc-action); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex: none; }
.snfc-chosen__body { min-width: 0; }
.snfc-chosen__name, .snfc-chosen__address { overflow-wrap: anywhere; }
.snfc-chosen__change { align-self: center; white-space: nowrap; font-weight: 600; min-height: 40px; padding: 0 4px; }
.snfc-biz .snfc-alts { border-top: 0; padding-top: 4px; margin: 8px 0 0; }
.snfc-alt.snfc-alt--quiet { color: var(--snfc-muted); font-size: .86rem; text-align: left; line-height: 1.4; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); }
.snfc-alt.snfc-alt--quiet::before { content: none; }
.snfc-alt.snfc-alt--quiet:hover { color: var(--snfc-ink); }
.snfc-biz .snfc-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .snfc-biz .snfc-grid { grid-template-columns: 1fr; } .snfc-chosen:not([hidden]) { grid-template-columns: auto minmax(0, 1fr); } .snfc-chosen__change { grid-column: 2; justify-self: start; min-height: 32px; padding: 0; } }
/* Configuração opcional na página de produto */
.snfc-fields__optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--snfc-muted); }
.snfc-fields__note { margin: 2px 0 12px; font-size: .85rem; color: var(--snfc-muted); }
.snfc-fields [data-platform-block] .required { display: none; }

/* ===== Amostras de cor ===== */
.snfc-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
table.variations tr.snfc-has-swatches > th.label { display: none !important; }
table.variations tr.snfc-has-swatches > td.value { display: block; width: 100%; padding: 0 !important; position: relative; }
table.variations tr.snfc-has-swatches .reset_variations { display: none !important; }
.snfc-swatches { margin: 0 0 4px; }
.snfc-swatches__label { margin: 0 0 10px !important; font-size: 15px; color: var(--ink, #111827); line-height: 1.3; }
.snfc-swatches__label strong { font-weight: 600; }
.snfc-swatches__label strong.is-empty { font-weight: 400; color: var(--muted, #6b7280); }
.snfc-swatches__list { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.snfc-swatch { position: relative; width: 48px; height: 48px; min-width: 48px; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; box-shadow: none !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.snfc-swatch::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; transition: border-color .15s ease; }
.snfc-swatch:hover::before { border-color: #c7d2e5; }
.snfc-swatch[aria-checked="true"]::before { border-color: #247afb; }
.snfc-swatch__dot { width: 36px; height: 36px; border-radius: 50%; background: var(--sw, #9ca3af); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.snfc-swatch--light .snfc-swatch__dot { box-shadow: inset 0 0 0 1.5px #b8c0cc; }
.snfc-swatch__check { position: absolute; width: 18px; height: 18px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease; }
.snfc-swatch--light .snfc-swatch__check { color: #111827; }
.snfc-swatch[aria-checked="true"] .snfc-swatch__check { opacity: 1; transform: scale(1); }
.snfc-swatch:focus-visible { outline: 2px solid #247afb; outline-offset: 2px; }
.snfc-swatch:disabled { cursor: not-allowed; opacity: .35; }
.snfc-swatch:disabled::after { content: ""; position: absolute; width: 2px; height: 40px; background: #6b7280; transform: rotate(45deg); }

/* ===== Pesquisa do negócio no Google ===== */
.snfc-search > label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 8px; color: var(--snfc-ink); }
.snfc-search__box { position: relative; }
.snfc-search__g { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; display: flex; pointer-events: none; z-index: 2; }
.snfc-search__g svg { width: 20px; height: 20px; display: block; }
.snfc-search input#snfc_g_query { padding: 0 44px 0 46px !important; min-height: 52px; border: 1.5px solid #d6dbe4 !important; border-radius: 12px !important; background: #fff !important; font-size: 16px; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.snfc-search input#snfc_g_query:focus { border-color: #247afb !important; box-shadow: 0 0 0 3px rgba(36, 122, 251, .15) !important; outline: none; }
.snfc-search input#snfc_g_query::placeholder { color: #8a93a3; }
.snfc-search__spinner { position: absolute; right: 16px; top: 26px; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid #d6dbe4; border-top-color: #247afb; opacity: 0; z-index: 2; pointer-events: none; }
.snfc-search__box.is-loading .snfc-search__spinner { opacity: 1; animation: snfc-spin .7s linear infinite; }
@keyframes snfc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .snfc-search__box.is-loading .snfc-search__spinner { animation-duration: 2s; } }
.snfc-search__results { top: calc(100% + 6px) !important; border: 1px solid #e3e7ee !important; border-radius: 14px !important; box-shadow: 0 16px 36px rgba(15, 23, 42, .14) !important; overflow: hidden; }
.snfc-search__results ul { padding: 6px !important; max-height: 320px; }
.snfc-search__results li.snfc-search__item { display: grid !important; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 12px !important; min-height: 48px; border-radius: 10px; flex-direction: row !important; }
.snfc-search__pin { color: #8a93a3; width: 20px; height: 20px; margin-top: 1px; }
.snfc-search__pin svg { width: 20px; height: 20px; display: block; }
.snfc-search__item[aria-selected="true"] .snfc-search__pin, .snfc-search__item:hover .snfc-search__pin { color: #247afb; }
.snfc-search__text { display: grid; gap: 2px; min-width: 0; }
.snfc-search__text strong { font-weight: 600 !important; color: #111827 !important; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.snfc-search__text span { color: #6b7280 !important; font-size: 13.5px !important; line-height: 1.35; overflow-wrap: anywhere; }
.snfc-search__results li[aria-selected="true"], .snfc-search__results li.snfc-search__item:hover { background: #f1f6ff !important; }
.snfc-search__empty { padding: 14px 12px !important; color: #4b5563; font-size: 14px; cursor: default !important; }
.snfc-search__attr { font-size: 11.5px !important; color: #8a93a3 !important; padding: 6px 12px !important; }
.snfc-search__status { font-size: 13px; min-height: 0; margin: 6px 2px 0; }
.snfc-search__status:empty { display: none; }
.snfc-search__status.is-warning { color: #92400e; background: #fffbeb; border-radius: 8px; padding: 8px 10px; }
.snfc-chosen:not([hidden]) { grid-template-columns: 32px minmax(0, 1fr) auto !important; gap: 14px !important; padding: 14px 16px !important; border: 1.5px solid #247afb !important; background: #f5f9ff !important; border-radius: 14px !important; }
.snfc-chosen__check { width: 32px !important; height: 32px !important; background: #16a34a !important; }
.snfc-chosen__check svg { width: 18px; height: 18px; color: #fff; }
.snfc-chosen__name { font-size: 16px; font-weight: 600; color: #111827; margin: 0 !important; line-height: 1.3; }
.snfc-chosen__address { font-size: 14px; color: #4b5563; margin: 2px 0 0 !important; line-height: 1.35; }
.snfc-chosen__ok { font-size: 12.5px; color: #15803d; margin: 6px 0 0 !important; }
.snfc-chosen__change { font-size: 14px !important; color: #247afb !important; min-height: 44px; padding: 0 6px !important; text-decoration: underline; text-underline-offset: .2em; background: none !important; border: 0 !important; }
.snfc-biz .snfc-alts { margin: 10px 0 0 !important; padding: 0 !important; }
.snfc-alt.snfc-alt--quiet { min-height: 40px; padding: 8px 0 !important; font-size: 14px !important; }
@media (max-width: 480px) {
	.snfc-chosen:not([hidden]) { grid-template-columns: 32px minmax(0, 1fr) !important; }
	.snfc-chosen__change { grid-column: 2; justify-self: start; min-height: 36px; padding: 0 !important; }
}
table.variations tr.snfc-has-swatches .select2-container, table.variations tr.snfc-has-swatches .nice-select { display: none !important; }
@media (max-width: 480px) { .snfc-search input#snfc_g_query { padding-right: 34px !important; padding-left: 44px !important; font-size: 15.5px; } .snfc-search__spinner { right: 12px; } .snfc-search__g { left: 13px; } }

/* Opções discretas (ajuda / voltar à pesquisa): sem fundo do tema em nenhum estado (no iPhone o :hover fica preso após o toque). */
.snfc-alts .snfc-alt, .snfc-alts .snfc-alt:hover, .snfc-alts .snfc-alt:focus, .snfc-alts .snfc-alt:active, .snfc-alts .snfc-alt:focus-visible,
.snfc-chosen__change, .snfc-chosen__change:hover, .snfc-chosen__change:focus, .snfc-chosen__change:active {
	background: transparent !important; background-color: transparent !important; box-shadow: none !important; border: 0 !important; text-transform: none !important; letter-spacing: normal !important;
}
.snfc-alts .snfc-alt { color: #4b5563 !important; width: auto !important; min-height: 44px; height: auto !important; line-height: 1.4 !important; padding: 10px 0 !important; text-align: left !important; white-space: normal !important; }
.snfc-alts .snfc-alt:hover, .snfc-alts .snfc-alt:active { color: #111827 !important; }
.snfc-alts .snfc-alt:focus-visible { outline: 2px solid #247afb !important; outline-offset: 2px; border-radius: 6px; }
.snfc-chosen__change { color: #247afb !important; }
/* Logótipos dos métodos de pagamento (página de produto) */
.snfc-pay__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.snfc-pay__logos li { margin: 0 !important; padding: 0 !important; list-style: none !important; line-height: 0; border: 0 !important; background: none !important; }
.snfc-pay__logos li::before, .snfc-pay__logos li::marker { content: none; }
.snfc-pay__logos img { display: block; width: auto; height: 28px; max-width: none; border-radius: 4px; box-shadow: 0 0 0 1px #e3e7ee; }
@media (max-width: 360px) { .snfc-pay__logos { gap: 6px; } .snfc-pay__logos img { height: 26px; } }
.snfc-pay ul.snfc-pay__logos li img { height: 28px !important; width: auto !important; max-width: none !important; aspect-ratio: 64 / 40; }
@media (max-width: 360px) { .snfc-pay ul.snfc-pay__logos li img { height: 26px !important; } }
