/* Inkvely responsive fixes: cart, checkout, my account, order received and plain content pages.
   Remove the line that loads this file in functions.php (or delete this file) to undo. */

/* Block cart/checkout were pulled past the left edge of the content area; keep them inside it */
.woocommerce-cart .entry-content > *,
.woocommerce-checkout .entry-content > *,
.woocommerce-account .entry-content > *{max-width:100%;box-sizing:border-box}
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout{margin-left:0!important;margin-right:0!important;max-width:100%!important;width:100%;box-sizing:border-box}

/* Nothing may push the page sideways */
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-account .site-content{overflow-x:hidden}
.woocommerce-cart img,
.woocommerce-checkout img,
.woocommerce-account img,
.woocommerce-checkout iframe{max-width:100%;height:auto}

/* Tablet and phone */
@media(max-width:921px){
 body.woocommerce-cart .site-content > .ast-container,
 body.woocommerce-checkout .site-content > .ast-container,
 body.woocommerce-account .site-content > .ast-container,
 body.page:not(.home):not(.page-template-page-contact) .site-content > .ast-container{padding-left:16px;padding-right:16px;box-sizing:border-box}

 /* Classic cart + checkout: one column */
 .woocommerce .cart-collaterals .cart_totals,
 .woocommerce-page .cart-collaterals .cart_totals{float:none;width:100%}
 .woocommerce-checkout .col2-set,
 .woocommerce-checkout #order_review,
 .woocommerce-checkout #order_review_heading,
 .woocommerce-checkout .col2-set .col-1,
 .woocommerce-checkout .col2-set .col-2{float:none;width:100%;max-width:100%}

 /* Block cart + checkout: stack main area and totals */
 .wc-block-components-sidebar-layout{display:block}
 .wc-block-components-sidebar-layout .wc-block-components-main,
 .wc-block-components-sidebar-layout .wc-block-components-sidebar{width:100%!important;max-width:100%;padding-left:0!important;padding-right:0!important;box-sizing:border-box}
 .wc-block-cart__submit-container .wc-block-cart__submit-button,
 .wc-block-components-checkout-place-order-button{width:100%}
}

/* Phone */
@media(max-width:600px){
 .woocommerce-cart .entry-title,
 .woocommerce-checkout .entry-title,
 .woocommerce-account .entry-title{font-size:1.7rem;line-height:1.15}
 .woocommerce form .form-row-first,
 .woocommerce form .form-row-last,
 .woocommerce-page form .form-row-first,
 .woocommerce-page form .form-row-last{float:none;width:100%}
 .woocommerce form .form-row input.input-text,
 .woocommerce form .form-row select,
 .woocommerce form .form-row textarea{width:100%;box-sizing:border-box}

 /* Classic cart table, coupon row, update button */
 .woocommerce-cart table.cart td.actions .coupon{display:flex;flex-wrap:wrap;gap:8px;float:none}
 .woocommerce-cart table.cart td.actions .coupon input.input-text{flex:1 1 160px;width:auto;margin:0}
 .woocommerce-cart table.cart td.actions>.button{width:100%;margin-top:8px}
 .woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button{width:100%;box-sizing:border-box}

 /* Order received page: stack the summary strip and the two address boxes */
 .woocommerce ul.order_details{display:grid;gap:10px;margin:0 0 24px;padding:0}
 .woocommerce ul.order_details li{float:none;width:auto;margin:0;border-right:0;padding:0 0 10px;border-bottom:1px solid var(--ik-line,#e2dfd6)}
 .woocommerce-order .woocommerce-columns--addresses .col-1,
 .woocommerce-order .woocommerce-columns--addresses .col-2,
 .woocommerce-account .woocommerce-Addresses .woocommerce-Address{float:none;width:100%;max-width:100%}

 /* Wide tables scroll inside themselves instead of breaking the page */
 .woocommerce-order-details,
 .woocommerce-table--order-details{max-width:100%;overflow-x:auto}
 .woocommerce-account .woocommerce-MyAccount-navigation,
 .woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%}
}
