/* One visual contract for Add to Cart on the canonical catalogue and detail pages.
   Keep the existing widths and the disabled state until a paid product is selected. */
body.ke-themed.page-store :is(
    .store--storemain.store--widgets2 .store-collection--widgets2 .ke-w2 .ke-w2__cart,
    .store--storemain.store--plugins4 .store-collection--plugins4 .ke-p4 .ke-p4__checkout,
    .m2p-purchase .m2p-cart .marketplace-cart-action,
    .m3p-purchase .store-plugin-card__checkout-button
).marketplace-add-to-cart:not(.is-added) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    height:32px;
    min-height:32px;
    padding:5px 6px;
    box-sizing:border-box;
    font:600 12px/1.2 "Nimbus Sans D OT Normal",Arial,Helvetica,sans-serif;
    letter-spacing:normal;
    text-transform:none;
    text-decoration:none;
    color:var(--ke-muted,#586d77);
    border:1px solid var(--ke-border,#c9d5da);
    border-radius:5px;
    background:var(--ke-soft,#eef3f4);
    opacity:1;
    cursor:pointer;
}
body.ke-themed.page-store :is(
    .store--storemain.store--widgets2 .store-collection--widgets2 .ke-w2 .ke-w2__cart,
    .store--storemain.store--plugins4 .store-collection--plugins4 .ke-p4 .ke-p4__checkout,
    .m2p-purchase .m2p-cart .marketplace-cart-action,
    .m3p-purchase .store-plugin-card__checkout-button
).marketplace-add-to-cart:not(.is-added):is(:hover,:focus-visible):not(:disabled) {
    color:var(--ke-accent,#08715e);
    border-color:var(--ke-accent,#08715e);
    background:var(--ke-accent-soft,rgba(8,113,94,.10));
}
body.ke-themed.page-store :is(
    .store--storemain.store--widgets2 .store-collection--widgets2 .ke-w2 .ke-w2__cart,
    .store--storemain.store--plugins4 .store-collection--plugins4 .ke-p4 .ke-p4__checkout,
    .m2p-purchase .m2p-cart .marketplace-cart-action,
    .m3p-purchase .store-plugin-card__checkout-button
).marketplace-add-to-cart:not(.is-added):disabled {
    opacity:.62;
    cursor:not-allowed;
}
body.ke-themed.page-store .marketplace-add-to-cart [data-cart-action-icon] {
    flex:0 0 auto;
    font-size:12px;
    line-height:1;
    color:inherit;
}
body.page-store [data-cart-action-icon][hidden] {
    display:none !important;
}
body.ke-themed.page-store .marketplace-add-to-cart [data-plugin-bundle-total] {
    color:inherit;
    font:inherit;
    font-weight:700;
}
body.ke-themed.page-store .marketplace-add-to-cart [data-plugin-bundle-total]:empty {
    display:none;
}

