/* ==========================================================================
   M Timepieces Core — WooCommerce cart, checkout and account pages in the
   design-system tokens (dark default, html[data-theme="light"]).
   ========================================================================== */
.woocommerce, .woocommerce-page { color: var(--text); }
.woocommerce h1, .woocommerce h2, .woocommerce h3, .woocommerce-page h1, .woocommerce-page h2, .woocommerce-page h3 { color: var(--ink); }
.woocommerce-checkout h3, .woocommerce-cart h2, .woocommerce-account h2 { font-size: 1.2rem; margin: 1.4rem 0 .9rem; }
.woocommerce a:not(.button):not(.remove) { color: var(--accent); }
.woocommerce ul, .woocommerce-page ul { color: var(--text); }

/* Tables */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; background: var(--surface); color: var(--text); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td, .woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot th, .woocommerce table.shop_table tfoot td { border-color: var(--line); color: var(--text); padding: .9rem 1rem; }
.woocommerce table.shop_table th { color: var(--ink); font-weight: 600; }
.woocommerce-cart table.cart img { width: 64px; border-radius: var(--r-sm); background: #e5dfdc; }
.woocommerce .wc-item-meta, .woocommerce dl.variation { list-style: none; padding-left: 0; margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.woocommerce .wc-item-meta li p, .woocommerce dl.variation dd p { margin: 0; }
.woocommerce dl.variation dt, .woocommerce dl.variation dd { color: var(--muted); }
.mtc-line-tag { color: var(--accent); font-weight: 600; font-size: .85em; }

/* Fields */
.woocommerce form .form-row label, .woocommerce-page form .form-row label { color: var(--ink); font-weight: 600; font-size: .86rem; }
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea,
.woocommerce-page form .form-row .input-text, .woocommerce-page form .form-row select, .woocommerce .quantity .qty,
.woocommerce #coupon_code { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm); min-height: 46px; padding: .6rem .9rem; font-size: 16px; }
.woocommerce form .form-row textarea { min-height: 110px; }
.woocommerce form .form-row .input-text:focus, .woocommerce form .form-row select:focus, .woocommerce form .form-row textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.woocommerce form .form-row.woocommerce-invalid .input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--danger); }
.woocommerce form .form-row .required { color: var(--danger); }
.select2-container--default .select2-selection--single { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); min-height: 46px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text); line-height: 44px; padding-left: .9rem; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.select2-dropdown { background: var(--surface); color: var(--text); border-color: var(--line); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--green); color: #fff; }
.select2-container--default .select2-results__option[aria-selected="true"], .select2-container--default .select2-results__option[data-selected="true"] { background: var(--soft); color: var(--ink); }
.select2-search--dropdown .select2-search__field { background: var(--soft); color: var(--text); border-color: var(--line); }

/* Buttons */
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #place_order {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: 999px; background: var(--green); color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: .92rem; line-height: 1.2; transition: background .25s;
}
.woocommerce #respond input#submit:hover, .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 #place_order:hover { background: var(--green-2); color: #fff; }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled], .woocommerce button.button.disabled { opacity: .5; background: var(--green); color: #fff; }
.woocommerce #place_order { width: 100%; min-height: 54px; font-size: 1rem; }
.woocommerce a.remove { color: var(--danger) !important; }
.woocommerce a.remove:hover { background: var(--danger); color: #fff !important; }

/* Boxes */
.woocommerce-checkout #payment, .woocommerce-cart .cart-collaterals .cart_totals { background: var(--soft); border-radius: var(--r); color: var(--text); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--line); }
.woocommerce-checkout #payment div.payment_box { background: var(--surface); color: var(--text); border-radius: var(--r-sm); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--surface); }
.woocommerce-checkout #payment ul.payment_methods li label { color: var(--ink); }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { color: var(--muted); font-size: .86rem; }
.mtc-checkout-note { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--pill-bg); color: var(--pill-text); font-size: .86rem; line-height: 1.5; }

/* Notices */
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews { background: var(--soft); color: var(--text); border-top: 3px solid var(--gold); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.woocommerce-message { border-top-color: var(--ok); }
.woocommerce-error { border-top-color: var(--danger); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--gold); }
.woocommerce-message::before { color: var(--ok); }
.woocommerce-error::before { color: var(--danger); }
.woocommerce-info .button, .woocommerce-message .button { min-height: 38px; padding: .5rem 1rem; }

/* Order received / account */
.woocommerce ul.order_details { color: var(--text); padding-left: 0; }
.woocommerce ul.order_details li { border-color: var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--accent); font-weight: 600; }

/* Block cart / checkout (if used instead of the shortcode pages) */
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-block-components-textarea { background-color: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; }
.wc-block-components-text-input label, .wc-block-components-combobox label { color: var(--muted) !important; }
.wc-block-components-button:not(.is-link) { background: var(--green); color: #fff; border-radius: 999px; }
.wc-block-components-button:not(.is-link):hover { background: var(--green-2); color: #fff; }

/* The design system makes images block-level; keep payment icons inline. */
.woocommerce-checkout #payment label img, .woocommerce-checkout #payment .payment_methods img { display: inline-block; vertical-align: middle; max-height: 26px; width: auto; margin-left: .3rem; }
