/* Finalização GR Joias. Seletores restritos ao checkout e botão de pedidos vazio. */
.woocommerce:has(.gr-checkout-heading) {padding:clamp(20px,4vw,44px)!important;border:1px solid #88703f!important;border-radius:8px!important;background:linear-gradient(110deg,#120b07e8,#120b0799),url('marmore-dourado.webp') center/cover!important;color:#f4eada;}
.gr-checkout-heading{margin:0 0 32px;padding:0 0 26px;border-bottom:1px solid #a07e3f66;}
.gr-checkout-heading>span{color:#d9b66d;font:500 10px/1.6 'Jost',sans-serif;letter-spacing:.2em;}
.gr-checkout-heading h1{font:400 clamp(32px,4.6vw,54px)/1.12 'Cormorant Garamond',Georgia,serif;color:#f4eada;margin:12px 0;}
.gr-checkout-heading p{color:#d4c4ad;font:400 14px/1.7 'Jost',sans-serif;margin:0;}
.woocommerce:has(.gr-checkout-heading) form.checkout{margin:0;}
.woocommerce:has(.gr-checkout-heading) #customer_details{display:block!important;float:none!important;width:100%!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details .col-1{float:none!important;width:100%!important;max-width:none!important;padding:28px!important;background:#1b140ff5;border:1px solid #816636;border-radius:5px;box-sizing:border-box;}
.woocommerce:has(.gr-checkout-heading) #customer_details .col-2{display:none!important;}
.woocommerce:has(.gr-checkout-heading) .woocommerce-billing-fields h3{font:400 30px/1.2 'Cormorant Garamond',Georgia,serif!important;color:#eed9a7!important;margin:0 0 24px!important;}
.woocommerce:has(.gr-checkout-heading) .woocommerce-billing-fields__field-wrapper{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 24px!important;}
.woocommerce:has(.gr-checkout-heading) .woocommerce-billing-fields__field-wrapper .form-row{width:auto!important;float:none!important;min-width:0;margin:0!important;padding:0!important;}
.woocommerce:has(.gr-checkout-heading) .woocommerce-billing-fields__field-wrapper .form-row-wide{grid-column:1/-1;}
.woocommerce:has(.gr-checkout-heading) .woocommerce-billing-fields__field-wrapper #billing_address_1_field,.woocommerce:has(.gr-checkout-heading) .woocommerce-billing-fields__field-wrapper #billing_address_2_field{grid-column:auto;}
.woocommerce:has(.gr-checkout-heading) #infixs_pingo_phone_field{margin:22px 0 0!important;}
.woocommerce:has(.gr-checkout-heading) .form-row label{font:400 12px/1.6 'Jost',sans-serif!important;color:#ddc89e!important;margin-bottom:7px!important;}
.woocommerce:has(.gr-checkout-heading) input.input-text,.woocommerce:has(.gr-checkout-heading) select{box-sizing:border-box;min-height:48px;width:100%;padding:12px 14px!important;background:#100c08!important;border:1px solid #8f7442!important;border-radius:3px!important;color:#f4eada!important;font:400 15px/1.5 'Jost',sans-serif!important;}
.woocommerce:has(.gr-checkout-heading) .select2-selection{min-height:48px!important;background:#100c08!important;border:1px solid #8f7442!important;display:flex;align-items:center;}
.woocommerce:has(.gr-checkout-heading) .select2-selection__rendered{color:#f4eada!important;}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-large{margin:28px 0!important;padding:26px!important;background:#1b140ff5!important;border:1px solid #816636!important;border-radius:5px!important;}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-large-titulo,.woocommerce:has(.gr-checkout-heading) #order_review_heading{font:400 30px/1.2 'Cormorant Garamond',Georgia,serif!important;color:#eed9a7!important;margin:22px 0!important;}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-large-item{background:#110d09aa!important;border-color:#6e552f!important;}
.woocommerce:has(.gr-checkout-heading) #order_review{padding:26px!important;background:#1b140ff5!important;border:1px solid #816636!important;border-radius:5px!important;box-sizing:border-box;}
.woocommerce:has(.gr-checkout-heading) table.shop_table{border:0!important;background:transparent!important;width:100%;}
.woocommerce:has(.gr-checkout-heading) table.shop_table th,.woocommerce:has(.gr-checkout-heading) table.shop_table td{padding:15px 10px!important;border-color:#715a3266!important;color:#e3d4b9!important;font-size:14px!important;}
.woocommerce:has(.gr-checkout-heading) table.shop_table .order-total th,.woocommerce:has(.gr-checkout-heading) table.shop_table .order-total td{color:#f0d18b!important;font-size:20px!important;}
.woocommerce:has(.gr-checkout-heading) #payment{background:#120d09c9!important;border:1px solid #715a32!important;border-radius:4px!important;padding:12px!important;}
.woocommerce:has(.gr-checkout-heading) #payment .payment_box{background:#261c11!important;color:#ded0b7!important;font:400 13px/1.7 'Jost',sans-serif!important;}
.woocommerce:has(.gr-checkout-heading) #payment .payment_box::before{border-bottom-color:#261c11!important;}
.woocommerce:has(.gr-checkout-heading) #payment .wc_payment_method>label{color:#edd7a6!important;font-size:15px!important;}
.woocommerce:has(.gr-checkout-heading) #payment .payment_box input[type="radio"],.woocommerce:has(.gr-checkout-heading) #payment .payment_box input[type="checkbox"]{width:auto;}
.woocommerce:has(.gr-checkout-heading) #place_order{width:100%!important;min-height:52px!important;padding:15px 22px!important;background:#d9a62b!important;color:#21160b!important;border:1px solid #e0b44e!important;border-radius:3px!important;font:500 14px/1.5 'Jost',sans-serif!important;}
.woocommerce:has(.gr-checkout-heading) .woocommerce-privacy-policy-text{color:#cbbb9f;font-size:12px;line-height:1.7;}
.woocommerce:has(.gr-account-heading) .woocommerce-MyAccount-content .woocommerce-info{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:#120d09cc!important;border:1px solid #917340!important;border-radius:4px!important;color:#ddcbae!important;padding:24px!important;}
.woocommerce:has(.gr-account-heading) .woocommerce-MyAccount-content .woocommerce-info::before{display:none!important;}
.woocommerce:has(.gr-account-heading) .woocommerce-MyAccount-content .woocommerce-info a.button{order:2;float:none!important;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 20px!important;background:#d9a62b!important;border:1px solid #d9a62b!important;border-radius:3px!important;color:#21160b!important;font:500 12px/1.5 'Jost',sans-serif!important;text-decoration:none;}
.woocommerce:has(.gr-checkout-heading) a:focus-visible,.woocommerce:has(.gr-checkout-heading) button:focus-visible{outline:2px solid #efca75;outline-offset:4px;}
@media(max-width:640px){
 .woocommerce:has(.gr-checkout-heading){padding:22px 12px!important;}
 .woocommerce:has(.gr-checkout-heading) #customer_details .col-1,.woocommerce:has(.gr-checkout-heading) #order_review,.woocommerce:has(.gr-checkout-heading) .gr-resumo-large{padding:20px 14px!important;}
 .woocommerce:has(.gr-checkout-heading) .woocommerce-billing-fields__field-wrapper{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;}
 .woocommerce:has(.gr-checkout-heading) .woocommerce-billing-fields__field-wrapper .form-row{grid-column:1!important;}
 .woocommerce:has(.gr-checkout-heading) table.shop_table th,.woocommerce:has(.gr-checkout-heading) table.shop_table td{font-size:12px!important;padding:12px 6px!important;}
 .woocommerce:has(.gr-account-heading) .woocommerce-MyAccount-content .woocommerce-info a.button{width:100%;}
}

/* Endereço à esquerda; itens e cupom à direita; totais abaixo. */
@media (min-width: 1001px) {
 .woocommerce:has(.gr-checkout-heading) form.checkout {
  display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  grid-template-rows:min-content 1fr auto auto;gap:22px;align-items:start;
 }
 .woocommerce:has(.gr-checkout-heading) form.checkout::before,
 .woocommerce:has(.gr-checkout-heading) form.checkout::after {display:none!important;}
 .woocommerce:has(.gr-checkout-heading) form.checkout > #customer_details {grid-column:1;grid-row:1/3;min-width:0;}
 .woocommerce:has(.gr-checkout-heading) form.checkout > .gr-resumo-large {grid-column:2;grid-row:1;margin:0!important;min-width:0;padding:22px!important;}
 .woocommerce:has(.gr-checkout-heading) form.checkout > .gr-checkout-coupon {grid-column:2;grid-row:2;align-self:start;margin:0!important;min-width:0;padding:22px!important;display:block;}
 .woocommerce:has(.gr-checkout-heading) .gr-checkout-coupon__heading {margin-bottom:16px;}
 .woocommerce:has(.gr-checkout-heading) .gr-checkout-coupon__controls {flex-direction:column;}
 .woocommerce:has(.gr-checkout-heading) #gr-coupon-apply {width:100%;min-height:44px;}
 .woocommerce:has(.gr-checkout-heading) form.checkout > #order_review_heading {grid-column:1/-1;grid-row:3;margin:12px 0 0!important;}
 .woocommerce:has(.gr-checkout-heading) form.checkout > #order_review {grid-column:1/-1;grid-row:4;width:100%!important;min-width:0;}
 /* Avisos AJAX continuam acima dos campos quando houver erro. */
 .woocommerce:has(.gr-checkout-heading) form.checkout:has(> .woocommerce-NoticeGroup-checkout) {grid-template-rows:auto min-content 1fr auto auto;}
 .woocommerce:has(.gr-checkout-heading) form.checkout > .woocommerce-NoticeGroup-checkout {grid-column:1/-1;grid-row:1;}
 .woocommerce:has(.gr-checkout-heading) form.checkout:has(> .woocommerce-NoticeGroup-checkout) > #customer_details {grid-row:2/4;}
 .woocommerce:has(.gr-checkout-heading) form.checkout:has(> .woocommerce-NoticeGroup-checkout) > .gr-resumo-large {grid-row:2;}
 .woocommerce:has(.gr-checkout-heading) form.checkout:has(> .woocommerce-NoticeGroup-checkout) > .gr-checkout-coupon {grid-row:3;}
 .woocommerce:has(.gr-checkout-heading) form.checkout:has(> .woocommerce-NoticeGroup-checkout) > #order_review_heading {grid-row:4;}
 .woocommerce:has(.gr-checkout-heading) form.checkout:has(> .woocommerce-NoticeGroup-checkout) > #order_review {grid-row:5;}
}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-large-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-large-item {display:flex!important;align-items:center;gap:14px!important;min-width:0;padding:14px!important;}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-img-large {position:relative;flex:0 0 80px;width:80px;height:80px;}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-img-large img {display:block!important;width:80px!important;height:80px!important;object-fit:cover;border-radius:3px;}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-info-large {min-width:0;flex:1;}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-nome-large {display:block;overflow-wrap:anywhere;line-height:1.5;}
.woocommerce:has(.gr-checkout-heading) .gr-resumo-preco-large {display:block;margin-top:6px;}
.woocommerce:has(.gr-checkout-heading) .gr-btn-editar-carrinho {white-space:normal;text-align:center;}

/* Mais largura e campos uniformes, em pares. */
.page-content:has(.gr-checkout-heading) {
 max-width:1440px!important;width:100%!important;padding-left:24px!important;padding-right:24px!important;box-sizing:border-box;
}
@media(min-width:1001px){
 .woocommerce:has(.gr-checkout-heading) form.checkout{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:26px;}
}
.woocommerce:has(.gr-checkout-heading) #customer_details .col-1 {
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px!important;align-items:start;
}
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-billing-fields,
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-billing-fields__field-wrapper {
 display:contents!important;
}
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-billing-fields h3 {grid-column:1/-1;order:-10;margin:0 0 4px!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce:has(.gr-checkout-heading) #customer_details #infixs_pingo_phone_field,
.woocommerce:has(.gr-checkout-heading) #customer_details .gr-account-phone {
 grid-column:auto!important;float:none!important;width:100%!important;max-width:none!important;min-width:0!important;padding:0!important;margin:0!important;align-self:start;
}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_first_name_field{order:1;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_last_name_field{order:2;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_cpf_field{order:3;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_postcode_field{order:4;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_address_1_field{order:5;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_number_field{order:6;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_address_2_field{order:7;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_neighborhood_field{order:8;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_city_field{order:10;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_state_field{order:9;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_email_field{order:11;}
.woocommerce:has(.gr-checkout-heading) #customer_details #infixs_pingo_phone_field,
.woocommerce:has(.gr-checkout-heading) #customer_details .gr-account-phone{order:12;}
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-account-fields {grid-column:1/-1;order:20;}
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-input-wrapper{display:block;width:100%;min-width:0;}
.woocommerce:has(.gr-checkout-heading) #customer_details input.input-text,
.woocommerce:has(.gr-checkout-heading) #customer_details input[type="tel"],
.woocommerce:has(.gr-checkout-heading) #customer_details select {
 display:block;width:100%!important;max-width:none!important;min-width:0!important;height:48px!important;min-height:48px!important;box-sizing:border-box!important;
}
.woocommerce:has(.gr-checkout-heading) #customer_details .select2-container{width:100%!important;min-width:0;}
.woocommerce:has(.gr-checkout-heading) #customer_details .select2-selection{height:48px!important;box-sizing:border-box;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_address_2_field label {
 position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;white-space:normal!important;
}
@media(max-width:640px){
 .page-content:has(.gr-checkout-heading){padding-left:12px!important;padding-right:12px!important;}
 .woocommerce:has(.gr-checkout-heading) #customer_details .col-1{grid-template-columns:minmax(0,1fr);gap:16px!important;}
}
.woocommerce:has(.gr-checkout-heading) #customer_details .col-1::before,
.woocommerce:has(.gr-checkout-heading) #customer_details .col-1::after,
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-billing-fields::before,
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-billing-fields::after,
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-billing-fields__field-wrapper::before,
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-billing-fields__field-wrapper::after {display:none!important;content:none!important;}

/* Posições explícitas: nenhum campo auxiliar desloca os pares. */
.woocommerce:has(.gr-checkout-heading) #customer_details input[type="hidden"],
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_country_field:has(input[type="hidden"]) {display:none!important;}
@media(min-width:641px){
.woocommerce:has(.gr-checkout-heading) #customer_details .woocommerce-billing-fields h3 {grid-row:1!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_first_name_field {grid-column:1!important;grid-row:2!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_last_name_field {grid-column:2!important;grid-row:2!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_cpf_field {grid-column:1!important;grid-row:3!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_postcode_field {grid-column:2!important;grid-row:3!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_address_1_field {grid-column:1!important;grid-row:4!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_number_field {grid-column:2!important;grid-row:4!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_address_2_field {grid-column:1!important;grid-row:5!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_neighborhood_field {grid-column:2!important;grid-row:5!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_state_field {grid-column:1!important;grid-row:6!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_city_field {grid-column:2!important;grid-row:6!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #billing_email_field {grid-column:1!important;grid-row:7!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details #infixs_pingo_phone_field {grid-column:2!important;grid-row:7!important;}
.woocommerce:has(.gr-checkout-heading) #customer_details .gr-account-phone {grid-column:2!important;grid-row:7!important;}
}
