/* ============================================================
   Thimonz WooCommerce fixes — loads LAST, overrides everything.
   Cart & checkout are shortcode pages rendered through page.php
   inside .tmz-article (max-width:720px + amber-underlined links),
   which crushed the layout and leaked link styling into buttons.
   ============================================================ */

/* Full-width shell for WC shortcode pages (override .tmz-article 720px) */
.tmz-cart-page .tmz-article,
.tmz-checkout-page .tmz-article,
.tmz-account-page .tmz-article { max-width: none; margin: 0; }
.tmz-cart-page .tmz-article > p,
.tmz-checkout-page .tmz-article > p { font-size: var(--fs-body); }

/* Buttons inside the article must not inherit the amber-underline link style */
.tmz-cart-page .tmz-article a.tmz-btn,
.tmz-checkout-page .tmz-article a.tmz-btn { text-decoration: none; }
.tmz-cart-page .tmz-article a.tmz-btn--primary,
.tmz-checkout-page .tmz-article a.tmz-btn--primary,
.tmz-cart-page .tmz-article a.tmz-btn--primary:hover,
.tmz-checkout-page .tmz-article a.tmz-btn--primary:hover { color: var(--bone); }
.tmz-cart-page .tmz-article a.tmz-btn--secondary,
.tmz-checkout-page .tmz-article a.tmz-btn--secondary { color: var(--charcoal); }

/* Cart summary rows: now that the column is wide, keep label/value clean */
.tmz-cart-summary__row { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; font-size: var(--fs-body); }
.tmz-cart-summary__row > span:first-child { white-space: nowrap; }
.tmz-cart-summary__row > span:last-child { text-align: right; }
.tmz-cart-summary__row small, .tmz-cart-summary__row .includes_tax {
  display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--text-muted); margin-top: 2px;
}
.tmz-cart-summary__row--total .woocommerce-Price-amount { white-space: nowrap; }

/* WC notices: added-to-cart / info / error — clean card, no thick top bar */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bone-soft);
  border: 1px solid var(--hairline); border-left: 4px solid var(--amber);
  border-top: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 16px 20px; margin: 0 0 32px;
  list-style: none; color: var(--charcoal); font-size: var(--fs-body);
  box-shadow: var(--shadow-sm);
}
.woocommerce-message { border-left-color: #5a8a2b; }
.woocommerce-error { border-left-color: var(--error); flex-direction: column; align-items: flex-start; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { content: none !important; }
/* WC auto-focuses the success notice; suppress the global amber focus ring on it */
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus,
.woocommerce-message:focus-visible, .woocommerce-info:focus-visible { outline: none; box-shadow: var(--shadow-sm); }
.woocommerce-message a.button, .woocommerce-info a.button,
.woocommerce-message .button, .woocommerce-info .button {
  margin-left: auto; background: var(--charcoal) !important; color: var(--bone) !important;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; border: 0;
}
.woocommerce-message a.button:hover, .woocommerce-info a.button:hover { background: #2A2A30 !important; color: var(--bone) !important; }

/* Checkout: WC floats billing(.col-1)+shipping(.col-2) at 47% side by side.
   Stack them so the form gets the full left column width. */
.tmz-checkout-page .col2-set { width: 100%; display: block; }
.tmz-checkout-page .col2-set .col-1,
.tmz-checkout-page .col2-set .col-2 { float: none; width: 100%; max-width: 100%; padding: 0; }
.tmz-checkout-page .col2-set .col-2:not(:empty) { margin-top: 8px; }

/* Form fields */
.tmz-checkout-page .woocommerce form .form-row { padding: 0; margin: 0 0 18px; }
.tmz-checkout-page .woocommerce form .form-row label { font-weight: 600; font-size: 14px; margin-bottom: 6px; display: block; }
.tmz-checkout-page .woocommerce form .form-row .required { color: var(--error); border: 0; }
.tmz-checkout-page .woocommerce form .form-row input.input-text,
.tmz-checkout-page .woocommerce form .form-row textarea,
.tmz-checkout-page .woocommerce form .form-row select,
.tmz-checkout-page .woocommerce .select2-container--default .select2-selection--single {
  background: var(--bone-soft); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: 14px 16px; font-size: 16px; width: 100%; line-height: 1.3; min-height: 52px; height: auto;
}
.tmz-checkout-page .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 24px; padding: 0; color: var(--charcoal); }
.tmz-checkout-page .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 12px; }
.tmz-checkout-page .woocommerce form .form-row input.input-text:focus,
.tmz-checkout-page .woocommerce form .form-row textarea:focus,
.tmz-checkout-page .woocommerce form .form-row select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200,132,43,.18); }
@media (min-width: 560px) {
  .tmz-checkout-page .woocommerce form .form-row-first { float: left; width: 48%; margin-right: 4%; }
  .tmz-checkout-page .woocommerce form .form-row-last { float: right; width: 48%; margin-right: 0; }
  .tmz-checkout-page .woocommerce form .form-row-wide,
  .tmz-checkout-page .woocommerce form p.form-row.notes { clear: both; }
}

/* "Ship to a different address?" + order notes headings shouldn't dominate */
.tmz-checkout-page .woocommerce-shipping-fields > h3,
.tmz-checkout-page .woocommerce-additional-fields > h3,
.tmz-checkout-page #ship-to-different-address { font-size: var(--fs-h3); margin: 8px 0 16px; }
.tmz-checkout-page #ship-to-different-address label { font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.tmz-checkout-page #ship-to-different-address-checkbox { width: 18px; height: 18px; accent-color: var(--amber); }

/* Order review table — borderless, airy */
.tmz-checkout-page .tmz-cart-summary { gap: 0; }
.tmz-checkout-page .tmz-cart-summary > h3 { margin-bottom: 16px; }
.tmz-checkout-page .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; margin: 0 0 8px; background: transparent; border: 0; }
.tmz-checkout-page .woocommerce-checkout-review-order-table th,
.tmz-checkout-page .woocommerce-checkout-review-order-table td {
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--hairline);
  text-align: left; vertical-align: top; font-size: 14px; background: transparent;
}
.tmz-checkout-page .woocommerce-checkout-review-order-table thead th { font-size: 12px; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); }
.tmz-checkout-page .woocommerce-checkout-review-order-table td:last-child,
.tmz-checkout-page .woocommerce-checkout-review-order-table th:last-child { text-align: right; white-space: nowrap; }
.tmz-checkout-page .woocommerce-checkout-review-order-table .order-total th,
.tmz-checkout-page .woocommerce-checkout-review-order-table .order-total td {
  font-family: var(--font-display); font-weight: 800; font-size: 20px; border-bottom: 0; padding-top: 18px;
}
.tmz-checkout-page .woocommerce-checkout-review-order-table .order-total .includes_tax,
.tmz-checkout-page .woocommerce-checkout-review-order-table small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--text-muted); }
.tmz-checkout-page ul#shipping_method { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tmz-checkout-page ul#shipping_method li { display: flex; gap: 8px; align-items: baseline; }
.tmz-checkout-page ul#shipping_method li input { accent-color: var(--amber); }

/* Payment box */
.tmz-checkout-page #payment { background: transparent; border: 0; padding: 0; border-radius: 0; }
.tmz-checkout-page #payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0; border: 0; background: transparent; }
.tmz-checkout-page #payment ul.payment_methods li {
  background: var(--bone); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 16px 18px; margin: 0 0 12px; list-style: none;
}
.tmz-checkout-page #payment ul.payment_methods li > label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; cursor: pointer;
}
.tmz-checkout-page #payment ul.payment_methods li input[type=radio] { accent-color: var(--amber); width: 18px; height: 18px; margin: 0; }
.tmz-checkout-page #payment ul.payment_methods li label img { display: inline-block; max-height: 26px; width: auto; margin: 0 0 0 4px; vertical-align: middle; }
.tmz-checkout-page #payment .payment_box {
  background: transparent !important; margin: 14px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text-muted); border-radius: 0;
}
.tmz-checkout-page #payment .payment_box::before { content: none !important; }
.tmz-checkout-page #payment .woocommerce-privacy-policy-text { font-size: 13px; color: var(--text-muted); margin: 4px 0 16px; }
.tmz-checkout-page #payment .place-order { padding: 8px 0 0; }
.tmz-checkout-page #payment button#place_order, .tmz-checkout-page #payment input#place_order {
  width: 100%; background: var(--charcoal); color: var(--bone); border: 0; cursor: pointer;
  padding: 18px 32px; border-radius: var(--radius-pill); font-weight: 700; font-size: var(--fs-body); line-height: 1; white-space: normal;
}
.tmz-checkout-page #payment button#place_order:hover, .tmz-checkout-page #payment input#place_order:hover { background: #2A2A30; }

/* ============================================================
   On-brand dropdowns + no purple buttons (added 2026-06-30)
   WooCommerce variable products (APEX, NECTAR) render the native
   variations_form: an unstyled <select> "Choose an option" and a
   .single_add_to_cart_button.button.alt that paints WC's default
   mauve (#a46497). Restyle native selects sitewide and reskin every
   native WC button as the brand charcoal pill. Checkout selects use
   select2 + their own block above, so they are excluded here.
   ============================================================ */

/* ── Native dropdowns: bone fill, hairline border, custom charcoal caret ── */
body:not(.tmz-checkout-page) select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  font-family: var(--font-body); font-size: 16px; font-weight: 500; line-height: 1.3;
  color: var(--charcoal);
  background-color: var(--bone-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A1A1F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 13px;
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 13px 46px 13px 16px; min-height: 50px;
  width: auto; min-width: 220px; max-width: 100%;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
body:not(.tmz-checkout-page) select:hover { border-color: rgba(26,26,31,0.30); }
body:not(.tmz-checkout-page) select:focus,
body:not(.tmz-checkout-page) select:focus-visible {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200,132,43,.18);
}

/* ── PDP variation row: stack the label over a full-width dropdown ── */
.woocommerce .variations { width: 100%; margin: 0 0 16px; border: 0; border-collapse: collapse; }
.woocommerce .variations tbody, .woocommerce .variations tr { display: block; }
.woocommerce .variations th.label,
.woocommerce .variations td.value { display: block; width: auto; padding: 0; text-align: left; vertical-align: top; }
.woocommerce .variations th.label { margin-bottom: 8px; }
.woocommerce .variations th.label label {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted);
}
.woocommerce .variations td.value select { width: 100%; min-width: 0; max-width: 360px; }
.woocommerce .variations td.value { position: relative; }
.woocommerce a.reset_variations {
  display: inline-block; margin: 10px 0 0; font-size: 13px; color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 2px;
}
.woocommerce a.reset_variations:hover { color: var(--charcoal); }
.woocommerce .single_variation { margin: 4px 0 14px; }
.woocommerce .single_variation .price { font-family: var(--font-display); font-weight: 800; color: var(--charcoal); }
.woocommerce .woocommerce-variation-availability .stock { color: var(--text-muted); font-size: 14px; }

/* ── Native quantity stepper input on-brand ── */
.woocommerce .quantity .qty,
.woocommerce input.qty {
  font-family: var(--font-body); font-size: 16px; color: var(--charcoal);
  background: var(--bone-soft); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: 12px 8px; min-height: 50px;
  width: 76px; text-align: center;
}
.woocommerce .quantity .qty:focus,
.woocommerce input.qty:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200,132,43,.18); }

/* ── Kill the mauve: reskin every native WC button as the brand pill ── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
button.single_add_to_cart_button {
  background-color: var(--charcoal) !important;
  color: var(--bone) !important;
  border: 0 !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body);
  line-height: 1; letter-spacing: 0; text-transform: none; text-decoration: none; text-shadow: none;
  padding: 16px 32px; cursor: pointer;
  transition: background-color var(--t-base) var(--ease);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
button.single_add_to_cart_button:hover {
  background-color: #2A2A30 !important;
  color: var(--bone) !important;
}
.woocommerce .single_add_to_cart_button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 360px; margin-top: 6px;
}
/* Disabled add-to-cart (no variation chosen yet) reads as muted, not purple */
.woocommerce .single_add_to_cart_button.disabled,
.woocommerce .single_add_to_cart_button:disabled {
  background-color: var(--graphite) !important; color: var(--bone) !important; opacity: .55; cursor: not-allowed;
}
/* "View cart" link WC injects after an AJAX add */
.woocommerce a.added_to_cart {
  display: inline-block; margin-left: 14px; color: var(--charcoal);
  text-decoration: underline; text-underline-offset: 3px; font-weight: 600;
}
