/* FlowTask WooCommerce bilingual presentation – scoped to the native WC pages. */
body.ftwc-active {
  --ftwc-panel: #111c33;
  --ftwc-field: #0b1427;
  --ftwc-line: #354765;
  --ftwc-text: #edf3ff;
  --ftwc-muted: #b3c2dc;
  --ftwc-accent: #1c6cf2;
  color-scheme: dark;
}
body.ftwc-active .ft-wc-page,
body.ftwc-active .woocommerce,
body.ftwc-active .wp-block-woocommerce-cart,
body.ftwc-active .wp-block-woocommerce-checkout { color: var(--ftwc-text); }

/* Original issue: yellow product amounts inherited from Woo. */
body.ftwc-active .woocommerce .price,
body.ftwc-active .woocommerce .price ins,
body.ftwc-active .woocommerce .price bdi,
body.ftwc-active .woocommerce .woocommerce-Price-amount,
body.ftwc-active .woocommerce div.product .summary .price,
body.ftwc-active .woocommerce div.product p.price,
body.ftwc-active .woocommerce div.product span.price,
body.ftwc-active .woocommerce .single_variation .price,
body.ftwc-active .wc-block-components-formatted-money-amount,
body.ftwc-active .wc-block-components-product-price,
body.ftwc-active .wc-block-components-totals-item__value,
body.ftwc-active .wc-block-components-order-summary-item__total-price,
body.ftwc-active .wc-block-cart-item__total-price-and-sale-badge,
body.ftwc-active .wc-block-components-total-item__value {
  color: #eaf1ff !important;
}
body.ftwc-active .woocommerce del .woocommerce-Price-amount,
body.ftwc-active .woocommerce .price del {color: var(--ftwc-muted) !important;opacity:.75;}
body.ftwc-active .woocommerce .price,
body.ftwc-active .woocommerce .single_variation .price {font-weight:750;}
body.ftwc-active .woocommerce .product_meta,
body.ftwc-active .woocommerce .product_meta a,
body.ftwc-active .woocommerce .sku_wrapper {color:var(--ftwc-muted) !important;}

/* Product variations; native OS dropdowns also get dark color-scheme. */
body.ftwc-active .woocommerce form.variations_form .variations select,
body.ftwc-active .woocommerce form.variations_form select,
body.ftwc-active .woocommerce form.cart select,
body.ftwc-active .ft-pkg-native-form select,
body.ftwc-active .woocommerce select {
  appearance: auto;
  color-scheme: dark;
  background-color: var(--ftwc-field) !important;
  color: var(--ftwc-text) !important;
  border:1px solid var(--ftwc-line) !important;
  border-radius:8px !important;
  padding:11px 12px;
  min-height:43px;
  max-width:100%;
}
body.ftwc-active .woocommerce select option,
body.ftwc-active .ft-pkg-native-form select option {
  background: var(--ftwc-field) !important;
  color: var(--ftwc-text) !important;
}
body.ftwc-active .woocommerce .variations th,
body.ftwc-active .woocommerce .variations td,
body.ftwc-active .woocommerce .variations label {color:var(--ftwc-text)!important;}
body.ftwc-active .woocommerce a.reset_variations {color:#91baff!important;}
body.ftwc-active .woocommerce form.cart input.qty {
  color:var(--ftwc-text)!important;
  background:var(--ftwc-field)!important;
  border:1px solid var(--ftwc-line)!important;
  border-radius:9px;
}
body.ftwc-active .woocommerce form.cart input:focus-visible,
body.ftwc-active .woocommerce form.cart select:focus-visible {outline:2px solid #76aaff!important;outline-offset:2px;}

/* WooCommerce blocks – don't recolor third-party embedded card/payment fields. */
body.ftwc-active :is(.wc-block-cart,.wc-block-checkout,.wc-block-components-sidebar,
  .wc-block-components-order-summary,.wc-block-components-form) {
  color:var(--ftwc-text);
  --wc-form-color-text: var(--ftwc-text);
  --wc-form-color-background: var(--ftwc-field);
  --wc-form-color-border: var(--ftwc-line);
  --wc-form-color-label: var(--ftwc-muted);
}
body.ftwc-active :is(.wc-block-cart,.wc-block-checkout) :is(h1,h2,h3,h4,h5,h6,p,
  .wc-block-components-title,.wc-block-components-checkout-step__heading,
  .wc-block-components-totals-item__label,.wc-block-components-order-summary-item__description,
  .wc-block-components-product-name,.wc-block-components-checkbox__label,
  .wc-block-components-radio-control__label,
  .wc-block-components-address-form__address_2-toggle,
  .wc-block-components-checkout-step__description) {color:var(--ftwc-text);}
body.ftwc-active :is(.wc-block-cart,.wc-block-checkout) :is(.wc-block-components-text-input,
  .wc-block-components-combobox,.wc-block-components-textarea) label {color:var(--ftwc-muted)!important;}
body.ftwc-active :is(.wc-block-cart,.wc-block-checkout) :is(
  .wc-block-components-text-input input,
  .wc-block-components-textarea textarea,
  .wc-block-components-combobox input,
  .wc-block-components-select select,
  .wc-block-components-quantity-selector input,
  .wc-block-components-address-form input,
  .wc-block-components-address-form select) {
  background-color:var(--ftwc-field)!important;
  color:var(--ftwc-text)!important;
  -webkit-text-fill-color:var(--ftwc-text);
  color-scheme:dark;
  border-color:var(--ftwc-line)!important;
  border-radius:7px;
}
body.ftwc-active :is(.wc-block-cart,.wc-block-checkout) input::placeholder,
body.ftwc-active :is(.wc-block-cart,.wc-block-checkout) textarea::placeholder {
  color:#8fa5c6!important;
  -webkit-text-fill-color:#8fa5c6;
}
body.ftwc-active :is(.wc-block-cart,.wc-block-checkout) :is(input,select,textarea):focus-visible {
  outline:2px solid #73a5ff!important; outline-offset:1px;
}
body.ftwc-active :is(.wc-block-cart,.wc-block-checkout) select option {
  background-color:var(--ftwc-field);color:var(--ftwc-text);
}
body.ftwc-active :is(.wc-block-cart,.wc-block-checkout) :is(
  .wc-block-components-order-summary,
  .wc-block-components-sidebar,
  .wc-block-components-radio-control__option,
  .wc-block-components-totals-coupon,
  .wc-block-components-panel) {
  color:var(--ftwc-text);
  border-color:var(--ftwc-line);
}
body.ftwc-active .wc-block-components-order-summary {
  background:var(--ftwc-panel);
}
body.ftwc-active .wc-block-components-order-summary-item__quantity {
  background:#111c33;color:#edf3ff;border-color:#48678e;box-shadow:0 0 0 2px #111c33;
}
body.ftwc-active .wc-block-components-combobox-control .components-combobox-control__suggestions-container,
body.ftwc-active .wc-block-components-combobox-control .components-combobox-control__suggestions-container li {
  background-color:var(--ftwc-field);color:var(--ftwc-text);
}
body.ftwc-active .woocommerce :is(button.button,a.button,input.button,button.single_add_to_cart_button),
body.ftwc-active .wc-block-components-button:not(.is-link) {
  background-color:var(--ftwc-accent)!important;
  color:#fff!important;
  border:1px solid transparent!important;
  border-radius:9px;
}
body.ftwc-active .woocommerce :is(button.button,a.button,input.button,button.single_add_to_cart_button):hover,
body.ftwc-active .wc-block-components-button:not(.is-link):hover {
  background-color:#3482ff!important;
  color:#fff!important;
}
body.ftwc-active .woocommerce a,
body.ftwc-active .wc-block-components-product-name,
body.ftwc-active .wc-block-cart a {color:#a7c6ff;}
body.ftwc-active .woocommerce .woocommerce-message,
body.ftwc-active .woocommerce .woocommerce-info {
  color:#dfebff;background:#15253f;border-top-color:#4f96ff;
}
body.ftwc-active .woocommerce .woocommerce-error {background:#351a27;color:#ffe3ec;}
body.ftwc-active :is(.wc-block-checkout,.wc-block-cart) :is(.wc-block-components-error,.wc-block-components-notice-banner) {color:inherit;}
body.ftwc-active .woocommerce table.shop_table,
body.ftwc-active .woocommerce table.shop_table :is(td,th) {color:var(--ftwc-text);border-color:#2b3b57;}
body.ftwc-active .woocommerce :is(input,textarea) {color-scheme:dark;}
body.ftwc-active .wc-block-components-checkbox input[type="checkbox"] {accent-color:#367dff;}
/* Leave actual payment provider widgets, fraud checks and browser autofill alone. */
@media (max-width:720px) {
  body.ftwc-active .woocommerce div.product form.cart .variations select {width:100%;}
  body.ftwc-active .wc-block-components-order-summary {padding-inline:12px;}
}
