/* OGA V5.3.17 — COMMERCE RECOVERY FINAL. Surgical overrides after V5.3.16. */
body.oga-v5317-final{--oga5317-accent:#a55245;--oga5317-ink:#171513;--oga5317-muted:#6f6761;--oga5317-soft:#f8f5f1;--oga5317-line:#e7e0da;--oga5317-error:#b42318;--oga5317-gap:42px}

/* CART — remove orphan structural rules, keep address collapsed until explicit request. */
html body.oga-v5317-final.woocommerce-cart :is(.woocommerce-cart-form,.woocommerce-cart-form table,.woocommerce-cart-form tbody,.woocommerce-cart-form tr,.woocommerce-cart-form td,.cart-collaterals,.cart_totals,.cart_totals table,.cart_totals tbody,.cart_totals tfoot,.cart_totals tr,.cart_totals th,.cart_totals td){border:0!important;outline:0!important;box-shadow:none!important}
html body.oga-v5317-final.woocommerce-cart :is(.woocommerce-cart-form,.woocommerce-cart-form table,.woocommerce-cart-form tbody,.woocommerce-cart-form tr,.woocommerce-cart-form td,.cart_totals,.cart_totals table,.cart_totals tbody,.cart_totals tfoot,.cart_totals tr,.cart_totals th,.cart_totals td)::before,
html body.oga-v5317-final.woocommerce-cart :is(.woocommerce-cart-form,.woocommerce-cart-form table,.woocommerce-cart-form tbody,.woocommerce-cart-form tr,.woocommerce-cart-form td,.cart_totals,.cart_totals table,.cart_totals tbody,.cart_totals tfoot,.cart_totals tr,.cart_totals th,.cart_totals td)::after{content:none!important;display:none!important}
html body.oga-v5317-final.woocommerce-cart .woocommerce-cart-form td.actions{border:0!important;padding-top:0!important;padding-bottom:0!important;background:transparent!important}
html body.oga-v5317-final.woocommerce-cart .cart_totals hr{display:none!important}
html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form:not(.oga5317-open){display:none!important;height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form.oga5317-open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 12px!important;margin:5px 0 2px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important;height:auto!important;overflow:visible!important}
html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form p{width:100%!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form p:last-child{grid-column:1/-1!important;margin-top:1px!important}
html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form label{display:block!important;margin:0 0 4px!important;font-size:14px!important;line-height:1.25!important;color:var(--oga5317-ink)!important}
html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form :is(input,select,.select2-container,.select2-selection){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form :is(input,select,.select2-selection--single){height:44px!important;min-height:44px!important;padding:8px 10px!important;border:1px solid #ded6cf!important;background:#fff!important;box-shadow:none!important;font-size:16px!important}
html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form button{width:auto!important;min-height:42px!important;margin:0!important;padding:9px 14px!important;border:0!important;background:var(--oga5317-accent)!important;color:#fff!important;box-shadow:none!important}
html body.oga-v5317-final.woocommerce-cart .shipping-calculator-button{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;text-decoration:none!important}
html body.oga-v5317-final.woocommerce-cart .cart_totals .order-total :is(th,td){padding-top:16px!important;border:0!important}
html body.oga-v5317-final.woocommerce-cart .wc-proceed-to-checkout{border:0!important;padding-top:10px!important}

/* CHECKOUT — one final owner, no legacy disclosure, no overlap. */
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) main.oga-main{width:min(1560px,calc(100% - 56px))!important;max-width:1560px!important;margin:0 auto!important;padding:26px 0 46px!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) main.oga-main>.woocommerce{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout>.oga520-checkout-disclosure{display:none!important;height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout{width:100%!important;max-width:none!important;min-width:0!important;margin:14px 0 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;float:none!important;position:static!important;transform:none!important}
@media(min-width:1000px){
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:var(--oga5317-gap)!important;row-gap:8px!important;align-items:start!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout>#customer_details{grid-column:1!important;grid-row:1 / span 2!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout>#order_review_heading{grid-column:2!important;grid-row:1!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout>#order_review{grid-column:2!important;grid-row:2!important}
}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) :is(#customer_details,#order_review_heading,#order_review,#customer_details>.col-1,#customer_details>.col-2){width:100%!important;max-width:none!important;min-width:0!important;float:none!important;position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;box-sizing:border-box!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #customer_details{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #customer_details>.col-1,
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #customer_details>.col-2{display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) :is(.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields){width:100%!important;min-width:0!important;margin:0 0 10px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields>h3{display:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper,
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields__field-wrapper{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 16px!important;align-items:start!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .form-row{float:none!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;clear:none!important;box-sizing:border-box!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_first_name_field{grid-column:1!important;grid-row:1!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_last_name_field{grid-column:2!important;grid-row:1!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_email_field{grid-column:1!important;grid-row:2!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_phone_field{grid-column:2!important;grid-row:2!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_country_field{grid-column:1!important;grid-row:3!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_state_field{grid-column:2!important;grid-row:3!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_city_field{grid-column:1!important;grid-row:4!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_postcode_field{grid-column:2!important;grid-row:4!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_address_1_field{grid-column:1/-1!important;grid-row:5!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .oga5317-optional-field{display:none!important;grid-column:1/-1!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper.oga5317-optional-open .oga5317-optional-field{display:block!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .oga5317-optional-toggle,
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .oga5317-notes-toggle{grid-column:1/-1!important;justify-self:start!important;display:inline-flex!important;align-items:center!important;gap:7px!important;min-height:38px!important;margin:1px 0!important;padding:5px 0!important;border:0!important;background:transparent!important;color:var(--oga5317-muted)!important;box-shadow:none!important;font-size:14px!important;line-height:1.3!important;font-weight:500!important;cursor:pointer!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) :is(.oga5317-optional-toggle,.oga5317-notes-toggle)::after{content:"+";font-size:17px!important;line-height:1!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) :is(.oga5317-optional-toggle,.oga5317-notes-toggle)[aria-expanded="true"]::after{content:"−"}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .oga5317-notes-row:not(.oga5317-notes-open){display:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .form-row label{display:block!important;width:auto!important;margin:0 0 5px!important;padding:0!important;font-size:14px!important;line-height:1.25!important;color:var(--oga5317-ink)!important;white-space:normal!important;position:static!important;transform:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) :is(input.input-text,select,textarea,.select2-container,.select2-selection--single){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) :is(input.input-text,select,.select2-selection--single){min-height:44px!important;height:44px!important;padding:8px 10px!important;border:1px solid #ded6cf!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;font-size:16px!important;line-height:1.25!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) textarea{min-height:78px!important;padding:9px 10px!important;font-size:16px!important}

/* Compact shipping/account choices. */
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #ship-to-different-address{margin:6px 0!important;padding:0!important;border:0!important;font-size:16px!important;line-height:1.3!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #ship-to-different-address label{display:flex!important;align-items:center!important;gap:9px!important;min-height:38px!important;margin:0!important;cursor:pointer!important;font-size:16px!important;font-weight:500!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #ship-to-different-address input,
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .create-account input{width:18px!important;height:18px!important;min-height:18px!important;margin:0!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .create-account{margin:5px 0!important;font-size:14px!important}

/* Returning customer is a true closed-by-default disclosure. */
html body.oga-v5317-final.woocommerce-checkout .woocommerce-form-login-toggle{width:min(100%,520px)!important;max-width:520px!important;margin:0 0 14px auto!important;padding:0!important}
html body.oga-v5317-final.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info{position:relative!important;margin:0!important;padding:7px 0 7px 34px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--oga5317-ink)!important;cursor:pointer!important;font-size:15px!important;line-height:1.35!important}
html body.oga-v5317-final.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before{content:""!important;display:flex!important;align-items:center!important;justify-content:center!important;position:absolute!important;left:0!important;top:8px!important;width:20px!important;height:20px!important;border:1px solid #b8aaa0!important;background:#fff!important;color:#fff!important;box-sizing:border-box!important;font-size:14px!important;line-height:18px!important}
html body.oga-v5317-final.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info.oga5317-login-open::before{content:"✓"!important;background:var(--oga5317-accent)!important;border-color:var(--oga5317-accent)!important}
html body.oga-v5317-final.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a{color:var(--oga5317-muted)!important;text-decoration:none!important}
html body.oga-v5317-final.woocommerce-checkout form.woocommerce-form-login{width:min(100%,520px)!important;max-width:520px!important;margin:0 0 18px auto!important;padding:13px 14px!important;border:0!important;background:var(--oga5317-soft)!important;box-shadow:none!important}
html body.oga-v5317-final.woocommerce-checkout form.woocommerce-form-login>p:first-child{grid-column:1/-1!important;margin:0 0 2px!important;font-size:14px!important;line-height:1.45!important;color:var(--oga5317-muted)!important}
html body.oga-v5317-final.woocommerce-checkout form.woocommerce-form-login .form-row{margin:0!important}
html body.oga-v5317-final.woocommerce-checkout form.woocommerce-form-login .form-row:not(.form-row-first):not(.form-row-last),
html body.oga-v5317-final.woocommerce-checkout form.woocommerce-form-login .lost_password{grid-column:1/-1!important}
html body.oga-v5317-final.woocommerce-checkout form.woocommerce-form-login button{width:100%!important;min-height:42px!important}

/* Right panel: compact, aligned with left. */
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading{margin:0!important;padding:0 0 8px!important;border:0!important;background:transparent!important;font-size:22px!important;line-height:1.2!important;font-weight:600!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review{margin:0!important;padding:18px 20px!important;border:0!important;background:var(--oga5317-soft)!important;box-shadow:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review :is(table,tbody,tfoot,tr,th,td){border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review table{border-collapse:separate!important;border-spacing:0 3px!important;margin:0!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review table :is(th,td){padding:6px 0!important;vertical-align:top!important;line-height:1.35!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review table td:last-child{text-align:right!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review .order-total :is(th,td){padding-top:12px!important;font-size:19px!important;font-weight:700!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #payment{margin:7px 0 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #payment :is(ul.wc_payment_methods,.wc_payment_method){border:0!important;background:transparent!important;box-shadow:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #payment .wc_payment_method{padding:6px 0!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #payment .payment_box{margin:4px 0 6px 26px!important;padding:3px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;line-height:1.4!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #payment .payment_box::before{content:none!important;display:none!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #place_order{width:100%!important;min-height:48px!important;margin-top:7px!important}
html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .oga520-before-order-legal{margin:8px 0 6px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:12px!important;line-height:1.35!important}

/* Errors: one clear summary + exact field markers, no clipped badges. */
html body.oga-v5317-final.woocommerce-checkout .woocommerce-NoticeGroup-checkout{grid-column:1/-1!important;width:100%!important;margin:0 0 14px!important;padding:0!important;scroll-margin-top:150px!important}
html body.oga-v5317-final.woocommerce-checkout .woocommerce-error.oga5317-error-summary,
html body.oga-v5317-final.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error{list-style:none!important;margin:0!important;padding:12px 14px!important;border:0!important;border-left:3px solid var(--oga5317-error)!important;background:#fff7f6!important;color:#7a1610!important;box-shadow:none!important;overflow:visible!important}
html body.oga-v5317-final.woocommerce-checkout .woocommerce-error li{position:relative!important;margin:4px 0!important;padding:0 0 0 24px!important;color:#7a1610!important;line-height:1.35!important}
html body.oga-v5317-final.woocommerce-checkout .woocommerce-error li::before{content:"!"!important;display:block!important;position:absolute!important;left:0!important;top:.08em!important;width:17px!important;height:17px!important;border-radius:50%!important;background:var(--oga5317-error)!important;color:#fff!important;text-align:center!important;font-size:11px!important;line-height:17px!important;font-weight:700!important}
html body.oga-v5317-final.woocommerce-checkout :is(.woocommerce-invalid,.oga5311-invalid,.oga5317-invalid)>label{color:var(--oga5317-error)!important;font-weight:600!important}
html body.oga-v5317-final.woocommerce-checkout :is(.woocommerce-invalid,.oga5311-invalid,.oga5317-invalid) :is(input,select,textarea,.select2-selection){border-color:var(--oga5317-error)!important;box-shadow:0 0 0 1px rgba(180,35,24,.08)!important}
html body.oga-v5317-final .oga5317-field-error{display:block!important;margin:4px 0 0!important;color:var(--oga5317-error)!important;font-size:12px!important;line-height:1.3!important;font-weight:600!important}

/* Tablet/mobile: intentional one-column checkout. */
@media(max-width:999px){
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) main.oga-main{width:calc(100% - 32px)!important;padding:20px 0 40px!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout{display:block!important;width:100%!important;margin-top:12px!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) :is(#customer_details,#order_review_heading,#order_review){display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0 0 16px!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review{padding:17px!important}
 html body.oga-v5317-final.woocommerce-checkout .woocommerce-form-login-toggle{margin:0 0 12px!important;max-width:520px!important}
 html body.oga-v5317-final.woocommerce-checkout form.woocommerce-form-login{margin:0 0 16px!important}
}
@media(max-width:620px){
 html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form.oga5317-open{grid-template-columns:1fr!important;gap:8px!important}
 html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form p:last-child{grid-column:1!important}
 html body.oga-v5317-final.woocommerce-cart .shipping-calculator-form button{width:100%!important;min-height:44px!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) main.oga-main{width:calc(100% - 20px)!important;padding-top:14px!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper,
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields__field-wrapper{grid-template-columns:1fr!important;grid-template-rows:none!important;gap:9px!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper>.form-row,
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields__field-wrapper>.form-row,
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) :is(#billing_first_name_field,#billing_last_name_field,#billing_email_field,#billing_phone_field,#billing_country_field,#billing_state_field,#billing_city_field,#billing_postcode_field,#billing_address_1_field,#billing_address_2_field,#billing_company_field,#shipping_first_name_field,#shipping_last_name_field,#shipping_country_field,#shipping_state_field,#shipping_city_field,#shipping_postcode_field,#shipping_address_1_field,#shipping_address_2_field,#shipping_company_field){grid-column:1!important;grid-row:auto!important;width:100%!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) :is(input.input-text,select,.select2-selection--single){min-height:44px!important;height:44px!important;font-size:16px!important}
 html body.oga-v5317-final.woocommerce-checkout form.woocommerce-form-login{width:100%!important;max-width:none!important;padding:12px!important}
 html body.oga-v5317-final.woocommerce-checkout form.woocommerce-form-login.oga5317-login-open>*{grid-column:1!important}
 html body.oga-v5317-final.woocommerce-checkout .woocommerce-form-login-toggle{width:100%!important;max-width:none!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review{padding:14px!important}
}
@media(max-width:430px){
 html body.oga-v5317-final.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info{padding-right:0!important;font-size:14px!important}
 html body.oga-v5317-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review{padding:12px!important}
}
