/* Exceptions for official Woo shortcode markup: no account/endpoint module is
 * installed to expose its forms, tables or navigation as Divi design controls.
 * Outer surfaces, typography and all native cart/checkout styles live in Divi. */
.iw-pos-commerce .iw-woo-shortcode { min-width: 0; }
.iw-pos-commerce .iw-woo-shortcode .woocommerce { min-width: 0; }
.iw-pos-commerce .iw-woo-shortcode :is(input,select,textarea,button) { font: inherit; }
.iw-pos-commerce .iw-woo-shortcode :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea) {
 max-width:100%; min-width:0; min-height:47px; padding:12px 13px; border:1px solid #bed4e0; border-radius:9px; background:#fbfdfe; color:#123b55;
}
.iw-pos-commerce .iw-woo-shortcode :is(input[type=checkbox],input[type=radio]) { accent-color:#0082d0; }
.iw-pos-commerce .iw-woo-shortcode .form-row label { font-weight:700; font-size:14px; margin-bottom:7px; }
.iw-pos-commerce #page-container .iw-woo-shortcode :is(a.button,button.button,input.button),
.iw-pos-commerce .iw-account-nav-toggle {
 display:inline-flex; align-items:center; justify-content:center; gap:8px;
 font-family:inherit; font-size:var(--iw-woo-button-size,15px) !important; font-weight:800 !important; line-height:1.4;
 padding:var(--iw-woo-button-py,15px) var(--iw-woo-button-px,28px) !important;
 border:1px solid transparent; border-radius:99px; background:#0082d0; color:#fff; text-decoration:none; cursor:pointer;
}
.iw-pos-commerce .iw-woo-shortcode :is(a.button,button.button,input.button):hover { background:#095a86; color:#fff; }
.iw-pos-commerce .iw-woo-shortcode :is(a,button,input,select,textarea):focus-visible { outline:3px solid #0082d0; outline-offset:3px; }
.iw-pos-commerce .iw-woo-shortcode button.show-password-input { background:transparent; color:#416779; border:0; padding:8px; }
/* Native Woo login/register panels remain usable together without JavaScript. */
.iw-pos-account-guest .iw-woo-shortcode form:is(.login,.register,.lost_reset_password) { border:0; padding:0; margin:16px 0 0; }
.iw-pos-account-guest #customer_login :is(.u-column1,.u-column2) { float:none; width:100%; }
.iw-pos-account-guest #customer_login .u-column2 { margin-top:26px; }
.iw-pos-account-guest #customer_login.iw-auth-enhanced .u-column2 { margin-top:0; }
.iw-pos-account-guest #customer_login [hidden] { display:none; }
.iw-pos-account-guest .iw-auth-tabs { display:flex; gap:10px; background:#ecf5f8; padding:5px; border-radius:13px; margin-bottom:20px; }
.iw-pos-account-guest .iw-auth-tabs button { flex:1; min-height:46px; border:0; background:transparent; font:inherit; font-weight:800; border-radius:10px; color:#123b55; cursor:pointer; }
.iw-pos-account-guest .iw-auth-tabs [aria-selected=true] { background:#fff; box-shadow:0 5px 17px #c6dce886; color:#0082d0; }
.iw-pos-account-guest .woocommerce-form-login__submit,
.iw-pos-account-guest .woocommerce-form-register__submit { width:100%; margin:12px 0; }
.iw-pos-account-guest .woocommerce-form-login__rememberme { display:block; }
/* Native columns own layout and surfaces; Woo markup supplies endpoint links. */
.iw-pos-account-private .woocommerce-MyAccount-navigation { float:none; width:100%; }
.iw-pos-account-private .woocommerce-MyAccount-navigation ul { list-style:none; padding:0; margin:0; }
.iw-pos-account-private .woocommerce-MyAccount-navigation li { margin:3px 0; padding:0; border:0; }
.iw-pos-account-private .woocommerce-MyAccount-navigation a { display:block; padding:12px 14px; border-radius:12px; font-weight:700; font-size:15px; color:#e7f3fa; }
.iw-pos-account-private .woocommerce-MyAccount-navigation .is-active a,
.iw-pos-account-private .woocommerce-MyAccount-navigation a:hover { background:#0082d0; color:#fff; }
.iw-pos-account-private .woocommerce-MyAccount-content { float:none; width:100%; min-width:0; overflow-x:auto; }
.iw-pos-account-private .woocommerce-notices-wrapper:empty { display:none; }
.iw-pos-commerce .iw-woo-shortcode table.shop_table { border:1px solid #d1e3ed; border-collapse:separate; border-spacing:0; border-radius:12px; width:100%; margin:16px 0 22px; font-size:15px; }
.iw-pos-commerce .iw-woo-shortcode table.shop_table :is(th,td) { padding:13px; border-color:#dfebf1; vertical-align:top; }
.iw-pos-commerce .iw-woo-shortcode table.shop_table thead th { background:#f1f8fc; color:#496a7e; font-size:13px; }
.iw-pos-commerce .iw-woo-shortcode .woocommerce-orders-table__cell-order-actions .button { font-size:14px; padding:10px 15px; margin:3px; }
.iw-pos-commerce .iw-woo-shortcode :is(address,.woocommerce-customer-details address) { border:1px solid #d1e3ed; border-radius:14px; padding:18px; font-style:normal; overflow-wrap:anywhere; }
.iw-pos-commerce .iw-woo-shortcode .woocommerce-Addresses .col-1,
.iw-pos-commerce .iw-woo-shortcode .woocommerce-Addresses .col-2 { float:none; width:100%; margin-bottom:18px; }
.iw-pos-commerce .iw-woo-shortcode :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) { background:#edf7fc; color:#244b63; border-top-color:#0082d0; border-radius:10px; margin-bottom:20px; }
/* Divi hides default notice wrappers when it expects a Cart Notice module.
 * These shortcode endpoints own their notices and have no duplicate module. */
.iw-pos-commerce #page-container .iw-woo-shortcode .woocommerce-notices-wrapper:not(:empty) { display:block !important; }
.iw-pos-commerce .iw-account-nav-toggle { display:none; }
.iw-pos-commerce .iw-woo-shortcode .ich { font:inherit; margin:0; }
/* Third-party Select2/date fields and gateway widgets are outside native input
 * selectors. Inherit typography and keep their own functional markup intact. */
.iw-pos-checkout .select2-container { max-width:100%; }
.iw-pos-checkout .select2-selection { min-height:47px; border-color:#bed4e0; border-radius:9px; font:inherit; }
.iw-pos-checkout .select2-selection__rendered { line-height:45px; }
.iw-pos-checkout .select2-selection__arrow { min-height:45px; }
.iw-pos-checkout .iw-native-checkout :is(.payment_methods label,.woocommerce-terms-and-conditions-wrapper label) { overflow-wrap:anywhere; }
.iw-pos-checkout .iw-native-checkout #payment .payment_box :is(input,select) { max-width:100%; font:inherit; }
.iw-pos-commerce .iw-woo-shortcode .woocommerce-order-overview { display:flex; flex-wrap:wrap; gap:18px; padding:0; }
.iw-pos-commerce .iw-woo-shortcode .woocommerce-order-overview li { margin:0; padding-right:18px; min-width:0; }
.iw-pos-commerce .iw-woo-shortcode .woocommerce-order-overview strong { overflow-wrap:anywhere; }
@media(max-width:980px){
 .iw-pos-account-private .iw-account-nav-toggle { display:flex; width:100%; }
 .iw-pos-account-private .iw-account-nav-enhanced .woocommerce-MyAccount-navigation:not(.iw-account-nav-open) { display:none; }
}
@media(max-width:480px){
 .iw-pos-commerce .iw-woo-shortcode .form-row-first,
 .iw-pos-commerce .iw-woo-shortcode .form-row-last { float:none; width:100%; }
 .iw-pos-commerce .iw-woo-shortcode table.shop_table :is(th,td) { padding:10px; }
 .iw-pos-commerce .iw-woo-shortcode .woocommerce-order-overview { display:block; }
 .iw-pos-commerce .iw-woo-shortcode .woocommerce-order-overview li { padding:12px 0; border:0; }
}
/* Shared native Woo buttons: Divi global button presets already have correct
 * blue/white and lime/dark hovers, but WC Cart/Checkout modules bypass presets.
 * Keep WordPress checkout, order, subscription and gateway semantics intact. */
body.iw-pos-commerce:not(.iw-pos-checkout:not(.iw-pos-checkout-endpoint)) #page-container :is(.iw-native-checkout,.iw-native-cart-products,.iw-native-cart-totals,.iw-woo-shortcode,.woocommerce) :is(a.button,button.button,input.button):not(#place_order) {
 background:#0082d0!important; background-image:none!important; color:#fff!important;
 border:1px solid transparent!important; border-radius:99px!important;
 font-family:"Open Sans",Arial,sans-serif!important; font-size:15px!important;
 font-weight:800!important; line-height:1.4!important; text-transform:none!important;
 text-shadow:none!important; opacity:1!important;
 transition:background-color .2s ease,color .2s ease,transform .2s ease;
}
body.iw-pos-commerce:not(.iw-pos-checkout:not(.iw-pos-checkout-endpoint)) #page-container :is(.iw-native-checkout,.iw-native-cart-products,.iw-native-cart-totals,.iw-woo-shortcode,.woocommerce) :is(a.button,button.button,input.button):not(#place_order):hover:not(:disabled) {
 background:#095a86!important; color:#fff!important; border-color:transparent!important;
 opacity:1!important; filter:none!important; text-shadow:none!important;
}
body.iw-pos-commerce:not(.iw-pos-checkout:not(.iw-pos-checkout-endpoint)) .iw-account-nav-toggle:hover {
 background:#095a86!important; color:#fff!important;
}
body.iw-pos-commerce:not(.iw-pos-checkout:not(.iw-pos-checkout-endpoint)) #page-container :is(.iw-native-checkout,.iw-native-cart-products,.iw-native-cart-totals,.iw-woo-shortcode,.woocommerce) :is(a.button,button.button,input.button):focus-visible,
body.iw-pos-commerce:not(.iw-pos-checkout:not(.iw-pos-checkout-endpoint)) .iw-account-nav-toggle:focus-visible {
 outline:3px solid #0082d0!important; outline-offset:3px!important;
}
/* Primary checkout action: lime on light surfaces, matching POS Divi CTA.
 * High-specificity colors prevent theme hover rules from turning it dark.
 * Do not override the checkbox/nonce/payment submission logic. */
body.iw-pos-checkout.iw-pos-checkout-endpoint #page-container #payment #place_order {
 box-sizing:border-box!important; display:inline-flex!important;
 align-items:center!important; justify-content:center!important; gap:8px;
 width:100%!important; max-width:100%!important; min-height:54px!important;
 padding:13px 20px!important; border:1px solid transparent!important;
 border-radius:99px!important; background:#9dfc37!important; background-image:none!important;
 color:#0b1400!important; font-family:"Open Sans",Arial,sans-serif!important;
 font-size:15px!important; font-weight:800!important; line-height:1.35!important;
 text-align:center!important; text-transform:none!important; text-shadow:none!important;
 box-shadow:none!important; opacity:1!important; filter:none!important;
 transition:background-color .2s ease,color .2s ease,transform .2s ease;
}
body.iw-pos-checkout.iw-pos-checkout-endpoint #page-container #payment #place_order:hover:not(:disabled),
body.iw-pos-checkout.iw-pos-checkout-endpoint #page-container #payment #place_order:focus:not(:disabled) {
 background:#b8ff6b!important; color:#0b1400!important; opacity:1!important;
 filter:none!important; text-shadow:none!important; box-shadow:none!important;
}
body.iw-pos-checkout.iw-pos-checkout-endpoint #page-container #payment #place_order:active:not(:disabled) {
 background:#89e82a!important; color:#0b1400!important;
}
body.iw-pos-checkout.iw-pos-checkout-endpoint #page-container #payment #place_order:focus-visible {
 outline:3px solid #0082d0!important; outline-offset:3px!important;
}
body.iw-pos-checkout.iw-pos-checkout-endpoint #page-container #payment #place_order:disabled,
body.iw-pos-checkout.iw-pos-checkout-endpoint #page-container #payment #place_order.disabled {
 opacity:.65!important; cursor:not-allowed!important; transform:none!important;
}
@media(prefers-reduced-motion:reduce) {
 body.iw-pos-commerce:not(.iw-pos-checkout:not(.iw-pos-checkout-endpoint)) #page-container :is(.iw-native-checkout,.iw-native-cart-products,.iw-native-cart-totals,.iw-woo-shortcode,.woocommerce) :is(a.button,button.button,input.button),
 body.iw-pos-checkout.iw-pos-checkout-endpoint #page-container #payment #place_order { transition:none!important; transform:none!important; }
}

/* Native Woo controls consume the effective Divi button settings. */
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container :is(button.button,a.button,input.button):not(#place_order),
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment #place_order {
 display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;
 min-height:var(--iw-btn-height,54px)!important;padding:var(--iw-btn-py,15px) var(--iw-btn-px,28px)!important;
 font-family:var(--iw-btn-font,inherit)!important;font-size:var(--iw-btn-size,15px)!important;font-weight:var(--iw-btn-weight,800)!important;
 line-height:1.35!important;border:var(--iw-btn-border,0px) solid var(--iw-btn-border-color,transparent)!important;
 border-radius:var(--iw-btn-radius,99px)!important;background:var(--iw-btn-bg,#0082d0)!important;color:var(--iw-btn-fg,#fff)!important;
 text-shadow:none!important;transition:background-color .2s,color .2s,border-color .2s!important;
}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment #place_order {
 width:100%!important;--iw-btn-bg:var(--iw-cta-bg,#9dfc37);--iw-btn-fg:var(--iw-cta-fg,#0b1400);
 --iw-btn-hover:var(--iw-cta-hover,#b8ff6b);--iw-btn-hover-fg:var(--iw-cta-hover-fg,#0b1400);
}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container :is(button.button,a.button,input.button):hover:not(:disabled) {
 background:var(--iw-btn-hover,#095a86)!important;color:var(--iw-btn-hover-fg,#fff)!important;
 border-color:var(--iw-btn-hover-border,var(--iw-btn-border-color,transparent))!important;
}
body.iw-pos-checkout #page-container :is(button.button,a.button,input.button)::after {display:none!important;}
body.iw-pos-checkout #page-container :is(button.button,a.button,input.button):focus-visible {outline:3px solid #0082d0!important;outline-offset:3px;}
body.iw-pos-checkout #page-container :is(button.button,input.button):disabled {opacity:.65!important;cursor:not-allowed!important;}
@media(prefers-reduced-motion:reduce){.iw-pos-commerce .iw-auth-tabs button { transition:none; }}

/* Checkout form and gateway presentation only; retain native markup and events. */
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container .iw-native-checkout :is(.woocommerce-billing-fields,.woocommerce-billing-fields__field-wrapper) {min-width:0;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container .woocommerce-billing-fields__field-wrapper {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container .woocommerce-billing-fields__field-wrapper > .form-row {float:none!important;width:auto!important;min-width:0;margin:0!important;padding:0!important;grid-column:1/-1;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container .woocommerce-billing-fields__field-wrapper > :is(#billing_first_name_field,#billing_last_name_field,#billing_city_field,#billing_state_field,#billing_postcode_field,#billing_phone_field,#billing_wooccm11_field,#billing_wooccm12_field) {grid-column:auto;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container .woocommerce form .form-row label {font-weight:700;line-height:1.5;margin-bottom:6px;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container :is(#thmaf_billing_alt,.woocommerce-billing-fields select,.woocommerce-billing-fields input.input-text,#payment .payment_box select,#payment .payment_box input:is([type=text],[type=tel],[type=email],[type=number],[type=password],:not([type]))) {box-sizing:border-box;min-height:46px!important;width:100%;max-width:100%;padding:10px 13px!important;border:1px solid #bed4e0!important;border-radius:8px!important;background:#f7fbfd!important;color:#123b55!important;font-size:15px!important;line-height:1.4!important;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container .select2-container .select2-selection--single {display:flex;align-items:center;height:46px!important;min-height:46px!important;border:1px solid #bed4e0!important;border-radius:8px;background:#f7fbfd;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container .select2-selection--single .select2-selection__rendered {line-height:1.4!important;padding-left:13px;padding-right:30px;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container .select2-selection--single .select2-selection__arrow {height:100%!important;top:0!important;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container form.checkout_coupon {border:0!important;padding:16px!important;background:#fff;border-radius:12px;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container form.checkout_coupon .form-row {margin-bottom:0;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment {background:transparent!important;border:0!important;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment ul.payment_methods {padding:0!important;border:0!important;list-style:none!important;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment li.wc_payment_method {padding:16px!important;border:1px solid #d4e4ed;border-radius:12px;margin:0 0 12px!important;background:#fff;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment li.wc_payment_method > label {font-weight:700;line-height:1.5;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment li.wc_payment_method > label img {max-width:72px!important;max-height:32px!important;width:auto!important;height:auto!important;object-fit:contain;vertical-align:middle;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment div.payment_box {background:#f7fbfd!important;border:1px solid #d4e4ed;border-radius:9px;padding:14px!important;margin:12px 0 0!important;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment div.payment_box::before {display:none!important;}
body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container #payment .place-order {padding:12px 0 0!important;}
@media(max-width:600px){body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container .woocommerce-billing-fields__field-wrapper {grid-template-columns:minmax(0,1fr);}body.iw-pos-checkout:not(.iw-pos-checkout-endpoint) #page-container form.checkout_coupon .form-row {float:none;width:100%;margin-bottom:10px;}}
