/* OGA V5.3.18 — checkout functional recovery / native login toggle / mobile-safe */
body.oga-v5318-final{--oga5318-accent:#a55245;--oga5318-ink:#171513;--oga5318-muted:#6f6761;--oga5318-soft:#f8f5f1;--oga5318-line:#e7e0da;--oga5318-error:#b42318}

/* Returning customer: native Woo showlogin remains the real control. */
html body.oga-v5318-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;border:0!important;background:transparent!important;box-shadow:none!important}
html body.oga-v5318-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(--oga5318-ink)!important;cursor:pointer!important;font-size:15px!important;line-height:1.35!important;min-height:38px!important}
html body.oga-v5318-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;pointer-events:none!important}
html body.oga-v5318-final.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info.oga5318-login-open::before{content:"✓"!important;background:var(--oga5318-accent)!important;border-color:var(--oga5318-accent)!important}
html body.oga-v5318-final.woocommerce-checkout .woocommerce-form-login-toggle a.showlogin{color:var(--oga5318-muted)!important;text-decoration:none!important;outline-offset:3px!important}
html body.oga-v5318-final.woocommerce-checkout .woocommerce-form-login-toggle a.showlogin:hover,
html body.oga-v5318-final.woocommerce-checkout .woocommerce-form-login-toggle a.showlogin:focus-visible{color:var(--oga5318-accent)!important}
/* No OGA display:none lock here. WooCommerce's own inline/native state is authoritative. */
html body.oga-v5318-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(--oga5318-soft)!important;box-shadow:none!important;box-sizing:border-box!important}
html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open>p:first-child{display:block!important;width:100%!important;margin:0 0 8px!important;font-size:14px!important;line-height:1.4!important;color:var(--oga5318-muted)!important}
html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open .form-row{margin:0 0 9px!important;padding:0!important;float:none!important;vertical-align:top!important;box-sizing:border-box!important}
html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open .form-row-first{display:inline-block!important;width:calc(50% - 8px)!important;margin-right:12px!important}
html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open .form-row-last{display:inline-block!important;width:calc(50% - 8px)!important}
html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open :is(input.input-text,input[type="text"],input[type="password"]){width:100%!important;min-height:44px!important;height:44px!important;padding:8px 10px!important;font-size:16px!important;box-sizing:border-box!important}
html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open .form-row:not(.form-row-first):not(.form-row-last),
html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open .lost_password{display:block!important;width:100%!important}
html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open button{width:100%!important;min-height:42px!important;margin:0!important}

/* Checkout: stable equal columns, no ghost widths, no overlap. */
html body.oga-v5318-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:24px 0 46px!important}
html body.oga-v5318-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-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout{width:100%!important;max-width:none!important;min-width:0!important;margin:12px 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-v5318-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:42px!important;row-gap:8px!important;align-items:start!important}
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout>#customer_details{grid-column:1!important;grid-row:1 / span 2!important}
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout>#order_review_heading{grid-column:2!important;grid-row:1!important}
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout>#order_review{grid-column:2!important;grid-row:2!important}
}
html body.oga-v5318-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-v5318-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-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #customer_details>.col-1,
html body.oga-v5318-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-v5318-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-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields>h3{display:none!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper,
html body.oga-v5318-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-v5318-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-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_first_name_field{grid-column:1!important;grid-row:1!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_last_name_field{grid-column:2!important;grid-row:1!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_email_field{grid-column:1!important;grid-row:2!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_phone_field{grid-column:2!important;grid-row:2!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_country_field{grid-column:1!important;grid-row:3!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_state_field{grid-column:2!important;grid-row:3!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_city_field{grid-column:1!important;grid-row:4!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_postcode_field{grid-column:2!important;grid-row:4!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #billing_address_1_field{grid-column:1/-1!important;grid-row:5!important}
html body.oga-v5318-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(--oga5318-ink)!important;white-space:normal!important;position:static!important;transform:none!important}
html body.oga-v5318-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-v5318-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}

/* Different shipping address / create account remain native clickable controls. */
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #ship-to-different-address{margin:6px 0 10px!important;padding:0!important;border:0!important;font-size:16px!important;line-height:1.3!important}
html body.oga-v5318-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-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #ship-to-different-address input,
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) .create-account input{width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;flex:0 0 18px!important}
html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) .shipping_address{margin:0 0 10px!important;padding:0!important;border:0!important;background:transparent!important}

/* Order review: compact, no giant guarantee image. */
html body.oga-v5318-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-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review{margin:0!important;padding:18px 20px!important;border:0!important;background:var(--oga5318-soft)!important;box-shadow:none!important}
html body.oga-v5318-final.woocommerce-checkout .oga520-before-order-legal{margin:8px 0 5px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:12px!important;line-height:1.35!important}
html body.oga-v5318-final.woocommerce-checkout .oga520-before-order-legal>strong{display:none!important}
html body.oga-v5318-final.woocommerce-checkout .oga520-legal-links{display:flex!important;flex-wrap:wrap!important;gap:6px 12px!important}
html body.oga-v5318-final.woocommerce-checkout .oga520-eu-guarantee{margin:5px 0!important}
html body.oga-v5318-final.woocommerce-checkout :is(.oga520-eu-guarantee-trigger,.oga520-eu-guarantee-fallback){display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;min-height:42px!important;margin:0!important;padding:6px 8px!important;border:0!important;background:#f3f5fa!important;color:var(--oga5318-ink)!important;text-align:left!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer!important;overflow:hidden!important}
html body.oga-v5318-final.woocommerce-checkout .oga520-eu-mini{display:block!important;flex:0 0 42px!important;width:42px!important;height:30px!important;max-width:42px!important;max-height:30px!important;overflow:hidden!important;background:#fff!important}
html body.oga-v5318-final.woocommerce-checkout .oga520-eu-mini img{display:block!important;width:42px!important;height:30px!important;max-width:42px!important;max-height:30px!important;object-fit:cover!important;object-position:top center!important}
html body.oga-v5318-final.woocommerce-checkout .oga520-eu-guarantee :is(strong,small){display:block!important;margin:0!important}
html body.oga-v5318-final.woocommerce-checkout .oga520-eu-guarantee strong{font-size:11px!important;line-height:1.2!important}
html body.oga-v5318-final.woocommerce-checkout .oga520-eu-guarantee small{margin-top:1px!important;color:var(--oga5318-muted)!important;font-size:10px!important;line-height:1.2!important}

/* Cart address remains truly collapsed until Modifică adresa. */
html body.oga-v5318-final.woocommerce-cart .shipping-calculator-form:not(.oga5318-open){display:none!important;height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
html body.oga-v5318-final.woocommerce-cart .shipping-calculator-form.oga5318-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-v5318-final.woocommerce-cart .shipping-calculator-button{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}

/* Errors: compact and actionable. */
html body.oga-v5318-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-v5318-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(--oga5318-error)!important;background:#fff7f6!important;color:#7a1610!important;box-shadow:none!important;overflow:visible!important}

@media(max-width:999px){
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) main.oga-main{width:calc(100% - 32px)!important;padding:20px 0 40px!important}
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout{display:block!important;width:100%!important;margin-top:12px!important}
 html body.oga-v5318-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-v5318-final.woocommerce-checkout .woocommerce-form-login-toggle{margin:0 0 12px!important;max-width:520px!important}
 html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login{margin:0 0 16px!important}
}
@media(max-width:620px){
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) main.oga-main{width:calc(100% - 20px)!important;padding-top:14px!important}
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper,
 html body.oga-v5318-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-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper>.form-row,
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields__field-wrapper>.form-row,
 html body.oga-v5318-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-v5318-final.woocommerce-checkout .woocommerce-form-login-toggle{width:100%!important;max-width:none!important}
 html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login{width:100%!important;max-width:none!important;padding:12px!important}
 html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open .form-row-first,
 html body.oga-v5318-final.woocommerce-checkout form.woocommerce-form-login.oga5318-login-open .form-row-last{display:block!important;width:100%!important;margin-right:0!important}
 html body.oga-v5318-final.woocommerce-cart .shipping-calculator-form.oga5318-open{grid-template-columns:1fr!important;gap:8px!important}
 html body.oga-v5318-final.woocommerce-cart .shipping-calculator-form button{width:100%!important;min-height:44px!important}
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review{padding:13px!important}
 html body.oga-v5318-final.woocommerce-checkout .oga520-legal-links{gap:6px 9px!important}
}
@media(max-width:430px){
 html body.oga-v5318-final.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info{font-size:14px!important}
 html body.oga-v5318-final.woocommerce-checkout:not(.woocommerce-order-received) #order_review{padding:12px!important}
}
