.product.rootsi-sold-out { position: relative; }
.rootsi-sold-badge { position:absolute; top:12px; right:12px; z-index:5; background:#214d32; color:#fff; padding:7px 12px; font-size:12px; font-weight:700; letter-spacing:.07em; line-height:1.3; pointer-events:none; }
.woocommerce a.rootsi-sold-link, a.rootsi-sold-link { background:#10583c !important; color:#fff !important; border-color:#10583c !important; border-radius:24px; text-align:center; cursor:pointer; }
a.rootsi-sold-link:hover,a.rootsi-sold-link:focus-visible { background:#214d32 !important; color:#fff !important; }
.rootsi-sold-qty-hidden, .rootsi-sold-out .quantity { display:none !important; }
.rootsi-sold-controls { justify-content:center !important; text-align:center !important; }
.rootsi-sold-controls a.rootsi-sold-link { float:none !important; margin-inline:auto !important; width:80%; max-width:100%; box-sizing:border-box; }
/* Custom loop widgets may wrap the quantity inside a form or use a bare number input. */
.rootsi-sold-controls .rootsi-sold-qty-hidden { display:none !important; }
.rootsi-sold-controls { justify-content:center !important; text-align:center !important; }
.rootsi-sold-controls a.rootsi-sold-centered { display:inline-flex !important; justify-content:center !important; align-items:center !important; width:80% !important; max-width:100% !important; margin-inline:auto !important; float:none !important; }

/* Keep the sold-out label on one line even in narrow Elementor flex widgets. */
a.rootsi-sold-link, a[data-rootsi-sold="1"] {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
.rootsi-sold-controls a.rootsi-sold-centered {
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    padding-inline: 24px !important;
    white-space: nowrap !important;
}
