/* SmartPrint | Resumo compacto de produtos personalizados
 * Checkout clássico (incluindo widget Checkout Elementor Pro) e carrinho WooCommerce.
 * Apenas apresentação: não altera os metadados, quantidades nem preços.
 */

/* Checkout: reserva espaço útil para a descrição sem comprimir o preço. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table {
  width:100%;
  table-layout:auto;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table th.product-name,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table td.product-name,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.shop_table th.product-name,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.shop_table td.product-name {
  width:auto!important;
  min-width:0;
  text-align:left;
  vertical-align:top;
  overflow-wrap:break-word;
  word-break:normal;
  line-height:1.42;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table th.product-total,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table td.product-total,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.shop_table th.product-total,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.shop_table td.product-total {
  width:105px!important;
  min-width:80px;
  text-align:right;
  white-space:nowrap;
  vertical-align:top;
  padding-left:12px;
}

/* A mesma grelha de etiquetas/valores para Studio e Configurador Têxtil.
 * WC usa <dl class="variation"> para os dados do item do carrinho. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table td.product-name dl.variation,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.shop_table td.product-name dl.variation,
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name dl.variation {
  display:grid!important;
  grid-template-columns:minmax(0, 100px) minmax(0, 1fr)!important;
  gap:5px 11px!important;
  width:100%;
  min-width:0;
  max-width:100%;
  margin:10px 0 0!important;
  padding:10px 12px!important;
  background:#f7f8fa;
  border:1px solid #e8edf2;
  border-radius:10px;
  color:#1f2530;
  font-size:13px;
  line-height:1.35;
  text-align:left;
  box-sizing:border-box;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order dl.variation::before,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order dl.variation::after,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page dl.variation::before,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page dl.variation::after,
body.woocommerce-cart .woocommerce-cart-form dl.variation::before,
body.woocommerce-cart .woocommerce-cart-form dl.variation::after {display:none!important;content:none!important}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table td.product-name dl.variation > dt,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table td.product-name dl.variation > dd,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.shop_table td.product-name dl.variation > dt,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.shop_table td.product-name dl.variation > dd,
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name dl.variation > dt,
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name dl.variation > dd {
  display:block!important;
  float:none!important;
  clear:none!important;
  width:auto!important;
  max-width:100%;
  min-width:0;
  margin:0!important;
  padding:0!important;
  border:0!important;
  font-family:inherit;
  font-size:13px!important;
  line-height:1.35!important;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:left;
  box-sizing:border-box;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order dl.variation > dt,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page dl.variation > dt,
body.woocommerce-cart .woocommerce-cart-form dl.variation > dt {
  color:#667184!important;
  font-weight:650!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order dl.variation > dd,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page dl.variation > dd,
body.woocommerce-cart .woocommerce-cart-form dl.variation > dd {
  color:#1f2530!important;
  font-weight:400!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order dl.variation > dd p,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page dl.variation > dd p,
body.woocommerce-cart .woocommerce-cart-form dl.variation > dd p {
  display:inline;
  margin:0!important;
  padding:0!important;
  font-size:inherit!important;
  line-height:inherit!important;
}

/* Algumas integrações expõem os metadados através da lista WC. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order td.product-name ul.wc-item-meta,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page td.product-name ul.wc-item-meta,
body.woocommerce-cart .woocommerce-cart-form td.product-name ul.wc-item-meta {
  margin:10px 0 0!important;
  padding:10px 12px!important;
  list-style:none;
  border:1px solid #e8edf2;
  background:#f7f8fa;
  border-radius:10px;
  font-size:13px;
  line-height:1.4;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order td.product-name ul.wc-item-meta li,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page td.product-name ul.wc-item-meta li,
body.woocommerce-cart .woocommerce-cart-form td.product-name ul.wc-item-meta li {
  margin:0 0 5px!important;
  overflow-wrap:anywhere;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order td.product-name ul.wc-item-meta li:last-child,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page td.product-name ul.wc-item-meta li:last-child,
body.woocommerce-cart .woocommerce-cart-form td.product-name ul.wc-item-meta li:last-child {margin-bottom:0!important}

/* Totais nítidos, sem tocar nos montantes. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table tfoot tr th,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table tfoot tr td {vertical-align:middle;padding-top:12px;padding-bottom:12px}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table tr.order-total th,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table tr.order-total td,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table tr.order-total .amount {color:#ec078c;font-weight:750}

@media(max-width:767px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table th.product-total,
  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table td.product-total,
  body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.shop_table th.product-total,
  body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page table.shop_table td.product-total {
    width:82px!important;
    min-width:68px;
    padding-left:7px;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order td.product-name dl.variation,
  body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page td.product-name dl.variation,
  body.woocommerce-cart .woocommerce-cart-form td.product-name dl.variation {
    grid-template-columns:minmax(0, 82px) minmax(0, 1fr)!important;
    padding:9px!important;
    gap:5px 7px!important;
    font-size:12px;
  }
}


/* SmartPrint v1.0.15 — ajustes finais, exclusivos do resumo de checkout. */
/* Painel das opções do produto: manter etiquetas e valores em duas colunas,
   mesmo com os estilos do Elementor/WooCommerce. */
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review .product-name dl.variation,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order .product-name dl.variation {
  background:#f6f7f9!important;
  border:1px solid #e2e7ed!important;
  border-left:3px solid #ec078c!important;
  border-radius:10px!important;
  padding:12px 13px!important;
  margin:10px 0 6px!important;
  row-gap:4px!important;
  column-gap:12px!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order .product-name dl.variation dt,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review .product-name dl.variation dt {
  color:#596575!important;
  font-weight:650!important;
}
/* Resumo sem linhas excessivamente afastadas; evita comprimir os dados de faturação. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table tfoot th,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table tfoot td,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review table.shop_table tfoot th,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review table.shop_table tfoot td {
  padding-top:8px!important;
  padding-bottom:8px!important;
  line-height:1.45;
  vertical-align:middle;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td {
  padding-top:12px!important;
  border-top:1px solid #e7eaf0;
}
/* IVA: abaixo do montante, alinhado à direita, sem quebras arbitrárias. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order .order-total td,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review .order-total td {
  text-align:right!important;
  white-space:normal!important;
  min-width:180px;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order .order-total td .woocommerce-Price-amount,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review .order-total td .woocommerce-Price-amount {
  display:inline-block;
  white-space:nowrap!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order .order-total small.includes_tax,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order .order-total small.tax_label,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review .order-total small.includes_tax {
  display:block!important;
  margin-top:3px!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:400!important;
  text-align:right!important;
  color:#647084!important;
  white-space:normal!important;
}
/* Um resguardo na parte inferior do cartão de encomenda para o balão flutuante
   de assistência não encobrir os valores da zona de fecho. */
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__order_review,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page .e-checkout__order_review-2,
body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review {
  padding-bottom:max(68px, 5vw)!important;
}
/* Em ecrãs menores a reserva é menor, sem estreitar ainda mais o total. */
@media(max-width:767px){
  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order .order-total td,
  body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review .order-total td {
    min-width:125px;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order .product-name dl.variation,
  body.woocommerce-checkout:not(.woocommerce-order-received) .elementor-widget-woocommerce-checkout-page #order_review .product-name dl.variation {
    padding:10px!important;
  }
}
