:root {
  --buffalo-bg:#f4f3ef;
  --buffalo-card:#fff;
  --buffalo-text:#1c1c1a;
  --buffalo-muted:#72726b;
  --buffalo-line:#deddd6;
  --buffalo-dark:#181816;
  --buffalo-soft:#f6f5f1;
  --buffalo-green:#2e704c;
  --buffalo-danger:#a6453e;
  --buffalo-radius:16px;
  --buffalo-shadow:0 10px 34px rgba(28,28,26,.055);
}

body.buffalo-checkout-active{background:var(--buffalo-bg);color:var(--buffalo-text)}
body.buffalo-checkout-active .site-header,
body.buffalo-checkout-active header.site-header,
body.buffalo-checkout-active .elementor-location-header,
body.buffalo-checkout-active .site-footer,
body.buffalo-checkout-active .elementor-location-footer{display:none!important}
body.buffalo-checkout-active .woocommerce{max-width:none!important}

.buffalo-checkout-shell{max-width:1160px;margin:0 auto;padding:25px 22px 46px}
.buffalo-checkout-brandbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.buffalo-checkout-brand{display:flex;align-items:center;gap:11px;font-size:18px;font-weight:900;letter-spacing:.075em;color:var(--buffalo-dark)}
.buffalo-brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--buffalo-dark);color:#fff;font-size:17px;letter-spacing:0}
.buffalo-checkout-secure{display:flex;gap:6px;align-items:center;color:var(--buffalo-muted);font-size:12.5px}

.buffalo-checkout-progress{display:flex;align-items:center;justify-content:center;margin:0 auto 26px;max-width:630px}
.buffalo-progress-step{appearance:none;border:0;background:transparent;padding:0;display:flex;align-items:center;gap:8px;color:#8a8a84;font-size:13px;cursor:default}
.buffalo-progress-step b{width:27px;height:27px;display:grid;place-items:center;border:1px solid #d4d3cd;border-radius:50%;background:#fff;font-size:12px;font-weight:800;transition:.18s ease}
.buffalo-progress-step span{font-weight:700;white-space:nowrap}
.buffalo-progress-step.is-active{color:var(--buffalo-dark)}
.buffalo-progress-step.is-active b{background:var(--buffalo-dark);border-color:var(--buffalo-dark);color:#fff}
.buffalo-progress-step.is-complete{color:var(--buffalo-green);cursor:pointer}
.buffalo-progress-step.is-complete b{background:var(--buffalo-green);border-color:var(--buffalo-green);color:#fff}
.buffalo-checkout-progress>i{display:block;width:68px;height:1px;background:#d9d8d2;margin:0 13px}

body.buffalo-checkout-active form.checkout.woocommerce-checkout{display:block!important}
.buffalo-flow-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:28px;align-items:start}
.buffalo-flow-main{min-width:0}

.buffalo-step-card{background:var(--buffalo-card);border:1px solid var(--buffalo-line);border-radius:var(--buffalo-radius);margin-bottom:14px;box-shadow:0 4px 20px rgba(28,28,26,.025);overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease}
.buffalo-step-card.is-active{border-color:#c7c6bf;box-shadow:var(--buffalo-shadow)}
.buffalo-step-head{width:100%;border:0;background:transparent;display:grid;grid-template-columns:34px 1fr 28px;gap:12px;align-items:center;text-align:left;padding:20px 22px;color:inherit}
.buffalo-step-card.is-complete .buffalo-step-head{cursor:pointer}
.buffalo-step-number{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#efeee9;color:#77766f;font-weight:850;font-size:13px}
.buffalo-step-card.is-active .buffalo-step-number{background:var(--buffalo-dark);color:#fff}
.buffalo-step-card.is-complete .buffalo-step-number{background:var(--buffalo-green);color:#fff}
.buffalo-step-heading{display:flex;flex-direction:column;gap:2px}
.buffalo-step-heading strong{font-size:17px;line-height:1.2;color:var(--buffalo-text)}
.buffalo-step-heading small{font-size:12.5px;color:var(--buffalo-muted);font-weight:500}
.buffalo-step-check{opacity:0;color:var(--buffalo-green);font-weight:900;font-size:17px}
.buffalo-step-card.is-complete:not(.is-active) .buffalo-step-check{opacity:1}
.buffalo-step-collapsed-summary{display:none;padding:0 22px 18px 68px;color:var(--buffalo-muted);font-size:12.5px;line-height:1.5}
.buffalo-step-card.is-complete:not(.is-active) .buffalo-step-collapsed-summary{display:block}
.buffalo-step-body{display:none;padding:2px 22px 22px 68px}
.buffalo-step-card.is-active .buffalo-step-body{display:block}

.buffalo-step-fields{display:flex;flex-wrap:wrap;margin:0 -6px}
.buffalo-step-fields>.form-row{padding:0 6px!important}
body.buffalo-checkout-active .form-row{margin:0 0 14px!important}
body.buffalo-checkout-active .form-row-first,
body.buffalo-checkout-active .form-row-last{width:50%!important;float:none!important}
body.buffalo-checkout-active .form-row-wide{width:100%!important;float:none!important}
body.buffalo-checkout-active .form-row label{display:block;font-size:12.5px;font-weight:700;margin-bottom:6px;color:#33332f}
body.buffalo-checkout-active .input-text,
body.buffalo-checkout-active select,
body.buffalo-checkout-active .select2-selection{min-height:48px!important;border:1px solid #cecdc6!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;outline:none!important;transition:border-color .15s ease,box-shadow .15s ease}
body.buffalo-checkout-active .input-text{padding:10px 13px!important}
body.buffalo-checkout-active .input-text:focus,
body.buffalo-checkout-active select:focus{border-color:#8e8d85!important;box-shadow:0 0 0 3px rgba(24,24,22,.06)!important}
body.buffalo-checkout-active textarea.input-text{min-height:92px!important;resize:vertical}
body.buffalo-checkout-active .select2-selection__rendered{line-height:46px!important;padding-left:13px!important}
body.buffalo-checkout-active .select2-selection__arrow{height:46px!important}
body.buffalo-checkout-active .buffalo-invalid .input-text,
body.buffalo-checkout-active .buffalo-invalid select{border-color:var(--buffalo-danger)!important;box-shadow:0 0 0 3px rgba(166,69,62,.07)!important}

.buffalo-original-customer-details{display:block!important;width:auto!important;float:none!important;margin:0!important;padding:0!important}
.buffalo-fields-source,.buffalo-original-customer-details>.col-1,.buffalo-original-customer-details>.col-2{float:none!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.buffalo-fields-source>.woocommerce-billing-fields__field-wrapper{display:none!important}
.buffalo-original-customer-details .woocommerce-shipping-fields,
.buffalo-original-customer-details .woocommerce-additional-fields{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}

.buffalo-subtitle{font-size:13px;font-weight:800;color:#33332f;margin:5px 0 10px}
.buffalo-shipping-choice{margin-top:2px;padding-top:14px;border-top:1px solid #ecebe6}
.buffalo-shipping-placeholder{padding:13px 14px;border:1px dashed #d6d5ce;border-radius:10px;background:#faf9f6;color:var(--buffalo-muted);font-size:12.5px}
.buffalo-shipping-table{width:100%!important;border:0!important;margin:0!important}
.buffalo-shipping-table th,.buffalo-shipping-table td{border:0!important;padding:0!important}
.buffalo-shipping-table th{display:none!important}
.buffalo-shipping-table td{display:block!important;width:100%!important}
.buffalo-shipping-table ul#shipping_method{margin:0!important;padding:0!important;list-style:none!important}
.buffalo-shipping-table ul#shipping_method li{position:relative;margin:0 0 9px!important;padding:12px 14px 12px 42px!important;border:1px solid #d8d7d0;border-radius:11px;background:#fff}
.buffalo-shipping-table ul#shipping_method li:has(input:checked){border-color:#7b7a73;box-shadow:0 0 0 2px rgba(24,24,22,.04)}
.buffalo-shipping-table input.shipping_method{position:absolute;left:14px;top:16px}
.buffalo-shipping-table label{margin:0!important;font-size:13px!important;font-weight:700!important}
.buffalo-invalid-box{border:1px solid var(--buffalo-danger);border-radius:12px;padding:7px}

.buffalo-step-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:8px;position:relative}
.buffalo-next-step{appearance:none;border:0;border-radius:10px;background:var(--buffalo-dark);color:#fff;min-height:49px;padding:0 18px;font-size:13.5px;font-weight:850;cursor:pointer;transition:transform .15s ease,opacity .15s ease}
.buffalo-next-step:hover{transform:translateY(-1px);opacity:.94}
.buffalo-next-step span{margin-left:8px}
.buffalo-back-step{appearance:none;border:0;background:transparent;color:#66665f;font-weight:750;font-size:13px;padding:10px 4px;cursor:pointer;margin-right:auto}
.buffalo-step-error{position:absolute;right:0;bottom:-26px;font-size:11.5px;color:var(--buffalo-danger)}

.buffalo-summary-card{position:sticky;top:20px;background:var(--buffalo-card);border:1px solid var(--buffalo-line);border-radius:var(--buffalo-radius);padding:20px;box-shadow:var(--buffalo-shadow);min-width:0}
.buffalo-summary-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;font-weight:850;margin-bottom:10px}
.buffalo-summary-lock{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--buffalo-green);background:#edf5f0;border-radius:999px;padding:5px 8px}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table{border:0!important;margin:0!important;width:100%!important}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table td{padding:11px 0!important;border-color:#e8e7e1!important;font-size:12.5px!important;vertical-align:top}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table thead th{font-size:11px!important;text-transform:uppercase;letter-spacing:.05em;color:#85847d}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total td{font-size:15px!important;font-weight:900!important;padding-top:14px!important}
.buffalo-order-review-staging{display:block!important;width:0!important;height:0!important;overflow:visible!important;position:static!important;padding:0!important;margin:0!important;border:0!important;float:none!important}
body.buffalo-checkout-active #order_review_heading{display:none!important}

#buffalo-payment-content #payment{background:transparent!important;margin:0!important}
#buffalo-payment-content #payment ul.payment_methods{border:0!important;padding:0!important;margin:0!important}
#buffalo-payment-content #payment ul.payment_methods>li{background:#fff;border:1px solid #d8d7d0;border-radius:11px;padding:13px 14px!important;margin:0 0 9px!important}
#buffalo-payment-content #payment ul.payment_methods>li:has(input:checked){border-color:#7b7a73;box-shadow:0 0 0 2px rgba(24,24,22,.04)}
#buffalo-payment-content #payment div.payment_box{background:var(--buffalo-soft)!important;border-radius:9px!important;margin:10px 0 0!important;padding:13px!important}
#buffalo-payment-content #payment div.payment_box:before{display:none!important}
#buffalo-payment-content #payment .place-order{padding:16px 0 0!important;margin:0!important}
#buffalo-payment-content #place_order{width:100%!important;min-height:53px;border:0!important;border-radius:10px!important;background:var(--buffalo-dark)!important;color:#fff!important;font-size:15px!important;font-weight:900!important;box-shadow:none!important}
#buffalo-payment-content #place_order:hover{opacity:.94}
#buffalo-payment-content .woocommerce-privacy-policy-text{font-size:11.5px;color:var(--buffalo-muted);line-height:1.5}

.buffalo-cep-status{font-size:11.5px;margin-top:5px;color:var(--buffalo-muted)}
.buffalo-cep-status.is-ok{color:var(--buffalo-green)}
.buffalo-cep-status.is-error{color:var(--buffalo-danger)}

body.buffalo-checkout-active .woocommerce-info,
body.buffalo-checkout-active .woocommerce-error,
body.buffalo-checkout-active .woocommerce-message{border-radius:11px!important;margin-bottom:14px!important}
body.buffalo-checkout-active .blockUI.blockOverlay{border-radius:var(--buffalo-radius)}
.buffalo-checkout-footnote{text-align:center;margin-top:22px;color:#8a8982;font-size:11px}

@media(max-width:880px){
  .buffalo-checkout-shell{padding:15px 13px 34px}
  .buffalo-checkout-brandbar{margin-bottom:15px}
  .buffalo-checkout-brand{font-size:15px}.buffalo-brand-mark{width:31px;height:31px;border-radius:9px}
  .buffalo-checkout-progress{margin-bottom:16px}
  .buffalo-progress-step span{display:none}
  .buffalo-progress-step b{width:28px;height:28px}
  .buffalo-checkout-progress>i{width:48px;margin:0 8px}
  .buffalo-flow-layout{display:flex;flex-direction:column;gap:14px}
  .buffalo-flow-main,.buffalo-summary-card{width:100%}
  .buffalo-summary-card{position:static;order:2;padding:17px}
  .buffalo-step-head{padding:17px 16px;grid-template-columns:32px 1fr 24px;gap:10px}
  .buffalo-step-body{padding:0 16px 18px}
  .buffalo-step-collapsed-summary{padding:0 16px 15px 58px}
  .buffalo-step-fields{margin:0}
  .buffalo-step-fields>.form-row{padding:0!important}
  body.buffalo-checkout-active .form-row-first,
  body.buffalo-checkout-active .form-row-last,
  body.buffalo-checkout-active .form-row-wide{width:100%!important}
  .buffalo-step-actions{padding-top:2px}
  .buffalo-next-step{width:100%;font-size:13.5px}
  .buffalo-back-step{min-width:74px}
}

@media(max-width:430px){
  .buffalo-checkout-secure{font-size:11px}
  .buffalo-step-heading strong{font-size:16px}
  .buffalo-step-heading small{font-size:11.5px}
  .buffalo-step-actions{flex-wrap:wrap}
  .buffalo-back-step{order:2;width:100%;text-align:center;margin:0}
}

/* ===== 0.3.0: acabamento visual + simulador próprio ===== */
.buffalo-checkout-logo{display:block;max-height:42px;width:auto;max-width:210px;object-fit:contain}
.buffalo-step-card.is-active .buffalo-step-head{background:linear-gradient(180deg,#fff 0%,#fdfcf9 100%)}
.buffalo-step-card.is-complete:not(.is-active){background:#fbfaf7}
.buffalo-summary-card{background:linear-gradient(180deg,#fff 0%,#fdfcf9 100%)}
.buffalo-summary-card .product-name{font-weight:700;color:#33332f}
.buffalo-summary-card .product-total{text-align:right;white-space:nowrap}
.buffalo-summary-card .cart-subtotal th,.buffalo-summary-card .shipping th{color:var(--buffalo-muted);font-weight:650!important}
.buffalo-summary-card .order-total{border-top:2px solid #deddd6}

/* Espelho visual dos métodos de entrega. Os inputs reais continuam no fragmento nativo. */
.buffalo-shipping-mirror-list{display:grid;gap:9px}
.buffalo-shipping-mirror-option{appearance:none;width:100%;display:flex;align-items:center;gap:11px;text-align:left;border:1px solid #d8d7d0;border-radius:11px;background:#fff;padding:13px 14px;color:#292925;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.buffalo-shipping-mirror-option:hover{border-color:#a9a8a1;background:#fdfcf9}
.buffalo-shipping-mirror-option.is-selected{border-color:#6f6e67;box-shadow:0 0 0 2px rgba(24,24,22,.045);background:#fff}
.buffalo-shipping-mirror-option:disabled{cursor:default;opacity:.74}
.buffalo-shipping-radio{position:relative;width:17px;height:17px;border:1.5px solid #a6a59e;border-radius:50%;flex:0 0 17px;background:#fff}
.buffalo-shipping-mirror-option.is-selected .buffalo-shipping-radio{border-color:var(--buffalo-dark)}
.buffalo-shipping-mirror-option.is-selected .buffalo-shipping-radio:after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--buffalo-dark)}
.buffalo-shipping-label{font-size:13px;font-weight:750;line-height:1.35;flex:1}
body.buffalo-checkout-updating #buffalo-shipping-methods{opacity:.58;pointer-events:none}
body.buffalo-checkout-updating #buffalo-shipping-methods:after{content:"Atualizando frete…";display:block;margin-top:7px;font-size:11.5px;color:var(--buffalo-muted)}

/* Simulador de frete próprio das páginas de produto / encomenda. */
.buffalo-product-shipping{--bps-border:#deddd6;max-width:620px;margin:18px 0;padding:17px;border:1px solid var(--bps-border);border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(28,28,26,.035);font-family:inherit;color:#242421}
.buffalo-product-shipping[hidden]{display:none!important}
.buffalo-product-shipping__head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.buffalo-product-shipping__head>div{display:flex;flex-direction:column;gap:2px}
.buffalo-product-shipping__head strong{font-size:15px;line-height:1.25;font-weight:850;color:#20201e}
.buffalo-product-shipping__head small{font-size:12px;line-height:1.35;color:#74736d}
.buffalo-product-shipping__head>span{font-size:19px;line-height:1}
.buffalo-product-shipping__form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
.buffalo-product-shipping .buffalo-shipping-postcode{width:100%;min-height:45px!important;border:1px solid #cecdc6!important;border-radius:10px!important;background:#fff!important;padding:9px 12px!important;box-shadow:none!important;font-size:14px!important;outline:none!important}
.buffalo-product-shipping .buffalo-shipping-postcode:focus{border-color:#87867f!important;box-shadow:0 0 0 3px rgba(24,24,22,.06)!important}
.buffalo-shipping-calc-button{appearance:none;border:0;border-radius:10px;background:#181816;color:#fff;min-height:45px;padding:0 17px;font-size:13px;font-weight:850;cursor:pointer;white-space:nowrap}
.buffalo-shipping-calc-button:hover{opacity:.94}
.buffalo-shipping-calc-button:disabled{opacity:.58;cursor:wait}
.buffalo-product-shipping__status{min-height:17px;margin-top:8px;font-size:11.5px;color:#72726b}
.buffalo-product-shipping__status.is-ok{color:#2e704c}
.buffalo-product-shipping__status.is-error{color:#a6453e}
.buffalo-product-rate-list{display:grid;gap:8px;margin-top:10px}
.buffalo-product-rate{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;border:1px solid #e0dfd9;border-radius:10px;background:#faf9f6}
.buffalo-product-rate__name{font-size:12.5px;font-weight:750;line-height:1.35;color:#34342f}
.buffalo-product-rate__price{font-size:13px;font-weight:900;white-space:nowrap;color:#181816}
.buffalo-product-shipping__hint{margin-top:9px;font-size:10.8px;line-height:1.4;color:#8a8982}
#buffalo-shipping-calculator-portal:empty{display:none}

@media(max-width:880px){
  .buffalo-checkout-logo{max-height:36px;max-width:180px}
  .buffalo-summary-card{box-shadow:none}
}
@media(max-width:520px){
  .buffalo-product-shipping{margin:14px 0;padding:14px;border-radius:12px}
  .buffalo-product-shipping__form{grid-template-columns:1fr}
  .buffalo-shipping-calc-button{width:100%}
  .buffalo-product-rate{align-items:flex-start}
}
\n\n/* 0.3.1 — o simulador de frete antigo não deve coexistir com o Búfalo Checkout. */
body.single-product #wc-shipping-sim,
body.single-product #wc-shipping-sim-results,
body.single-product form#wc-shipping-sim-form,
body.page-id-0 #wc-shipping-sim { display:none!important; }

/* Na página de encomenda o JS também remove wrappers dinâmicos do Shipping Simulator. */
#monte-sua-caneca #wc-shipping-sim,
#monte-sua-caneca #wc-shipping-sim-results,
#monte-sua-caneca form#wc-shipping-sim-form { display:none!important; }

/* 0.3.2: calculadoras de frete de terceiros substituídas no produto/encomenda. */
[data-buffalo-legacy-shipping-hidden="1"]{display:none!important;visibility:hidden!important;}

/* ===== 0.3.3: posição original, persistência e acabamento ===== */
#buffalo-shipping-position-anchor{display:none!important}
.buffalo-product-shipping:not([data-buffalo-mounted="1"]):not(.buffalo-product-shipping-portal){visibility:hidden}
.buffalo-product-shipping[data-buffalo-mounted="1"]{visibility:visible}
.buffalo-product-shipping{max-width:100%;margin:12px 0 16px;padding:15px 16px;border-radius:12px;box-shadow:none;background:#fff}
.buffalo-product-shipping__head{margin-bottom:10px}
.buffalo-product-shipping__head strong{font-size:14px}
.buffalo-product-shipping__head small{font-size:11.5px}
.buffalo-product-shipping__helper{margin-top:5px;line-height:1}
.buffalo-product-shipping__helper a{font-size:11px;color:#bd3e56;text-decoration:none}
.buffalo-product-shipping__helper a:hover{text-decoration:underline}
.buffalo-product-shipping__status{min-height:0;margin-top:8px}
.buffalo-product-shipping__address{margin-top:5px;font-size:11.5px;line-height:1.45;color:#5e5d57}
.buffalo-product-rate-list{margin-top:9px;border-top:1px solid #e7e6df}
.buffalo-product-rate{border:0;border-bottom:1px solid #e7e6df;border-radius:0;background:transparent;padding:9px 2px}
.buffalo-product-rate:last-child{border-bottom:0}
.buffalo-product-rate__name{font-size:12.5px}
.buffalo-product-rate__price{font-size:13px;color:#1767c7}
.buffalo-product-shipping__hint{padding-top:2px}

body.buffalo-checkout-active .buffalo-step-card{scroll-margin-top:16px}
body.buffalo-checkout-active .buffalo-step-card.is-complete:not(.is-active) .buffalo-step-head{padding-bottom:10px}
body.buffalo-checkout-active .buffalo-summary-title{padding-bottom:8px;border-bottom:1px solid #ecebe6}

@media(max-width:880px){
  .buffalo-checkout-brandbar{position:relative}
  .buffalo-step-card{border-radius:14px}
  .buffalo-summary-card{border-radius:14px;margin-top:2px}
  .buffalo-step-collapsed-summary{line-height:1.45}
}
@media(max-width:520px){
  .buffalo-product-shipping{margin:10px 0 14px;padding:13px}
  .buffalo-product-shipping__form{grid-template-columns:minmax(0,1fr) auto;gap:7px}
  .buffalo-shipping-calc-button{width:auto;min-width:90px;padding:0 12px}
  .buffalo-product-shipping .buffalo-shipping-postcode{min-height:43px!important}
  .buffalo-shipping-calc-button{min-height:43px}
  .buffalo-product-rate{padding:8px 1px}
}
@media(max-width:360px){
  .buffalo-product-shipping__form{grid-template-columns:1fr}
  .buffalo-shipping-calc-button{width:100%}
}

/* ===== 0.3.8: identidade visual do site + checkout mais fluido ===== */
:root{
  /* Usa automaticamente as cores e tipografias globais do Elementor do site. */
  --buffalo-site-primary:var(--e-global-color-primary,#211f1d);
  --buffalo-site-secondary:var(--e-global-color-secondary,#6f6963);
  --buffalo-site-text:var(--e-global-color-text,#2d2926);
  --buffalo-site-accent:var(--e-global-color-accent,#bd3e56);
  --buffalo-font-body:var(--e-global-typography-text-font-family,inherit);
  --buffalo-font-heading:var(--e-global-typography-primary-font-family,var(--buffalo-font-body));

  --buffalo-bg:#f7f4f0;
  --buffalo-card:#fff;
  --buffalo-text:var(--buffalo-site-text);
  --buffalo-muted:var(--buffalo-site-secondary);
  --buffalo-dark:var(--buffalo-site-primary);
  --buffalo-brand:var(--buffalo-site-accent);
  --buffalo-line:#e4ddd6;
  --buffalo-soft:#faf7f4;
  --buffalo-radius:15px;
  --buffalo-shadow:0 14px 34px rgba(35,28,24,.07);
}

body.buffalo-checkout-active,
.buffalo-product-shipping{
  color:var(--buffalo-text);
}



/* Checkout: visual mais próximo da identidade do restante do site. */
body.buffalo-checkout-active{background:var(--buffalo-bg)}
.buffalo-checkout-shell{max-width:1180px;padding-top:28px}
.buffalo-checkout-brand{color:var(--buffalo-dark);letter-spacing:.045em}
.buffalo-brand-mark{background:var(--buffalo-brand)}

.buffalo-progress-step.is-active{color:var(--buffalo-brand)}
.buffalo-progress-step.is-active b{
  background:var(--buffalo-brand);
  border-color:var(--buffalo-brand);
}
.buffalo-progress-step.is-complete{color:var(--buffalo-dark)}
.buffalo-progress-step.is-complete b{
  background:var(--buffalo-dark);
  border-color:var(--buffalo-dark);
}
.buffalo-checkout-progress>i{background:var(--buffalo-line)}

.buffalo-flow-layout{
  grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);
  gap:30px;
}
.buffalo-step-card{
  border-color:var(--buffalo-line);
  border-radius:var(--buffalo-radius);
  box-shadow:0 5px 18px rgba(35,28,24,.035);
}
.buffalo-step-card.is-active{
  border-color:var(--buffalo-brand);
  box-shadow:0 10px 30px rgba(35,28,24,.065);
}
.buffalo-step-card.is-active .buffalo-step-head{
  background:#fff;
  background:linear-gradient(180deg,#fff 0%,#fcf8f6 100%);
}
.buffalo-step-card.is-active .buffalo-step-number{
  background:var(--buffalo-brand);
  color:#fff;
}
.buffalo-step-card.is-complete .buffalo-step-number{
  background:var(--buffalo-dark);
  color:#fff;
}
.buffalo-step-heading strong{font-weight:700;letter-spacing:.005em}
.buffalo-step-heading small{color:var(--buffalo-muted)}
.buffalo-step-check{color:var(--buffalo-brand)}

body.buffalo-checkout-active .form-row label{
  color:var(--buffalo-text);
  font-weight:650;
}
body.buffalo-checkout-active .input-text,
body.buffalo-checkout-active select,
body.buffalo-checkout-active .select2-selection{
  border-color:#d8d0c9!important;
  border-radius:11px!important;
  background:#fff!important;
}
body.buffalo-checkout-active .input-text:focus,
body.buffalo-checkout-active select:focus{
  border-color:var(--buffalo-brand)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--buffalo-brand) 14%,transparent)!important;
}
.buffalo-subtitle{color:var(--buffalo-text)}
.buffalo-shipping-choice{border-top-color:var(--buffalo-line)}
.buffalo-shipping-placeholder{
  border-color:#dcd4cd;
  background:#fbf8f5;
}

.buffalo-next-step,
#buffalo-payment-content #place_order{
  background:var(--buffalo-brand)!important;
  color:#fff!important;
  border-radius:11px!important;
  box-shadow:0 7px 18px color-mix(in srgb,var(--buffalo-brand) 18%,transparent)!important;
}
.buffalo-next-step:hover,
#buffalo-payment-content #place_order:hover{
  opacity:1;
  filter:brightness(.94);
  transform:translateY(-1px);
}
.buffalo-back-step{color:var(--buffalo-brand)}

.buffalo-shipping-mirror-option{
  border-color:#ddd5ce;
  border-radius:12px;
  background:#fff;
}
.buffalo-shipping-mirror-option:hover{
  border-color:var(--buffalo-brand);
  background:#fffaf9;
}
.buffalo-shipping-mirror-option.is-selected{
  border-color:var(--buffalo-brand);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--buffalo-brand) 10%,transparent);
  background:#fffaf9;
}
.buffalo-shipping-mirror-option.is-selected .buffalo-shipping-radio{border-color:var(--buffalo-brand)}
.buffalo-shipping-mirror-option.is-selected .buffalo-shipping-radio:after{background:var(--buffalo-brand)}

#buffalo-payment-content #payment ul.payment_methods>li{
  border-color:#ddd5ce;
  border-radius:12px;
}
#buffalo-payment-content #payment ul.payment_methods>li:has(input:checked){
  border-color:var(--buffalo-brand);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--buffalo-brand) 10%,transparent);
}
#buffalo-payment-content #payment div.payment_box{background:#faf6f3!important}

/* O resumo agora participa do fluxo normal da página: não fica preso no topo. */
.buffalo-summary-card{
  position:static!important;
  top:auto!important;
  align-self:start;
  background:#fff;
  border-color:var(--buffalo-line);
  border-radius:var(--buffalo-radius);
  box-shadow:0 8px 26px rgba(35,28,24,.055);
}
.buffalo-summary-title{
  color:var(--buffalo-dark);
  border-bottom-color:var(--buffalo-line)!important;
}
.buffalo-summary-card .product-name{color:var(--buffalo-text)}
.buffalo-summary-card .order-total{border-top-color:var(--buffalo-brand)}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total td{
  color:var(--buffalo-brand)!important;
}
.buffalo-summary-lock{
  color:var(--buffalo-brand);
  background:#fff3f4;
  background:color-mix(in srgb,var(--buffalo-brand) 9%,white);
}

/* Simulador de frete: mesma linguagem visual do site e do checkout. */
.buffalo-product-shipping{
  position:relative;
  overflow:hidden;
  margin:14px 0 18px;
  padding:17px 18px 16px;
  border:1px solid var(--buffalo-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 24px rgba(35,28,24,.055);
}
.buffalo-product-shipping:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:3px;
  background:var(--buffalo-brand);
}
.buffalo-product-shipping__head{margin-bottom:13px}
.buffalo-product-shipping__head strong{
  color:var(--buffalo-dark);
  font-size:15px;
  font-weight:700;
  letter-spacing:.005em;
}
.buffalo-product-shipping__head small{color:var(--buffalo-muted);font-size:11.5px}
.buffalo-product-shipping__head>span{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:50%;
  background:#fff3f4;
  background:color-mix(in srgb,var(--buffalo-brand) 10%,white);
  font-size:18px;
}
.buffalo-product-shipping .buffalo-shipping-postcode{
  min-height:46px!important;
  border-color:#d8d0c9!important;
  border-radius:11px!important;
  color:var(--buffalo-text)!important;
}
.buffalo-product-shipping .buffalo-shipping-postcode:focus{
  border-color:var(--buffalo-brand)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--buffalo-brand) 14%,transparent)!important;
}
.buffalo-shipping-calc-button{
  min-height:46px;
  border-radius:11px;
  background:var(--buffalo-brand);
  font-weight:750;
  box-shadow:0 6px 16px color-mix(in srgb,var(--buffalo-brand) 16%,transparent);
}
.buffalo-shipping-calc-button:hover{opacity:1;filter:brightness(.94)}
.buffalo-product-shipping__helper a{color:var(--buffalo-brand);font-weight:600}
.buffalo-product-shipping__address{color:var(--buffalo-text)}
.buffalo-product-rate-list{
  gap:8px;
  border-top:0;
  margin-top:11px;
}
.buffalo-product-rate{
  border:1px solid #e7dfd8;
  border-radius:11px;
  background:#fcfaf8;
  padding:10px 12px;
}
.buffalo-product-rate:last-child{border-bottom:1px solid #e7dfd8}
.buffalo-product-rate__name{color:var(--buffalo-text);font-weight:650}
.buffalo-product-rate__price{color:var(--buffalo-brand);font-size:13.5px;font-weight:800}
.buffalo-product-shipping__hint{color:var(--buffalo-muted)}

@media(max-width:880px){
  .buffalo-checkout-shell{padding-top:16px}
  .buffalo-summary-card{position:static!important;box-shadow:none}
}
@media(max-width:520px){
  .buffalo-product-shipping{padding:15px 14px 14px}
  .buffalo-product-shipping__head>span{width:32px;height:32px;flex-basis:32px;font-size:16px}
  .buffalo-product-rate{padding:9px 10px}
}

/* ===== 0.4.0: identidade visual Búfalo — sem cor de destaque inventada =====
 * Paleta baseada no próprio checkout/site: creme quente, preto/grafite e verde de confirmação.
 * As fontes continuam herdando as tipografias globais reais do Elementor.
 */
:root{
  --buffalo-font-body:var(--e-global-typography-text-font-family,var(--e-global-typography-primary-font-family,inherit));
  --buffalo-font-heading:var(--e-global-typography-primary-font-family,var(--buffalo-font-body));

  --buffalo-bg:#f4f3ef;
  --buffalo-card:#ffffff;
  --buffalo-text:#1c1c1a;
  --buffalo-muted:#72726b;
  --buffalo-line:#deddd6;
  --buffalo-dark:#181816;
  --buffalo-soft:#f8f7f3;
  --buffalo-green:#2e704c;
  --buffalo-danger:#a6453e;
  --buffalo-brand:var(--buffalo-dark);
  --buffalo-radius:14px;
  --buffalo-shadow:0 10px 30px rgba(28,28,26,.055);
}

body.buffalo-checkout-active,
.buffalo-product-shipping{
  color:var(--buffalo-text)!important;
}


/* Base e marca */
body.buffalo-checkout-active{background:var(--buffalo-bg)!important}
.buffalo-checkout-brand{color:var(--buffalo-dark)!important}
.buffalo-brand-mark{background:var(--buffalo-dark)!important;color:#fff!important}
.buffalo-checkout-secure{color:var(--buffalo-muted)!important}

/* Progresso: etapa atual preta, concluídas verdes. */
.buffalo-progress-step{color:#85847e!important}
.buffalo-progress-step.is-active{color:var(--buffalo-dark)!important}
.buffalo-progress-step.is-active b{
  background:var(--buffalo-dark)!important;
  border-color:var(--buffalo-dark)!important;
  color:#fff!important;
}
.buffalo-progress-step.is-complete{color:var(--buffalo-green)!important}
.buffalo-progress-step.is-complete b{
  background:var(--buffalo-green)!important;
  border-color:var(--buffalo-green)!important;
  color:#fff!important;
}
.buffalo-checkout-progress>i{background:var(--buffalo-line)!important}

/* Etapas e campos */
.buffalo-step-card{
  background:#fff!important;
  border-color:var(--buffalo-line)!important;
  box-shadow:0 4px 18px rgba(28,28,26,.025)!important;
}
.buffalo-step-card.is-active{
  border-color:#c9c8c1!important;
  box-shadow:var(--buffalo-shadow)!important;
}
.buffalo-step-card.is-active .buffalo-step-head{
  background:linear-gradient(180deg,#fff 0%,#fdfcf9 100%)!important;
}
.buffalo-step-card.is-active .buffalo-step-number{
  background:var(--buffalo-dark)!important;
  color:#fff!important;
}
.buffalo-step-card.is-complete .buffalo-step-number{
  background:var(--buffalo-green)!important;
  color:#fff!important;
}
.buffalo-step-check{color:var(--buffalo-green)!important}
.buffalo-step-heading strong,
body.buffalo-checkout-active .form-row label,
.buffalo-subtitle{color:var(--buffalo-text)!important}
.buffalo-step-heading small{color:var(--buffalo-muted)!important}

body.buffalo-checkout-active .input-text,
body.buffalo-checkout-active select,
body.buffalo-checkout-active .select2-selection{
  border-color:#cecdc6!important;
  background:#fff!important;
  color:var(--buffalo-text)!important;
  box-shadow:none!important;
}
body.buffalo-checkout-active .input-text:focus,
body.buffalo-checkout-active select:focus{
  border-color:#77766f!important;
  box-shadow:0 0 0 3px rgba(24,24,22,.065)!important;
}

/* Botões: preto da identidade; verde fica reservado a confirmação/sucesso. */
.buffalo-next-step,
#buffalo-payment-content #place_order,
.buffalo-shipping-calc-button{
  background:var(--buffalo-dark)!important;
  color:#fff!important;
  box-shadow:none!important;
}
.buffalo-next-step:hover,
#buffalo-payment-content #place_order:hover,
.buffalo-shipping-calc-button:hover{
  filter:none!important;
  opacity:.92!important;
}
.buffalo-back-step{color:#5f5e58!important}

/* Frete no checkout */
.buffalo-shipping-choice{border-top-color:#ecebe6!important}
.buffalo-shipping-placeholder{
  border-color:#d6d5ce!important;
  background:#faf9f6!important;
  color:var(--buffalo-muted)!important;
}
.buffalo-shipping-mirror-option{
  border-color:#d8d7d0!important;
  background:#fff!important;
  color:var(--buffalo-text)!important;
  box-shadow:none!important;
}
.buffalo-shipping-mirror-option:hover{
  border-color:#a9a8a1!important;
  background:#fdfcf9!important;
}
.buffalo-shipping-mirror-option.is-selected{
  border-color:var(--buffalo-dark)!important;
  background:#fbfaf7!important;
  box-shadow:0 0 0 2px rgba(24,24,22,.045)!important;
}
.buffalo-shipping-mirror-option.is-selected .buffalo-shipping-radio{border-color:var(--buffalo-dark)!important}
.buffalo-shipping-mirror-option.is-selected .buffalo-shipping-radio:after{background:var(--buffalo-dark)!important}

/* Pagamento */
#buffalo-payment-content #payment ul.payment_methods>li{
  border-color:#d8d7d0!important;
  background:#fff!important;
  box-shadow:none!important;
}
#buffalo-payment-content #payment ul.payment_methods>li:has(input:checked){
  border-color:var(--buffalo-dark)!important;
  box-shadow:0 0 0 2px rgba(24,24,22,.045)!important;
}
#buffalo-payment-content #payment div.payment_box{background:var(--buffalo-soft)!important}

/* Resumo: participa do fluxo normal no desktop, sem sticky/fixed. */
.buffalo-summary-card{
  position:static!important;
  top:auto!important;
  align-self:start!important;
  background:#fff!important;
  border-color:var(--buffalo-line)!important;
  box-shadow:var(--buffalo-shadow)!important;
}
.buffalo-summary-title{color:var(--buffalo-dark)!important}
.buffalo-summary-card .product-name{color:var(--buffalo-text)!important}
.buffalo-summary-card .order-total{border-top-color:var(--buffalo-dark)!important}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total td{
  color:var(--buffalo-dark)!important;
}
.buffalo-summary-lock{
  color:var(--buffalo-green)!important;
  background:#edf5f0!important;
}

/* Notices do WooCommerce: neutros por padrão. Vermelho somente para erro real. */
body.buffalo-checkout-active .woocommerce-info,
body.buffalo-checkout-active .woocommerce-message{
  background:#fff!important;
  color:var(--buffalo-text)!important;
  border:1px solid var(--buffalo-line)!important;
  border-left:4px solid var(--buffalo-dark)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.buffalo-checkout-active .woocommerce-message{
  border-left-color:var(--buffalo-green)!important;
}
body.buffalo-checkout-active .woocommerce-info::before{color:var(--buffalo-dark)!important}
body.buffalo-checkout-active .woocommerce-message::before{color:var(--buffalo-green)!important}
body.buffalo-checkout-active .woocommerce-info a,
body.buffalo-checkout-active .woocommerce-message a{
  color:var(--buffalo-dark)!important;
  font-weight:700!important;
  text-decoration:underline!important;
}
body.buffalo-checkout-active .woocommerce-error{
  background:#fff!important;
  color:var(--buffalo-text)!important;
  border:1px solid #e0c9c6!important;
  border-left:4px solid var(--buffalo-danger)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.buffalo-checkout-active .woocommerce-error::before{color:var(--buffalo-danger)!important}

/* Simulador na página de produto: mesma linguagem, sem rosa/vermelho/azul de destaque. */
.buffalo-product-shipping{
  border-color:var(--buffalo-line)!important;
  background:#fff!important;
  box-shadow:0 6px 20px rgba(28,28,26,.04)!important;
}
.buffalo-product-shipping:before{background:var(--buffalo-dark)!important;height:2px!important}
.buffalo-product-shipping__head strong{color:var(--buffalo-dark)!important}
.buffalo-product-shipping__head small{color:var(--buffalo-muted)!important}
.buffalo-product-shipping__head>span{
  background:#f1f0eb!important;
  color:var(--buffalo-dark)!important;
}
.buffalo-product-shipping .buffalo-shipping-postcode{
  border-color:#cecdc6!important;
  color:var(--buffalo-text)!important;
}
.buffalo-product-shipping .buffalo-shipping-postcode:focus{
  border-color:#77766f!important;
  box-shadow:0 0 0 3px rgba(24,24,22,.065)!important;
}
.buffalo-product-shipping__helper a{
  color:var(--buffalo-dark)!important;
  font-weight:650!important;
  text-decoration:underline!important;
  text-underline-offset:2px;
}
.buffalo-product-shipping__address{color:#5e5d57!important}
.buffalo-product-rate{
  border-color:#e2e1db!important;
  background:#faf9f6!important;
}
.buffalo-product-rate:last-child{border-bottom-color:#e2e1db!important}
.buffalo-product-rate__name{color:var(--buffalo-text)!important}
.buffalo-product-rate__price{color:var(--buffalo-dark)!important}
.buffalo-product-shipping__hint{color:var(--buffalo-muted)!important}
.buffalo-product-shipping__status.is-ok,
.buffalo-cep-status.is-ok{color:var(--buffalo-green)!important}
.buffalo-product-shipping__status.is-error,
.buffalo-cep-status.is-error{color:var(--buffalo-danger)!important}

@media(max-width:880px){
  .buffalo-summary-card{position:static!important;box-shadow:none!important}
}

/* ===== 0.4.1: resumo acompanha a rolagem no desktop =====
 * Sticky, não fixed: começa na posição normal da coluna e acompanha a viewport
 * apenas depois que o usuário rola até ele. Em tablet/celular continua no fluxo.
 */
@media (min-width:881px){
  body.buffalo-checkout-active .buffalo-flow-layout{
    align-items:start!important;
  }
  body.buffalo-checkout-active .buffalo-summary-card{
    position:sticky!important;
    top:24px!important;
    align-self:start!important;
    height:max-content!important;
  }
}
@media (max-width:880px){
  body.buffalo-checkout-active .buffalo-summary-card{
    position:static!important;
    top:auto!important;
  }
}

/* ===== 0.4.2: redesign baseado na identidade REAL visível da Búfalo =====
 * Cores medidas nos próprios prints do site:
 * marrom #381805 | verde #61CE70 | laranja #EE9800.
 * A tipografia não é mais forçada pelo plugin: herdamos a fonte efetivamente
 * usada pelo tema/site, evitando o serifado que apareceu no checkout anterior.
 */
:root{
  --buffalo-site-brown:#381805;
  --buffalo-site-green:#61CE70;
  --buffalo-site-orange:#EE9800;
  --buffalo-site-surface:#F7F8FB;
  --buffalo-site-border:#E3E4E7;
  --buffalo-site-ink:#231B17;
  --buffalo-site-muted:#77736F;

  --buffalo-bg:var(--buffalo-site-surface);
  --buffalo-card:#fff;
  --buffalo-text:var(--buffalo-site-ink);
  --buffalo-muted:var(--buffalo-site-muted);
  --buffalo-line:var(--buffalo-site-border);
  --buffalo-dark:var(--buffalo-site-brown);
  --buffalo-green:var(--buffalo-site-green);
  --buffalo-brand:var(--buffalo-site-brown);
  --buffalo-soft:#FAFAF9;
  --buffalo-radius:16px;
  --buffalo-shadow:0 12px 34px rgba(56,24,5,.07);
}

/* Tipografia: usa exatamente a família já aplicada pelo site. */
.buffalo-checkout-shell,
.buffalo-checkout-shell button,
.buffalo-checkout-shell input,
.buffalo-checkout-shell select,
.buffalo-checkout-shell textarea,
.buffalo-checkout-shell table,
.buffalo-product-shipping,
.buffalo-product-shipping button,
.buffalo-product-shipping input{
  font-family:inherit!important;
}

/* Garante que nada no caminho do resumo mate o position:sticky. */
body.buffalo-checkout-active #page,
body.buffalo-checkout-active #content,
body.buffalo-checkout-active #primary,
body.buffalo-checkout-active .site-main,
body.buffalo-checkout-active article,
body.buffalo-checkout-active .entry-content,
body.buffalo-checkout-active .woocommerce,
body.buffalo-checkout-active form.checkout.woocommerce-checkout,
body.buffalo-checkout-active .buffalo-flow-layout{
  overflow:visible!important;
  contain:none!important;
}

body.buffalo-checkout-active{background:var(--buffalo-site-surface)!important;color:var(--buffalo-site-ink)!important}
.buffalo-checkout-shell{max-width:1200px!important;padding:26px 24px 48px!important}

/* Marca/progresso: marrom da loja + verde já usado em preços e CTAs. */
.buffalo-checkout-brand{color:var(--buffalo-site-brown)!important;letter-spacing:.035em!important}
.buffalo-brand-mark{background:var(--buffalo-site-brown)!important}
.buffalo-checkout-secure{color:#77736f!important}
.buffalo-progress-step.is-active{color:var(--buffalo-site-brown)!important}
.buffalo-progress-step.is-active b{background:var(--buffalo-site-brown)!important;border-color:var(--buffalo-site-brown)!important}
.buffalo-progress-step.is-complete{color:#287a3b!important}
.buffalo-progress-step.is-complete b{background:var(--buffalo-site-green)!important;border-color:var(--buffalo-site-green)!important;color:var(--buffalo-site-brown)!important}
.buffalo-checkout-progress>i{background:#d9d8d4!important}

/* Cupom vira uma chamada discreta, não um banner gigante. */
body.buffalo-checkout-active .woocommerce-form-coupon-toggle{margin:0 0 16px!important}
body.buffalo-checkout-active .woocommerce-form-coupon-toggle .woocommerce-info{
  margin:0!important;
  padding:6px 2px!important;
  min-height:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  color:#514943!important;
  font-size:13px!important;
  line-height:1.45!important;
}
body.buffalo-checkout-active .woocommerce-form-coupon-toggle .woocommerce-info:before{display:none!important}
body.buffalo-checkout-active .woocommerce-form-coupon-toggle .woocommerce-info a{
  color:var(--buffalo-site-brown)!important;
  font-weight:700!important;
  text-underline-offset:3px;
}

/* Cartões do checkout. */
.buffalo-flow-layout{grid-template-columns:minmax(0,1.42fr) minmax(340px,.78fr)!important;gap:30px!important}
.buffalo-step-card{
  border:1px solid #e2e2df!important;
  border-radius:16px!important;
  box-shadow:0 4px 18px rgba(56,24,5,.025)!important;
  background:#fff!important;
}
.buffalo-step-card.is-active{
  border-color:#d7cec8!important;
  box-shadow:0 12px 30px rgba(56,24,5,.055)!important;
}
.buffalo-step-card.is-active .buffalo-step-head{background:#fff!important}
.buffalo-step-head{padding:20px 22px!important}
.buffalo-step-heading strong{color:var(--buffalo-site-brown)!important;font-size:17px!important;font-weight:700!important}
.buffalo-step-heading small{color:#77736f!important}
.buffalo-step-card.is-active .buffalo-step-number{background:var(--buffalo-site-brown)!important}
.buffalo-step-card.is-complete .buffalo-step-number{background:var(--buffalo-site-green)!important;color:var(--buffalo-site-brown)!important}
.buffalo-step-check{color:#27963e!important}

/* Formulário menos pesado e alinhado com o site. */
body.buffalo-checkout-active .form-row label{
  color:#4b3427!important;
  font-size:12.5px!important;
  font-weight:650!important;
  margin-bottom:7px!important;
}
body.buffalo-checkout-active .input-text,
body.buffalo-checkout-active select,
body.buffalo-checkout-active .select2-selection{
  min-height:47px!important;
  border:1px solid #d7d3cf!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#2a211c!important;
}
body.buffalo-checkout-active .input-text:focus,
body.buffalo-checkout-active select:focus{
  border-color:var(--buffalo-site-green)!important;
  box-shadow:0 0 0 3px rgba(97,206,112,.13)!important;
}
body.buffalo-checkout-active .buffalo-cep-status.is-ok{color:#2e9942!important;font-weight:600}

/* CTAs seguem o carrinho do site: marrom. */
.buffalo-next-step,
#buffalo-payment-content #place_order{
  background:var(--buffalo-site-brown)!important;
  color:#fff!important;
  border-radius:8px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
.buffalo-next-step:hover,
#buffalo-payment-content #place_order:hover{background:#4a2109!important;opacity:1!important;transform:translateY(-1px)}
.buffalo-back-step{color:var(--buffalo-site-brown)!important}

/* Frete dentro da etapa de entrega: seleção verde, conteúdo marrom. */
.buffalo-shipping-mirror-list{gap:8px!important}
.buffalo-shipping-mirror-option{
  border:1px solid #dfddd9!important;
  border-radius:10px!important;
  background:#fff!important;
  padding:12px 13px!important;
}
.buffalo-shipping-mirror-option:hover{border-color:#b8b1ab!important;background:#fff!important}
.buffalo-shipping-mirror-option.is-selected{
  border-color:var(--buffalo-site-green)!important;
  background:#fbfffb!important;
  box-shadow:0 0 0 2px rgba(97,206,112,.12)!important;
}
.buffalo-shipping-mirror-option.is-selected .buffalo-shipping-radio{border-color:var(--buffalo-site-green)!important}
.buffalo-shipping-mirror-option.is-selected .buffalo-shipping-radio:after{background:var(--buffalo-site-green)!important}
.buffalo-shipping-label{color:var(--buffalo-site-brown)!important;font-weight:650!important}

/* RESUMO: limpo, legível e realmente sticky. */
@media (min-width:881px){
  body.buffalo-checkout-active .buffalo-summary-card{
    position:sticky!important;
    position:-webkit-sticky!important;
    top:24px!important;
    align-self:start!important;
    height:auto!important;
    max-height:calc(100vh - 80px)!important;
    overflow:auto!important;
    z-index:5!important;
  }
}
.buffalo-summary-card{
  padding:20px!important;
  background:#fff!important;
  border:1px solid #e1dfdc!important;
  border-radius:16px!important;
  box-shadow:0 12px 32px rgba(56,24,5,.06)!important;
}
.buffalo-summary-title{
  color:var(--buffalo-site-brown)!important;
  font-size:16px!important;
  font-weight:700!important;
  padding-bottom:13px!important;
  margin-bottom:0!important;
  border-bottom:1px solid #ece9e6!important;
}
.buffalo-summary-lock{
  color:#287a3b!important;
  background:#eefaf0!important;
  padding:5px 9px!important;
  font-weight:700!important;
}

body.buffalo-checkout-active .woocommerce-checkout-review-order-table{
  border:0!important;
  border-collapse:collapse!important;
  background:transparent!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table td{
  border:0!important;
  border-bottom:1px solid #efedea!important;
  padding:11px 2px!important;
  color:#34271f!important;
  font-size:12px!important;
  line-height:1.4!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table thead th{
  color:#8a827c!important;
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:.07em!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .product-name{font-weight:650!important}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .product-total{text-align:right!important;white-space:nowrap!important}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .amount{
  color:var(--buffalo-site-green)!important;
  font-weight:750!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .cart-subtotal th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .shipping th{color:#5d524b!important;font-weight:650!important}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total td{
  padding-top:15px!important;
  border-bottom:0!important;
  color:var(--buffalo-site-brown)!important;
  font-size:15px!important;
  font-weight:800!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total .amount{
  color:var(--buffalo-site-green)!important;
  font-size:17px!important;
}

/* No resumo, mostra somente o frete escolhido. A escolha continua na etapa Entrega. */
.buffalo-summary-card tr.shipping ul#shipping_method{margin:0!important;padding:0!important;list-style:none!important}
.buffalo-summary-card tr.shipping ul#shipping_method li{display:none!important;margin:0!important;padding:0!important}
.buffalo-summary-card tr.shipping ul#shipping_method li:has(input:checked),
.buffalo-summary-card tr.shipping ul#shipping_method li:has(input[type="hidden"]){display:block!important}
.buffalo-summary-card tr.shipping input.shipping_method{display:none!important}
.buffalo-summary-card tr.shipping label{margin:0!important;color:#4a3b32!important;font-size:11.5px!important;line-height:1.35!important}
.buffalo-summary-card tr.shipping label .amount{color:var(--buffalo-site-green)!important}

/* Simulador do produto: passa a parecer parte da página, não um widget genérico. */
.buffalo-product-shipping{
  margin:14px 0 18px!important;
  padding:17px!important;
  border:1px solid #dedbd7!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 5px 18px rgba(56,24,5,.035)!important;
  color:#34271f!important;
}
.buffalo-product-shipping:before{background:var(--buffalo-site-green)!important;height:3px!important}
.buffalo-product-shipping__head strong{color:var(--buffalo-site-brown)!important;font-size:15px!important;font-weight:700!important}
.buffalo-product-shipping__head small{color:#817972!important}
.buffalo-product-shipping__head>span{
  background:#effaf1!important;
  color:var(--buffalo-site-brown)!important;
  border:1px solid #dff2e2!important;
}
.buffalo-product-shipping .buffalo-shipping-postcode{
  border-color:#d7d3cf!important;
  border-radius:9px!important;
}
.buffalo-product-shipping .buffalo-shipping-postcode:focus{
  border-color:var(--buffalo-site-green)!important;
  box-shadow:0 0 0 3px rgba(97,206,112,.13)!important;
}
.buffalo-shipping-calc-button{
  background:var(--buffalo-site-green)!important;
  color:var(--buffalo-site-brown)!important;
  border-radius:8px!important;
  font-weight:750!important;
  box-shadow:none!important;
}
.buffalo-shipping-calc-button:hover{background:#58be68!important;opacity:1!important}
.buffalo-product-shipping__helper a{color:var(--buffalo-site-brown)!important;font-weight:650!important}
.buffalo-product-shipping__status.is-ok{color:#2e9942!important;font-weight:600!important}
.buffalo-product-shipping__address{color:#6c625c!important}
.buffalo-product-rate-list{gap:7px!important;margin-top:10px!important}
.buffalo-product-rate{
  border:1px solid #e5e2de!important;
  border-radius:9px!important;
  background:#fafafa!important;
  padding:10px 12px!important;
}
.buffalo-product-rate:last-child{border-bottom:1px solid #e5e2de!important}
.buffalo-product-rate__name{color:var(--buffalo-site-brown)!important;font-weight:650!important}
.buffalo-product-rate__price{color:var(--buffalo-site-green)!important;font-weight:800!important}
.buffalo-product-shipping__hint{color:#817972!important}

@media(max-width:880px){
  .buffalo-checkout-shell{padding:16px 13px 34px!important}
  .buffalo-flow-layout{display:flex!important;gap:14px!important}
  body.buffalo-checkout-active .buffalo-summary-card{position:static!important;max-height:none!important;overflow:visible!important;box-shadow:none!important}
}


/* ===== 0.4.3: simulador integrado à nova tela /encomenda-nova ===== */
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping{
  display:block!important;
  visibility:visible!important;
  position:relative!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin:22px 0 18px!important;
  padding:18px 18px 16px!important;
  border:1px solid #dedbd7!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 6px 20px rgba(56,24,5,.045)!important;
  overflow:hidden!important;
  color:#34271f!important;
  font-family:inherit!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping:before,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping:before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:0!important;
  width:auto!important;
  height:3px!important;
  margin:0!important;
  background:#61CE70!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__head,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin:0 0 13px!important;
  padding:0!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__head>div,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__head>div{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:2px!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__head strong,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__head strong{
  display:block!important;
  margin:0!important;
  color:#381805!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1.25!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__head small,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__head small{
  display:block!important;
  margin:0!important;
  color:#817972!important;
  font-size:12px!important;
  line-height:1.35!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__head>span,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__head>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #dff2e2!important;
  border-radius:50%!important;
  background:#effaf1!important;
  font-size:18px!important;
  line-height:1!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__form,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:9px!important;
  align-items:stretch!important;
  margin:0!important;
  padding:0!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping .buffalo-shipping-postcode,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping .buffalo-shipping-postcode{
  box-sizing:border-box!important;
  width:100%!important;
  min-height:45px!important;
  height:45px!important;
  margin:0!important;
  padding:9px 12px!important;
  border:1px solid #d7d3cf!important;
  border-radius:9px!important;
  outline:0!important;
  background:#fff!important;
  color:#34271f!important;
  box-shadow:none!important;
  font:inherit!important;
  font-size:14px!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping .buffalo-shipping-postcode:focus,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping .buffalo-shipping-postcode:focus{
  border-color:#61CE70!important;
  box-shadow:0 0 0 3px rgba(97,206,112,.13)!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-shipping-calc-button,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-shipping-calc-button{
  appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:105px!important;
  min-height:45px!important;
  height:45px!important;
  margin:0!important;
  padding:0 18px!important;
  border:1px solid #55bd64!important;
  border-radius:9px!important;
  background:#61CE70!important;
  color:#381805!important;
  box-shadow:none!important;
  font-family:inherit!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-shipping-calc-button:hover,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-shipping-calc-button:hover{
  border-color:#50b45f!important;
  background:#58be68!important;
  color:#381805!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__helper,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__helper{
  margin:7px 0 0!important;
  padding:0!important;
  line-height:1.2!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__helper a,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__helper a{
  color:#381805!important;
  font-size:11px!important;
  font-weight:650!important;
  text-decoration:underline!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:2px!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__status,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__status{
  min-height:0!important;
  margin:8px 0 0!important;
  padding:0!important;
  font-size:11.5px!important;
  line-height:1.35!important;
  color:#817972!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__status.is-ok,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__status.is-ok{
  color:#2e9942!important;
  font-weight:600!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__status.is-error,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__status.is-error{
  color:#a53f36!important;
  font-weight:600!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__address,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__address{
  margin:5px 0 0!important;
  padding:0!important;
  color:#6c625c!important;
  font-size:11.5px!important;
  line-height:1.45!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate-list,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate-list{
  display:grid!important;
  gap:7px!important;
  margin:11px 0 0!important;
  padding:0!important;
  border:0!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid #e5e2de!important;
  border-radius:9px!important;
  background:#fafafa!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate__name,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate__name{
  color:#381805!important;
  font-size:12.5px!important;
  font-weight:650!important;
  line-height:1.35!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate__price,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate__price{
  color:#61CE70!important;
  font-size:13px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__hint,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__hint{
  margin:10px 0 0!important;
  padding:0!important;
  color:#817972!important;
  font-size:10.8px!important;
  line-height:1.4!important;
}

@media(max-width:600px){
  body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-shipping__form,
  body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-shipping__form{
    grid-template-columns:1fr!important;
  }
  body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-shipping-calc-button,
  body.bc-encomenda-preview #monte-sua-caneca .buffalo-shipping-calc-button{
    width:100%!important;
  }
}


/* ===== 0.4.4: rota real da encomenda + seguidor robusto do resumo ===== */
@media (min-width:881px){
  body.buffalo-checkout-active .buffalo-flow-layout{
    align-items:start!important;
  }
  body.buffalo-checkout-active .buffalo-summary-column{
    position:relative!important;
    align-self:stretch!important;
    min-width:0!important;
  }
  body.buffalo-checkout-active .buffalo-summary-column .buffalo-summary-card{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    bottom:auto!important;
    width:100%!important;
    max-height:calc(100vh - 48px)!important;
    overflow:auto!important;
  }
  body.buffalo-checkout-active .buffalo-summary-column .buffalo-summary-card.is-following{
    position:fixed!important;
    top:40px!important;
    left:var(--buffalo-summary-left)!important;
    width:var(--buffalo-summary-width)!important;
    bottom:auto!important;
    z-index:50!important;
  }
  body.buffalo-checkout-active .buffalo-summary-column .buffalo-summary-card.is-following-bottom{
    position:absolute!important;
    top:auto!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:100%!important;
  }
}
@media (max-width:880px){
  body.buffalo-checkout-active .buffalo-summary-column{min-height:0!important;width:100%!important}
  body.buffalo-checkout-active .buffalo-summary-column .buffalo-summary-card{
    position:static!important;
    width:100%!important;
    max-height:none!important;
    overflow:visible!important;
  }
}


/* ===== 0.4.5: seleção de frete na encomenda + estados sem rosa ===== */
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate{
  appearance:none!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  text-align:left!important;
  cursor:pointer!important;
  color:#381805!important;
  box-shadow:none!important;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate:hover,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate:hover{
  border-color:#b7dcbc!important;
  background:#fbfffc!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate.is-selected,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate.is-selected{
  border-color:#61CE70!important;
  background:#f4fbf5!important;
  box-shadow:0 0 0 2px rgba(97,206,112,.12)!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate__radio,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate__radio{
  width:16px!important;height:16px!important;border:1.5px solid #9f9993!important;
  border-radius:50%!important;background:#fff!important;position:relative!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate.is-selected .buffalo-product-rate__radio,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate.is-selected .buffalo-product-rate__radio{border-color:#61CE70!important}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-product-rate.is-selected .buffalo-product-rate__radio:after,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-product-rate.is-selected .buffalo-product-rate__radio:after{
  content:""!important;position:absolute!important;inset:3px!important;border-radius:50%!important;background:#61CE70!important;
}

/* Neutraliza o rosa herdado do tema/Elementor ao clicar ou focar. */
body.buffalo-compra-guiada-page #monte-sua-caneca button:focus,
body.buffalo-compra-guiada-page #monte-sua-caneca button:focus-visible,
body.bc-encomenda-preview #monte-sua-caneca button:focus,
body.bc-encomenda-preview #monte-sua-caneca button:focus-visible{
  outline:none!important;box-shadow:0 0 0 3px rgba(97,206,112,.20)!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-visual-card:focus,
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-visual-card:active,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-visual-card:focus,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-visual-card:active{
  background:#fff!important;color:#381805!important;border-color:#61CE70!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .bc-navigation__button--next:focus,
body.buffalo-compra-guiada-page #monte-sua-caneca .bc-navigation__button--next:active,
body.buffalo-compra-guiada-page #monte-sua-caneca .single_add_to_cart_button:focus,
body.buffalo-compra-guiada-page #monte-sua-caneca .single_add_to_cart_button:active,
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-shipping-calc-button:focus,
body.buffalo-compra-guiada-page #monte-sua-caneca .buffalo-shipping-calc-button:active,
body.bc-encomenda-preview #monte-sua-caneca .bc-navigation__button--next:focus,
body.bc-encomenda-preview #monte-sua-caneca .bc-navigation__button--next:active,
body.bc-encomenda-preview #monte-sua-caneca .single_add_to_cart_button:focus,
body.bc-encomenda-preview #monte-sua-caneca .single_add_to_cart_button:active,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-shipping-calc-button:focus,
body.bc-encomenda-preview #monte-sua-caneca .buffalo-shipping-calc-button:active{
  background:#61CE70!important;border-color:#61CE70!important;color:#381805!important;
}
body.buffalo-compra-guiada-page #monte-sua-caneca .bc-navigation__button--back:focus,
body.buffalo-compra-guiada-page #monte-sua-caneca .bc-navigation__button--back:active,
body.bc-encomenda-preview #monte-sua-caneca .bc-navigation__button--back:focus,
body.bc-encomenda-preview #monte-sua-caneca .bc-navigation__button--back:active{
  background:#fff!important;border-color:#381805!important;color:#381805!important;
}

/* ===== 0.4.8: total estável na encomenda + remoção definitiva de rosa no checkout ===== */

/*
 * O configurador/PPOM continua dono do subtotal original. Quando há frete
 * escolhido, escondemos SOMENTE a tinta do número original e exibimos o total
 * com frete pelo atributo calculado pelo JS. O subtotal nativo pode atualizar
 * por baixo sem provocar o efeito de piscar entre dois valores.
 */
#monte-sua-caneca .buffalo-total-with-shipping{
  position:relative!important;
  color:transparent!important;
  text-shadow:none!important;
}
#monte-sua-caneca .buffalo-total-with-shipping::after{
  content:attr(data-buffalo-total-with-shipping)!important;
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:inherit!important;
  color:#381805!important;
  font:inherit!important;
  font-weight:inherit!important;
  line-height:inherit!important;
  white-space:nowrap!important;
  pointer-events:none!important;
}

/*
 * O Elementor ainda possui um Accent rosa global. Alguns estados de botão do
 * tema têm especificidade suficiente para reaparecer no checkout. A partir
 * daqui o shell do Búfalo passa a declarar explicitamente todos os estados.
 */
body.buffalo-checkout-active .buffalo-checkout-shell{
  --buffalo-site-accent:#381805!important;
  --buffalo-brand:#381805!important;
}

/* Progresso superior: nunca herda fundo/outline rosa do tema. */
body.buffalo-checkout-active .buffalo-progress-step,
body.buffalo-checkout-active .buffalo-progress-step:hover,
body.buffalo-checkout-active .buffalo-progress-step:focus,
body.buffalo-checkout-active .buffalo-progress-step:focus-visible,
body.buffalo-checkout-active .buffalo-progress-step:active{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:none!important;
}
body.buffalo-checkout-active .buffalo-progress-step:not(.is-active):not(.is-complete){
  color:#77736f!important;
}
body.buffalo-checkout-active .buffalo-progress-step:not(.is-active):not(.is-complete) b{
  background:#fff!important;
  border-color:#d4d3cd!important;
  color:#77736f!important;
  box-shadow:none!important;
}
body.buffalo-checkout-active .buffalo-progress-step.is-active,
body.buffalo-checkout-active .buffalo-progress-step.is-active:hover,
body.buffalo-checkout-active .buffalo-progress-step.is-active:focus,
body.buffalo-checkout-active .buffalo-progress-step.is-active:active{
  color:#381805!important;
}
body.buffalo-checkout-active .buffalo-progress-step.is-active b{
  background:#381805!important;
  border-color:#381805!important;
  color:#fff!important;
}
body.buffalo-checkout-active .buffalo-progress-step.is-complete,
body.buffalo-checkout-active .buffalo-progress-step.is-complete:hover,
body.buffalo-checkout-active .buffalo-progress-step.is-complete:focus,
body.buffalo-checkout-active .buffalo-progress-step.is-complete:active{
  color:#287a3b!important;
}
body.buffalo-checkout-active .buffalo-progress-step.is-complete b{
  background:#61CE70!important;
  border-color:#61CE70!important;
  color:#381805!important;
}

/* Cabeçalhos das etapas e botões do fluxo. */
body.buffalo-checkout-active .buffalo-step-head,
body.buffalo-checkout-active .buffalo-step-head:hover,
body.buffalo-checkout-active .buffalo-step-head:focus,
body.buffalo-checkout-active .buffalo-step-head:focus-visible,
body.buffalo-checkout-active .buffalo-step-head:active{
  background:#fff!important;
  color:#231b17!important;
  border:0!important;
  box-shadow:none!important;
  outline:none!important;
}
body.buffalo-checkout-active .buffalo-next-step,
body.buffalo-checkout-active .buffalo-next-step:visited,
body.buffalo-checkout-active .buffalo-next-step:focus,
body.buffalo-checkout-active .buffalo-next-step:focus-visible,
body.buffalo-checkout-active .buffalo-next-step:active,
body.buffalo-checkout-active #place_order,
body.buffalo-checkout-active #place_order:focus,
body.buffalo-checkout-active #place_order:focus-visible,
body.buffalo-checkout-active #place_order:active{
  background:#381805!important;
  border-color:#381805!important;
  color:#fff!important;
  box-shadow:none!important;
  outline:none!important;
}
body.buffalo-checkout-active .buffalo-next-step:hover,
body.buffalo-checkout-active #place_order:hover{
  background:#4a2109!important;
  border-color:#4a2109!important;
  color:#fff!important;
}
body.buffalo-checkout-active .buffalo-back-step,
body.buffalo-checkout-active .buffalo-back-step:hover,
body.buffalo-checkout-active .buffalo-back-step:focus,
body.buffalo-checkout-active .buffalo-back-step:focus-visible,
body.buffalo-checkout-active .buffalo-back-step:active{
  background:transparent!important;
  border-color:transparent!important;
  color:#381805!important;
  box-shadow:none!important;
  outline:none!important;
}

/* Frete, pagamento e checks nativos: verde da marca em vez do Accent do tema. */
body.buffalo-checkout-active input[type="radio"],
body.buffalo-checkout-active input[type="checkbox"]{
  accent-color:#61CE70!important;
}
body.buffalo-checkout-active .buffalo-shipping-mirror-option,
body.buffalo-checkout-active .buffalo-shipping-mirror-option:hover,
body.buffalo-checkout-active .buffalo-shipping-mirror-option:focus,
body.buffalo-checkout-active .buffalo-shipping-mirror-option:focus-visible,
body.buffalo-checkout-active .buffalo-shipping-mirror-option:active{
  color:#381805!important;
  outline:none!important;
}
body.buffalo-checkout-active .buffalo-shipping-mirror-option:focus,
body.buffalo-checkout-active .buffalo-shipping-mirror-option:focus-visible{
  border-color:#61CE70!important;
  box-shadow:0 0 0 3px rgba(97,206,112,.16)!important;
}
body.buffalo-checkout-active .buffalo-shipping-mirror-option.is-selected,
body.buffalo-checkout-active .buffalo-shipping-mirror-option.is-selected:hover,
body.buffalo-checkout-active .buffalo-shipping-mirror-option.is-selected:focus,
body.buffalo-checkout-active .buffalo-shipping-mirror-option.is-selected:active{
  border-color:#61CE70!important;
  background:#fbfffb!important;
  box-shadow:0 0 0 2px rgba(97,206,112,.12)!important;
}
body.buffalo-checkout-active #buffalo-payment-content #payment ul.payment_methods>li:has(input:checked){
  border-color:#61CE70!important;
  box-shadow:0 0 0 2px rgba(97,206,112,.12)!important;
}

/* Links e estados de foco que o WooCommerce/tema pintava com Accent. */
body.buffalo-checkout-active .buffalo-checkout-shell a,
body.buffalo-checkout-active .buffalo-checkout-shell a:visited,
body.buffalo-checkout-active .buffalo-checkout-shell a:hover,
body.buffalo-checkout-active .buffalo-checkout-shell a:focus,
body.buffalo-checkout-active .buffalo-checkout-shell a:active{
  color:#381805!important;
}
body.buffalo-checkout-active .input-text:focus,
body.buffalo-checkout-active select:focus,
body.buffalo-checkout-active .select2-container--focus .select2-selection,
body.buffalo-checkout-active .select2-container--open .select2-selection{
  border-color:#61CE70!important;
  box-shadow:0 0 0 3px rgba(97,206,112,.13)!important;
  outline:none!important;
}

/* ===== 0.4.9: tipografia do site + resumo mais legível ===== */
:root{
  --buffalo-site-font-body:var(--e-global-typography-text-font-family,var(--e-global-typography-primary-font-family,inherit));
  --buffalo-site-font-heading:var(--e-global-typography-primary-font-family,var(--buffalo-site-font-body));
}

/* Corpo, campos, botões e tabelas seguem a tipografia global do site. */
body.buffalo-checkout-active .buffalo-checkout-shell,
body.buffalo-checkout-active .buffalo-checkout-shell input,
body.buffalo-checkout-active .buffalo-checkout-shell select,
body.buffalo-checkout-active .buffalo-checkout-shell textarea,
body.buffalo-checkout-active .buffalo-checkout-shell button,
body.buffalo-checkout-active .buffalo-checkout-shell table,
body.buffalo-checkout-active .buffalo-checkout-shell th,
body.buffalo-checkout-active .buffalo-checkout-shell td,
body.buffalo-checkout-active .buffalo-checkout-shell label,
body.buffalo-checkout-active .buffalo-checkout-shell a,
.buffalo-product-shipping,
.buffalo-product-shipping input,
.buffalo-product-shipping button,
.buffalo-product-shipping a{
  font-family:var(--buffalo-site-font-body)!important;
}

/* Títulos usam a mesma família definida pelo site para headings. */
body.buffalo-checkout-active .buffalo-checkout-brand,
body.buffalo-checkout-active .buffalo-step-heading strong,
body.buffalo-checkout-active .buffalo-summary-title,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total td,
.buffalo-product-shipping__head strong{
  font-family:var(--buffalo-site-font-heading)!important;
}

/* Resumo do checkout: aumento leve, mantendo a hierarquia visual. */
body.buffalo-checkout-active .buffalo-summary-title{
  font-size:18px!important;
  line-height:1.3!important;
}
body.buffalo-checkout-active .buffalo-summary-lock{
  font-size:11px!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table td{
  font-size:13.5px!important;
  line-height:1.45!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table thead th{
  font-size:11.5px!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .product-name{
  font-size:13.5px!important;
}
body.buffalo-checkout-active .buffalo-summary-card tr.shipping label{
  font-size:12.5px!important;
  line-height:1.45!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total th,
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total td{
  font-size:16px!important;
}
body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total .amount{
  font-size:19px!important;
}

@media(max-width:880px){
  body.buffalo-checkout-active .buffalo-summary-title{font-size:17px!important}
  body.buffalo-checkout-active .woocommerce-checkout-review-order-table th,
  body.buffalo-checkout-active .woocommerce-checkout-review-order-table td{font-size:13px!important}
  body.buffalo-checkout-active .woocommerce-checkout-review-order-table .order-total .amount{font-size:18px!important}
}


/* ===== 0.5.0: textos explicativos do configurador ===== */
#monte-sua-caneca .buffalo-configurator-field-help{
  margin:8px 0 16px!important;
  padding:0!important;
  color:#6a5b53!important;
  font-family:var(--buffalo-site-font-body,inherit)!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.45!important;
  text-align:center!important;
}
#monte-sua-caneca .ppom-input-gravacao_laser .buffalo-configurator-field-help{
  max-width:720px;
  margin-left:auto!important;
  margin-right:auto!important;
}
#monte-sua-caneca .ppom-input-caixa_400ml .buffalo-configurator-field-help,
#monte-sua-caneca .ppom-input-caixa_1_litro .buffalo-configurator-field-help{
  color:#381805!important;
}
#monte-sua-caneca .ppom-input-caixa_400ml .buffalo-card-title,
#monte-sua-caneca .ppom-input-caixa_1_litro .buffalo-card-title{
  line-height:1.25!important;
}

@media(max-width:767px){
  #monte-sua-caneca .buffalo-configurator-field-help{
    font-size:13px!important;
    margin-bottom:13px!important;
  }
}

/* ===== 0.5.4: escolha de frete também nas páginas de produto ===== */
.buffalo-product-shipping .buffalo-product-rate{
  appearance:none!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid #e5e2de!important;
  border-radius:9px!important;
  background:#fafafa!important;
  color:#381805!important;
  font:inherit!important;
  text-align:left!important;
  cursor:pointer!important;
  box-shadow:none!important;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease!important;
}
.buffalo-product-shipping .buffalo-product-rate:hover{
  border-color:#b7dcbc!important;
  background:#fbfffc!important;
}
.buffalo-product-shipping .buffalo-product-rate.is-selected{
  border-color:#61CE70!important;
  background:#f4fbf5!important;
  box-shadow:0 0 0 2px rgba(97,206,112,.12)!important;
}
.buffalo-product-shipping .buffalo-product-rate:focus-visible{
  outline:2px solid #61CE70!important;
  outline-offset:2px!important;
}
.buffalo-product-shipping .buffalo-product-rate:disabled{
  cursor:wait!important;
  opacity:.68!important;
}
.buffalo-product-shipping .buffalo-product-rate__radio{
  width:16px!important;
  height:16px!important;
  border:1.5px solid #9f9993!important;
  border-radius:50%!important;
  background:#fff!important;
  position:relative!important;
}
.buffalo-product-shipping .buffalo-product-rate.is-selected .buffalo-product-rate__radio{
  border-color:#61CE70!important;
}
.buffalo-product-shipping .buffalo-product-rate.is-selected .buffalo-product-rate__radio:after{
  content:""!important;
  position:absolute!important;
  inset:3px!important;
  border-radius:50%!important;
  background:#61CE70!important;
}
.buffalo-product-shipping .buffalo-product-rate__name{
  color:#381805!important;
  font-size:12.5px!important;
  font-weight:650!important;
  line-height:1.35!important;
}
.buffalo-product-shipping .buffalo-product-rate__price{
  color:#61CE70!important;
  font-size:13px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
