.ymow-hold-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0.6rem 1rem;
    text-align: center;
    font-weight: 600;
    /* The colours come from Stores > Configuration > Sales > Limited Sale, per store view (Block\Banner::getStyle). */
    color: var(--ymow-hold-color, #fff);
    background: var(--ymow-hold-bg, #1f6feb);
}

html.ymow-hold-active {
    padding-top: var(--ymow-hold-banner-height, 0);
}

.ymow-hold-banner[hidden],
.ymow-limited-status[hidden] {
    display: none;
}

.ymow-hold-banner.is-processing {
    background: #6b7280;
}

/* mm:ss in digits of equal width, on a fixed box: the text around it does not jump when a 1 becomes a 0 */
.ymow-hold-time {
    display: inline-block;
    min-width: 5ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.ymow-limited-status {
    font-variant-numeric: tabular-nums;
}

.ymow-limited-status {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #b45309;
    background: #fff7ed;
    color: #7c2d12;
}

/* The theme's "in stock" badge follows Magento's own stock, which is not the gate of a limited sale: while the sale
   is closed (data-state is kept current by the script) the badge would contradict the message next to it. */
.product-info-main:has(.ymow-limited-status[data-state="sold_out"]) .stock.available,
.product-info-main:has(.ymow-limited-status[data-state="momentarily_sold_out"]) .stock.available,
.product-info-main:has(.ymow-limited-status[data-state="not_started"]) .stock.available,
.product-info-main:has(.ymow-limited-status[data-state="unavailable"]) .stock.available {
    display: none;
}

#product-addtocart-button.ymow-locked {
    opacity: 0.5;
    cursor: not-allowed;
}
