/* DAXAN Atelier 0.24.3 — scoped WooCommerce layout corrections.
   Important declarations protect layout from WooCommerce's late-loaded styles.
   Colours, payment behaviour and product data remain owned by existing rules. */
body :is(.woocommerce, .woocommerce-page) :is(a.button, button.button),
body.woocommerce-page :is(a.button, button.button),
body .woocommerce ul.products li.product .button,
body .wc-block-components-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  height: auto;
  min-height: 48px;
  padding: 14px 24px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  white-space: normal;
}
body .wc-block-components-button__text {
  justify-content: center;
  text-align: center;
}
body .woocommerce input.button,
body.woocommerce-page input.button {
  box-sizing: border-box;
  height: auto;
  min-height: 48px;
  padding: 14px 24px !important;
  line-height: 1.4 !important;
  text-align: center;
}

/* Equal padding and a single active underline; no clipped horizontal strip. */
body.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px 12px;
  padding: 0 !important;
  overflow: visible;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li {
  display: flex;
  float: none;
  flex: 0 1 auto;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  background: transparent !important;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 48px;
  padding: 14px 16px !important;
  border-bottom: 2px solid transparent;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  border-bottom-color: var(--green);
  color: var(--green-deep);
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
}

/* One shared gutter inside the checkout summary, including coupon and totals. */
body .wp-block-woocommerce-checkout-order-summary-block {
  --daxan-summary-gutter: 20px;
  padding: 0 !important;
}
body .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary {
  padding-inline: var(--daxan-summary-gutter) !important;
}
body .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary__content {
  padding-inline: 0 !important;
}
body .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper {
  box-sizing: border-box;
  padding: 16px var(--daxan-summary-gutter) !important;
}
body .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item,
body .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-coupon {
  padding-inline: 0 !important;
}
body .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description {
  min-width: 0;
  overflow-wrap: anywhere;
}
body .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__total-price {
  padding-inline-start: 12px;
}

/* Grid aligns the raw notice text with its action, irrespective of DOM order. */
body .woocommerce-message,
body .woocommerce-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  position: relative;
  padding: 20px 24px 20px 52px !important;
  line-height: 1.6;
}
body .woocommerce-message::before,
body .woocommerce-info::before {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}
body .woocommerce-message::after,
body .woocommerce-info::after { display: none; }
body .woocommerce-message a.button,
body .woocommerce-info a.button {
  grid-column: 2;
  grid-row: 1;
  float: none !important;
  margin: 0 !important;
}
@media (max-width: 600px) {
  body.woocommerce div.product .woocommerce-tabs ul.tabs { gap: 0; }
  body.woocommerce div.product .woocommerce-tabs ul.tabs li { flex: 1 1 50%; }
  body.woocommerce div.product .woocommerce-tabs ul.tabs li a { width: 100%; padding: 12px !important; }
  body .wp-block-woocommerce-checkout-order-summary-block { --daxan-summary-gutter: 16px; }
  body .woocommerce-message,
  body .woocommerce-info { grid-template-columns: minmax(0, 1fr); padding: 18px 18px 18px 46px !important; }
  body .woocommerce-message::before,
  body .woocommerce-info::before { top: 20px; left: 16px; transform: none; }
  body .woocommerce-message a.button,
  body .woocommerce-info a.button { grid-column: 1; grid-row: 2; justify-self: start; }
}
