.hn-loop-stock {
    display: none;
}

.products li.outofstock.nm-has-attributes .nm-shop-loop-thumbnail .hn-loop-stock {
    display: block;
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 30px;
    background: #4f5d56;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    pointer-events: none;
}

.product .summary .hn-variation-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #e6ebe7;
    color: #3e5146;
    font-size: 13px;
    line-height: 1.4;
}

.product .summary .hn-variation-stock::before {
    content: "";
    flex: 0 0 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Label above the options on both the product page and quick view. */
:is(.nm-single-product, #nm-quickview) .summary .variations tr:has(.wcboost-variation-swatches--button) > :is(th.label, td.value) {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: start;
}

:is(.nm-single-product, #nm-quickview) .summary .variations tr:has(.wcboost-variation-swatches--button) > th.label {
    padding-bottom: 8px;
    color: #22312b;
    font-size: 14px;
    font-weight: 600;
}

:is(.nm-single-product, #nm-quickview) .wcboost-variation-swatches--button .wcboost-variation-swatches__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
}

:is(.nm-single-product, #nm-quickview) .wcboost-variation-swatches--button .wcboost-variation-swatches__item {
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #cdd8d0;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: none;
    color: #22312b;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

:is(.nm-single-product, #nm-quickview) .wcboost-variation-swatches--button .wcboost-variation-swatches__item:hover {
    border-color: #7b8c81;
}

:is(.nm-single-product, #nm-quickview) .wcboost-variation-swatches--button .wcboost-variation-swatches__item[aria-pressed="true"] {
    border-color: #2f493d;
    background-color: #eaf0eb;
}

:is(.nm-single-product, #nm-quickview) .wcboost-variation-swatches__item:focus-visible {
    outline: 2px solid #8d6626;
    outline-offset: 2px;
}

:is(.nm-single-product, #nm-quickview) .wcboost-variation-swatches .wcboost-variation-swatches__item.hn-swatch-out {
    border: 1px dashed #95a39a;
    background-color: #f2f4f2;
    box-shadow: none;
    color: #4d5b54;
}

:is(.nm-single-product, #nm-quickview) .wcboost-variation-swatches .wcboost-variation-swatches__item.hn-swatch-out[aria-pressed="true"] {
    border-color: #506459;
    background-color: #e3e9e4;
}

/* For explicitly out-of-stock values, replace WCBoost's strike-through with the dashed edge. */
:is(.nm-single-product, #nm-quickview) .wcboost-variation-swatches .hn-swatch-out.is-invalid::before,
:is(.nm-single-product, #nm-quickview) .wcboost-variation-swatches .hn-swatch-out.is-invalid::after {
    content: none;
}

.nm-single-product .summary .variations_form:has(.wcboost-variation-swatches--button) .single_variation_wrap .nm-quantity-wrap {
    border-inline: 0;
    border-block-start-color: #d4dbd6;
}

.nm-single-product .summary .variations_form:has(.wcboost-variation-swatches--button) .single_variation_wrap .nm-quantity-wrap label:not(.nm-qty-label-abbrev) {
    inset-inline-start: 0;
}

.nm-single-product .summary .variations_form:has(.wcboost-variation-swatches--button) .single_add_to_cart_button {
    border-radius: 6px;
}

.summary .price > .hn-sale-rate {
    position: relative;
    inset: auto;
    margin-inline-start: 7px;
    padding: 3px 7px;
    border: 1px solid currentColor;
    background: transparent;
    white-space: nowrap;
}

.hn-sale-rate,
.summary .price:has(> .hn-sale-rate) > .onsale:not(.hn-sale-rate) {
    display: none;
}

.summary .price > .hn-sale-rate {
    display: inline-block;
}
