/* UTRADY Website Studio v1.10.1.1 - Shared Commerce CTA contrast.
   Applies to ALL published Studio sectors and themes. No JS, orders, payments or login changes.
   Palette: use StudioPalette's published --ws-control-primary / --ws-control-on-primary.
   Fix: older merchant primary backgrounds and text colors were cascading independently. */
.ws2-body.ws2-published-palette .ws211-product .ws2-legacy button[wire\:click="addToCart"],
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="addToCart"] {
  background-color:var(--ws-control-primary,var(--ws2-accent))!important;
  color:var(--ws-control-on-primary,var(--ws2-contrast))!important;
  border:1px solid var(--ws-control-primary,var(--ws2-accent))!important;
  box-shadow:none!important;
  opacity:1;
}
/* Child span/icon must not fall back to legacy theme ink. */
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="addToCart"] :is(span,svg,svg *) {
  color:inherit!important;
  stroke:currentColor;
}
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="addToCart"]:hover:not(:disabled) {
  background-color:var(--ws-control-hover,var(--ws2-accent))!important;
  border-color:var(--ws-control-hover,var(--ws2-accent))!important;
}
/* Secondary action: contrasting outline instead of inheriting a hardcoded old primary. */
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="buyNow"] {
  background-color:transparent!important;
  color:var(--ws2-fg)!important;
  border:1px solid var(--ws2-line)!important;
  box-shadow:none!important;
}
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="buyNow"] :is(span,svg,svg *) {
  color:inherit!important;
  stroke:currentColor;
}
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="buyNow"]:hover:not(:disabled) {
  background-color:var(--ws2-panel)!important;
  border-color:var(--ws2-accent)!important;
}
/* Direct focus must remain accessible for keyboard shoppers. */
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="addToCart"]:focus-visible,
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="buyNow"]:focus-visible {
  outline:3px solid var(--ws2-accent)!important;
  outline-offset:3px;
}
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="addToCart"]:disabled,
.ws2-body.ws2-published-palette .ws2-page-product-details .ws2-legacy button[wire\:click="buyNow"]:disabled {
  opacity:.55!important;
  cursor:not-allowed;
}
