/* ---------- Tokens ---------- */
:root{
  --brand:#FFB000;
  --ink:#111827;
  --muted:#6b7280;
  --stroke:#e5e7eb;
  --pix:#0a7a34;
  --pix-bg:#d1fae5;
}

/* Oculta placeholder duplicado de preço do plugin */
#woo-custom-installments-product-price{display:none!important;}

/* ---------- Cabeçalho de preço/parcelas ---------- */
.single-product .summary.entry-summary{ padding-top:4px; }
.single-product .summary .product_title{
  font-weight:800; line-height:1.15; margin:.1rem 0 .6rem 0; color:var(--ink);
}

.single-product .summary .woo-custom-installments-group{
  display:flex; flex-direction:column; gap:.4rem;
  padding:10px 12px; border:1px solid var(--stroke);
  border-radius:12px; background:#fff;
  max-width:520px;
  width:100%;
  margin:0 auto 10px;
  align-items:center;
}
.single-product .summary .woo-custom-installments-group-main-price{ width:100%; text-align:center !important; }
.single-product .summary .woo-custom-installments-price{ display:inline-block; }

.single-product .summary .woo-custom-installments-group-main-price .woocommerce-Price-amount{
  font-size: clamp(22px, 4.2vw, 32px) !important; font-weight:900; color:var(--ink)!important;
}

.single-product .summary .woo-custom-installments-card-container{ margin-top:2px; text-align:center !important; }
.single-product .summary .woo-custom-installments-card-container i{ display:none; }
.single-product .summary .woo-custom-installments-details-without-fee,
.single-product .summary .woo-custom-installments-details{
  display:inline-block; font-weight:700; color:var(--muted); font-size:14px; line-height:1.35;
}
.single-product .summary .woo-custom-installments-card-container .woocommerce-Price-amount{ font-weight:800; color:var(--ink); }

.single-product .summary .woo-custom-installments-offer{
  display:inline-flex; align-items:center; gap:.35rem;
  align-self:center;
  margin-top:4px; padding:6px 10px; border-radius:10px;
  background:var(--pix-bg); color:var(--pix); font-weight:800; font-size:14px;
}
.single-product .summary .woo-custom-installments-offer i{ display:none; }
.single-product .summary .woo-custom-installments-offer .discounted-price .woocommerce-Price-amount{
  color:var(--pix)!important; font-weight:900;
}
.single-product .summary .woo-custom-installments-offer .discount-after-price{color:var(--pix);}

.single-product .summary .woocommerce-product-details__short-description{ margin:.6rem 0 .4rem 0; color:var(--muted); }
.single-product .summary .stock{
  display:inline-block; margin:.25rem 0 .6rem; padding:.25rem .55rem;
  border:1px solid var(--stroke); border-radius:999px; font-weight:700; color:var(--ink);
}

/* ---------- Accordion de parcelas (substitui popup) ---------- */
.single-product .summary .wci-open-popup{
  order:-1;
  margin:0 0 10px 0;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px 14px;
  font-weight:600;
  font-size:14px;
  color:#374151;
  cursor:pointer;
  width:100%;
  text-align:left;
  display:flex; justify-content:space-between; align-items:center;
  transition:.2s;
}
.single-product .summary .wci-open-popup:hover{ background:#f3f4f6; color:#111827; }
.single-product .summary .wci-open-popup:after{ content:"▾"; font-size:12px; transition:transform .25s; }
.single-product .summary .wci-open-popup.is-open:after{ transform:rotate(180deg); }

.single-product .summary .wci-accordion{ max-height:0; overflow:hidden; transition:max-height .35s ease; margin:0 0 12px; }
.single-product .summary .wci-accordion.is-open{ max-height:600px; }

.wci-accordion .woo-custom-installments-table{ width:100%; border-collapse:separate; border-spacing:0 6px; font-size:14px; }
.wci-accordion .woo-custom-installments-table tr th{ padding:8px 10px; text-align:left; background:#f8fafc; color:#111827; }
.wci-accordion .woo-custom-installments-table tr th.final-price{text-align:right; font-weight:700;}
.wci-accordion .woo-custom-installments-table tr.no-fee th{background:#ecfeff;}
.wci-accordion .woo-custom-installments-table tr.fee-included th{background:#fff7ed;}
.wci-accordion .woo-custom-installments-table .woocommerce-Price-amount{font-weight:700;}

/* ---------- Mobile product pages: impedir scroll lateral ---------- */
@media (max-width: 767.98px){
  html, body { overflow-x: hidden !important; }
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto.containerCalculator{ width:100% !important; max-width:100% !important; overflow-x:hidden !important; }
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto.containerCalculator *,
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto.containerCalculator *::before,
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto.containerCalculator *::after{ box-sizing:border-box !important; max-width:100% !important; }
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto .calculatorRow,
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto .row,
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto .col-75{ width:100% !important; max-width:100% !important; margin-left:0 !important; margin-right:0 !important; }
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto .iptCep{ display:block !important; width:100% !important; }
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto #calcular-frete-loader img{ max-width:100% !important; height:auto !important; }
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto .resultado-frete{ overflow-x:auto !important; -webkit-overflow-scrolling:touch; }
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto .resultado-frete table{ display:block; width:max-content; min-width:100%; }
  .single-product .zoomImg{ display:none !important; }
  .single-product .tinvwl-tooltip{ display:none !important; }
  [class*="whats"], [class*="Whats"], [class*="whatsapp"]{ right:12px !important; left:auto !important; max-width:calc(100% - 24px) !important; transform:none !important; }
}
