.compare-favorite-modal__close-btn {
    cursor: pointer;
    padding: 0.25rem;
    color: rgba(0, 0, 0, 1);
    background: transparent;
    border: 2px solid;
    border-radius: 50%;
    transition: all 0.4s ease;
    position: absolute;
    top: 1rem;
    right: 0.75rem;
}

.compare-favorite-modal__close-btn:hover {
    opacity: 0.6;
}

.compare-favorite-modal__close-btn svg {
    display: block;
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: currentColor;
    border-radius: 50%;
    stroke-width: 1px;
}

.compare-favorite-modal__dialog {
    max-width: 95%;
    width: 100%;
    box-shadow: 0 0 10px #000;
    padding: 0;
    overflow: unset;
    max-height: calc(100% - 4rem);
    display: flex;
    flex-direction: column;
}

.compare-favorite-modal__header {
    padding: 1rem 3rem;
    text-align: center;
    justify-content: center;
    border-bottom: 1px solid #eee;

}

.compare-favorite-modal__title {
    font-size: 1.5rem;
}

.compare-favorite-modal__content {
    padding: 1rem;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.compare-favorite-modal__content-head {
    display: flex;
    padding-left: 16%;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 2px 2px;
    background: #fff;
    position: relative;
    z-index: 2;
}

.compare-favorite-modal__heading-card {
    flex: 1;
    text-align: center;
    padding: 1rem;
}

.favorite-modal-card__image img {
    display: block;
    width: 100px;
    max-width: 100%;
    margin: 0 auto 0.5rem;
}

.favorite-modal-card__title {
    font-size: 1rem;
    font-weight: 600;
}

.favorite-modal-card__subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.favorite-modal-card__info {
    font-size: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.25rem;
}

.favorite-modal-card__info>span:first-child:not(:last-child) {
    margin-right: 0.75rem;
}

.favorite-modal-card__details {
    max-width: 450px;
    margin: 0 auto 0.25rem;
}

.favorite-modal-card__btn-wrap {
    margin-top: 0.5rem;
}

.favorite-modal-card__btn {
    display: inline-block;
    width: auto;
    padding: 0.375rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    border-radius: 0.25rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    color: var(--compare_cta_text_color);
    background-color: var(--compare_cta_background_color);
    border: 1px solid var(--compare_cta_border_color);
}

.favorite-modal-card__btn:hover {
    color: var(--compare_cta_hover_text_color);
    background: var(--compare_cta_hover_background_color);
    border-color: var(--compare_cta_hover_border_color);
}

.compare-favorite-modal__content-body {
    overflow: auto;
    flex: 1;
    border: 1px solid #eee;
    border-radius: 0.25rem;
}

.compare-favorite-modal__content-row {
    display: flex;
    border: 1px solid #eee;
    background: #fff;
}

.compare-favorite-modal__content-row:not(:last-child) {
    border-bottom: 0;
}


.compare-favorite-modal__heading-col {
    flex: 0 0 16%;
    width: 16%;
    padding: 1rem;
    font-weight: 600;
}

.compare-favorite-modal__content-col {
    flex: 1;
    border-left: 1px solid #eee;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.compare-favorite-modal__content-col[data-compare-key="display_price"] {
    font-size: 1.15rem;
    font-weight: 600;
}

.compare-favorite-modal__highlight-content-col {
    padding: 1rem;
    flex: 0 0 100%;
    background: #eee;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.compare-favorite-modal__content-col.compare-best {
    color: #559c56;
    font-weight: bold;
}

@media screen and (max-width: 600px) {

    .compare-favorite-modal__content {
        line-height: 1.25;
        padding: 0;
    }

    .compare-favorite-modal__content-head {
        padding-left: 30%;
    }

    .compare-favorite-modal__heading-card {
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
    }

    .favorite-modal-card__details {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .favorite-modal-card__title {
        font-size: 0.8rem;
    }

    .favorite-modal-card__subtitle {
        font-size: 0.7rem;
        flex: 1;
    }

    .favorite-modal-card__info {
        font-size: 0.5rem;
        flex-direction: column;
    }

    .favorite-modal-card__btn {
        font-size: 0.5rem;
        padding: 0.25rem 0.25rem;
    }

    .compare-favorite-modal__heading-col {
        flex: 0 0 30%;
        width: 30%;
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .compare-favorite-modal__content-col {
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    .compare-favorite-modal__content-col[data-compare-key="display_price"] {
        font-size: 0.8rem;
    }

    .compare-favorite-modal__highlight-content-col {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}