.rl-random-product {
    width: 100%;
}

/* Card
--------------------------------------------------------- */

.rl-random-product__card {
    width: 100%;
    text-align: center;
}

/* Image
--------------------------------------------------------- */

.rl-random-product__image-link {
    display: block;
    width: 100%;
    margin: 0 0 22px;
    text-decoration: none;
}

.rl-random-product__image {
    display: block;
    width: 100%;
    margin: 0 auto;
    object-fit: contain;
    max-height: 320px;
}

/* Content
--------------------------------------------------------- */

.rl-random-product__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


/* Title
--------------------------------------------------------- */

.rl-random-product__title {
    margin: 0 0 18px;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}

.rl-random-product__title a {
    color: var(--e-global-color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.rl-random-product__title a:hover {
    opacity: 0.75;
}

/* Price
--------------------------------------------------------- */

.rl-random-product__price {
    margin: 0 0 25px;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: #000;
}

.rl-random-product__price .price {
    color: inherit;
}

.rl-random-product__price del {
    opacity: 0.55;
}

.rl-random-product__price ins {
    text-decoration: none;
}

.rl-random-product__price .woocommerce-price-suffix {
    font-size: 12px;
    font-weight: 700;
    color: inherit;
}

/* Esto calculator
--------------------------------------------------------- */

.rl-random-product .esto-calculator-loop {
    width: 100%;
    margin: 0 0 18px;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--e-global-color-primary);
    text-align: center;
}

/* Remove unwanted loop elements if plugins add them
--------------------------------------------------------- */

.rl-random-product .star-rating {
    display: none;
}

/* Actions
--------------------------------------------------------- */

.rl-random-product__actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0;
}

/* Button
--------------------------------------------------------- */

.rl-random-product__button,
.rl-random-product__button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 74px;
    min-height: 43px;

    margin: 0;
    padding: 10px 22px;

    border: 0;
    border-radius: 4px;

    background: var(--e-global-color-primary);
    color: #fff;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.rl-random-product__button:hover,
.rl-random-product__button.button:hover {
    background: #241c72;
    color: #fff;
    text-decoration: none;
}

.rl-random-product__button:active {
    transform: translateY(1px);
}

/* WooCommerce added state
--------------------------------------------------------- */

.rl-random-product__button.added {
    opacity: 0.8;
}

.rl-random-product a.added_to_cart {
    display: none;
}

/* Responsive
--------------------------------------------------------- */

@media (max-width: 767px) {

    .rl-random-product__image {
        max-width: 200px;
        height: 200px;
    }

    .rl-random-product__title {
        font-size: 16px;
    }

}