/* Monthly offer (Classes/MonthlyOffer.php) */

.lm-offer-notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #fff4e5;
    border: 1px solid #f5b85c;
    font-size: 0.9rem;
    line-height: 1.4;
}

.lm-offer-notice__line {
    margin: 0;
}

.lm-offer-notice__line + .lm-offer-notice__line {
    margin-top: 0.35rem;
}

.lm-offer-notice__line--earned {
    color: #1e7b34;
    font-weight: 600;
}

.lm-offer-notice__line--remind {
    font-weight: 600;
}

/* Free line in mini-cart / checkout list */
.lm-offer-free-badge {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #1e7b34;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.lm-offer-free-qty {
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
}

.lm-line-price--free .lm-line-price__new {
    color: #1e7b34;
    font-weight: 600;
}

/* Banner under the header (offer pages or all pages) */
.lm-offer-banner {
    background: #1e7b34;
    color: #fff;
    text-align: center;
}

.lm-offer-banner[hidden] {
    display: none;
}

.lm-offer-banner__inner {
    max-width: var(--width-site, 1400px);
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

/* Explicit colour: category pages have theme rules that recolour plain text */
.lm-offer-banner .lm-offer-banner__text,
.lm-offer-banner .lm-offer-banner__text:hover,
.lm-offer-banner .lm-offer-banner__text:focus,
.lm-offer-banner .lm-offer-banner__text:visited {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

.lm-offer-banner a.lm-offer-banner__text:hover {
    opacity: 0.9;
}

@media (max-width: 767px) {
    .lm-offer-banner .lm-offer-banner__text {
        font-size: 1rem;
    }
}

/* Info image on the offer category pages */
.lm-offer-hero[hidden] {
    display: none;
}

.lm-offer-hero__img {
    display: block;
    width: 100%;
    max-width: 1920px;
    height: auto;
    margin: 0 auto;
}

/* Red text on offer product pages (above quantity / add to cart) */
/* The add-to-cart row is a wrapping flex container: take a full row */
.lm-offer-product-notice {
    flex: 0 0 100%;
    width: 100%;
    color: #d0021b;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    line-height: 1.4;
}

.lm-offer-product-notice[hidden] {
    display: none;
}

/* Badge on product images in category lists */
.lm-offer-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #1e7b34;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
}

.lm-offer-badge--abs {
    bottom: auto;
}

.lm-offer-hero picture {
    display: block;
}

.lm-offer-notice__line--nocombine {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Remove / restore the offer */
.lm-offer-toggle {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.lm-offer-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lm-offer-notice--removed {
    background: #f3f3f3;
    border-color: #ccc;
}

.lm-offer-notice__line--removed {
    font-size: 0.85rem;
}

/* ------------------------------------------------------------------
 * Sale campaign, e.g. Black Week (Classes/SaleCampaign.php)
 * ------------------------------------------------------------------ */

/* Banner colours come from the campaign settings */
.lm-offer-banner.lm-campaign-banner {
    background: var(--lm-campaign-bg, #000);
}

.lm-offer-banner.lm-campaign-banner .lm-offer-banner__text,
.lm-offer-banner.lm-campaign-banner .lm-offer-banner__text:hover,
.lm-offer-banner.lm-campaign-banner .lm-offer-banner__text:focus,
.lm-offer-banner.lm-campaign-banner .lm-offer-banner__text:visited {
    color: var(--lm-campaign-color, #fff) !important;
}

.lm-offer-badge--campaign {
    background: #000;
}

/* Regular price crossed out, sale price in red: product lists and product page */
.lm-sale-price del,
.woocommerce-variation-price del {
    color: inherit;
    opacity: 0.6;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 0.3em;
}

.lm-sale-price ins,
.woocommerce-variation-price ins {
    color: #d0021b;
    font-weight: 700;
    text-decoration: none;
    background: none;
}

.lm-sale-price del .amount,
.lm-sale-price ins .amount {
    color: inherit;
}

/* Mini-cart and checkout list */
.lm-line-price--sale .lm-line-price__new {
    color: #d0021b;
    font-weight: 600;
}

/* The amount inside is larger than the <del> itself (theme font sizes), so a
   line drawn by <del> sits too high: draw it on the amount instead */
.lm-sale-price del,
.woocommerce-variation-price del {
    text-decoration: none;
}

.lm-sale-price del .amount,
.woocommerce-variation-price del .amount {
    text-decoration: line-through;
}

/* Theme colours the amount itself on the product page */
.woocommerce-variation-price ins .amount,
.woocommerce-variation-price ins .amount bdi {
    color: #d0021b !important;
    font-weight: 700;
}
