/*
 * Conservative content alignment for WooCommerce surfaces. The shared IRIS
 * header/footer are rendered by the plugin while Astra continues to own the
 * WooCommerce content templates and hooks.
 */
body.woocommerce-page:not(.igcx-transaction) #content,
body.woocommerce-page:not(.igcx-transaction) .site-content > .ast-container {
  width: min(1240px, calc(100% - 72px));
  max-width: 1240px;
  margin-inline: auto;
}

body.woocommerce-page:not(.igcx-transaction) :where(.woocommerce, .woocommerce-account) {
  line-height: 1.6;
}

body.woocommerce-page:not(.igcx-transaction) :where(#content, .site-content) :where(input, select, textarea, button, .button) {
  min-height: 44px;
}

body.woocommerce-page:not(.igcx-transaction) .woocommerce table.shop_table {
  width: 100%;
}

body.woocommerce-page:not(.igcx-transaction) :where(#content, .site-content) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.woocommerce-page:not(.igcx-transaction) :where(#content, .site-content) :where(img, video, iframe, embed) {
  max-width: 100%;
}

@media (max-width: 1200px) {
  body.woocommerce-page:not(.igcx-transaction) #content,
  body.woocommerce-page:not(.igcx-transaction) .site-content > .ast-container {
    width: min(100% - 48px, 1240px);
  }
}

@media (max-width: 768px) {
  body.woocommerce-page:not(.igcx-transaction) #content,
  body.woocommerce-page:not(.igcx-transaction) .site-content > .ast-container {
    width: min(100% - 32px, 1240px);
  }

  body.woocommerce-page:not(.igcx-transaction) .woocommerce table.shop_table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  body.woocommerce-page:not(.igcx-transaction) :where(#content, .site-content) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    max-width: 100%;
    font-size: 16px;
  }

  body.woocommerce-account:not(.igcx-transaction) .woocommerce-MyAccount-navigation {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.woocommerce-account:not(.igcx-transaction) .woocommerce-MyAccount-navigation ul {
    display: flex;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
  }

  body.woocommerce-account:not(.igcx-transaction) .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }
}
