/* Couleurs communes aux boutons et actions ADAMS. */
body :is(button, input[type="submit"], input[type="button"], a.button, .round-arrow, .adams-card-arrow, .adams-card-cart, .adams-panel-cart-link, .adams-panel-checkout, .wc-block-components-button) {
  background: var(--accent, #ff862a) !important;
  color: #fff !important;
  border-color: var(--accent, #ff862a) !important;
}
body :is(button, input[type="submit"], input[type="button"], a.button, .round-arrow, .adams-card-arrow, .adams-card-cart, .adams-panel-cart-link, .adams-panel-checkout, .wc-block-components-button):hover {
  background: #f5791b !important;
  color: #fff !important;
  border-color: #f5791b !important;
}
body :is(button, input[type="submit"], input[type="button"]):disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Voir le produit : action secondaire en contour orange. */
body a.adams-card-arrow,
body a.adams-card-arrow:hover,
body a.adams-card-arrow:focus-visible {
  background: #fff !important;
  color: var(--accent, #ff862a) !important;
  border-color: var(--accent, #ff862a) !important;
}

/* Sélecteur de quantité : commandes discrètes. */
body .adams-purchase-panel button.adams-qty-step,
body .adams-purchase-panel button.adams-qty-step:hover {
  background:#fff !important;
  color:#706b65 !important;
  border-color:transparent !important;
  transition:color .16s ease;
}
body .adams-purchase-panel button.adams-qty-step:hover:not(:disabled),
body .adams-purchase-panel button.adams-qty-step:focus-visible:not(:disabled) {
  color:var(--accent, #ff862a) !important;
}
body .adams-purchase-panel button.adams-qty-step:disabled {
  color:#aaa39a !important;
  opacity:1;
}

/* Quantité et suppression dans le panneau panier. */
body #adams-cart-panel .adams-panel-quantity button,
body #adams-cart-panel .adams-panel-quantity button:hover {
 background:#fff!important;color:#706b65!important;border-color:transparent!important;
 opacity:1;transition:color .16s ease;
}
body #adams-cart-panel .adams-panel-quantity button:hover:not(:disabled),
body #adams-cart-panel .adams-panel-quantity button:focus-visible:not(:disabled){color:var(--accent)!important}
body #adams-cart-panel .adams-panel-quantity button:disabled{color:#aaa39a!important}
#adams-cart-panel .adams-panel-quantity{background:#fff;border-color:#d9cdbf}
#adams-cart-panel .adams-panel-quantity>span{display:inline-block;color:#292623}
body #adams-cart-panel button.adams-panel-remove,
body #adams-cart-panel button.adams-panel-remove:hover {
 background:transparent!important;border:0!important;color:#bbb6b0!important;
 width:36px;height:36px;display:grid;place-items:center;padding:0;text-decoration:none;
 font:300 21px/1 Arial,sans-serif;transition:color .16s ease;flex-shrink:0;
}
body #adams-cart-panel button.adams-panel-remove:hover:not(:disabled),
body #adams-cart-panel button.adams-panel-remove:focus-visible:not(:disabled){color:var(--accent)!important}
@media(pointer:coarse){#adams-cart-panel .adams-panel-quantity button{width:40px;height:44px}body #adams-cart-panel button.adams-panel-remove{width:44px;height:44px}}

/* Hiérarchie des actions du panier. */
body #adams-cart-panel button.adams-cart-continue,
body #adams-cart-panel button.adams-cart-continue:hover,
body #adams-cart-panel button.adams-cart-continue:focus-visible {
 background:transparent!important;color:#706b65!important;border:0!important;
 text-decoration:none;
}
body #adams-cart-panel a.adams-panel-cart-link,
body #adams-cart-panel a.adams-panel-cart-link:hover,
body #adams-cart-panel a.adams-panel-cart-link:focus-visible {
 background:#fff!important;color:var(--accent)!important;border:1px solid var(--accent)!important;
}

/* Favoris de la fiche produit : action secondaire. */
body .adams-detail-save button.adams-wish-toggle,
body .adams-detail-save button.adams-wish-toggle:hover {
 background:#fff!important;color:#706b65!important;border-color:#ded7cf!important;
}
body .adams-detail-save button.adams-wish-toggle:hover,
body .adams-detail-save button.adams-wish-toggle:focus-visible,
body .adams-detail-save button.adams-wish-toggle[aria-pressed="true"] {
 background:#fff!important;color:var(--accent)!important;border-color:var(--accent)!important;
}

/* Favoris dans les actions de carte, à la place du lien fléché. */
body .adams-card-actions button.adams-wish-toggle,
body .adams-card-actions button.adams-wish-toggle:hover,
body .adams-card-actions button.adams-wish-toggle:focus-visible,
body .adams-card-actions button.adams-wish-toggle[aria-pressed="true"]{position:static;width:28px;height:28px;min-width:28px;padding:0;display:grid;place-items:center;border-radius:50%;background:#fff!important;color:var(--accent)!important;border:1px solid var(--accent)!important;box-shadow:none;flex-shrink:0}
body .adams-card-actions button.adams-wish-toggle svg{width:16px;height:16px}

/* Commandes du carrousel : priorité sur les boutons orange génériques. */
body nav.adams-shop-carousel > button.adams-category-prev,
body nav.adams-shop-carousel > button.adams-category-next{background:#fff!important;color:#45413c!important;border:1px solid #eee9e3!important;box-shadow:0 3px 12px #29262312;width:44px;height:44px;padding:0;transition:color .2s,box-shadow .2s,border-color .2s;opacity:1}
body nav.adams-shop-carousel > button:not(:disabled):hover,
body nav.adams-shop-carousel > button:not(:disabled):focus-visible{background:#fff!important;color:var(--accent)!important;border-color:#f4d7bf!important;box-shadow:0 4px 16px #2926231c}
body nav.adams-shop-carousel > button:disabled,
body nav.adams-shop-carousel > button:disabled:hover{background:#fff!important;color:#cbc5be!important;border-color:#f2efeb!important;box-shadow:none;opacity:1;cursor:default}
body nav.adams-shop-carousel > button svg{display:block;flex-shrink:0}

/* Contrôles natifs : coche blanche garantie sur l’orange ADAMS. */
body:not(.wp-admin) input[type="checkbox"],
body:not(.wp-admin) input[type="radio"]{
 -webkit-appearance:none;appearance:none;display:inline-block;vertical-align:middle;
 width:18px;height:18px;min-width:18px;padding:0!important;margin-right:6px;
 border:1px solid #aaa39a;border-radius:3px;background:#fff;cursor:pointer;
 background-position:center;background-repeat:no-repeat;background-size:14px 14px;
}
body:not(.wp-admin) input[type="checkbox"]:checked,
body:not(.wp-admin) input[type="radio"]:checked{background-color:var(--accent,#ff862a);border-color:var(--accent,#ff862a);color:#fff}
body:not(.wp-admin) input[type="checkbox"]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body:not(.wp-admin) input[type="radio"]{border-radius:50%}
body:not(.wp-admin) input[type="radio"]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.5' fill='white'/%3E%3C/svg%3E")}
body:not(.wp-admin) input[type="checkbox"]:focus-visible,
body:not(.wp-admin) input[type="radio"]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body:not(.wp-admin) input[type="checkbox"]:disabled,
body:not(.wp-admin) input[type="radio"]:disabled{opacity:.5;cursor:not-allowed}
