:root{
    --embax-blue:#082A64;
    --embax-green:#217C23;
    --embax-orange:#F69E07;
    --embax-bg:#F5F7F8;
    --embax-text:#1F2937;
    --embax-border:#E5E7EB;
    --embax-page-max-width:1180px;
    --embax-form-width:390px;
    --embax-heading-size:30px;
    --embax-product-size:18px;
    --embax-base-size:15px;
    --embax-field-height:46px;
    --embax-radius:10px;
    --embax-button-bg:#217C23;
    --embax-secondary-bg:#082A64;
    --embax-button-text:#FFFFFF;
    --embax-heading-color:#082A64;
    --embax-form-bg:#FFFFFF;
    --embax-header-button-font-size:15px;
    --embax-header-button-height:42px;
    --embax-header-button-pad-x:16px;
    --embax-header-button-radius:8px;
    --embax-header-button-bg:#217C23;
    --embax-header-button-hover-bg:#17641A;
    --embax-header-button-text:#FFFFFF;
    --embax-count-size:22px;
    --embax-count-font-size:12px;
    --embax-count-bg:#F69E07;
    --embax-count-text:#FFFFFF;
    --embax-add-form-max-width:1200px;
    --embax-add-label-size:14px;
    --embax-add-label-color:#1F2937;
    --embax-add-field-height:46px;
    --embax-add-field-text-size:16px;
    --embax-add-button-font-size:15px;
    --embax-add-button-height:46px;
    --embax-add-button-radius:10px;
    --embax-add-button-bg:#217C23;
    --embax-add-button-hover-bg:#17641A;
    --embax-add-button-text:#FFFFFF;
    --embax-floating-size:56px;
    --embax-floating-icon-size:25px;
    --embax-floating-offset-x:20px;
    --embax-floating-offset-y:20px;
    --embax-floating-radius:50%;
    --embax-floating-bg:#217C23;
    --embax-floating-hover-bg:#17641A;
    --embax-floating-icon-color:#FFFFFF;
    --embax-floating-count-size:22px;
    --embax-floating-count-font-size:12px;
    --embax-floating-count-bg:#F69E07;
    --embax-floating-count-text:#FFFFFF;
    --embax-floating-shadow:0 10px 30px rgba(0,0,0,.24);
}

.embax-quote-page,.embax-quote-page *,.embax-quote-box,.embax-quote-box *{box-sizing:border-box}

/* Adicionar ao orçamento nos produtos / shortcode [embax_add_quote] */
.embax-quote-box{width:100%;max-width:var(--embax-add-form-max-width);margin:18px 0;font-size:var(--embax-add-label-size)}
.embax-variation-fields{display:grid;gap:12px;margin-bottom:14px}
.embax-variation-fields label,.embax-qty-label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:var(--embax-add-label-color);font-size:var(--embax-add-label-size);line-height:1.35}
.embax-variation-fields select,.embax-qty{
    width:100%;min-height:var(--embax-add-field-height);border:1px solid var(--embax-border)!important;border-radius:var(--embax-radius)!important;
    padding:8px 12px!important;background:#fff!important;color:var(--embax-text)!important;box-shadow:none!important;
    font-size:var(--embax-add-field-text-size)!important;line-height:1.3!important
}
.embax-add-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.embax-qty-label{width:110px}
.embax-add-quote{
    min-height:var(--embax-add-button-height)!important;padding:9px 18px!important;background:var(--embax-add-button-bg)!important;
    border:1px solid var(--embax-add-button-bg)!important;color:var(--embax-add-button-text)!important;font-size:var(--embax-add-button-font-size)!important;
    line-height:1.25!important;font-weight:700!important;border-radius:var(--embax-add-button-radius)!important;box-shadow:none!important;white-space:normal!important;text-align:center!important
}
.embax-add-quote:hover,.embax-add-quote:focus{background:var(--embax-add-button-hover-bg)!important;border-color:var(--embax-add-button-hover-bg)!important;color:var(--embax-add-button-text)!important}
.embax-submit-quote,.embax-open-whatsapp{
    background:var(--embax-button-bg)!important;border:1px solid var(--embax-button-bg)!important;color:var(--embax-button-text)!important;font-weight:700!important;border-radius:var(--embax-radius)!important;box-shadow:none!important
}
.embax-submit-quote:hover,.embax-open-whatsapp:hover{filter:brightness(.94)}
.embax-add-quote.is-loading{opacity:.65}
.embax-inline-message{font-size:13px;margin-top:8px;color:var(--embax-green)}

/* Cabeçalho / shortcodes [embax_quote_button] e [embax_quote_count] */
.embax-quote-header-button{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:var(--embax-header-button-height)!important;
    padding:6px var(--embax-header-button-pad-x)!important;background:var(--embax-header-button-bg)!important;border:1px solid var(--embax-header-button-bg)!important;
    border-radius:var(--embax-header-button-radius)!important;color:var(--embax-header-button-text)!important;font-size:var(--embax-header-button-font-size)!important;
    line-height:1.2!important;text-decoration:none!important;font-weight:700!important;box-shadow:none!important;white-space:nowrap
}
.embax-quote-header-button:hover,.embax-quote-header-button:focus{
    background:var(--embax-header-button-hover-bg)!important;border-color:var(--embax-header-button-hover-bg)!important;color:var(--embax-header-button-text)!important;text-decoration:none!important
}
.embax-quote-count{
    display:inline-flex!important;min-width:var(--embax-count-size)!important;height:var(--embax-count-size)!important;align-items:center!important;justify-content:center!important;
    border-radius:999px!important;background:var(--embax-count-bg)!important;color:var(--embax-count-text)!important;font-size:var(--embax-count-font-size)!important;
    line-height:1!important;font-weight:700!important;padding:0 5px!important;box-sizing:border-box!important;vertical-align:middle!important
}

/* Carrinho flutuante automático */
.embax-floating-quote{
    position:fixed!important;bottom:var(--embax-floating-offset-y)!important;z-index:99990!important;
    width:var(--embax-floating-size)!important;height:var(--embax-floating-size)!important;min-width:var(--embax-floating-size)!important;
    display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;
    border:0!important;border-radius:var(--embax-floating-radius)!important;background:var(--embax-floating-bg)!important;
    color:var(--embax-floating-icon-color)!important;text-decoration:none!important;box-shadow:var(--embax-floating-shadow)!important;
    transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease!important;-webkit-tap-highlight-color:transparent
}
.embax-floating-right{right:var(--embax-floating-offset-x)!important;left:auto!important}
.embax-floating-left{left:var(--embax-floating-offset-x)!important;right:auto!important}
.embax-floating-quote:hover,.embax-floating-quote:focus{
    background:var(--embax-floating-hover-bg)!important;color:var(--embax-floating-icon-color)!important;text-decoration:none!important;
    transform:translateY(-2px)!important;outline:2px solid transparent!important
}
.embax-floating-quote:focus-visible{outline:3px solid rgba(8,42,100,.35)!important;outline-offset:3px!important}
.embax-floating-icon{display:block!important;width:var(--embax-floating-icon-size)!important;height:var(--embax-floating-icon-size)!important;color:var(--embax-floating-icon-color)!important;flex:0 0 auto!important}
.embax-floating-quote .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.embax-floating-count{
    position:absolute!important;top:-5px!important;right:-5px!important;min-width:var(--embax-floating-count-size)!important;height:var(--embax-floating-count-size)!important;
    padding:0 5px!important;background:var(--embax-floating-count-bg)!important;color:var(--embax-floating-count-text)!important;
    font-size:var(--embax-floating-count-font-size)!important;border:2px solid #fff!important;box-shadow:0 2px 8px rgba(0,0,0,.18)!important
}
.embax-floating-left .embax-floating-count{right:auto!important;left:-5px!important}
.embax-floating-empty-hidden{display:none!important}
@media(min-width:769px){.embax-floating-hide-desktop{display:none!important}}
@media(max-width:768px){.embax-floating-hide-mobile{display:none!important}}

/* Página Meu orçamento */
.embax-quote-page{
    width:100%;max-width:var(--embax-page-max-width);margin:0 auto;padding:10px 16px 34px;display:grid;
    grid-template-columns:minmax(0,1fr) minmax(300px,var(--embax-form-width));gap:28px;align-items:start;
    color:var(--embax-text);font-size:var(--embax-base-size);line-height:1.5
}
.embax-quote-list,.embax-customer-form-wrap{min-width:0}
.embax-section-heading{margin:0 0 14px}
.embax-section-heading h2{
    margin:0 0 6px!important;padding:0!important;color:var(--embax-heading-color)!important;
    font-size:var(--embax-heading-size)!important;line-height:1.12!important;letter-spacing:-.02em!important;font-weight:700!important
}
.embax-section-heading p{margin:0!important;color:#667085!important;font-size:var(--embax-base-size)!important;line-height:1.5!important}
.embax-items{border:1px solid var(--embax-border);border-radius:var(--embax-radius);overflow:hidden;background:#fff}
.embax-quote-item{
    display:grid;grid-template-columns:74px minmax(0,1fr) auto auto;gap:14px;align-items:center;
    padding:15px;border-bottom:1px solid var(--embax-border);background:#fff
}
.embax-quote-item:last-child{border-bottom:0}
.embax-item-image img{display:block;width:70px!important;height:70px!important;max-width:70px!important;object-fit:contain}
.embax-item-main{min-width:0}
.embax-item-main h3{
    margin:0 0 5px!important;padding:0!important;color:var(--embax-text)!important;
    font-size:var(--embax-product-size)!important;line-height:1.25!important;font-weight:700!important;overflow-wrap:anywhere
}
.embax-item-attrs{display:flex;gap:8px;flex-wrap:wrap;font-size:calc(var(--embax-base-size) - 2px);color:#667085}
.embax-item-qty{display:flex;border:1px solid var(--embax-border);border-radius:var(--embax-radius);overflow:hidden;height:42px;background:#fff}
.embax-item-qty button{
    border:0!important;background:var(--embax-secondary-bg)!important;color:var(--embax-button-text)!important;
    width:38px!important;min-width:38px!important;height:40px!important;padding:0!important;cursor:pointer;font-size:18px!important;line-height:40px!important;border-radius:0!important;box-shadow:none!important
}
.embax-item-qty input{
    width:54px!important;height:40px!important;min-height:40px!important;border:0!important;text-align:center!important;padding:6px 2px!important;
    background:#fff!important;color:var(--embax-text)!important;font-size:15px!important;box-shadow:none!important;-moz-appearance:textfield
}
.embax-item-qty input::-webkit-outer-spin-button,.embax-item-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.embax-remove-item{border:0!important;background:transparent!important;color:#a1262f!important;cursor:pointer;text-decoration:underline;padding:6px!important;font-size:14px!important;box-shadow:none!important}
.embax-list-actions{display:flex;gap:10px;justify-content:space-between;margin-top:15px;flex-wrap:wrap}
.embax-quote-page .embax-list-actions .button,.embax-quote-page .embax-clear-quote{
    background:var(--embax-secondary-bg)!important;border:1px solid var(--embax-secondary-bg)!important;color:var(--embax-button-text)!important;
    border-radius:var(--embax-radius)!important;padding:11px 16px!important;min-height:42px!important;line-height:18px!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;box-shadow:none!important
}
.embax-customer-form-wrap{
    width:100%;background:var(--embax-form-bg);border:1px solid var(--embax-border);border-radius:var(--embax-radius);
    padding:22px;height:max-content;overflow:hidden
}
.embax-customer-form{display:grid;gap:13px;width:100%;min-width:0}
.embax-customer-form label{font-weight:600;color:var(--embax-text);display:grid;gap:6px;font-size:var(--embax-base-size);line-height:1.35;min-width:0}
.embax-customer-form label span{font-weight:400;color:#667085;font-size:12px}
.embax-customer-form input,.embax-customer-form textarea{
    width:100%;border:1px solid var(--embax-border)!important;border-radius:var(--embax-radius)!important;padding:10px 12px!important;
    background:#fff!important;color:var(--embax-text)!important;box-shadow:none!important;font-size:16px!important;line-height:1.3!important
}
.embax-customer-form input{min-height:var(--embax-field-height)}
.embax-customer-form textarea{min-height:105px;resize:vertical}
.embax-consent{grid-template-columns:20px minmax(0,1fr)!important;align-items:start!important;gap:9px!important}
.embax-consent input{width:18px!important;height:18px!important;min-height:18px!important;margin:2px 0 0!important;padding:0!important}
.embax-consent span{font-size:13px!important;line-height:1.45!important}
.embax-submit-quote{
    width:100%!important;min-height:46px!important;padding:12px 15px!important;font-size:14px!important;line-height:1.3!important;white-space:normal!important;text-align:center!important
}
.embax-form-note{font-size:12px!important;color:#667085;margin:0!important;text-align:center}
.embax-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important}
.embax-empty{padding:30px;border:1px dashed var(--embax-border);border-radius:var(--embax-radius);text-align:center;background:#fff}
.embax-success{max-width:680px;margin:30px auto;padding:35px;border:1px solid var(--embax-border);border-radius:var(--embax-radius);text-align:center;background:#fff}
.embax-success-icon{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;background:#e8f7ec;color:var(--embax-green);font-size:32px;font-weight:800}
.embax-success h2{color:var(--embax-heading-color)!important;font-size:var(--embax-heading-size)!important;line-height:1.15!important}
.embax-back-shop{display:block;margin-top:14px}
.embax-toast{position:fixed;right:20px;bottom:20px;z-index:999999;background:#16351f;color:#fff;padding:12px 16px;border-radius:var(--embax-radius);box-shadow:0 8px 30px rgba(0,0,0,.18);transform:translateY(15px);opacity:0;transition:.2s}
.embax-toast.is-visible{transform:none;opacity:1}
.embax-toast.is-error{background:#a1262f}

/* Evita o título duplicado gerado pelo tema/WordPress */
body.embax-quote-page-active.embax-hide-auto-page-title .entry-header .entry-title,
body.embax-quote-page-active.embax-hide-auto-page-title .page-header .page-header-title,
body.embax-quote-page-active.embax-hide-auto-page-title .elementor-page-title{display:none!important}

body.embax-catalog-mode .single_add_to_cart_button,body.embax-catalog-mode .add_to_cart_button:not(.embax-add-quote){display:none!important}
body.embax-hide-prices .price,body.embax-hide-prices .wc-block-grid__product-price,body.embax-hide-prices .wp-block-woocommerce-product-price,body.embax-hide-prices .wc-block-components-product-price{display:none!important}

@media(max-width:980px){
    .embax-quote-page{grid-template-columns:1fr;max-width:820px;gap:22px}
    .embax-customer-form-wrap{width:100%;max-width:none}
}
@media(max-width:620px){
    .embax-quote-page{padding:5px 12px 28px;gap:20px}
    .embax-section-heading h2{font-size:clamp(24px,var(--embax-heading-size),32px)!important}
    .embax-quote-item{grid-template-columns:58px minmax(0,1fr);gap:10px;padding:13px}
    .embax-item-image img{width:56px!important;height:56px!important;max-width:56px!important}
    .embax-item-qty{grid-column:2;width:max-content}
    .embax-remove-item{grid-column:2;justify-self:start}
    .embax-list-actions{display:grid;grid-template-columns:1fr}
    .embax-list-actions .button,.embax-clear-quote{width:100%;text-align:center}
    .embax-customer-form-wrap{padding:17px}
    .embax-add-row{align-items:stretch}
    .embax-qty-label{width:100px}
    .embax-add-quote{flex:1}
    .embax-toast{left:14px;right:14px;bottom:14px;text-align:center}
}
