.wcawvc-add-to-cart-widget{
    width:100%;
    box-sizing:border-box;
}

.wcawvc-add-to-cart-widget *,
.wcawvc-add-to-cart-widget *::before,
.wcawvc-add-to-cart-widget *::after{
    box-sizing:border-box;
}

.wcawvc-add-to-cart-form{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
    margin:0 !important;
    padding:0 !important;
}

.wcawvc-atc-notice{
    padding:12px 14px;
    border:1px solid #e5e5e5;
    border-radius:10px;
    background:#fafafa;
    color:#333;
    font-size:14px;
    line-height:1.4;
}

.wcawvc-success-message{
    display:block;
    width:100%;
    margin:0 0 10px 0;
    padding:12px 14px;
    border:1px solid #b7eb8f;
    border-radius:8px;
    background:#f6ffed;
    color:#389e0d;
    font-size:14px;
    line-height:1.4;
    font-weight:600;
}

/* topo */
.wcawvc-add-to-cart-top{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:flex-end !important;
    justify-content:flex-start !important;
    gap:12px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

.wcawvc-qty-field{
    flex:0 0 165px !important;
    width:165px !important;
    min-width:165px !important;
    max-width:165px !important;
    margin:0 !important;
    padding:0 !important;
}

.wcawvc-variation-field{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    align-self:flex-end !important;
}

/* força o wrapper interno do WooCommerce a não empurrar pra cima/baixo */
.wcawvc-variation-field .variations{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:none !important;
    line-height:1 !important;
}

.wcawvc-variation-field .variations table,
.wcawvc-variation-field .variations tbody,
.wcawvc-variation-field .variations tr,
.wcawvc-variation-field .variations td,
.wcawvc-variation-field .variations th{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.wcawvc-field-label{
    display:block;
    margin:0 0 8px 0 !important;
    padding:0 !important;
    font-size:14px;
    line-height:1.25;
    font-weight:600;
    color:#222;
    min-height:auto !important;
}

/* quantidade */
.wcawvc-qty-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    height:40px;
    background:#fff;
    border:1px solid #d9d9d9;
    border-radius:0;
    overflow:hidden;
    box-shadow:none;
    margin:0 !important;
    padding:0 !important;
}

.wcawvc-qty-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    min-width:42px;
    max-width:42px;
    height:100%;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:#f7f7f7;
    color:#6b6b6b;
    font-size:24px;
    line-height:1;
    font-weight:400;
    cursor:pointer;
    transition:background-color .2s ease, color .2s ease;
    box-shadow:none !important;
}

.wcawvc-qty-btn:hover{
    background:#ededed;
    color:#222;
}

.wcawvc-qty-minus{
    border-right:1px solid #d9d9d9 !important;
}

.wcawvc-qty-plus{
    border-left:1px solid #d9d9d9 !important;
}

.wcawvc-qty-input{
    appearance:textfield;
    -webkit-appearance:none;
    -moz-appearance:textfield;
    display:block;
    width:100%;
    min-width:0;
    height:100%;
    margin:0 !important;
    padding:0 6px !important;
    border:0 !important;
    outline:none !important;
    box-shadow:none !important;
    background:#fff !important;
    color:#3a3a3a;
    text-align:center;
    font-size:16px;
    line-height:1;
    font-weight:400;
    border-radius:0 !important;
}

.wcawvc-qty-input::-webkit-outer-spin-button,
.wcawvc-qty-input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

/* variação */
.wcawvc-variation-field select,
.wcawvc-variation-select,
.wcawvc-add-to-cart-widget select.wcawvc-variation-select{
    appearance:none !important;
    -webkit-appearance:none !important;
    -moz-appearance:none !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:40px !important;
    min-height:40px !important;
    margin:0 !important;
    padding:0 38px 0 14px !important;
    border:1px solid #d9d9d9 !important;
    border-radius:8px !important;
    outline:none !important;
    box-shadow:none !important;
    background-color:#fff !important;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='%23222222' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
    background-repeat:no-repeat !important;
    background-position:right 12px center !important;
    background-size:14px 14px !important;
    color:inherit !important;
    font-size:15px !important;
    line-height:1 !important;
    font-weight:400 !important;
    cursor:pointer;
    vertical-align:bottom !important;
    transform:none !important;
    position:relative !important;
    top:0 !important;
}

.wcawvc-variation-select:focus,
.wcawvc-variation-field select:focus{
    outline:none !important;
    box-shadow:none !important;
}

.wcawvc-variation-select.wcawvc-selection-error{
    border-color:#ff4d4f !important;
    box-shadow:none !important;
}

/* remove qualquer espaçamento estranho vindo do tema */
.wcawvc-variation-field .value,
.wcawvc-variation-field .label,
.wcawvc-variation-field p,
.wcawvc-variation-field div,
.wcawvc-variation-field span{
    margin-top:0 !important;
}

/* single variation wrap precisa existir */
.wcawvc-add-to-cart-widget form.cart .single_variation_wrap{
    display:block !important;
    width:0 !important;
    height:0 !important;
    overflow:hidden !important;
    visibility:hidden !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.wcawvc-add-to-cart-widget .woocommerce-variation,
.wcawvc-add-to-cart-widget .variations_button{
    margin:0 !important;
    padding:0 !important;
}

/* ações */
.wcawvc-add-to-cart-actions{
    display:flex;
    align-items:stretch;
    gap:8px;
    width:100%;
    margin:0 !important;
    padding:0 !important;
}

/* botão com prioridade maior que WooCommerce/tema */
.wcawvc-add-to-cart-widget .wcawvc-add-to-cart-button,
.wcawvc-add-to-cart-widget form.cart .single_add_to_cart_button.wcawvc-add-to-cart-button,
.wcawvc-add-to-cart-widget .button.wcawvc-add-to-cart-button,
.wcawvc-add-to-cart-widget button.wcawvc-add-to-cart-button{
    appearance:none !important;
    -webkit-appearance:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-height:58px !important;
    height:auto !important;
    margin:0 !important;
    padding:14px 20px !important;
    border:0 !important;
    border-radius:8px !important;
    background:var(--wcawvc-button-bg, #f5ab00) !important;
    background-color:var(--wcawvc-button-bg, #f5ab00) !important;
    color:var(--wcawvc-button-color, #111111) !important;
    box-shadow:none !important;
    text-decoration:none !important;
    cursor:pointer !important;
    transition:background-color .2s ease, color .2s ease, opacity .2s ease !important;
}

.wcawvc-add-to-cart-widget .wcawvc-add-to-cart-button:hover,
.wcawvc-add-to-cart-widget form.cart .single_add_to_cart_button.wcawvc-add-to-cart-button:hover,
.wcawvc-add-to-cart-widget .button.wcawvc-add-to-cart-button:hover,
.wcawvc-add-to-cart-widget button.wcawvc-add-to-cart-button:hover{
    background:var(--wcawvc-button-bg-hover, #e39d00) !important;
    background-color:var(--wcawvc-button-bg-hover, #e39d00) !important;
    color:var(--wcawvc-button-color-hover, #111111) !important;
}

.wcawvc-add-to-cart-widget .wcawvc-add-to-cart-button:focus{
    outline:none !important;
    box-shadow:none !important;
}

.wcawvc-add-to-cart-button.disabled,
.wcawvc-add-to-cart-button:disabled{
    opacity:1 !important;
    cursor:pointer !important;
}

.wcawvc-add-to-cart-button-inner{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:var(--wcawvc-atc-icon-gap, 10px);
    width:100%;
}

.wcawvc-add-to-cart-button-inner.wcawvc-icon-before{
    flex-direction:row;
}

.wcawvc-add-to-cart-button-inner.wcawvc-icon-after{
    flex-direction:row-reverse;
}

.wcawvc-add-to-cart-text{
    display:inline-block;
    font-size:16px;
    line-height:1.2;
    font-weight:600;
    white-space:nowrap;
    color:inherit !important;
}

.wcawvc-add-to-cart-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
    color:inherit !important;
}

.wcawvc-add-to-cart-icon i,
.wcawvc-add-to-cart-icon svg{
    display:block;
    font-size:16px;
    width:16px;
    height:16px;
    color:inherit !important;
    fill:currentColor;
}

/* favorito */
.wcawvc-favorite-button{
    appearance:none !important;
    -webkit-appearance:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 66px !important;
    width:66px !important;
    min-width:66px !important;
    max-width:66px !important;
    min-height:58px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid #2b2b2b !important;
    border-radius:8px !important;
    background:#fff !important;
    color:#5b5b5b !important;
    cursor:pointer !important;
    box-shadow:none !important;
    transition:background-color .2s ease, color .2s ease, border-color .2s ease !important;
}

.wcawvc-favorite-button:hover{
    background:#f5f5f5 !important;
    color:#222 !important;
}

.wcawvc-favorite-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
}

.wcawvc-favorite-icon svg{
    display:block;
    width:22px;
    height:22px;
}

/* compatibilidade */
.wcawvc-add-to-cart-widget form.cart .variations{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.wcawvc-add-to-cart-widget .reset_variations{
    display:none !important;
}

.wcawvc-add-to-cart-widget .quantity{
    float:none !important;
    margin:0 !important;
}

/* tablet/mobile */
@media (max-width: 767px){
    .wcawvc-add-to-cart-top{
        display:flex !important;
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        align-items:flex-end !important;
        justify-content:flex-start !important;
        gap:10px !important;
    }

    .wcawvc-qty-field{
        flex:0 0 150px !important;
        width:150px !important;
        min-width:150px !important;
        max-width:150px !important;
    }

    .wcawvc-variation-field{
        flex:1 1 auto !important;
        width:auto !important;
        min-width:0 !important;
        max-width:none !important;
    }

    .wcawvc-variation-field .variations,
    .wcawvc-variation-field select,
    .wcawvc-variation-select{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
    }

    .wcawvc-field-label{
        font-size:13px;
        margin-bottom:6px !important;
    }

    .wcawvc-qty-box,
    .wcawvc-variation-select{
        height:38px !important;
        min-height:38px !important;
    }

    .wcawvc-qty-btn{
        width:34px;
        min-width:34px;
        max-width:34px;
        font-size:22px;
    }

    .wcawvc-qty-input{
        font-size:15px;
    }

    .wcawvc-variation-select{
        padding:0 34px 0 12px !important;
        font-size:14px !important;
        background-position:right 10px center !important;
        background-size:13px 13px !important;
    }

    .wcawvc-add-to-cart-actions{
        gap:8px;
    }

    .wcawvc-add-to-cart-widget .wcawvc-add-to-cart-button,
    .wcawvc-add-to-cart-widget form.cart .single_add_to_cart_button.wcawvc-add-to-cart-button{
        min-height:54px !important;
        padding:12px 14px !important;
    }

    .wcawvc-favorite-button{
        flex:0 0 60px !important;
        width:60px !important;
        min-width:60px !important;
        max-width:60px !important;
        min-height:54px !important;
    }

    .wcawvc-add-to-cart-text{
        font-size:15px;
        white-space:normal;
    }
}

@media (max-width: 520px){
    .wcawvc-qty-field{
        flex:0 0 138px !important;
        width:138px !important;
        min-width:138px !important;
        max-width:138px !important;
    }

    .wcawvc-variation-field{
        flex:1 1 auto !important;
        min-width:0 !important;
    }
}

@media (max-width: 480px){
    .wcawvc-add-to-cart-top{
        gap:8px !important;
    }

    .wcawvc-qty-field{
        flex:0 0 128px !important;
        width:128px !important;
        min-width:128px !important;
        max-width:128px !important;
    }

    .wcawvc-variation-field{
        flex:1 1 auto !important;
        width:auto !important;
        min-width:0 !important;
        max-width:none !important;
    }

    .wcawvc-add-to-cart-widget .wcawvc-add-to-cart-button,
    .wcawvc-add-to-cart-widget form.cart .single_add_to_cart_button.wcawvc-add-to-cart-button{
        min-height:52px !important;
        padding:12px 12px !important;
    }

    .wcawvc-favorite-button{
        flex:0 0 56px !important;
        width:56px !important;
        min-width:56px !important;
        max-width:56px !important;
        min-height:52px !important;
    }
}

@media (max-width: 380px){
    .wcawvc-qty-field{
        flex:0 0 118px !important;
        width:118px !important;
        min-width:118px !important;
        max-width:118px !important;
    }

    .wcawvc-qty-btn{
        width:30px;
        min-width:30px;
        max-width:30px;
    }

    .wcawvc-variation-select{
        padding:0 30px 0 10px !important;
        font-size:13px !important;
    }
}