/* Ink & Stitch – live enabled size grid (compact card layout). */
.isg-test-grid {
  width: 100%; max-width: 490px; margin: 14px 0 20px; clear: both;
  font-family: inherit; color: #202020;
}
.isg-test-grid .isg-grid-title {
  font-size: 16px; font-weight: 700; margin: 0 0 5px; line-height: 1.35;
}
.isg-test-grid .isg-colour-message { font-size: 12px; color: #686868; margin-bottom: 10px; }

/* Keep HTML table/accessible input names intact, but present rows as small cards. */
.isg-test-grid .isg-table-wrap { max-width: 100%; overflow: visible; }
.isg-test-grid table.isg-table {
  display: block !important; width: 100% !important; margin: 0 !important;
  padding: 0 !important; border: none !important; border-collapse: separate !important;
  background: transparent !important; table-layout: auto !important;
}
.isg-test-grid .isg-table thead { display: none !important; }
.isg-test-grid .isg-table tbody {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px; width: 100%;
}
.isg-test-grid .isg-table tbody tr {
  display: flex !important; flex-direction: column; align-items: stretch;
  padding: 0 !important; margin: 0 !important;
  border: 1px solid #dbe6e5 !important; border-radius: 6px; overflow: hidden;
  background: #fff !important; box-shadow: none !important;
}
/* The green/turquoise strip across the top of every individual size box. */
.isg-test-grid .isg-table tbody tr > th {
  display: block !important; width: 100% !important; box-sizing: border-box;
  padding: 4px 6px !important; margin: 0 !important;
  border: 0 !important; background: #13bcb6 !important;
  color: #fff !important; font-size: 12px !important; line-height: 20px !important;
  font-weight: 750 !important; text-align: center !important;
}
.isg-test-grid .isg-table tbody tr > td {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  min-height: 42px; padding: 5px 4px !important; margin: 0 !important;
  box-sizing: border-box; border: 0 !important; background: #fff !important;
  text-align: center !important;
}
.isg-test-grid .isg-quantity {
  display: inline-flex !important; align-items: center; justify-content: center;
  height: 27px !important; width: 89px; box-sizing: border-box;
  border: 1px solid #d5dedf; border-radius: 4px; background: #fff;
  overflow: hidden; vertical-align: middle;
}
.isg-test-grid .isg-quantity button {
  display: flex !important; align-items: center; justify-content: center;
  flex: 0 0 26px; width: 26px !important; min-width: 26px !important;
  height: 25px !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  border-radius: 0 !important; box-shadow: none !important;
  background: #eef8f7 !important; color: #124c49 !important;
  font-size: 16px !important; font-weight: 600; line-height: 1;
  cursor: pointer;
}
.isg-test-grid .isg-quantity button:disabled { opacity: .38; cursor: not-allowed; }
.isg-test-grid .isg-quantity input[type=number] {
  display: block !important; flex: 1 1 35px; width: 35px !important;
  min-width: 0 !important; max-width: 35px !important;
  height: 25px !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 2px !important;
  text-align: center !important; color: #222 !important; font-size: 12px !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: #fff !important; appearance: textfield; -moz-appearance: textfield;
}
.isg-test-grid .isg-quantity input[type=number]::-webkit-outer-spin-button,
.isg-test-grid .isg-quantity input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.isg-test-grid .isg-quantity input:disabled { color: #a6a6a6 !important; background: #fafafa !important; }
.isg-test-grid .isg-table tbody tr.isg-disabled { opacity: .64; }
.isg-test-grid .isg-unavailable { display: block; font-size: 10px; line-height: 1.25; margin-top: 4px; color: #a13131; }
.isg-test-grid .isg-unavailable[hidden] { display: none !important; }
.isg-test-grid .isg-total { margin-top: 10px; font-size: 13px; }
@media(max-width: 300px) {
  .isg-test-grid .isg-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}

/* v0.2.1 — match the existing logo-upload Choose File control to size-card headers.
   Only affects the enabled clothing product WooCommerce order form. */
body.single-product form.isg-active-form input[type="file"]::file-selector-button {
  background-color: #13bcb6 !important;
  color: #fff !important;
  border: 1px solid #13bcb6 !important;
  border-radius: 4px !important;
  padding: 7px 12px !important;
  margin-right: 10px !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
body.single-product form.isg-active-form input[type="file"]::-webkit-file-upload-button {
  background-color: #13bcb6 !important;
  color: #fff !important;
  border: 1px solid #13bcb6 !important;
  border-radius: 4px !important;
  padding: 7px 12px !important;
  margin-right: 10px !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
body.single-product form.isg-active-form input[type="file"]::file-selector-button:hover,
body.single-product form.isg-active-form input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #109f9b !important;
  border-color: #109f9b !important;
}

/* v0.2.2 — remove only WooCommerce's redundant single-item quantity box.
   All quantities come from the per-size grid; keep the ONE real submit button. */
body.single-product form.isg-active-form .single_variation_wrap .woocommerce-variation-add-to-cart .quantity:not(.isg-quantity),
body.single-product form.isg-active-form .single_variation_wrap .woocommerce-variation-add-to-cart input.qty {
  display: none !important;
}


/* ========================================================================
   v0.2.8 – REAL SIDE-BY-SIDE, OBLONG ARTWORK / SIZE ORDERING PANEL
   Applies to manually tagged Layout Test eligible tagged clothing products in the imported Elementor layout.
   Existing WooCommerce fields remain part of the same product form.
   ======================================================================== */
body.single-product.isg-grid-supported .elementor-50698 {
  --isg-brand: #14bdb8;
  --isg-ink: #182d30;
  --isg-soft: #f5faf9;
  --isg-line: #d6e7e6;
}
body.single-product.isg-grid-supported .elementor-50698 .e-con:has(> .elementor-widget-woocommerce-product-add-to-cart) {
  box-sizing: border-box !important;
  width: 100% !important; max-width: none !important; min-width: 0 !important;
  margin-inline: 0 !important; align-self: stretch !important;
  padding: 20px 22px 22px !important;
  background: #fff !important;
  border: 1px solid var(--isg-line) !important;
  border-top: 3px solid var(--isg-brand) !important;
  border-radius: 10px !important;
  box-shadow: 0 7px 23px rgba(14, 78, 76, .045) !important;
}
body.single-product.isg-grid-supported .elementor-50698 .e-con:has(> .elementor-widget-woocommerce-product-add-to-cart) > .elementor-widget-heading {
  margin: 0 0 14px !important; padding: 0 0 11px !important;
  border-bottom: 1px solid var(--isg-line) !important;
}
body.single-product.isg-grid-supported .elementor-50698 .e-con:has(> .elementor-widget-woocommerce-product-add-to-cart) .elementor-widget-heading .elementor-heading-title {
  font-size: 20px !important; font-weight: 750 !important;
  letter-spacing: -.025em; line-height: 1.25 !important;
  color: var(--isg-ink) !important;
}
body.single-product.isg-grid-supported .elementor-50698 .elementor-widget-woocommerce-product-add-to-cart {
  width: 100% !important; max-width: none !important;
  min-width: 0 !important; container: isg-order-area / inline-size;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-active-form.isg-arranged {
  display: grid !important;
  grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr) !important;
  align-items: start !important; gap: 17px !important;
  margin: 0 !important; width: 100% !important;
  min-width: 0 !important; max-width: none !important;
  padding: 0 !important; background: transparent !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged > .isg-order-left,
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged > .isg-order-right {
  box-sizing: border-box !important; min-width: 0 !important;
  width: 100% !important; max-width: 100% !important;
  margin: 0 !important; display: block !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged > .isg-order-left::before,
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged > .isg-order-right::before {
  display: block; margin: 0 0 10px;
  color: #128d86; font-size: 11px !important;
  font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged > .isg-order-left::before {
  content: '01  ·  Choose your colour & sizes';
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged > .isg-order-right::before {
  content: '02  ·  Add artwork & order';
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-left > .variations {
  width: 100% !important; max-width: 100% !important;
  margin: 0 0 12px !important; padding: 0 !important;
  border: 0 !important; background: transparent !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-left .variations th,
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-left .variations td {
  border: 0 !important; padding-block: 3px !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-left select,
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-right select {
  min-height: 34px !important; border-radius: 5px !important;
  border-color: var(--isg-line) !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-left .isg-test-grid {
  display: block !important; width: 100% !important;
  max-width: none !important; min-width: 0 !important;
  padding: 0 !important; margin: 4px 0 0 !important; clear: none !important;
  container: isg-size-area / inline-size;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-grid-title {
  margin: 0 0 3px !important; color: var(--isg-ink) !important;
  font-size: 13px !important; font-weight: 750 !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-colour-message {
  font-size: 10px !important; margin: 0 0 9px !important;
  color: #677c7c !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-table tbody {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 6px !important; width: 100% !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-table tbody tr {
  box-shadow: none !important; border: 1px solid var(--isg-line) !important;
  border-radius: 5px !important; background: #fff !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-table tbody tr > th {
  padding: 2px 3px !important; line-height: 16px !important;
  font-size: 10px !important; font-weight: 750 !important;
  background: var(--isg-brand) !important; color: #fff !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-table tbody tr > td {
  padding: 4px 2px !important; min-height: 33px !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-quantity {
  width: min(100%, 80px) !important; height: 25px !important;
  border-color: var(--isg-line) !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-quantity button {
  flex: 0 0 22px !important; width: 22px !important; min-width: 22px !important;
  height: 23px !important; background: #e9f7f5 !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-quantity input[type=number] {
  height: 23px !important; max-width: 33px !important; font-size: 12px !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-total {
  margin-top: 7px !important; font-size: 12px !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged > .isg-order-right {
  padding: 12px 13px !important;
  border-radius: 8px !important; border: 1px solid var(--isg-line) !important;
  background: var(--isg-soft) !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-right .single_variation_wrap {
  display: block !important; margin: 0 !important; padding: 0 !important;
  min-width: 0 !important; max-width: 100% !important; width: 100% !important;
  border: 0 !important; background: transparent !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-right :is(.tm-extra-product-options, .wc-pao-addons, .wapf-wrapper, .woocommerce-variation, .woocommerce-variation-add-to-cart) {
  max-width: 100% !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-right input[type=file] {
  width: 100% !important; max-width: 100% !important;
  font-size: 11px !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-right input[type=file]::file-selector-button {
  background: var(--isg-brand) !important; color: #fff !important;
  border: 0 !important; border-radius: 5px !important;
  padding: 8px 11px !important; cursor: pointer;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-right .single_add_to_cart_button {
  display: block !important; width: 100% !important; min-height: 42px !important;
  margin: 12px 0 0 !important; border-radius: 5px !important;
  background: var(--isg-brand) !important; color: #fff !important;
  font-size: 12px !important; font-weight: 800 !important;
  box-shadow: none !important;
}
body.single-product.isg-grid-supported .elementor-50698 form.isg-arranged .isg-order-right .single_add_to_cart_button:hover {
  background: #0a9c96 !important;
}
/* Seven across when there is enough width; no microscopically small controls. */
@container isg-size-area (min-width: 505px) {
  .isg-table tbody { grid-template-columns: repeat(7,minmax(0,1fr)) !important; }
}
@container isg-size-area (max-width: 295px) {
  .isg-table tbody { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
/* The two areas stand side-by-side on desktop and stack accessibly on mobile. */
@container isg-order-area (max-width: 530px) {
  form.isg-arranged { grid-template-columns: minmax(0,1fr) !important; gap: 13px !important; }
}
@media (max-width: 600px) {
  body.single-product.isg-grid-supported .elementor-50698 .e-con:has(> .elementor-widget-woocommerce-product-add-to-cart) {
    padding: 15px 13px 18px !important;
  }
}

/* v0.3.0 – MOBILE LAYOUT CORRECTION.
 * The earlier generic @container rule lost to the more-specific 2-column
 * form rule above; match/exceed its specificity explicitly at phone widths.
 * Desktop remains exactly as designed and no checkout fields are touched.
 */
@media screen and (max-width: 767px) {
  body.single-product.isg-grid-supported .elementor-50698
  .e-con:has(> .elementor-widget-woocommerce-product-add-to-cart) {
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 12px 16px !important;
  }
  body.single-product.isg-grid-supported .elementor-50698
  form.isg-active-form.isg-arranged {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    overflow: visible !important;
  }
  body.single-product.isg-grid-supported .elementor-50698
  form.isg-arranged > .isg-order-left,
  body.single-product.isg-grid-supported .elementor-50698
  form.isg-arranged > .isg-order-right {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
    position: static !important;
    box-sizing: border-box !important;
    float: none !important;
  }
  body.single-product.isg-grid-supported .elementor-50698
  form.isg-arranged > .isg-order-right {
    padding: 13px 12px !important;
  }
  body.single-product.isg-grid-supported .elementor-50698
  form.isg-arranged .isg-table tbody {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  body.single-product.isg-grid-supported .elementor-50698
  form.isg-arranged .isg-order-right :is(input, select, textarea, fieldset) {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.single-product.isg-grid-supported .elementor-50698
  form.isg-arranged .isg-order-right .single_add_to_cart_button {
    width: 100% !important;
    min-height: 42px !important;
  }
  /* Preserve the three selling points as a single compact row on phones. */
  body.single-product.isg-grid-supported .elementor-50698
  .e-con:has(> .elementor-widget-woocommerce-product-add-to-cart) >
  .elementor-widget-icon-list .elementor-icon-list-items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  body.single-product.isg-grid-supported .elementor-50698
  .e-con:has(> .elementor-widget-woocommerce-product-add-to-cart) >
  .elementor-widget-icon-list .elementor-icon-list-item {
    min-width: 0 !important;
    padding: 6px 2px !important;
  }
  body.single-product.isg-grid-supported .elementor-50698
  .e-con:has(> .elementor-widget-woocommerce-product-add-to-cart) >
  .elementor-widget-icon-list .elementor-icon-list-text {
    font-size: 10px !important;
    overflow-wrap: break-word;
  }
}
@media screen and (max-width: 350px) {
  body.single-product.isg-grid-supported .elementor-50698
  form.isg-arranged .isg-table tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* v0.3.4 — Keep Woodmart/WooCommerce's redundant size selector hidden once
   the grid has initialised, whether it is rendered in a table or a div. */
body.single-product.isg-grid-supported form.isg-active-form .isg-original-size-row,
body.single-product.isg-grid-supported form.isg-active-form .isg-original-size-wrapper,
body.single-product.isg-grid-supported form.isg-active-form select.isg-original-size-select,
body.single-product.isg-grid-supported form.isg-active-form label.isg-original-size-label {
  display: none !important;
}
