:root{
    --secret-wine:#8E314B;
    --secret-wine-dark:#74263D;
    --secret-wine-soft:#F8EFF2;
    --secret-ink:#30272A;
    --secret-muted:#6E6065;
    --secret-line:#E8DBDF;
    --secret-line-strong:#D5B8C0;
    --secret-off:#FAF6F5;
    --secret-shadow:0 16px 38px rgba(78,46,55,.09);
}

/* Não tocar no admin bar */
#wpadminbar,
#wpadminbar *{
    all:revert-layer;
}

/* ---------- Produto ---------- */
body.single-product .single_add_to_cart_button,
body.single-product button.single_add_to_cart_button{
    min-height:56px!important;
    padding:0 30px!important;
    border:0!important;
    border-radius:11px!important;
    background:linear-gradient(180deg,var(--secret-wine),var(--secret-wine-dark))!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:800!important;
    letter-spacing:.10em!important;
    text-transform:uppercase!important;
    box-shadow:0 10px 24px rgba(142,49,75,.18)!important;
}
body.single-product form.cart .quantity{
    display:inline-flex!important;
    align-items:center!important;
    gap:8px!important;
    width:auto!important;
    vertical-align:middle!important;
}
body.single-product form.cart .quantity input.qty{
    width:64px!important;
    min-width:64px!important;
    min-height:56px!important;
    height:56px!important;
    border:1.5px solid var(--secret-line-strong)!important;
    border-radius:11px!important;
    background:#fff!important;
    text-align:center!important;
}
body.single-product .secret-master-product-qty-label{
    display:inline-flex!important;
    align-items:center!important;
    min-height:56px!important;
    color:#5f5156!important;
    font-size:13px!important;
    font-weight:800!important;
    white-space:nowrap!important;
}
body.single-product .secret-master-freight-card{
    background:linear-gradient(180deg,#fff 0%,#fdf9fa 100%)!important;
    border:1px solid var(--secret-line)!important;
    border-radius:16px!important;
    padding:18px!important;
    box-shadow:0 10px 24px rgba(78,46,55,.07)!important;
}
body.single-product .secret-master-freight-card input{
    min-height:50px!important;
    border:1.5px solid var(--secret-line-strong)!important;
    border-radius:11px!important;
    background:#fff!important;
    color:var(--secret-ink)!important;
    padding:0 14px!important;
}
body.single-product .secret-master-cep-note{
    display:block!important;
    margin-top:8px!important;
    padding-top:8px!important;
    border-top:1px dashed #e6d8dc!important;
    color:#76676c!important;
    font-size:12px!important;
}

/* ---------- Nosso botão flutuante ---------- */
.secret-master-cart-button{
    position:fixed!important;
    right:22px!important;
    bottom:22px!important;
    z-index:2147483000!important;
    width:58px!important;
    height:58px!important;
    border:0!important;
    border-radius:50%!important;
    background:linear-gradient(180deg,var(--secret-wine),var(--secret-wine-dark))!important;
    color:#fff!important;
    box-shadow:0 14px 30px rgba(142,49,75,.28)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
}
.secret-master-cart-button svg{
    display:block!important;
    width:27px!important;
    height:27px!important;
    overflow:visible!important;
    opacity:1!important;
    visibility:visible!important;
    fill:none!important;
    stroke:#fff!important;
    color:#fff!important;
}
.secret-master-cart-button svg *{
    fill:none!important;
    stroke:#fff!important;
    stroke-width:1.9!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}
.secret-master-cart-count{
    position:absolute!important;
    top:-5px!important;
    right:-5px!important;
    min-width:22px!important;
    height:22px!important;
    padding:0 5px!important;
    border-radius:11px!important;
    background:#fff!important;
    color:var(--secret-wine)!important;
    border:1.5px solid var(--secret-wine)!important;
    font-size:11px!important;
    line-height:19px!important;
    font-weight:800!important;
    text-align:center!important;
}

/* ---------- Drawer próprio ---------- */
.secret-master-drawer-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:2147483001!important;
    background:rgba(38,28,31,.32)!important;
    opacity:0!important;
    visibility:hidden!important;
    transition:opacity .18s ease!important;
}
.secret-master-drawer{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    z-index:2147483002!important;
    width:min(430px,94vw)!important;
    background:#fff!important;
    box-shadow:-24px 0 60px rgba(51,36,41,.20)!important;
    transform:translateX(105%)!important;
    transition:transform .22s ease!important;
    display:flex!important;
    flex-direction:column!important;
    color:var(--secret-ink)!important;
}
body.secret-master-cart-open .secret-master-drawer-backdrop{
    opacity:1!important;
    visibility:visible!important;
}
body.secret-master-cart-open .secret-master-drawer{
    transform:translateX(0)!important;
}
.secret-master-drawer-header{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
    padding:20px 22px!important;
    border-bottom:1px solid var(--secret-line)!important;
}
.secret-master-drawer-title{
    margin:0!important;
    color:var(--secret-ink)!important;
    font-size:21px!important;
    line-height:1.2!important;
    font-weight:800!important;
}
.secret-master-close{
    position:relative!important;
    display:block!important;
    flex:0 0 38px!important;
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid var(--secret-line-strong)!important;
    border-radius:50%!important;
    background:#fff!important;
    color:transparent!important;
    font-size:0!important;
    line-height:0!important;
    box-shadow:none!important;
    cursor:pointer!important;
}
.secret-master-close::before,
.secret-master-close::after{
    content:""!important;
    position:absolute!important;
    top:50%!important;
    left:50%!important;
    width:14px!important;
    height:1.5px!important;
    border-radius:2px!important;
    background:var(--secret-wine)!important;
    transform-origin:center!important;
}
.secret-master-close::before{transform:translate(-50%,-50%) rotate(45deg)!important;}
.secret-master-close::after{transform:translate(-50%,-50%) rotate(-45deg)!important;}
.secret-master-close:hover{
    border-color:var(--secret-wine)!important;
    background:var(--secret-wine-soft)!important;
}
.secret-master-drawer-body{
    flex:1!important;
    overflow:auto!important;
    padding:18px 20px!important;
}
.secret-master-drawer-empty{
    padding:40px 10px!important;
    color:var(--secret-muted)!important;
    text-align:center!important;
}
.secret-master-cart-item{
    display:grid!important;
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:14px!important;
    padding:15px 0!important;
    border-bottom:1px solid #eee5e7!important;
}
.secret-master-cart-item img{
    width:78px!important;
    height:78px!important;
    object-fit:contain!important;
    border-radius:10px!important;
    background:#fafafa!important;
}
.secret-master-cart-item-main{
    min-width:0!important;
}
.secret-master-cart-item-name{
    display:block!important;
    margin:0 0 5px!important;
    color:var(--secret-ink)!important;
    font-size:14px!important;
    line-height:1.35!important;
    font-weight:800!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
}
.secret-master-cart-item-price{
    margin:0 0 10px!important;
    color:var(--secret-muted)!important;
    font-size:13px!important;
}
.secret-master-line-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
}
.secret-master-qty{
    display:inline-grid!important;
    grid-template-columns:36px 44px 36px!important;
    align-items:center!important;
    border:1.5px solid var(--secret-line-strong)!important;
    border-radius:10px!important;
    overflow:hidden!important;
    background:#fff!important;
}
.secret-master-qty button{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    color:var(--secret-wine)!important;
    box-shadow:none!important;
    font-size:19px!important;
    font-weight:800!important;
    cursor:pointer!important;
}
.secret-master-qty input{
    display:block!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-left:1px solid #eadce0!important;
    border-right:1px solid #eadce0!important;
    border-radius:0!important;
    text-align:center!important;
    line-height:36px!important;
    vertical-align:middle!important;
    background:#fff!important;
    color:var(--secret-ink)!important;
    font-size:14px!important;
    font-weight:600!important;
    appearance:textfield!important;
    -moz-appearance:textfield!important;
}
.secret-master-qty input::-webkit-outer-spin-button,
.secret-master-qty input::-webkit-inner-spin-button{
    -webkit-appearance:none!important;
    margin:0!important;
}
.secret-master-remove{
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:var(--secret-wine)!important;
    box-shadow:none!important;
    font-size:11px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    letter-spacing:.06em!important;
    cursor:pointer!important;
}
.secret-master-drawer-footer{
    padding:18px 20px 20px!important;
    background:#fff!important;
    border-top:1px solid var(--secret-line)!important;
}
.secret-master-totals-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    padding:7px 0!important;
    color:var(--secret-ink)!important;
    font-size:14px!important;
}
.secret-master-totals-row.total{
    margin-top:7px!important;
    padding-top:14px!important;
    border-top:1px solid var(--secret-line)!important;
    color:var(--secret-wine)!important;
    font-size:18px!important;
    font-weight:800!important;
}
.secret-master-primary,
.secret-master-secondary{
    display:flex!important;
    width:100%!important;
    min-height:52px!important;
    align-items:center!important;
    justify-content:center!important;
    margin-top:12px!important;
    border-radius:11px!important;
    font-size:13px!important;
    font-weight:800!important;
    text-decoration:none!important;
    text-align:center!important;
}
.secret-master-primary{
    border:0!important;
    background:linear-gradient(180deg,var(--secret-wine),var(--secret-wine-dark))!important;
    color:#fff!important;
    box-shadow:0 10px 24px rgba(142,49,75,.18)!important;
}
.secret-master-secondary{
    border:1.5px solid var(--secret-line-strong)!important;
    background:#fff!important;
    color:var(--secret-wine)!important;
}

/* ---------- Checkout base ---------- */
body.secret-master-checkout{
    color:var(--secret-ink)!important;
    background:linear-gradient(180deg,#fff 0,#fff 120px,#fffdfd 190px,#fcf9f8 310px,#faf6f5 100%)!important;
}
body.secret-master-checkout .wcf-checkout-header,
body.secret-master-checkout header{
    background:#fff!important;
    border-bottom:1px solid rgba(232,219,223,.55)!important;
}
body.secret-master-checkout .wcf-embed-checkout-form,
body.secret-master-checkout .wcf-checkout-main-wrapper,
body.secret-master-checkout .wcf-checkout-form,
body.secret-master-checkout .woocommerce-checkout{
    background:transparent!important;
}
body.secret-master-checkout .wcf-checkout-form,
body.secret-master-checkout .wcf-embed-checkout-form .wcf-checkout-form{
    max-width:1240px!important;
    margin:0 auto!important;
}
body.secret-master-checkout #customer_details,
body.secret-master-checkout #order_review{
    background:rgba(255,255,255,.98)!important;
    border:1px solid var(--secret-line)!important;
    border-radius:20px!important;
    box-shadow:var(--secret-shadow)!important;
}
body.secret-master-checkout #customer_details{
    padding:30px!important;
    margin-top:0!important;
}
.secret-master-area-notice-hidden{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
}
body.secret-master-checkout #order_review{
    padding:22px!important;
    position:sticky!important;
    top:88px!important;
}

/* Form */
body.secret-master-checkout #customer_details h2,
body.secret-master-checkout #customer_details h3,
body.secret-master-checkout .woocommerce-billing-fields > h3,
body.secret-master-checkout .woocommerce-shipping-fields > h3,
body.secret-master-checkout .woocommerce-additional-fields > h3{
    color:var(--secret-ink)!important;
    font-size:21px!important;
    line-height:1.25!important;
    font-weight:800!important;
    margin:5px 0 18px!important;
}
body.secret-master-checkout .woocommerce-checkout .form-row{
    margin-bottom:15px!important;
}
body.secret-master-checkout .woocommerce-checkout .form-row-first,
body.secret-master-checkout .woocommerce-checkout .form-row-last{
    width:calc(50% - 7px)!important;
}
body.secret-master-checkout .woocommerce-checkout label{
    display:block!important;
    margin:0 0 6px!important;
    color:#4c4044!important;
    font-size:12px!important;
    line-height:1.25!important;
    font-weight:700!important;
}

/* Campos com label flutuante do CartFlows/Woo:
   mais legíveis e visualmente centralizados dentro do box. */
body.secret-master-checkout #customer_details .form-row[id$="_field"]{
    position:relative!important;
}
body.secret-master-checkout #customer_details .form-row[id$="_field"] > label:not(.checkbox):not(.woocommerce-form__label){
    position:absolute!important;
    z-index:4!important;
    top:9px!important;
    left:14px!important;
    margin:0!important;
    padding:0!important;
    color:#5a4c51!important;
    font-size:11.5px!important;
    line-height:1!important;
    font-weight:700!important;
    letter-spacing:.01em!important;
    pointer-events:none!important;
}

body.secret-master-checkout .woocommerce-checkout input.input-text,
body.secret-master-checkout .woocommerce-checkout select,
body.secret-master-checkout .select2-container--default .select2-selection--single{
    width:100%!important;
    min-height:64px!important;
    height:64px!important;
    padding:20px 14px 6px!important;
    border:1.5px solid var(--secret-line-strong)!important;
    border-radius:11px!important;
    background:#fff!important;
    color:var(--secret-ink)!important;
    box-shadow:none!important;
    font-size:16px!important;
    line-height:1.2!important;
    font-weight:700!important;
    box-sizing:border-box!important;
}
body.secret-master-checkout #customer_details input.input-text{
    padding-top:20px!important;
    padding-bottom:6px!important;
}
body.secret-master-checkout #customer_details select{
    padding-top:18px!important;
    padding-bottom:6px!important;
    line-height:24px!important;
    font-size:16px!important;
    font-weight:700!important;
}
body.secret-master-checkout .woocommerce-checkout textarea{
    width:100%!important;
    min-height:105px!important;
    padding:14px!important;
    border:1.5px solid var(--secret-line-strong)!important;
    border-radius:11px!important;
    background:#fff!important;
    color:var(--secret-ink)!important;
    box-shadow:none!important;
    font-size:14px!important;
    line-height:1.45!important;
    box-sizing:border-box!important;
}

/* Select2 precisa de ajuste próprio para o texto não subir. */
body.secret-master-checkout .select2-container--default .select2-selection--single .select2-selection__rendered{
    display:flex!important;
    align-items:center!important;
    height:62px!important;
    padding:13px 38px 0 14px!important;
    color:var(--secret-ink)!important;
    font-size:16px!important;
    line-height:1.2!important;
    font-weight:700!important;
    box-sizing:border-box!important;
}
body.secret-master-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{
    top:20px!important;
    right:9px!important;
}
body.secret-master-checkout .woocommerce-checkout textarea{
    resize:vertical!important;
}
body.secret-master-checkout .woocommerce-checkout input.input-text:focus,
body.secret-master-checkout .woocommerce-checkout select:focus,
body.secret-master-checkout .woocommerce-checkout textarea:focus{
    border-color:var(--secret-wine)!important;
    box-shadow:0 0 0 3px rgba(142,49,75,.08)!important;
    outline:none!important;
}
body.secret-master-checkout .secret-master-cep-status{
    display:block!important;
    margin-top:6px!important;
    color:var(--secret-muted)!important;
    font-size:12px!important;
}
body.secret-master-checkout .secret-master-cep-status.error{
    color:#A1263F!important;
}

/* Shipping */
body.secret-master-checkout #shipping_method{
    display:grid!important;
    gap:9px!important;
    margin:0!important;
    padding:0!important;
}
body.secret-master-checkout #shipping_method li{
    display:flex!important;
    align-items:flex-start!important;
    gap:10px!important;
    margin:0!important;
    padding:13px 14px!important;
    border:1px solid var(--secret-line)!important;
    border-radius:11px!important;
    background:#fff!important;
}
body.secret-master-checkout #shipping_method li:has(input[type="radio"]:checked){
    border-color:var(--secret-wine)!important;
    background:var(--secret-wine-soft)!important;
    box-shadow:0 0 0 1px var(--secret-wine) inset!important;
}
body.secret-master-checkout #shipping_method input[type="radio"]{
    width:18px!important;
    height:18px!important;
    margin-top:2px!important;
    accent-color:var(--secret-wine)!important;
}

/* Payment */
body.secret-master-checkout #payment{
    margin-top:24px!important;
    background:transparent!important;
}
body.secret-master-checkout #payment ul.payment_methods{
    display:grid!important;
    gap:10px!important;
    margin:0 0 20px!important;
    padding:0!important;
    border:0!important;
}
body.secret-master-checkout #payment ul.payment_methods > li{
    position:relative!important;
    margin:0!important;
    border:1px solid var(--secret-line)!important;
    border-radius:12px!important;
    background:#fff!important;
    overflow:hidden!important;
    box-shadow:none!important;
}
body.secret-master-checkout #payment ul.payment_methods > li:has(input[type="radio"]:checked){
    border-color:var(--secret-wine)!important;
    box-shadow:0 0 0 1px var(--secret-wine) inset!important;
}
body.secret-master-checkout #payment ul.payment_methods > li > input[type="radio"]{
    position:absolute!important;
    top:18px!important;
    left:16px!important;
    width:18px!important;
    height:18px!important;
    margin:0!important;
    accent-color:var(--secret-wine)!important;
    z-index:2!important;
}
body.secret-master-checkout #payment ul.payment_methods > li > label{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    min-height:54px!important;
    padding:15px 15px 15px 46px!important;
    margin:0!important;
    color:var(--secret-ink)!important;
    font-size:14px!important;
    font-weight:700!important;
}
body.secret-master-checkout #payment .payment_box{
    margin:0!important;
    padding:16px!important;
    border-top:1px solid #eadfe2!important;
    background:#fcf9fa!important;
    color:#4d4246!important;
}
body.secret-master-checkout #payment .payment_box::before{display:none!important;}
body.secret-master-checkout #payment .payment_box .mp-checkout-container,
body.secret-master-checkout #payment .payment_box .mp-box-inputs,
body.secret-master-checkout #payment .payment_box .wc-credit-card-form,
body.secret-master-checkout #payment .payment_box fieldset{
    width:calc(100% - 28px)!important;
    max-width:520px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding:14px!important;
    box-sizing:border-box!important;
    border:1px solid #eadfe2!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:none!important;
}
body.secret-master-checkout #payment .payment_box > p,
body.secret-master-checkout #payment .payment_box > div,
body.secret-master-checkout #payment .payment_box > fieldset{
    margin-left:auto!important;
    margin-right:auto!important;
}
body.secret-master-checkout #payment .payment_box .mp-checkout-container > *,
body.secret-master-checkout #payment .payment_box .mp-box-inputs > *,
body.secret-master-checkout #payment .payment_box .wc-credit-card-form > *{
    max-width:100%!important;
    box-sizing:border-box!important;
}
body.secret-master-checkout #place_order{
    width:100%!important;
    min-height:58px!important;
    border:0!important;
    border-radius:12px!important;
    background:linear-gradient(180deg,var(--secret-wine),var(--secret-wine-dark))!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:800!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
    box-shadow:0 12px 26px rgba(142,49,75,.20)!important;
}

/* ---------- Resumo próprio do checkout ---------- */
body.secret-master-checkout #order_review tr.cart_item{
    display:none!important;
}
.secret-master-review-products{
    display:grid!important;
    gap:0!important;
    margin:0 0 14px!important;
}
.secret-master-review-product{
    display:grid!important;
    grid-template-columns:64px minmax(0,1fr) auto!important;
    gap:12px!important;
    align-items:start!important;
    padding:12px 0!important;
    border-bottom:1px solid #eee5e7!important;
}
.secret-master-review-product img{
    width:64px!important;
    height:64px!important;
    object-fit:contain!important;
    border-radius:9px!important;
    background:#fafafa!important;
}
.secret-master-review-info{
    min-width:0!important;
}
.secret-master-review-name{
    display:block!important;
    margin:0 0 9px!important;
    color:var(--secret-ink)!important;
    font-size:14px!important;
    line-height:1.35!important;
    font-weight:800!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
}
.secret-master-review-price{
    color:var(--secret-ink)!important;
    font-size:14px!important;
    font-weight:800!important;
    white-space:nowrap!important;
}
.secret-master-review-actions{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    flex-wrap:wrap!important;
}
.secret-master-review-remove{
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:var(--secret-wine)!important;
    box-shadow:none!important;
    font-size:11px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    letter-spacing:.06em!important;
    cursor:pointer!important;
}
.secret-master-review-cta{
    display:grid!important;
    gap:9px!important;
    margin-top:15px!important;
}
.secret-master-review-cta .secret-master-primary{
    margin-top:0!important;
    min-height:54px!important;
}
.secret-master-review-cta .secret-master-secondary{
    margin-top:0!important;
    min-height:46px!important;
}

/* Totals and coupon */
body.secret-master-checkout #order_review .shop_table,
body.secret-master-checkout #order_review .woocommerce-checkout-review-order-table{
    width:100%!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
}
body.secret-master-checkout #order_review .shop_table thead{
    display:none!important;
}
body.secret-master-checkout #order_review .shop_table th,
body.secret-master-checkout #order_review .shop_table td{
    padding:12px 0!important;
    border-bottom:1px solid #eee5e7!important;
    color:var(--secret-ink)!important;
    font-size:13px!important;
    line-height:1.4!important;
}
body.secret-master-checkout #order_review .order-total th,
body.secret-master-checkout #order_review .order-total td{
    color:var(--secret-wine)!important;
    font-size:18px!important;
    font-weight:800!important;
    border-bottom:0!important;
}
body.secret-master-checkout .wcf-coupon-code-input-wrap,
body.secret-master-checkout .checkout_coupon{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 120px!important;
    gap:10px!important;
    margin:12px 0 15px!important;
    padding:0!important;
    border:0!important;
}
body.secret-master-checkout .wcf-coupon-code-input-wrap button,
body.secret-master-checkout .checkout_coupon button{
    min-height:50px!important;
    width:100%!important;
    border:0!important;
    border-radius:10px!important;
    background:linear-gradient(180deg,var(--secret-wine),var(--secret-wine-dark))!important;
    color:#fff!important;
    font-weight:800!important;
}
body.secret-master-checkout #order_review .secret-master-coupon-apply,
body.secret-master-checkout .woocommerce-checkout-review-order .secret-master-coupon-apply{
    min-height:50px!important;
    border:0!important;
    border-radius:10px!important;
    background:linear-gradient(180deg,var(--secret-wine),var(--secret-wine-dark))!important;
    background-color:var(--secret-wine)!important;
    color:#fff!important;
    font-weight:800!important;
    box-shadow:none!important;
}
body.secret-master-checkout #order_review .secret-master-coupon-apply:hover,
body.secret-master-checkout .woocommerce-checkout-review-order .secret-master-coupon-apply:hover{
    background:var(--secret-wine-dark)!important;
    background-color:var(--secret-wine-dark)!important;
    color:#fff!important;
}

/* Oculta qualquer interface nativa identificada como drawer pelo JS */
.secret-master-native-cart-hidden{
    display:none!important;
}

@media(max-width:1024px){
    body.secret-master-checkout #order_review{
        position:relative!important;
        top:auto!important;
    }
}
@media(max-width:767px){
    body.secret-master-checkout #customer_details,
    body.secret-master-checkout #order_review{
        padding:17px 13px!important;
        border-radius:15px!important;
        box-shadow:none!important;
    }
    body.secret-master-checkout .woocommerce-checkout .form-row-first,
    body.secret-master-checkout .woocommerce-checkout .form-row-last{
        width:100%!important;
        float:none!important;
    }
    body.secret-master-checkout .wcf-coupon-code-input-wrap,
    body.secret-master-checkout .checkout_coupon{
        grid-template-columns:1fr!important;
    }
    .secret-master-review-product{
        grid-template-columns:56px minmax(0,1fr)!important;
    }
    .secret-master-review-price{
        grid-column:2!important;
    }
}

/* =========================================================
 * AJUSTE FINAL — CHECKOUT SECRET
 * Mantém estrutura e comportamento atuais; corrige apenas UI.
 * ======================================================= */

/* Campos: tipografia mais forte, maior e mais centralizada */
body.secret-master-checkout #customer_details .form-row[id$="_field"] > label:not(.checkbox):not(.woocommerce-form__label){
    top:8px!important;
    left:14px!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:800!important;
    color:#514248!important;
}

body.secret-master-checkout #customer_details input.input-text,
body.secret-master-checkout #customer_details select,
body.secret-master-checkout #customer_details .select2-selection__rendered{
    font-size:17px!important;
    font-weight:750!important;
    color:#251e20!important;
    letter-spacing:-.01em!important;
}

body.secret-master-checkout #customer_details input.input-text{
    height:66px!important;
    min-height:66px!important;
    padding:22px 14px 8px!important;
    line-height:24px!important;
}

body.secret-master-checkout #customer_details select{
    height:66px!important;
    min-height:66px!important;
    padding:19px 40px 9px 14px!important;
    line-height:26px!important;
    font-size:17px!important;
    font-weight:750!important;
}

body.secret-master-checkout #customer_details .select2-container--default .select2-selection--single{
    height:66px!important;
    min-height:66px!important;
}
body.secret-master-checkout #customer_details .select2-container--default .select2-selection--single .select2-selection__rendered{
    height:64px!important;
    min-height:64px!important;
    padding:19px 40px 7px 14px!important;
    display:flex!important;
    align-items:center!important;
    line-height:24px!important;
    font-size:17px!important;
    font-weight:750!important;
}
body.secret-master-checkout #customer_details .select2-container--default .select2-selection--single .select2-selection__arrow{
    top:21px!important;
}

/* E-mail explicitamente reforçado */
body.secret-master-checkout #billing_email,
body.secret-master-checkout input[type="email"]{
    font-size:17px!important;
    font-weight:750!important;
    line-height:24px!important;
}

/* Endereço / localidade */
body.secret-master-checkout #billing_address_1,
body.secret-master-checkout #billing_city,
body.secret-master-checkout #billing_state,
body.secret-master-checkout #billing_country,
body.secret-master-checkout #billing_postcode,
body.secret-master-checkout #billing_neighborhood,
body.secret-master-checkout #billing_number{
    font-size:17px!important;
    font-weight:750!important;
}

/* Resumo: preços/custos com mais peso e separação */
body.secret-master-checkout #order_review .shop_table th,
body.secret-master-checkout #order_review .shop_table td{
    font-size:14px!important;
    line-height:1.45!important;
    font-weight:700!important;
    color:#2e2528!important;
}
body.secret-master-checkout #order_review .shop_table th{
    width:34%!important;
    padding-right:14px!important;
    text-align:left!important;
    white-space:nowrap!important;
}
body.secret-master-checkout #order_review .shop_table td{
    text-align:right!important;
    font-weight:700!important;
}
body.secret-master-checkout #order_review .woocommerce-shipping-totals th,
body.secret-master-checkout #order_review tr.shipping th{
    padding-right:16px!important;
}
body.secret-master-checkout #order_review .woocommerce-shipping-totals td,
body.secret-master-checkout #order_review tr.shipping td{
    padding-left:10px!important;
    line-height:1.45!important;
}
body.secret-master-checkout #order_review .order-total th,
body.secret-master-checkout #order_review .order-total td{
    font-size:18px!important;
    font-weight:900!important;
    color:var(--secret-wine)!important;
}

.secret-master-review-name{
    font-size:15px!important;
    font-weight:850!important;
}
.secret-master-review-price{
    font-size:15px!important;
    font-weight:850!important;
}

/* Pagamentos: o conteúdo interno fica contido e centralizado dentro da borda externa */
body.secret-master-checkout #payment ul.payment_methods > li{
    box-sizing:border-box!important;
    overflow:hidden!important;
}
body.secret-master-checkout #payment .payment_box{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:18px 22px 22px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    border-top:1px solid #eadfe2!important;
}
body.secret-master-checkout #payment .payment_box > div,
body.secret-master-checkout #payment .payment_box > fieldset,
body.secret-master-checkout #payment .payment_box > p{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box!important;
}
body.secret-master-checkout #payment .payment_box .mp-checkout-container,
body.secret-master-checkout #payment .payment_box .mp-box-inputs,
body.secret-master-checkout #payment .payment_box .wc-credit-card-form,
body.secret-master-checkout #payment .payment_box fieldset{
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    padding:18px!important;
    box-sizing:border-box!important;
    border:1px solid #eadfe2!important;
    border-radius:10px!important;
    background:#fff!important;
}
body.secret-master-checkout #payment .payment_box *{
    max-width:100%!important;
    box-sizing:border-box!important;
}

/* Botões finais: MESMO texto e padrão */
body.secret-master-checkout #place_order,
body.secret-master-checkout .secret-master-review-cta .secret-master-primary{
    min-height:58px!important;
    border-radius:11px!important;
    background:linear-gradient(180deg,var(--secret-wine),var(--secret-wine-dark))!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:900!important;
    letter-spacing:.035em!important;
    text-transform:uppercase!important;
}

/* CNPJ: se obrigatório, não mostrar "opcional" */
body.secret-master-checkout #billing_cnpj_field.validate-required > label .optional{
    display:none!important;
}


/* Mesmo ícone nos dois CTAs de fechamento */
body.secret-master-checkout #place_order > svg,
body.secret-master-checkout #place_order > i,
body.secret-master-checkout #place_order .fa,
body.secret-master-checkout #place_order .fas{
    display:none!important;
}
body.secret-master-checkout #place_order,
body.secret-master-checkout .secret-master-review-cta .secret-master-primary{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
}
body.secret-master-checkout #place_order::before,
body.secret-master-checkout .secret-master-review-cta .secret-master-primary::before{
    content:""!important;
    display:inline-block!important;
    flex:0 0 15px!important;
    width:15px!important;
    height:15px!important;
    background:#fff!important;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17 8h-1V6a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2Zm-7-2a2 2 0 1 1 4 0v2h-4V6Zm2 10.7a1.7 1.7 0 1 1 0-3.4 1.7 1.7 0 0 1 0 3.4Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
            mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17 8h-1V6a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2Zm-7-2a2 2 0 1 1 4 0v2h-4V6Zm2 10.7a1.7 1.7 0 1 1 0-3.4 1.7 1.7 0 0 1 0 3.4Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
}


.secret-master-qty button,
.secret-master-review-qty button{
    touch-action:manipulation!important;
    cursor:pointer!important;
    opacity:1!important;
    pointer-events:auto!important;
}


.secret-master-qty input,
.secret-master-review-qty input{
    user-select:text!important;
    -webkit-user-select:text!important;
    pointer-events:auto!important;
    cursor:text!important;
    touch-action:auto!important;
}
.secret-master-qty input:focus,
.secret-master-review-qty input:focus{
    outline:2px solid rgba(142,49,75,.18)!important;
    outline-offset:-2px!important;
}


/* ---------- Página de obrigado Secret ---------- */
body.woocommerce-order-received{
    background:
        radial-gradient(circle at 82% 12%, rgba(142,49,75,.055), transparent 26%),
        linear-gradient(180deg,#FCF9F8 0%,#F7F1F2 100%)!important;
}
body.woocommerce-order-received .site-content,
body.woocommerce-order-received #content,
body.woocommerce-order-received .ast-container,
body.woocommerce-order-received .wcf-thank-you-page,
body.woocommerce-order-received .wcf-thankyou-wrap{
    background:transparent!important;
}
body.woocommerce-order-received .woocommerce-order-overview,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .wcf-thank-you-content,
body.woocommerce-order-received .wcf-order-wrap,
body.woocommerce-order-received .wcf-order-details{
    border-color:var(--secret-line)!important;
    border-radius:16px!important;
}
body.woocommerce-order-received a.button,
body.woocommerce-order-received button.button,
body.woocommerce-order-received .button{
    background:var(--secret-wine)!important;
    border:1px solid var(--secret-wine)!important;
    color:#fff!important;
    border-radius:10px!important;
    box-shadow:none!important;
    font-weight:800!important;
}
body.woocommerce-order-received a.button:hover,
body.woocommerce-order-received button.button:hover,
body.woocommerce-order-received .button:hover{
    background:var(--secret-wine-dark)!important;
    border-color:var(--secret-wine-dark)!important;
    color:#fff!important;
}
body.woocommerce-order-received .woocommerce-Price-amount,
body.woocommerce-order-received .order-total,
body.woocommerce-order-received [class*="total"] strong{
    color:var(--secret-wine)!important;
}
@media(max-width:768px){
    body.woocommerce-order-received .site-content,
    body.woocommerce-order-received #content{
        padding-left:14px!important;
        padding-right:14px!important;
    }
}

