/* FRITTENEDGE 2.0.19 - mobile shop breathing room and checkout width/order. */
@media screen and (max-width:767px) {
  /* Shop filter must not touch the category breadcrumb/banner. */
  body.post-type-archive-product .nexo-filter-toggle,
  body.tax-product_cat .nexo-filter-toggle,
  body.tax-product_tag .nexo-filter-toggle,
  body.tax-product_brand .nexo-filter-toggle {
    margin-top:22px !important;
    margin-bottom:18px !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  body.post-type-archive-product .nexo-shop-layout,
  body.tax-product_cat .nexo-shop-layout,
  body.tax-product_tag .nexo-shop-layout {
    padding-top:12px !important;
  }
  /* Use the same 16px side gutters as the header, not nested narrow containers. */
  body.woocommerce-checkout:not(.woocommerce-order-received) .nexo-content {
    width:calc(100% - 32px) !important;
    max-width:none !important;
    margin-left:16px !important;
    margin-right:16px !important;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) .nexo-content .nexo-entry,
  body.woocommerce-checkout:not(.woocommerce-order-received) .nexo-content .woocommerce,
  body.woocommerce-checkout:not(.woocommerce-order-received) .nexo-content form.checkout {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
  }
  /* Bring the real WooCommerce order panel ABOVE billing on phones. */
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout {
    display:flex !important;
    flex-direction:column !important;
    gap:18px !important;
    align-items:stretch !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #order_review {
    order:-1 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:16px !important;
    margin:0 !important;
    align-self:stretch !important;
    box-sizing:border-box !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details {
    order:0 !important;
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:16px !important;
    box-sizing:border-box !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details > .col-1,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details > .col-2 {
    width:100% !important;
    float:none !important;
    max-width:100% !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
    margin:0 0 14px !important;
  }
  /* Prevent the order table from manufacturing extra horizontal inset. */
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review #payment {
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table th,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table td {
    padding:12px 8px !important;
    overflow-wrap:anywhere;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table td:last-child,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table th:last-child {
    width:38% !important;
  }
}
