/* ============================================================
   ORACLE HAVEN — WooCommerce styling (v2.0)
   Covers: notices, forms, tabs, reviews, classic cart/checkout,
   order-received, My Account and the WooCommerce Cart/Checkout BLOCKS.
   Colours come only from theme tokens so every theme stays readable.
   ============================================================ */

/* ── Notices ── */
.woocommerce-notices-wrapper { margin-bottom: 18px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; list-style: none;
  margin: 0 0 20px; padding: 16px 20px 16px 52px; background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border-accent); border-left-width: 4px; border-radius: var(--radius-md); font-size: .94rem;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 800; font-family: var(--font-body);
}
.woocommerce-info::before { content: "i"; }
.woocommerce-error { border-color: var(--danger); background: var(--danger-bg); }
.woocommerce-error::before { content: "!"; background: var(--danger); color: #1a0505; }
.woocommerce-message a.button, .woocommerce-info a.button { margin-left: auto; order: 2; }
.woocommerce-error li { list-style: none; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a { color: var(--accent-text); font-weight: 700; text-decoration: underline; }

/* ── Buttons ── */
body .woocommerce a.button, body .woocommerce button.button, body .woocommerce input.button, body .woocommerce #respond input#submit,
body .woocommerce a.button.alt, body .woocommerce button.button.alt, body .woocommerce input.button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 0; border-radius: var(--radius-md);
  background: var(--grad-accent); color: var(--on-accent); font-weight: 700; font-size: .93rem; line-height: 1.2; text-decoration: none;
  box-shadow: 0 6px 20px var(--accent-glow); transition: transform .2s, box-shadow .2s, opacity .2s;
}
body .woocommerce a.button:hover, body .woocommerce button.button:hover, body .woocommerce input.button:hover, body .woocommerce #respond input#submit:hover {
  background: var(--grad-accent); color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-glow); text-decoration: none;
}
body .woocommerce button.button:disabled, body .woocommerce button.button.disabled, body .woocommerce input.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
body .woocommerce a.button.wc-forward, body .woocommerce .button.wc-backward { box-shadow: none; }

/* ── Form fields (classic) ── */
.woocommerce form .form-row { margin: 0 0 18px; padding: 0; }
.woocommerce form .form-row label, .woocommerce-page form .form-row label { display: block; margin-bottom: 6px; color: var(--text-primary); font-size: .86rem; font-weight: 700; line-height: 1.3; }
.woocommerce form .form-row .required { color: var(--danger); text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { color: var(--text-muted); font-weight: 500; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce .woocommerce-input-wrapper input, .woocommerce input[type="text"], .woocommerce input[type="email"], .woocommerce input[type="tel"],
.woocommerce input[type="password"], .woocommerce input[type="number"], .woocommerce textarea, .woocommerce select, .woocommerce .select2-container--default .select2-selection--single {
  width: 100%; min-height: 48px; padding: 11px 14px; background: var(--bg-surface); color: var(--text-primary);
  border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: .95rem; line-height: 1.4; box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.woocommerce form .form-row textarea { min-height: 110px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus,
.woocommerce .select2-container--open .select2-selection--single, .woocommerce input:focus, .woocommerce textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--danger); }
.woocommerce select option { background: var(--bg-card); color: var(--text-primary); }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text-primary); line-height: 24px; padding: 0; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { top: 11px; right: 10px; }
.select2-dropdown { background: var(--bg-card) !important; border-color: var(--border) !important; color: var(--text-primary); border-radius: var(--radius-md) !important; overflow: hidden; z-index: 99999; }
.select2-container--default .select2-search--dropdown .select2-search__field { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border); border-radius: 8px; }
.select2-container--default .select2-results__option { color: var(--text-primary); padding: 9px 14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--accent) !important; color: var(--on-accent) !important; }
.select2-container--default .select2-results__option[aria-selected=true], .select2-container--default .select2-results__option[data-selected=true] { background: var(--accent-subtle); }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48.5%; }
.woocommerce form .form-row input[type="checkbox"], .woocommerce form .form-row input[type="radio"] { width: 18px; min-height: 0; height: 18px; accent-color: var(--accent); vertical-align: -3px; margin-right: 8px; }
.woocommerce .woocommerce-form__label-for-checkbox { display: flex !important; align-items: center; gap: 4px; font-weight: 600 !important; cursor: pointer; }
.woocommerce form .show-password-input { display: none; }

/* ── Cart (classic) ── */
.woocommerce-cart .entry-title, .woocommerce-checkout .entry-title { display: none; }
.woocommerce-cart table.shop_table, .woocommerce-checkout table.shop_table, .woocommerce-account table.shop_table {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); border-collapse: separate; border-spacing: 0; background: var(--bg-card); overflow: hidden; margin: 0 0 24px;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 16px 20px; border: 0; border-bottom: 1px solid var(--border-soft); color: var(--text-secondary); vertical-align: middle; text-align: left; }
.woocommerce table.shop_table thead th { background: var(--bg-surface); color: var(--text-muted); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.woocommerce table.shop_table tr:last-child > td, .woocommerce table.shop_table tr:last-child > th { border-bottom: 0; }
.woocommerce table.shop_table tfoot th { color: var(--text-primary); font-weight: 700; }
.woocommerce table.shop_table .product-name a { color: var(--text-primary); font-weight: 700; }
.woocommerce table.shop_table .product-name a:hover { color: var(--accent-text); }
.woocommerce table.shop_table .product-thumbnail { width: 92px; }
.woocommerce table.cart img, .woocommerce-checkout table.shop_table img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-surface); }
.woocommerce table.shop_table .amount, .woocommerce table.shop_table .woocommerce-Price-amount { color: var(--text-primary); font-weight: 700; }
.woocommerce table.shop_table .product-subtotal .amount, .woocommerce table.shop_table .order-total .amount { color: var(--accent-text); }
.woocommerce table.shop_table .order-total th, .woocommerce table.shop_table .order-total td { font-size: 1.1rem; color: var(--text-primary); border-top: 1px solid var(--border-accent); }
.woocommerce table.shop_table .order-total .amount { font: 700 1.4rem var(--font-head); }
.woocommerce a.remove { display: inline-grid !important; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary) !important; font-size: 1.2rem; line-height: 1; }
.woocommerce a.remove:hover { background: var(--danger) !important; color: #1a0505 !important; border-color: var(--danger); text-decoration: none; }
.woocommerce .quantity .qty { width: 78px; min-height: 44px; padding: 8px 10px; text-align: center; font-weight: 700; }
.woocommerce-cart .actions { padding: 16px 20px !important; background: var(--bg-surface); }
.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 10px; float: left; flex-wrap: wrap; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 190px; min-height: 44px; }
.woocommerce-cart table.cart td.actions > button[name="update_cart"] { float: right; }
.woocommerce-cart .cart-collaterals { display: flex; justify-content: flex-end; }
.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; max-width: 440px; float: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.woocommerce-cart .cart_totals h2 { font-size: 1.2rem; margin-bottom: 14px; }
.woocommerce-cart .cart_totals table.shop_table { border: 0; margin-bottom: 8px; background: transparent; }
.woocommerce-cart .cart_totals th, .woocommerce-cart .cart_totals td { padding: 12px 0; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; padding: 16px 24px; font-size: 1rem; margin: 0; }
.woocommerce-cart .cart-empty { text-align: center; }
.woocommerce .return-to-shop { text-align: center; margin: 24px 0 56px; }

/* ── Checkout (classic) ── */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 36px; align-items: start; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 4; float: none; width: 100%; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; max-width: none; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 14px; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--nav-height) + 20px); }
.woocommerce-checkout #customer_details h3, .woocommerce-checkout #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-additional-fields h3, .woocommerce-shipping-fields h3 {
  font-size: 1.15rem; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.woocommerce-billing-fields, .woocommerce-additional-fields, .woocommerce-shipping-fields { padding: 24px; margin-bottom: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.woocommerce-checkout #order_review table.shop_table { margin-bottom: 18px; }
.woocommerce-checkout #payment { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; overflow: hidden; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; margin: 0; padding: 8px 20px; border: 0; }
.woocommerce-checkout #payment ul.payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-primary); font-weight: 600; }
.woocommerce-checkout #payment ul.payment_methods li:last-child { border-bottom: 0; }
.woocommerce-checkout #payment ul.payment_methods li label { display: inline; margin: 0; color: var(--text-primary); cursor: pointer; }
.woocommerce-checkout #payment ul.payment_methods li input { accent-color: var(--accent); margin-right: 8px; }
.woocommerce-checkout #payment div.payment_box { margin: 10px 0 0; padding: 14px 16px; background: var(--bg-surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); color: var(--text-secondary); font-size: .88rem; font-weight: 400; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment div.payment_box p { margin: 0; }
.woocommerce-checkout #payment .woocommerce-notice, .woocommerce-checkout #payment li.woocommerce-notice { padding: 14px 16px; margin: 0; border: 1px solid var(--border-accent); border-radius: var(--radius-md); background: var(--accent-subtle); color: var(--text-primary); font-weight: 500; list-style: none; }
.woocommerce-checkout #payment .form-row.place-order { padding: 20px; margin: 0; background: var(--bg-surface); border-top: 1px solid var(--border); }
.woocommerce-checkout #place_order { width: 100%; padding: 17px 24px; font-size: 1.05rem; float: none; }
.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text { font-size: .84rem; color: var(--text-secondary); }
.woocommerce-privacy-policy-text p { margin: 0 0 14px; }
.woocommerce-terms-and-conditions-wrapper a, .woocommerce-privacy-policy-text a { color: var(--accent-text); text-decoration: underline; }
.woocommerce-checkout .woocommerce-form-coupon-toggle, .woocommerce-checkout .woocommerce-form-login-toggle { margin-bottom: 16px; }
.woocommerce-checkout form.checkout_coupon, .woocommerce-checkout form.woocommerce-form-login { padding: 20px; margin-bottom: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* ── Order received ── */
.woocommerce-order { max-width: 860px; margin: 0 auto; }
.woocommerce-thankyou-order-received { padding: 22px 26px; border: 1px solid var(--border-accent); border-radius: var(--radius-lg); background: var(--accent-subtle); color: var(--text-primary); font: 700 1.2rem var(--font-head); margin-bottom: 20px; }
ul.woocommerce-order-overview { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0 0 28px; padding: 0; }
ul.woocommerce-order-overview li { padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--text-primary); }
.woocommerce-order-details__title, .woocommerce-column__title, .woocommerce-order-downloads__title { font-size: 1.2rem; }
.woocommerce-bacs-bank-details h2 { font-size: 1.2rem; }
.woocommerce-customer-details address { padding: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-style: normal; }

/* ── My account ── */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 460px; margin: 0 auto; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 600; font-size: .92rem; }
.woocommerce-MyAccount-navigation li a:hover, .woocommerce-MyAccount-navigation li.is-active a { background: var(--accent-subtle); color: var(--accent-text); text-decoration: none; }
.woocommerce-MyAccount-content { padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-secondary); }
.woocommerce-account .u-columns { display: block; }
.woocommerce form.login, .woocommerce form.register { padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 0 0 20px; }
.woocommerce form.login h2, .woocommerce-account h2 { font-size: 1.4rem; }
.woocommerce-LostPassword a { color: var(--accent-text); }

/* ── Product tabs & reviews ── */
.woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 -1px; padding: 0; border: 0; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 22px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; color: var(--text-secondary); font-weight: 700; font-size: .92rem; }
.woocommerce-tabs ul.tabs li a:hover { color: var(--text-primary); text-decoration: none; }
.woocommerce-tabs ul.tabs li.active a { color: var(--accent-text); background: var(--bg-card); border-color: var(--border); }
.woocommerce-tabs .woocommerce-Tabs-panel { padding: 30px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); color: var(--text-secondary); margin: 0; }
.woocommerce-Tabs-panel h2 { font-size: 1.3rem; }
.woocommerce-Tabs-panel ul { margin: 0 0 1.2em 1.3em; } .woocommerce-Tabs-panel li { margin-bottom: .4em; }
.woocommerce-Tabs-panel h3 { margin-top: 1.4em; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 10px 14px; border-bottom: 1px solid var(--border-soft); text-align: left; }
.woocommerce-product-attributes th { color: var(--text-muted); width: 180px; }
#reviews #comments ol.commentlist { list-style: none; margin: 0; padding: 0; }
#reviews #comments ol.commentlist li .comment_container { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
#reviews #comments ol.commentlist li img.avatar { position: static; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); }
#reviews #comments ol.commentlist li .comment-text { margin: 0; padding: 0; border: 0; flex: 1; }
#reviews .comment-reply-title { display: block; font: 700 1.1rem var(--font-head); color: var(--text-primary); margin-bottom: 14px; }
#reviews .comment-form label { color: var(--text-primary); font-weight: 600; }
#reviews .comment-form textarea, #reviews .comment-form input[type="text"], #reviews .comment-form input[type="email"] { width: 100%; padding: 12px 14px; background: var(--bg-surface); color: var(--text-primary); border: 1.5px solid var(--border); border-radius: var(--radius-md); }
#reviews .comment-form .form-submit input#submit { padding: 12px 26px; border: 0; border-radius: var(--radius-md); background: var(--grad-accent); color: var(--on-accent); font-weight: 700; cursor: pointer; }
.woocommerce .star-rating { color: #f5b301; }
.woocommerce p.stars a { color: #f5b301; }
.woocommerce-review__author { color: var(--text-primary); }
.woocommerce-review__published-date, .woocommerce-review__dash { color: var(--text-muted); }

/* ── Mini bits ── */
.woocommerce-breadcrumb { display: none; }
.woocommerce ul.products { display: none; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name { color: var(--text-primary); }
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-quantity { color: var(--text-muted); font-weight: 600; }
.woocommerce-checkout-review-order-table .variation { color: var(--text-muted); font-size: .85rem; }

@media (max-width: 900px) {
  .woocommerce-checkout form.checkout { display: block; }
  .woocommerce-checkout #order_review { position: static; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-cart .cart-collaterals .cart_totals { max-width: none; }
  .woocommerce-cart table.cart td.actions .coupon, .woocommerce-cart table.cart td.actions > button[name="update_cart"] { float: none; width: 100%; }
  .woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
  .woocommerce-cart table.cart td.actions > button[name="update_cart"] { margin-top: 10px; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
}

/* ============================================================
   WooCommerce BLOCKS cart & checkout (so the block checkout is
   readable and on-brand in every theme)
   ============================================================ */
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .wc-block-checkout, .wc-block-cart { color: var(--text-secondary); }
.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-checkout__sidebar .wc-block-components-title,
.wc-block-components-order-summary .wc-block-components-product-name, .wc-block-cart__totals-title, .wc-block-components-totals-item__label,
.wc-block-components-totals-item__value, .wc-block-components-product-price, .wc-block-components-product-name,
.wc-block-components-order-summary-item__description, .wc-block-components-formatted-money-amount, .wc-block-checkout__terms,
.wc-block-components-checkbox__label, .wc-block-components-radio-control__label, .wc-block-components-checkout-step__description { color: var(--text-primary); }
.wc-block-components-checkout-step__description, .wc-block-components-checkbox__label, .wc-block-checkout__terms, .wc-block-components-address-form__address_2-toggle,
.wc-block-components-order-summary-item__description p, .wc-block-components-product-metadata { color: var(--text-secondary); }
.wc-block-checkout__terms a, .wc-block-components-address-form__address_2-toggle, .wc-block-components-checkout-return-to-cart-button, .wc-block-components-panel__button { color: var(--accent-text); }
.wc-block-components-checkout-step { border-color: var(--border); }
.wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 36px; }
.wc-block-checkout__sidebar, .wc-block-cart__sidebar { position: relative; }
.wc-block-components-order-summary, .wc-block-components-totals-wrapper, .wc-block-components-panel { border-color: var(--border) !important; }
.wc-block-components-sidebar .wc-block-components-totals-wrapper, .wc-block-checkout__sidebar > .wc-block-components-totals-wrapper { border-color: var(--border-soft) !important; }
.wc-block-checkout__sidebar .wc-block-components-order-summary, .wc-block-checkout__sidebar { }
.is-large.wc-block-checkout .wc-block-checkout__sidebar { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); align-self: start; }
.wc-block-components-order-summary-item__image img { border-radius: 8px; border: 1px solid var(--border); background: var(--bg-surface); }
.wc-block-components-order-summary-item__quantity { background: var(--accent); color: var(--on-accent); border: 2px solid var(--bg-card); box-shadow: none; font-weight: 800; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount { color: var(--accent-text); font-family: var(--font-head); }

/* inputs */
.wc-block-components-text-input input[type="text"], .wc-block-components-text-input input[type="email"], .wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"], .wc-block-components-text-input input[type="password"], .wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-textarea, .wc-block-components-combobox .components-combobox-control input, .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-country-input select, .wc-block-components-state-input select, .wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-select .wc-block-components-select__select, .wc-block-components-totals-coupon__input input, .wc-block-components-address-form select {
  background-color: var(--bg-surface) !important; color: var(--text-primary) !important; border: 1.5px solid var(--border) !important; border-radius: var(--radius-md) !important; box-shadow: none !important;
}
.wc-block-components-text-input input:focus, .wc-block-components-textarea:focus, .wc-block-components-combobox-control input:focus, .wc-blocks-components-select__select:focus,
.wc-block-components-select .wc-block-components-select__select:focus, .wc-block-components-totals-coupon__input input:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-glow) !important; outline: none !important;
}
.wc-block-components-text-input label, .wc-block-components-combobox .components-form-token-field__label, .wc-block-components-country-input label,
.wc-block-components-state-input label, .wc-blocks-components-select__label, .wc-block-components-select .wc-block-components-select__label,
.wc-block-components-combobox-control label, .wc-block-components-totals-coupon__input label, .wc-block-components-textarea + label { color: var(--text-secondary) !important; }
.wc-block-components-text-input.is-active label, .wc-block-components-text-input input:-webkit-autofill + label { color: var(--text-muted) !important; }
.wc-block-components-text-input input:-webkit-autofill { -webkit-text-fill-color: var(--text-primary); box-shadow: 0 0 0 100px var(--bg-surface) inset !important; }
.wc-block-components-text-input.has-error input, .wc-block-components-select.has-error select { border-color: var(--danger) !important; }
.wc-block-components-validation-error, .wc-block-components-validation-error p { color: var(--danger) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--on-accent); }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"], .wc-block-components-radio-control .wc-block-components-radio-control__input {
  background-color: var(--bg-surface) !important; border: 1.5px solid var(--border) !important;
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background-color: var(--accent) !important; border-color: var(--accent) !important; }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked { border-color: var(--accent) !important; }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--accent) !important; }

/* payment methods */
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control-accordion-option {
  border-color: var(--border) !important; background: var(--bg-card);
}
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--accent) !important; }
.wc-block-components-radio-control-accordion-content { background: var(--bg-surface); color: var(--text-secondary); border-top: 1px solid var(--border-soft); }
.wc-block-components-radio-control__description, .wc-block-components-radio-control__secondary-label { color: var(--text-secondary); }
.wc-block-checkout__payment-method .wc-block-components-radio-control { border-color: var(--border) !important; }

/* buttons */
.wc-block-components-button:not(.is-link), .wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button {
  background: var(--grad-accent) !important; color: var(--on-accent) !important; border: 0 !important; border-radius: var(--radius-md) !important;
  font-weight: 800 !important; padding: 15px 24px !important; box-shadow: 0 6px 20px var(--accent-glow) !important; transition: transform .2s, box-shadow .2s;
}
.wc-block-components-button:not(.is-link):hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-glow) !important; }
.wc-block-components-button.outlined, .wc-block-components-totals-coupon__button { background: transparent !important; color: var(--accent-text) !important; border: 1.5px solid var(--accent) !important; box-shadow: none !important; }
.wc-block-components-button__text { color: inherit; }
.wc-block-components-totals-coupon .wc-block-components-panel__button, .wc-block-components-panel__button { color: var(--text-primary); }

/* notices & errors */
.wc-block-components-notice-banner { background: var(--bg-card) !important; color: var(--text-primary) !important; border: 1px solid var(--border-accent) !important; border-radius: var(--radius-md) !important; }
.wc-block-components-notice-banner.is-error { background: var(--danger-bg) !important; border-color: var(--danger) !important; }
.wc-block-components-notice-banner.is-error > svg { background-color: var(--danger) !important; }
.wc-block-components-notice-banner.is-success > svg, .wc-block-components-notice-banner.is-info > svg { background-color: var(--accent) !important; fill: var(--on-accent) !important; }
.wc-block-components-notice-banner a, .wc-block-components-notice-banner .wc-block-components-button { color: var(--accent-text) !important; }
.wc-block-components-notice-banner.is-error a { color: var(--text-primary) !important; text-decoration: underline; }
.wc-block-checkout__no-payment-methods-notice, .wc-block-checkout__payment-method .wc-block-components-notice-banner { margin-top: 12px; }

/* cart block */
.wc-block-cart-items, .wc-block-cart-items th, .wc-block-cart-items td { border-color: var(--border) !important; color: var(--text-primary); }
.wc-block-cart-items__header th { color: var(--text-muted) !important; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.wc-block-cart-item__image img { border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); }
.wc-block-components-product-price__regular { color: var(--text-muted); }
.wc-block-components-quantity-selector { background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-md); }
.wc-block-components-quantity-selector::after { display: none; }
.wc-block-components-quantity-selector input { color: var(--text-primary); background: transparent; }
.wc-block-components-quantity-selector__button { color: var(--text-primary); }
.wc-block-cart__totals-title { font-family: var(--font-head); }
.wc-block-components-product-badge, .wc-block-components-sale-badge { background: var(--accent-subtle); color: var(--accent-text); border-color: var(--border-accent); }
.wc-block-cart__sidebar, .wc-block-cart__main { color: var(--text-primary); }
.wc-block-components-shipping-calculator-address .wc-block-components-text-input input { color: var(--text-primary); }

@media (max-width: 782px) {
  .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 0; }
}
