/* REACH Supply customer experience hardening — intentionally scoped. */
:root {
  --reach-navy: #1b2a38;
  --reach-navy-2: #2c465b;
  --reach-gold: #e2a63c;
  --reach-gold-hover: #ca8d27;
  --reach-ink-muted: #506978;
  --reach-line: #e3e2de;
  --reach-surface: #f8f7f3;
}

/* Account source banner was removed from Breakdance; this protects stale CSS caches. */
.woocommerce-account .woocommerce-MyAccount-content::before {
  content: none !important;
  display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0 !important;
}

.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error {
  box-sizing: border-box !important;
  min-height: 58px !important;
  padding: 15px 18px 15px 56px !important;
}

.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-error::before {
  left: 18px !important;
  flex: 0 0 22px !important;
}

.woocommerce-account .woocommerce-info .button,
.woocommerce-account .woocommerce-message .button,
.woocommerce-account .woocommerce-error .button {
  flex: 0 0 auto !important;
  margin: 0 0 0 auto !important;
}

.woocommerce-account .woocommerce-Addresses {
  align-items: stretch !important;
}

.woocommerce-account .woocommerce-Address {
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce-account .woocommerce-Address address {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.woocommerce-account .woocommerce-PaymentMethods,
.woocommerce-account #add_payment_method,
.woocommerce-account #wc-woocommerce_payments-upe-form,
.woocommerce-account .payment_box {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.woocommerce-account #add_payment_method fieldset,
.woocommerce-account #add_payment_method .form-row {
  min-width: 0 !important;
}

.woocommerce-account #add_payment_method iframe,
.woocommerce-account #add_payment_method .wcpay-upe-element,
.woocommerce-account #add_payment_method .StripeElement {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.woocommerce-account .reach-account-panel {
  padding: 2px 0;
}

.woocommerce-account .reach-account-empty {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--reach-line);
  border-radius: 12px;
  background: var(--reach-surface);
  color: var(--reach-ink-muted);
}

.woocommerce-account .reach-account-table {
  overflow-x: auto;
  margin-top: 18px;
}

.reach-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--reach-navy-2);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.reach-status--approved { background: #eaf4ed; color: #315d41; }
.reach-status--declined,
.reach-status--expired { background: #fff1ef; color: #7e3130; }

/* Breakdance side-cart: contain every child and provide an intentional action hierarchy. */
.reach-header-mini-cart .bde-mini-cart-offcanvas,
.reach-header-mini-cart .bde-mini-cart-offcanvas-body,
.reach-header-mini-cart .bde-mini-cart-offcanvas-content,
.reach-header-mini-cart .bde-mini-cart-offcanvas-footer,
.reach-header-mini-cart .woocommerce-mini-cart {
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.reach-header-mini-cart .bde-mini-cart-item {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
}

.reach-header-mini-cart .bde-mini-cart-item > *,
.reach-header-mini-cart .bde-mini-cart-item-title,
.reach-header-mini-cart .bde-mini-cart-quantity {
  min-width: 0 !important;
}

.reach-header-mini-cart .bde-mini-cart-item-title,
.reach-header-mini-cart .bde-mini-cart-item-title * {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.reach-header-mini-cart .bde-mini-cart-quantity .quantity {
  display: grid !important;
  grid-template-columns: repeat(3, 44px) !important;
  width: 134px !important;
  min-width: 134px !important;
  min-height: 46px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid #ccd2d5 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.reach-header-mini-cart .bde-mini-cart-quantity .bde-quantity-button,
.reach-header-mini-cart .bde-mini-cart-quantity input.qty {
  position: static !important;
  box-sizing: border-box !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.reach-header-mini-cart .bde-mini-cart-quantity .bde-quantity-button {
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f7f7f4 !important;
  color: var(--reach-navy) !important;
  font-size: 19px !important;
  touch-action: manipulation;
}

.reach-header-mini-cart .bde-mini-cart-quantity .bde-quantity-button:disabled {
  cursor: not-allowed !important;
  opacity: .42 !important;
}

.reach-header-mini-cart .bde-mini-cart-quantity input.qty {
  border: 0 !important;
  border-right: 1px solid var(--reach-line) !important;
  border-left: 1px solid var(--reach-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--reach-navy) !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  line-height: 44px !important;
  text-align: center !important;
}

.reach-header-mini-cart .bde-mini-cart-quantity > .amount {
  margin-left: auto !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.reach-header-mini-cart .bde-mini-cart-offcanvas-footer {
  border-top: 1px solid var(--reach-line) !important;
  background: #fff !important;
  box-shadow: 0 -10px 28px rgba(27,42,56,.08) !important;
}

.reach-header-mini-cart .woocommerce-mini-cart__total {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid var(--reach-line) !important;
}

.reach-header-mini-cart .woocommerce-mini-cart__buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
}

.reach-header-mini-cart .woocommerce-mini-cart__buttons .button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.reach-header-mini-cart .woocommerce-mini-cart__buttons .button:not(.checkout) {
  border: 1px solid var(--reach-navy) !important;
  background: var(--reach-navy) !important;
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(27,42,56,.16) !important;
}

.reach-header-mini-cart .woocommerce-mini-cart__buttons .button.checkout {
  border: 1px solid var(--reach-gold) !important;
  background: var(--reach-gold) !important;
  color: var(--reach-navy) !important;
  box-shadow: 0 6px 16px rgba(185,125,17,.2) !important;
}

.reach-header-mini-cart .bde-mini-cart-continue-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  margin: 12px 0 0 !important;
  padding: 8px !important;
  color: var(--reach-navy-2) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Checkout: protect readable word boundaries and give product details enough width. */
.woocommerce-checkout-review-order,
.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout-review-order-table tr,
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.woocommerce-checkout-review-order-table .product-name,
.woocommerce-checkout-review-order-table .product-name *,
.woocommerce-checkout-review-order-table .variation,
.woocommerce-checkout-review-order-table .variation * {
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
}

.woocommerce-checkout-review-order-table .product-name {
  width: auto !important;
  padding-right: 16px !important;
}

.woocommerce-checkout-review-order-table .product-total {
  width: 30% !important;
  min-width: 86px !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.woocommerce-checkout #payment,
.woocommerce-checkout #payment .payment_box,
.woocommerce-checkout #wc-woocommerce_payments-upe-form,
.woocommerce-checkout .wcpay-upe-element,
.woocommerce-checkout .StripeElement {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Shop and contact: align existing content; no structural redesign. */
.post-type-archive-product .bde-rich-text,
.post-type-archive-product .term-description,
.post-type-archive-product .woocommerce-products-header,
.page-id-43 .bde-rich-text,
.page-id-43 form {
  max-width: 100% !important;
}

.post-type-archive-product .products {
  align-items: stretch !important;
}

.post-type-archive-product .products .product {
  min-width: 0 !important;
}

.page-id-43 form .form-row,
.page-id-43 form label,
.page-id-43 form input,
.page-id-43 form select,
.page-id-43 form textarea {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Shared Price Match workflow. */
.reach-price-match {
  box-sizing: border-box;
  width: min(100%, 1040px);
  margin: 0 auto;
  color: var(--reach-navy);
  font-family: Inter, sans-serif;
}

.reach-price-match *,
.reach-price-match *::before,
.reach-price-match *::after { box-sizing: border-box; }

.reach-price-match__intro {
  margin-bottom: 24px;
  padding: clamp(22px,4vw,38px);
  border-radius: 16px;
  background: var(--reach-navy);
  color: #fff;
}

.reach-price-match__intro h2 {
  margin: 5px 0 10px;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: clamp(26px,4vw,40px);
  line-height: 1.15;
}

.reach-price-match__intro p { margin: 0; line-height: 1.65; }
.reach-price-match__eyebrow { color: #f3c96f; font-size: 12px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }

.reach-price-match__notice {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #cbded1;
  border-left: 4px solid #4c7a5d;
  border-radius: 10px;
  background: #f5f9f6;
  line-height: 1.55;
}

.reach-price-match__rules {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.reach-price-match__rules > div {
  padding: 22px;
  border: 1px solid var(--reach-line);
  border-radius: 12px;
  background: #fff;
}

.reach-price-match__rules h3 { margin: 0 0 12px; font-family: Manrope,sans-serif; font-size: 19px; }
.reach-price-match__rules ul { margin: 0; padding-left: 20px; color: var(--reach-ink-muted); line-height: 1.6; }
.reach-price-match__rules li + li { margin-top: 7px; }

.reach-price-match__form {
  padding: clamp(18px,4vw,32px);
  border: 1px solid var(--reach-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(27,42,56,.07);
}

.reach-price-match__form fieldset {
  min-width: 0;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.reach-price-match__form legend {
  width: 100%;
  margin: 0 0 15px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--reach-line);
  color: var(--reach-navy);
  font-family: Manrope,sans-serif;
  font-size: 20px;
  font-weight: 750;
}

.reach-price-match__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.reach-price-match label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: var(--reach-navy);
  font-size: 14px;
  font-weight: 700;
}

.reach-price-match__wide { grid-column: 1 / -1; }

.reach-price-match input:not([type="checkbox"]),
.reach-price-match select,
.reach-price-match textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #c7ced2;
  border-radius: 8px;
  background: #fff;
  color: var(--reach-navy);
  font: 400 16px/1.35 Inter,sans-serif;
}

.reach-price-match textarea { min-height: 112px; resize: vertical; }
.reach-price-match input[type="file"] { min-height: 50px; background: var(--reach-surface); }
.reach-price-match input:focus,
.reach-price-match select:focus,
.reach-price-match textarea:focus { outline: 3px solid rgba(226,166,60,.34); outline-offset: 1px; border-color: var(--reach-navy-2); }

.reach-price-match__agreement {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  margin: 22px 0;
  padding: 15px;
  border-radius: 9px;
  background: var(--reach-surface);
  font-weight: 550 !important;
  line-height: 1.5;
}

.reach-price-match__agreement input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--reach-gold); }
.reach-price-match__submit { min-height: 50px !important; padding: 12px 20px !important; border: 1px solid var(--reach-gold) !important; border-radius: 9px !important; background: var(--reach-gold) !important; color: var(--reach-navy) !important; font-weight: 800 !important; }
.reach-price-match__submit:hover { background: var(--reach-gold-hover) !important; }
.reach-price-match__trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.reach-price-match-product-link { margin: 12px 0 0; font-size: 13px; }
.reach-price-match-product-link a { color: var(--reach-navy-2); font-weight: 700; text-decoration: underline; text-decoration-color: var(--reach-gold); text-underline-offset: 3px; }

@media (max-width: 767px) {
  .woocommerce-account .woocommerce-info,
  .woocommerce-account .woocommerce-message,
  .woocommerce-account .woocommerce-error {
    display: grid !important;
    grid-template-columns: 24px minmax(0,1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .woocommerce-account .woocommerce-info::before,
  .woocommerce-account .woocommerce-message::before,
  .woocommerce-account .woocommerce-error::before {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    transform: none !important;
  }

  .woocommerce-account .woocommerce-info .button,
  .woocommerce-account .woocommerce-message .button,
  .woocommerce-account .woocommerce-error .button {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 4px 0 0 !important;
  }

  .woocommerce-account .woocommerce-Address-title {
    gap: 12px !important;
  }

  .reach-header-mini-cart .bde-mini-cart-offcanvas-body { width: min(100vw,420px) !important; }
  .reach-header-mini-cart .bde-mini-cart-item { grid-template-columns: 72px minmax(0,1fr) 44px !important; gap: 10px !important; padding: 16px 14px !important; }
  .reach-header-mini-cart .bde-mini-cart-quantity { gap: 12px !important; }
  .reach-header-mini-cart .bde-mini-cart-offcanvas-footer { padding: 17px 14px !important; }

  .woocommerce-checkout-review-order-table .product-name { padding-right: 12px !important; }
  .woocommerce-checkout-review-order-table .product-total { width: 32% !important; min-width: 78px !important; }

  .reach-price-match__rules,
  .reach-price-match__grid { grid-template-columns: 1fr; }
  .reach-price-match__wide { grid-column: auto; }
}

@media (max-width: 359px) {
  .reach-header-mini-cart .bde-mini-cart-item { grid-template-columns: 64px minmax(0,1fr) 44px !important; padding-right: 12px !important; padding-left: 12px !important; }
  .reach-header-mini-cart .bde-mini-cart-quantity { align-items: flex-end !important; flex-direction: column !important; gap: 10px !important; }
  .reach-header-mini-cart .bde-mini-cart-quantity > .amount { margin: 0 !important; }
  .reach-header-mini-cart .woocommerce-mini-cart__buttons { grid-template-columns: 1fr !important; }
  .reach-price-match__form { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reach-price-match *,
  .reach-header-mini-cart * { scroll-behavior: auto !important; transition: none !important; }
}
