/* Revelado24: negro #111, dorado #e1ad01, blanco #fff. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce .products .product {
    position: relative;
}

.woocommerce span.onsale.r24-descuento-badge,
.woocommerce ul.products li.product .onsale.r24-descuento-badge,
.woocommerce div.product span.onsale.r24-descuento-badge,
.woocommerce-page span.onsale.r24-descuento-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 15;
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: max-content !important;
    height: auto !important;
    max-width: calc(100% - 20px);
    min-width: 0 !important;
    min-height: 0 !important;
    box-sizing: border-box;
    padding: 7px 11px 8px !important;
    margin: 0 !important;
    border: 2px solid #e1ad01 !important;
    border-radius: 10px !important;
    background: #111111 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
    text-align: left !important;
    font-family: inherit;
    line-height: 1.12 !important;
    text-transform: none;
    transform: none !important;
    pointer-events: none;
    white-space: normal;
}

.woocommerce .r24-descuento-badge__nombre,
.woocommerce-page .r24-descuento-badge__nombre {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.2;
    overflow-wrap: anywhere;
    color: #ffffff;
}

.woocommerce .r24-descuento-badge__porcentaje,
.woocommerce-page .r24-descuento-badge__porcentaje {
    display: block;
    margin-top: 4px;
    color: #e1ad01;
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.035em;
}

/* El script ancla el distintivo al marco real de la imagen principal. */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce-page div.product .woocommerce-product-gallery {
    position: relative;
}

.woocommerce div.product .woocommerce-product-gallery > .r24-descuento-badge {
    z-index: 30;
}

@media (max-width: 767px) {
    .woocommerce ul.products li.product .onsale.r24-descuento-badge,
    .woocommerce div.product span.onsale.r24-descuento-badge {
        top: 7px !important;
        left: 7px !important;
        padding: 5px 7px 6px !important;
        border-radius: 8px !important;
        max-width: calc(100% - 14px);
    }
    .woocommerce .r24-descuento-badge__nombre { font-size: 9px; }
    .woocommerce .r24-descuento-badge__porcentaje { font-size: 19px; }
}
