/* Context: commerce. Source order and media conditions preserved. */

.kt-commerce-content table{width:100%}
.kt-commerce-content input.input-text,.kt-commerce-content select,.kt-commerce-content textarea{border:1px solid #e3e5ec;border-radius:12px;background:#fff;padding:12px;max-width:100%}
.kt-commerce-content .button,.kt-commerce-content button[type=submit],.kt-commerce-content .checkout-button,.kt-commerce-content #place_order{background:linear-gradient(115deg,#1dd47d,#07965d)!important;color:white!important;border:0!important;border-radius:14px!important;box-shadow:0 6px 18px #0aaf6422;padding:14px 22px}
.kt-commerce-content .cart_totals,.kt-commerce-content #order_review,.kt-commerce-content .woocommerce-billing-fields,.kt-commerce-content table.shop_table{border:1px solid #e9eaf0;border-radius:18px;padding:20px;background:#fff}

@media(min-width:1024px){
 .woocommerce-cart .kt-commerce-content>.woocommerce>.kt-cross-sells-below{grid-column:1;min-width:0;width:100%;float:none;margin-top:1rem}
 .kt-cross-sells-below>h2{font-size:1.15rem;line-height:1.8;margin-bottom:1rem}
}
@media(max-width:767px){
 body.kt-mobile-purchase-active{padding-bottom:calc(max(var(--kt-bottom-nav-clearance,0px), env(safe-area-inset-bottom)) + var(--kt-purchase-action-height,56px) + 24px)!important}
 body .kt-mobile-purchase-action{position:fixed!important;z-index:99981!important;inset-inline:12px!important;bottom:calc(max(var(--kt-bottom-nav-clearance,0px), env(safe-area-inset-bottom)) + 8px)!important;width:calc(100% - 24px)!important;max-width:none!important;margin:0!important;min-height:50px;box-sizing:border-box;border-radius:12px!important;background:linear-gradient(115deg,#1dd47d,#07965d)!important;color:#fff!important;box-shadow:0 3px 18px #050a3230;white-space:normal}
 body .kt-mobile-purchase-action:disabled{opacity:.65;cursor:not-allowed}
}

/* Classic checkout: plugin-injected rows must not create implicit mobile columns. */
@media(max-width:1023px){
 .woocommerce-checkout .kt-commerce-content,.woocommerce-checkout .kt-commerce-content>.woocommerce{min-width:0;max-width:100%}
 .woocommerce-checkout .kt-commerce-content form.checkout{display:block;width:100%;min-width:0;max-width:100%}
 .woocommerce-checkout form.checkout::before,.woocommerce-checkout form.checkout::after{display:none}
 .woocommerce-checkout form.checkout>*{min-width:0;max-width:100%;box-sizing:border-box}
 .woocommerce-checkout #customer_details,.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{width:100%;min-width:0;max-width:100%;float:none;clear:both;box-sizing:border-box}
 .woocommerce-checkout #customer_details{margin-bottom:1.5rem}
 .woocommerce-checkout #order_review{position:static}
 .woocommerce-checkout #customer_details .col-1,.woocommerce-checkout #customer_details .col-2,.woocommerce-checkout .form-row,.woocommerce-checkout .woocommerce-input-wrapper{min-width:0;max-width:100%;box-sizing:border-box}
 .woocommerce-checkout #order_review table{table-layout:fixed;width:100%;max-width:100%}
 .woocommerce-checkout #order_review th,.woocommerce-checkout #order_review td{overflow-wrap:anywhere;white-space:normal}
 .woocommerce-checkout #order_review .product-name{width:60%}
 .woocommerce-checkout #payment,.woocommerce-checkout #payment .payment_box,.woocommerce-checkout #payment .place-order{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
 .woocommerce-checkout .select2-container{width:100%!important;min-width:0;max-width:100%}
}
@media(max-width:767px){
 .woocommerce-checkout .kt-commerce-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.woocommerce-checkout .kt-commerce-content select,.woocommerce-checkout .kt-commerce-content textarea{font-size:16px;min-width:0;max-width:100%;box-sizing:border-box}
 .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper{grid-template-columns:minmax(0,1fr)}
 .woocommerce-checkout .kt-commerce-content #order_review{padding:12px}
}

/* RC4: hard containment for Classic Checkout on narrow viewports.
 * Third-party login/gateway rows can carry intrinsic widths that otherwise
 * push the whole checkout canvas sideways after entering from Cart. */
@media(max-width:1023px){
 body.woocommerce-checkout{overflow-x:clip}
 .woocommerce-checkout .kt-page-entry,
 .woocommerce-checkout .kt-page-entry__content,
 .woocommerce-checkout .kt-commerce-content>.woocommerce,
 .woocommerce-checkout form.checkout,
 .woocommerce-checkout #customer_details,
 .woocommerce-checkout #customer_details>.col-1,
 .woocommerce-checkout #customer_details>.col-2,
 .woocommerce-checkout #order_review,
 .woocommerce-checkout #payment,
 .woocommerce-checkout .woocommerce-billing-fields,
 .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
 .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
 .woocommerce-checkout .woocommerce-additional-fields,
 .woocommerce-checkout .woocommerce-additional-fields__field-wrapper,
 .woocommerce-checkout .gordafarrid-wrap,
 .woocommerce-checkout .gordafarrid-card{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 .woocommerce-checkout .kt-commerce-content table,
 .woocommerce-checkout .kt-commerce-content .shop_table{width:100%;max-width:100%;table-layout:fixed}
 .woocommerce-checkout .kt-commerce-content img,
 .woocommerce-checkout .kt-commerce-content iframe{max-width:100%;height:auto}
 .woocommerce-checkout .kt-commerce-content :where(input:not([type=checkbox]):not([type=radio]),select,textarea,.select2-container,.select2-selection){min-width:0;max-width:100%;box-sizing:border-box}
}



/* RC6: Gordafarrid guest-checkout overflow fix.
 * Gordafarrid intentionally keeps a honeypot input in the DOM, but its own
 * stylesheet moves that field to left:-10000px. On RTL mobile checkout this
 * can enlarge the document scrollable overflow and make the whole page appear
 * shifted sideways. Keep the honeypot present and non-interactive, but clip it
 * inside the login card instead of positioning it thousands of pixels away. */
.woocommerce-checkout .gordafarrid-card,
.woocommerce-account .gordafarrid-card{
 position:relative;
 min-width:0;
 max-width:450px;
 width:100%;
 margin-inline:auto;
 box-sizing:border-box;
}
.woocommerce-checkout .gordafarrid-hp,
.woocommerce-account .gordafarrid-hp{
 position:absolute!important;
 top:0!important;
 right:auto!important;
 bottom:auto!important;
 left:0!important;
 width:1px!important;
 min-width:1px!important;
 max-width:1px!important;
 height:1px!important;
 min-height:1px!important;
 margin:0!important;
 padding:0!important;
 overflow:hidden!important;
 clip:rect(0 0 0 0)!important;
 clip-path:inset(50%)!important;
 white-space:nowrap!important;
 border:0!important;
 opacity:0!important;
 pointer-events:none!important;
 transform:none!important;
}
@media(max-width:767px){
 body.woocommerce-checkout #page,
 body.woocommerce-checkout .kt-site-main,
 body.woocommerce-checkout .kt-page-entry,
 body.woocommerce-checkout .kt-page-entry__content{
  min-width:0;
  max-width:100%;
 }
 .woocommerce-checkout .gordafarrid-wrap{
  display:flex;
  justify-content:center;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:12px 0!important;
  box-sizing:border-box!important;
 }
 .woocommerce-checkout .gordafarrid-card{
  flex:0 1 450px;
  width:100%!important;
  min-width:0!important;
  max-width:450px!important;
  margin:0 auto!important;
  padding-inline:min(20px,5vw);
 }
 .woocommerce-checkout .gordafarrid-actions{
  min-width:0;
  max-width:100%;
  gap:8px;
  flex-wrap:wrap;
 }
 .woocommerce-checkout .gordafarrid-actions>*{
  min-width:0;
  max-width:100%;
 }
}
