/* Desativa o carrinho/checkout próprios do plugin de fotos quando WooCommerce assume o fluxo. */
.l3cf-cart:not(.is-inline),
.l3cf-overlay,
[data-l3cf-checkout],
[data-l3cf-result]{
  display:none!important;
}
.l3cf-cart-open{cursor:pointer}
.l3cfwc-added{background:#177d42!important;border-color:#177d42!important;color:#fff!important}
.l3cfwc-notice{
  position:fixed;right:18px;bottom:18px;z-index:999999;
  display:flex;align-items:center;gap:14px;
  max-width:390px;padding:13px 15px;border-radius:10px;
  background:#10151b;color:#fff;border:1px solid #2d3641;
  box-shadow:0 16px 45px rgba(0,0,0,.35);
  opacity:0;transform:translateY(14px);pointer-events:none;
  transition:.2s ease;
}
.l3cfwc-notice.show{opacity:1;transform:translateY(0);pointer-events:auto}
.l3cfwc-notice a{color:#fff!important;font-weight:900;text-decoration:underline}
@media(max-width:600px){.l3cfwc-notice{left:12px;right:12px;bottom:12px;max-width:none}}


/* v0.2.0 — Carrinho e Checkout no portal de Fotos */
body.l3cfwc-portal-commerce{margin:0;background:#07090c!important;color:#f7f7f7;font-family:Arial,Helvetica,sans-serif}
body.l3cfwc-portal-commerce .wp-site-blocks,
body.l3cfwc-portal-commerce header.wp-block-template-part,
body.l3cfwc-portal-commerce footer.wp-block-template-part{display:none!important}
.l3cfwc-shell{width:min(1180px,calc(100% - 36px));margin:0 auto}
.l3cfwc-portal-header{background:#05070a;border-bottom:1px solid #5c171d;position:relative;z-index:20}
.l3cfwc-header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:26px}
.l3cfwc-brand{display:flex;align-items:center;gap:11px;color:#fff!important;text-decoration:none!important}
.l3cfwc-brand img{width:44px;height:44px;object-fit:contain}
.l3cfwc-brand span{display:grid;line-height:1}.l3cfwc-brand strong{font-size:15px;letter-spacing:.04em}.l3cfwc-brand small{margin-top:5px;color:#ef2632;font-size:8px;font-weight:900;letter-spacing:.11em}
.l3cfwc-nav{display:flex;align-items:center;gap:22px}.l3cfwc-nav a{color:#c8cdd3!important;text-decoration:none!important;font-size:12px;font-weight:850;text-transform:uppercase}.l3cfwc-nav a.active{color:#fff!important;border-bottom:2px solid #ef2632;padding-bottom:8px}
.l3cfwc-commerce-main{min-height:70vh;padding:36px 0 64px;background:radial-gradient(circle at 80% 0%,rgba(94,18,25,.22),transparent 32%),#07090c}
.l3cfwc-back{display:inline-block;margin-bottom:22px;color:#bac2cc!important;text-decoration:none!important;font-size:13px;font-weight:700}
.l3cfwc-commerce-hero{padding:26px 28px;margin-bottom:22px;border:1px solid #282e37;border-radius:15px;background:linear-gradient(110deg,#101319,#170b0e)}
.l3cfwc-commerce-hero>span{display:block;color:#ef2632;font-size:10px;font-weight:950;letter-spacing:.14em}.l3cfwc-commerce-hero h1{margin:7px 0 5px;color:#fff;font-size:38px;line-height:1}.l3cfwc-commerce-hero p{margin:0;color:#9da7b3}
.l3cfwc-wc-content{padding:20px;border:1px solid #282e37;border-radius:15px;background:#0d1117}
.l3cfwc-portal-commerce .woocommerce{color:#fff}
.l3cfwc-portal-commerce .wc-block-cart,
.l3cfwc-portal-commerce .wc-block-checkout{background:transparent!important;color:#fff!important}
.l3cfwc-portal-commerce .wc-block-components-product-name,
.l3cfwc-portal-commerce .wc-block-components-title,
.l3cfwc-portal-commerce .wc-block-components-totals-item__label,
.l3cfwc-portal-commerce .wc-block-components-totals-item__value,
.l3cfwc-portal-commerce .wc-block-components-order-summary-item__description{color:#fff!important}
.l3cfwc-portal-commerce .wc-block-cart-items,
.l3cfwc-portal-commerce .wc-block-components-sidebar,
.l3cfwc-portal-commerce .wc-block-checkout__main{border-color:#303742!important}
.l3cfwc-portal-commerce .wc-block-components-product-image img{border-radius:8px}
.l3cfwc-portal-commerce .wc-block-components-button,
.l3cfwc-portal-commerce .wc-block-cart__submit-button,
.l3cfwc-portal-commerce .wc-block-components-checkout-place-order-button{background:#ed1c2a!important;color:#fff!important;border:0!important;border-radius:8px!important;font-weight:900!important}
.l3cfwc-portal-commerce input,
.l3cfwc-portal-commerce select,
.l3cfwc-portal-commerce textarea{background:#12171e!important;color:#fff!important;border-color:#343d49!important}
.l3cfwc-portal-commerce .woocommerce-info,
.l3cfwc-portal-commerce .woocommerce-message{background:#121820!important;color:#fff!important;border-color:#ef2632!important}
.l3cfwc-portal-commerce .woocommerce-info a,
.l3cfwc-portal-commerce .woocommerce-message a{color:#fff!important}
.l3cfwc-portal-footer{border-top:1px solid #5c171d;background:#05070a;padding:34px 0;color:#fff}
.l3cfwc-footer-inner{display:flex;justify-content:space-between;gap:24px}.l3cfwc-footer-inner>div:first-child{display:grid;gap:7px}.l3cfwc-footer-inner span{color:#d7a836;font-size:12px;font-weight:800;text-transform:uppercase}.l3cfwc-footer-links{display:flex;gap:22px}.l3cfwc-footer-links a{color:#aab3bd!important;text-decoration:none!important;font-size:12px}
@media(max-width:820px){.l3cfwc-header-inner{align-items:flex-start;padding:15px 0;flex-direction:column}.l3cfwc-nav{width:100%;overflow:auto;padding-bottom:4px}.l3cfwc-commerce-hero h1{font-size:30px}.l3cfwc-footer-inner{flex-direction:column}.l3cfwc-footer-links{flex-wrap:wrap}}


/* v0.2.2 — refinamento do carrinho de fotos */
.l3cfwc-portal-commerce .woocommerce-cart-form,
.l3cfwc-portal-commerce .cart_totals{
    background:#0d1218;
    border:1px solid #2b333d;
    border-radius:12px;
}
.l3cfwc-portal-commerce .woocommerce-cart-form{padding:16px}
.l3cfwc-portal-commerce table.shop_table{border-collapse:collapse!important;border:0!important;margin:0!important}
.l3cfwc-portal-commerce table.shop_table th{
    color:#fff!important;
    font-size:13px!important;
    text-transform:uppercase;
    letter-spacing:.04em;
    border-bottom:1px solid #343c47!important;
}
.l3cfwc-portal-commerce table.shop_table td{border-top:1px solid #2d3540!important;vertical-align:middle!important}
.l3cfwc-portal-commerce .product-thumbnail{width:145px!important}
.l3cfwc-portal-commerce .product-thumbnail img{
    width:112px!important;height:112px!important;object-fit:cover!important;
    border-radius:8px;border:1px solid #343d48
}
.l3cfwc-portal-commerce .l3cfwc-photo-name{font-size:16px;font-weight:900;color:#fff}
.l3cfwc-portal-commerce .l3cfwc-fixed-qty{
    display:inline-flex;min-width:36px;height:34px;align-items:center;justify-content:center;
    border:1px solid #343d48;border-radius:7px;background:#121820;color:#fff;font-weight:800
}
.l3cfwc-portal-commerce .product-remove a{
    color:#ef2632!important;font-size:24px!important;text-decoration:none!important
}
.l3cfwc-portal-commerce .coupon{display:flex!important;gap:8px;align-items:center}
.l3cfwc-portal-commerce .coupon #coupon_code{
    width:190px!important;min-width:190px!important;height:42px!important;padding:0 12px!important;
    border-radius:7px!important
}
.l3cfwc-portal-commerce button.button,
.l3cfwc-portal-commerce a.button{
    min-height:42px!important;padding:0 18px!important;border-radius:7px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    background:#171c23!important;color:#fff!important;border:1px solid #343d48!important;
    font-weight:850!important
}
.l3cfwc-portal-commerce .cart-collaterals{margin-top:22px}
.l3cfwc-portal-commerce .cart_totals{
    width:min(470px,100%)!important;float:right!important;padding:20px!important
}
.l3cfwc-portal-commerce .cart_totals h2{margin:0 0 16px!important;color:#fff!important;font-size:25px!important}
.l3cfwc-portal-commerce .cart_totals table{margin-bottom:16px!important}
.l3cfwc-portal-commerce .wc-proceed-to-checkout{padding:0!important;margin:16px 0 0!important}
.l3cfwc-portal-commerce .wc-proceed-to-checkout a.checkout-button{
    width:100%!important;min-height:52px!important;margin:0!important;
    background:#ed1c2a!important;border-color:#ed1c2a!important;color:#fff!important;
    font-size:16px!important;font-weight:950!important;text-transform:uppercase
}
.l3cfwc-portal-commerce .cart-subtotal th,
.l3cfwc-portal-commerce .order-total th{color:#cbd2da!important}
.l3cfwc-portal-commerce .order-total td,
.l3cfwc-portal-commerce .order-total strong{color:#fff!important;font-size:18px!important}
.l3cfwc-portal-commerce .actions{padding-top:14px!important}
.l3cfwc-portal-commerce .actions>button[name="update_cart"]{float:right}
.l3cfwc-portal-commerce .quantity{pointer-events:none}
.l3cfwc-portal-commerce .quantity input{display:none!important}

@media(max-width:700px){
  .l3cfwc-portal-commerce .woocommerce-cart-form{padding:10px}
  .l3cfwc-portal-commerce table.shop_table_responsive thead{display:none!important}
  .l3cfwc-portal-commerce table.shop_table_responsive tr.cart_item{
      display:grid!important;grid-template-columns:82px 1fr!important;
      gap:4px 14px;padding:14px 0!important;position:relative
  }
  .l3cfwc-portal-commerce table.shop_table_responsive tr.cart_item td{
      display:block!important;text-align:left!important;border:0!important;padding:4px 0!important
  }
  .l3cfwc-portal-commerce table.shop_table_responsive tr.cart_item td:before{display:none!important}
  .l3cfwc-portal-commerce .product-remove{position:absolute;right:4px;top:4px;z-index:2}
  .l3cfwc-portal-commerce .product-thumbnail{grid-row:1/5;width:82px!important}
  .l3cfwc-portal-commerce .product-thumbnail:before{display:none!important}
  .l3cfwc-portal-commerce .product-thumbnail img{width:78px!important;height:78px!important}
  .l3cfwc-portal-commerce .product-name{padding-right:34px!important}
  .l3cfwc-portal-commerce .product-quantity{display:none!important}
  .l3cfwc-portal-commerce .actions{display:flex!important;flex-direction:column!important;gap:9px}
  .l3cfwc-portal-commerce .coupon{width:100%!important}
  .l3cfwc-portal-commerce .coupon #coupon_code{width:100%!important;min-width:0!important}
  .l3cfwc-portal-commerce .actions>button[name="update_cart"]{float:none;width:100%}
  .l3cfwc-portal-commerce .cart_totals{float:none!important;width:100%!important}
}


/* v0.2.3 — checkout simplificado para fotos digitais */
.l3cfwc-portal-commerce .woocommerce-billing-fields h3{
    margin:0 0 18px!important;
    color:#fff!important;
    font-size:24px!important;
}
.l3cfwc-portal-commerce .woocommerce-billing-fields__field-wrapper{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
}
.l3cfwc-portal-commerce .woocommerce-billing-fields__field-wrapper .form-row{
    width:100%!important;
    float:none!important;
    margin:0!important;
}
.l3cfwc-portal-commerce .woocommerce-billing-fields label{
    display:block!important;
    margin:0 0 7px!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:800!important;
}
.l3cfwc-portal-commerce .woocommerce-billing-fields input{
    width:100%!important;
    min-height:48px!important;
    padding:0 14px!important;
    border-radius:8px!important;
    background:#11171e!important;
    border:1px solid #323b47!important;
    color:#fff!important;
    font-size:15px!important;
}
.l3cfwc-portal-commerce .woocommerce-billing-fields input:focus{
    outline:none!important;
    border-color:#ed1c2a!important;
    box-shadow:0 0 0 2px rgba(237,28,42,.14)!important;
}
.l3cfwc-portal-commerce .woocommerce-additional-fields,
.l3cfwc-portal-commerce #order_comments_field{
    display:none!important;
}
.l3cfwc-portal-commerce .woocommerce-checkout-review-order{
    margin-top:24px!important;
}


/* v0.2.4 — pedido recebido / pagamento */
.l3cfwc-portal-commerce .woocommerce-order{
    color:#fff;
}
.l3cfwc-portal-commerce .woocommerce-thankyou-order-received{
    margin:0 0 18px!important;
    padding:14px 16px!important;
    border:1px solid #225d3a!important;
    border-radius:10px!important;
    background:#0e2418!important;
    color:#8ff0b4!important;
    font-weight:800!important;
}
.l3cfwc-portal-commerce ul.woocommerce-order-overview{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;
    gap:10px!important;
    margin:0 0 20px!important;
    padding:0!important;
}
.l3cfwc-portal-commerce ul.woocommerce-order-overview li{
    margin:0!important;
    padding:12px 14px!important;
    border:1px solid #2d3641!important;
    border-radius:8px!important;
    background:#10161d!important;
    color:#aeb8c4!important;
}
.l3cfwc-portal-commerce ul.woocommerce-order-overview li strong{
    display:block!important;
    margin-top:5px!important;
    color:#fff!important;
}
.l3cfwc-portal-commerce .woocommerce-order-details,
.l3cfwc-portal-commerce .woocommerce-customer-details{
    margin-top:22px!important;
}
.l3cfwc-portal-commerce .woocommerce-order-details h2,
.l3cfwc-portal-commerce .woocommerce-customer-details h2{
    color:#fff!important;
}


/* v0.2.5 — confirmação completa do pedido */
.l3cfwc-order-result{display:flex;flex-direction:column;gap:18px}
.l3cfwc-order-status{padding:20px;border:1px solid #33404d;border-radius:12px;background:#10161d}
.l3cfwc-order-status.is-paid{border-color:#23683e;background:#0d2417}
.l3cfwc-order-status.is-pending{border-color:#705b1e;background:#211d0e}
.l3cfwc-order-kicker{font-size:12px;font-weight:900;letter-spacing:.12em;color:#f21f2f}
.l3cfwc-order-status.is-paid .l3cfwc-order-kicker{color:#78e9a1}
.l3cfwc-order-status h2{margin:6px 0;color:#fff}
.l3cfwc-order-status p{margin:0;color:#b8c2cd}
.l3cfwc-order-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.l3cfwc-order-meta>div{padding:14px;border:1px solid #2b3540;border-radius:9px;background:#0e141a}
.l3cfwc-order-meta small{display:block;color:#8f9aa6;text-transform:uppercase;font-size:10px;font-weight:800}
.l3cfwc-order-meta strong{display:block;margin-top:5px;color:#fff;overflow-wrap:anywhere}
.l3cfwc-order-items,.l3cfwc-downloads{padding:18px;border:1px solid #2b3540;border-radius:12px;background:#0e141a}
.l3cfwc-order-items h3,.l3cfwc-downloads h3{margin:0 0 14px;color:#fff}
.l3cfwc-order-item{display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid #27313b}
.l3cfwc-order-item:first-of-type{border-top:0}
.l3cfwc-order-thumb img{width:58px;height:58px;object-fit:cover;border-radius:7px}
.l3cfwc-order-item-info strong,.l3cfwc-order-item-total{color:#fff}
.l3cfwc-order-item-info span{display:block;color:#98a4b0;font-size:13px;margin-top:3px}
.l3cfwc-order-note{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid #705b1e;border-radius:9px;background:#211d0e;color:#e8d991}
.l3cfwc-download-grid{display:flex;flex-wrap:wrap;gap:10px}
.l3cfwc-download-btn,.l3cfwc-primary-btn,.l3cfwc-secondary-btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:8px;font-weight:900;text-decoration:none!important}
.l3cfwc-download-btn,.l3cfwc-primary-btn{background:#f21f2f;color:#fff!important}
.l3cfwc-secondary-btn{border:1px solid #3a4652;color:#fff!important;background:#111820}
.l3cfwc-order-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){
 .l3cfwc-order-meta{grid-template-columns:1fr 1fr}
 .l3cfwc-order-item{grid-template-columns:52px 1fr}
 .l3cfwc-order-item-total{grid-column:2}
}
@media(max-width:480px){.l3cfwc-order-meta{grid-template-columns:1fr}}


/* v0.2.6 — acabamento visual do PIX / pedido recebido */
.l3cfwc-order-result .woocommerce-order-details,
.l3cfwc-order-result .woocommerce-customer-details{display:none!important}
.l3cfwc-order-result .woocommerce-thankyou-order-received,
.l3cfwc-order-result ul.woocommerce-order-overview{display:none!important}

/* O Mercado Pago injeta seu próprio bloco de PIX. Mantemos QR/copia-e-cola funcionais,
   mas integramos o contêiner à identidade escura do portal. */
.l3cfwc-order-result [class*="mercadopago"],
.l3cfwc-order-result [class*="mp-"],
.l3cfwc-order-result [class*="pix"]{
    max-width:100%;
    box-sizing:border-box;
}
.l3cfwc-order-result [class*="mp-details"],
.l3cfwc-order-result [class*="pix-container"],
.l3cfwc-order-result [class*="payment-instructions"]{
    border-radius:12px!important;
    overflow:hidden!important;
}
.l3cfwc-order-result img{max-width:100%;height:auto}

/* enquadra a saída oficial do gateway sem alterar scripts, QR ou código PIX */
.l3cfwc-order-result > .woocommerce,
.l3cfwc-order-result > section + div{
    max-width:100%;
}

@media (max-width:760px){
 .l3cfwc-order-result [class*="mp-"],
 .l3cfwc-order-result [class*="pix"]{max-width:100%!important}
 .l3cfwc-order-result input,
 .l3cfwc-order-result button{max-width:100%!important}
}
