/* Reusable offer ribbon for discounted products across the storefront. */
.laptop-card { position: relative; }
.laptop-card .marketing-card-promotion,
.marketing-shelf-product__badge,
.marketing-offer-card__discount,
.marketing-detail-offer-ribbon {
    position: absolute;
    z-index: 30;
    top: 1rem;
    right: -1.7rem;
    display: block;
    width: 7.75rem;
    margin: 0;
    padding: .62rem .2rem;
    border: 0;
    border-radius: 0;
    transform: rotate(45deg);
    background: #dc2626;
    color: #fff;
    box-shadow: 0 10px 26px rgba(127, 29, 29, .68);
    text-align: center;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    pointer-events: none;
    direction: ltr;
}
.laptop-card .discount-ribbon-container {
    position: absolute;
    z-index: 30;
    top: 0;
    right: 0;
    width: 100%;
    height: 0;
    overflow: visible;
    pointer-events: none;
}
.laptop-card .discount-ribbon-container .discount-badge {
    position: absolute;
    top: .5rem;
    right: .5rem;
    left: auto;
    display: inline-flex;
    width: auto;
    transform: none;
    margin: 0;
    padding: .25rem .55rem;
    border: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    box-shadow: 0 3px 9px rgba(127, 29, 29, .18);
    text-align: center;
    font-size: .75rem;
    font-weight: 900;
    line-height: 1.2;
    direction: ltr;
}
.laptop-card .discount-ribbon-container .discount-badge.hidden { display: none; }
.laptop-card .marketing-card-promotion strong,
.marketing-shelf-product__badge strong,
.marketing-offer-card__discount strong,
.marketing-detail-offer-ribbon strong {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    transform: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: inherit;
    font-weight: 900;
}
.marketing-detail-offer-ribbon.hidden { display: none; }
.laptop-card .marketing-card-promotion span {
    display: none;
}
