/* Limit the fix to the audited empty-cart recommendation grid. */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block ul.wc-block-grid__products {
  margin-inline: 0;
}

/* Keep existing icon artwork; enlarge only its interactive box. */
@media (max-width: 767px) {
  #brx-header button#brxe-4f3137 {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

#brx-header #brxe-sytsng > a.mini-cart-link {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Absorb Stripe's documented-by-observation -4px focus gutter inside its
   own outer elements. Do not clip the page or alter iframe internals. */
body.single-product .summary #payment-method-message,
body.single-product .summary #wcpay-express-checkout-element {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 4px;
}

.weebtoys-fit-guide {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #e7e0ef;
  border-radius: 8px;
  background: #f9f7fc;
  color: #252132;
  font-size: 16px;
  line-height: 1.5;
}

.weebtoys-fit-guide p {
  margin: 0;
}

.weebtoys-fit-guide p + p {
  margin-top: 6px;
}

#brx-header button#brxe-4f3137:focus-visible,
#brx-header #brxe-sytsng > a.mini-cart-link:focus-visible {
  outline: 2px solid #5b3d91;
  outline-offset: 2px;
}

/* Woo Blocks keeps a 132px intrinsic product column at the smallest size.
   Preserve its four-column placement while allowing the text track to shrink. */
@media (max-width: 359px) {
  body.woocommerce-cart table.wc-block-cart-items {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
  }
  body.woocommerce-cart .wc-block-cart-items__row {
    grid-template-columns: 64px minmax(0, 1fr) 0 auto;
  }
  body.woocommerce-cart .wc-block-cart-item__image {
    width: 64px;
  }
  body.woocommerce-cart .wc-block-cart-item__product {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* LOCAL REVIEW CANDIDATE — not enqueued or published.
 * Product pages only. No account, shared header, provider or checkout selectors.
 * Retain existing Additional CSS and all existing responsive fixes.
 */
body.single-product #main {
  box-sizing: border-box;
  padding-inline: clamp(16px, 3vw, 40px);
}
body.single-product #main > .product {
  min-width: 0;
}
body.single-product .summary,
body.single-product .woocommerce-product-gallery {
  min-width: 0;
  max-width: 100%;
}
body.single-product .product_title {
  font-size: clamp(1.625rem, 2.5vw + 1rem, 2.5rem);
  line-height: 1.18;
  overflow-wrap: break-word;
  margin-block-end: 16px;
}
body.single-product .summary table.variations {
  width: 100%;
  margin-block: 16px;
}
body.single-product .summary table.variations select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  font: inherit;
}
body.single-product .summary form.variations_form :is(select, textarea, input.qty, button.single_add_to_cart_button):focus-visible,
body.single-product .woocommerce-product-gallery :is(a, button):focus-visible {
  outline: 3px solid #5b3d91;
  outline-offset: 3px;
}
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 6px 3px 10px;
  margin-inline: 0;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
}
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li {
  flex: 0 0 64px;
  float: none;
  width: 64px;
  margin: 0;
  scroll-snap-align: start;
}
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs img {
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #e7e0ef;
  border-radius: 8px;
}
body.single-product .summary .product_meta {
  font-size: .875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin-block-start: 20px;
}
body.single-product .woocommerce-tabs :is(p, li) {
  line-height: 1.65;
}
@media (max-width: 767px) {
  body.single-product .summary table.variations :is(th, td) {
    display: block;
    width: 100%;
    padding-inline: 0;
  }
  body.single-product .summary table.variations th {
    padding-block: 10px 6px;
  }
  body.single-product .summary button.single_add_to_cart_button {
    min-height: 48px;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.single-product .woocommerce-product-gallery ol.flex-control-thumbs {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

/* One account gutter owner across native production and styled staging. */
body.woocommerce-account #brx-content {
  box-sizing: border-box;
  width: min(1100px, 100%);
  margin-inline: auto;
  padding-inline-start: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left));
  padding-inline-end: max(clamp(16px, 3vw, 32px), env(safe-area-inset-right));
  padding-block: 24px 40px;
}
body.woocommerce-account #customer_login { width: 100%; max-width: 100%; min-width: 0; }
body.woocommerce-account #customer_login > :is(.u-column1, .u-column2) { min-width: 0; max-width: 100%; }
body.woocommerce-account #customer_login h2 { overflow-wrap: break-word; }
@media (max-width: 767px) {
  body.woocommerce-account #customer_login { grid-template-columns: minmax(0, 1fr); }
}
body.woocommerce-cart article#brx-content {
  box-sizing: border-box;
  width: min(1320px, 100%);
  margin-inline: auto;
  padding-inline-start: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left));
  padding-inline-end: max(clamp(16px, 3vw, 32px), env(safe-area-inset-right));
  padding-block: 24px 40px;
}
/* Fixed scoped artwork only; native links/cart state remain authoritative. */
#brx-header #brxe-prjfkz,
#brx-header #brxe-sytsng > a.mini-cart-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#brx-header #brxe-prjfkz > .icon > svg,
#brx-header #brxe-sytsng > a.mini-cart-link > .cart-icon > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

/* LOCAL, UNINSTALLED. Prevent native alignwide escaping the padded content owner.
 * Do not clip page/provider controls. Qualify real empty/populated cart before promotion. */
body.woocommerce-cart article#brx-content > .wp-block-woocommerce-cart.alignwide {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

/* LOCAL REVIEW ONLY. Color roles, no dimensions/layout/provider controls. */
body.woocommerce-account #customer_login button:is(.woocommerce-form-login__submit,.woocommerce-form-register__submit):not(:disabled):not(.disabled),
body.single-product #main form.cart button.single_add_to_cart_button:not(:disabled):not(.disabled),
body.single-product #main .related a.button,
body.woocommerce-cart article#brx-content .wc-block-grid__product-add-to-cart a {
  background-color: #5b3d91;
  color: #ffffff;
}

body.woocommerce-account #customer_login :is(input.input-text,textarea,select):not([aria-invalid="true"]):not(.woocommerce-invalid *),
body.single-product #main form.variations_form :is(select,textarea,input.qty):not([aria-invalid="true"]):not(.woocommerce-invalid *),
body.woocommerce-shop .woocommerce-ordering select:not([aria-invalid="true"]):not(.woocommerce-invalid *) {
  border-color: #8a7a9a;
}

/* Preserve Woo's behavioral disabled state; color distinction only. */
body.single-product #main form.cart button.single_add_to_cart_button:is(:disabled,.disabled) {
  background-color: #e7e0ef;
  color: #51475f;
}

/* Header-only artwork/target alignment. Native paths, toggles/count untouched. */
#brx-header #brxe-5fbbb5 { column-gap: 8px; }
#brx-header #brxe-4f3137,
#brx-header #brxe-prjfkz,
#brx-header #brxe-sytsng > a.mini-cart-link {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
/* Scale only artwork wrapper; Bricks retains all inner squeeze/X transforms. */
#brx-header #brxe-4f3137 .brxa-wrap {
  transform: scale(.6);
  transform-origin: center;
}
#brx-header #brxe-prjfkz > .icon > svg,
#brx-header #brxe-sytsng > a.mini-cart-link > .cart-icon > svg {
  width: 22px;
  height: 22px;
}
#brx-header #brxe-sytsng > a.mini-cart-link { position: relative; }
#brx-header #brxe-sytsng > a.mini-cart-link > .cart-icon { position: static; }
#brx-header #brxe-sytsng .cart-count {
  box-sizing: border-box;
  top: -4px;
  right: -4px;
  transform: none;
  width: auto;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  border-radius: 8px;
  background-color: #5b3d91;
  color: #ffffff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 767px) {
  #brx-header #brxe-5fbbb5 { justify-content: flex-end; }
  #brx-header #brxe-prjfkz { margin-inline-start: 0; }
  #brx-header #brxe-sytsng { flex: 0 0 auto; }
}

/* Socials outbound artwork only: SVG replaces font-dependent U+2197. */
body.page-id-1012 #brxe-wtso28 .wt-social-card::after {
  content: "";
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235b3d91%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%2017%2017%207M7%207h10v10%22%2F%3E%3C%2Fsvg%3E");
  background-position: center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  opacity: 1;
}
