.mhc-thumb-anchor { position: relative; container: mhc-thumb / inline-size; }
.mhc-image-wrap { display: block; }
.mhc-image-wrap > img, .mhc-image-wrap > picture { display: block; }
.mhc-shop-offer, .mhc-no-script {
    --mhc-sale: #d64040;
    --mhc-paper: #fffaf2;
    --mhc-ink: #493623;
    --mhc-muted: #715d45;
    --mhc-edge: #d9c8ae;
    --mhc-label-edge: var(--mhc-edge);
    box-sizing: border-box;
    direction: rtl;
    color: var(--mhc-ink);
    font-family: inherit;
    line-height: 1.45;
    text-align: start;
    font-variant-numeric: tabular-nums;
}
.mhc-shop-offer { pointer-events: none; }
.mhc-discount-line { display: contents; }
.mhc-shop-express { display: none; }
.mhc-shop-offer *, .mhc-shop-offer *::after { box-sizing: border-box; }
.mhc-shop-offer[hidden], .mhc-detail-anchor:empty { display: none !important; }
.mhc-shop-offer .mhc-shop-percent {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    background: var(--mhc-sale);
    color: #fff;
    font-weight: 750;
    white-space: nowrap;
}
.mhc-offer-card {
    --mhc-label-edge: #eadfce;
    position: absolute;
    z-index: 5;
    inset-inline-start: clamp(4px, 2.8%, 10px);
    bottom: clamp(9px, 4%, 15px);
    max-width: calc(100% - 8px);
    display: inline-flex;
    flex-flow: row nowrap;
    inline-size: max-content;
    align-items: stretch;
    white-space: nowrap;
    background: var(--mhc-paper);
    border: 1px solid var(--mhc-label-edge);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 7px #35281829;
}
.mhc-card-strip { display: inline-flex; flex: none; flex-flow: row nowrap; align-items: stretch; transform-origin: right center; }
.mhc-card-discount-word { padding-inline-start: .18em; }
.mhc-card-short .mhc-card-discount-word { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.mhc-offer-card .mhc-shop-percent { padding: 4px 5px; font-size: clamp(11px,.85vw,13px); }
.mhc-offer-clock, .mhc-clock-face, .mhc-clock-cell { display: inline-flex; align-items: center; }
.mhc-clock-number { color: var(--mhc-ink); font-weight: 700; line-height: 1.2; }
.mhc-offer-card .mhc-offer-clock { padding: 4px 5px; align-self: center; }
.mhc-offer-card .mhc-clock-face { font-size: clamp(10px,.75vw,12px); }
.mhc-clock-face { direction: ltr; white-space: nowrap; }
.mhc-clock-cell { gap: 1px; }
.mhc-clock-cell[hidden] { display: none; }
.mhc-clock-cell:not(:first-child) .mhc-clock-unit { display: none; }
.mhc-clock-cell:nth-child(2)::after, .mhc-clock-cell:nth-child(3)::after { content: ':'; }
.mhc-clock-cell:first-child {
    order: 1;
    direction: rtl;
    margin-left: 4px;
    padding-inline-end: 4px;
    border-inline-end: 1px solid var(--mhc-edge);
}
.mhc-offer-single {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: stretch;
    inline-size: fit-content;
    max-inline-size: 100%;
    vertical-align: middle;
    margin-block: 3px 8px;
    border: 1px solid var(--mhc-label-edge);
    border-radius: 7px;
    overflow: hidden;
    white-space: nowrap;
    background: var(--mhc-paper);
}
.mhc-offer-single .mhc-shop-percent { padding: 5px 7px; font-size: 12px; }
.mhc-offer-single .mhc-offer-clock { padding: 5px 7px; font-size: 12px; }
.mhc-gallery-frame,
:is(.wd-gallery-images, .woocommerce-product-gallery, .flex-viewport):has(> [data-mhc-initial-detail="gallery"]) { position: relative; }
@media (min-width: 769px) {
    .product:has([data-mhc-initial-detail="labels"]) [data-mhc-initial-detail="gallery"],
    :is([data-mhc-initial-detail="labels"], [data-mhc-initial-detail="gallery"]):not(:has(.mhc-shop-express)),
    .product:has(:is([data-mhc-initial-detail="labels"], [data-mhc-initial-detail="gallery"]) .mhc-shop-express) [data-mhc-initial-detail="price"] { display: none !important; }
    .mhc-detail-anchor:not(.mhc-gallery-overlay) { text-align: right; }
    /* Woodmart may omit its label stylesheet when the product has no native labels. */
    :where(.mhc-gallery-labels) { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }
    .product-labels > .mhc-desktop-label { line-height: 1; pointer-events: none; }
    .mhc-desktop-label .mhc-offer-single { margin: 0; vertical-align: top; }
}
@media (max-width: 768px) {
    [data-mhc-initial-detail="labels"], .mhc-gallery-labels,
    .product:has([data-mhc-initial-detail="gallery"]) [data-mhc-initial-detail="price"] { display: none !important; }
    .delivery-estimate [data-mhc-delivery-prompt="pending"] { display: block; }
}
.mhc-detail-anchor.mhc-gallery-overlay {
    position: absolute;
    top: clamp(6px, 2.5%, 12px);
    right: clamp(6px, 2.5%, 12px);
    max-width: calc(100% - 16px);
    z-index: 4;
    line-height: 1;
    pointer-events: none;
}
.mhc-gallery-overlay .mhc-offer-single { margin: 0; box-shadow: 0 1px 4px #35281824; }
/* Only the campaign discount takes the place of the theme's sale label. */
:is(.product-grid-item, .products li.product, .wc-block-product):has([data-mhc-initial]:not(.mhc-express-only)) :is(.onsale, .wc-block-components-product-sale-badge),
:is(.product-grid-item, .products li.product, .wc-block-product):has([data-mhc-initial]) .mhc-no-script { display: none !important; }
.mhc-has-badge .product-labels .onsale, .mhc-no-sale .product-labels .onsale,
li.product:is(.mhc-has-badge, .mhc-no-sale) > .onsale,
li.product:is(.mhc-has-badge, .mhc-no-sale) .woocommerce-LoopProduct-link .onsale,
:is(.mhc-has-badge, .mhc-no-sale) .wc-block-components-product-sale-badge,
.single-product .product[id^="product-"]:has([data-mhc-initial-detail][data-mhc-hide-sale]) > .onsale,
.single-product .product[id^="product-"]:has([data-mhc-initial-detail][data-mhc-hide-sale]) .woocommerce-product-gallery .onsale:not(.product-grid-item *, .products li.product *, .wc-block-product *),
.single-product .product[id^="product-"]:has([data-mhc-initial-detail]) .mhc-no-script:not(.product-grid-item *, .products li.product *, .wc-block-product *),
:is(.mhc-detail-active, .mhc-detail-no-sale) > .onsale,
:is(.mhc-detail-active, .mhc-detail-no-sale) .woocommerce-product-gallery .onsale:not(.product-grid-item *, .products li.product *, .wc-block-product *),
.product-grid-item.outofstock .mhc-shop-offer,
.mhc-pending-variation .mhc-offer-single.mhc-express-only,
.mhc-pending-variation .mhc-offer-single > .mhc-shop-express,
body.mesha-selected-variation-oos .mhc-offer-single { display: none !important; }
.mhc-no-script { display: block; width: fit-content; background: var(--mhc-paper); padding: 6px 7px; margin-block: 4px; border-inline-start: 2px solid var(--mhc-sale); font-size: .85em; }
.mhc-shop-offer.mhc-with-express {
    flex-flow: column nowrap;
    align-items: flex-start;
    gap: 2px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}
.mhc-with-express > .mhc-discount-line {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: stretch;
    max-inline-size: 100%;
    min-inline-size: 0;
    border: 1px solid var(--mhc-label-edge);
    border-radius: 7px;
    background: var(--mhc-paper);
    overflow: hidden;
    box-shadow: 0 1px 4px #35281824;
}
.mhc-offer-card.mhc-with-express > .mhc-discount-line {
    border-radius: 8px;
    box-shadow: 0 2px 7px #35281829;
}
.mhc-with-express > .mhc-shop-express, .mhc-no-script > .mhc-shop-express {
    display: block;
    inline-size: fit-content;
    border: 1px solid var(--mhc-label-edge);
    border-radius: 5px;
    padding: 4px 7px;
    background: #29ba6e;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    white-space: nowrap;
    pointer-events: none;
}
.mhc-no-script > .mhc-shop-express { margin-block-start: 2px; }
.mhc-no-script.mhc-no-script-express-only {
    border: 0;
    margin: 0;
    padding: 0;
    background: none;
}
.mhc-no-script-express-only > .mhc-shop-express { margin-block-start: 0; }
@media (max-width: 480px) {
    .mhc-offer-card .mhc-offer-clock { padding-inline: 4px; }
    .mhc-offer-card .mhc-clock-face { font-size: 11px; }
}
@container mhc-thumb (max-width: 175px) {
    .mhc-offer-card .mhc-shop-percent, .mhc-offer-card .mhc-offer-clock { padding-inline: 3px; }
    .mhc-offer-card .mhc-clock-cell { gap: 0; }
    .mhc-offer-card .mhc-clock-cell:first-child { margin-left: 2px; padding-inline-end: 2px; }
}
