.offer-engagement,
.offer-reaction-panel,
.offer-price-container,
.offer_price.offer-engagement-horizontal {
    font-family: inherit;
    color: inherit;
}

.reaction-title {
    font-size: 14px;
    margin: 0 0 8px;
    color: var(--offer-engagement-title-color, currentColor);
}

.offer-reaction-container {
    margin-top: 8px;
    position: relative;
}

.offer-reaction {
    display: flex;
    justify-content: center;
}

.offer-reaction-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.offer-reactions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.offer-reaction-divider {
    width: 1px;
    height: 40px;
    background: var(--offer-engagement-divider-color, #9ba5b7);
    border-radius: 1px;
    flex-shrink: 0;
    opacity: 0.4;
}

.reaction-button,
.contact-button {
    font: inherit;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 6px;
    background: var(--offer-engagement-control-bg, #fff);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-icon,
.contact-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.reaction-icon-like {
    -webkit-mask-image: url('/assets/images/selection/offer/reaction/like.svg');
    mask-image: url('/assets/images/selection/offer/reaction/like.svg');
}

.reaction-icon-doubt {
    -webkit-mask-image: url('/assets/images/selection/offer/reaction/doubt.svg');
    mask-image: url('/assets/images/selection/offer/reaction/doubt.svg');
}

.contact-icon-call {
    -webkit-mask-image: url('/assets/images/selection/offer/reaction/call.svg');
    mask-image: url('/assets/images/selection/offer/reaction/call.svg');
}

.reaction-button:hover .reaction-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.reaction-button.like {
    color: #27ae60;
}

.reaction-button.like:hover,
.reaction-button.like:active,
.reaction-button.like.is-active,
.reaction-button.like.is-active:hover {
    color: #fff;
}

.reaction-button.like:hover {
    background: #6FCF97;
}

.reaction-button.like:active,
.reaction-button.like.is-active {
    background: #27AE60;
}

.reaction-button.like.is-active:hover {
    background: #219653;
}

.reaction-button.doubt {
    color: #ffcc14;
}

.reaction-button.doubt:hover,
.reaction-button.doubt:active,
.reaction-button.doubt.is-active,
.reaction-button.doubt.is-active:hover {
    color: #fff;
}

.reaction-button.doubt:hover {
    background: #FFE58A;
}

.reaction-button.doubt:active,
.reaction-button.doubt.is-active {
    background: #FFCC14;
}

.reaction-button.doubt.is-active:hover {
    background: #E6B800;
}

.reaction-button.dislike {
    color: #ec6161;
}

.reaction-button.dislike .reaction-icon {
    transform: rotate(180deg);
}

.reaction-button.dislike:hover,
.reaction-button.dislike:active,
.reaction-button.dislike.is-active,
.reaction-button.dislike.is-active:hover {
    color: #fff;
}

.reaction-button.dislike:hover {
    background: #F5A3A3;
}

.reaction-button.dislike:active,
.reaction-button.dislike.is-active {
    background: #EC6161;
}

.reaction-button.dislike.is-active:hover {
    background: #D64545;
}

.contact-button {
    color: #5a7ee9;
}

.contact-button:hover,
.contact-button.active {
    background: #5a7ee9;
    color: #fff;
}

.reaction-tooltip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    box-shadow: 0 1px 10px 1px #00000033;
    z-index: 3;
}

.reaction-tooltip-inner {
    position: relative;
    background: #fff;
    padding: 8px;
    color: #27282b;
    white-space: nowrap;
}

.reaction-tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.contacts-tooltip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--offer-engagement-control-bg, #fff);
    padding: 16px 20px;
    border-radius: 6px;
    color: #27282b;
    box-shadow: 2px 4px 8px 0 #00000014;
    z-index: 4;
}

.contact-button .contacts-tooltip {
    left: auto;
    right: 0;
    transform: translateY(-100%);
}

.contacts-tooltip.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: default;
}

.contacts-tooltip-text {
    text-align: center;
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    white-space: nowrap;
}

.contacts-tooltip-list {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contacts-tooltip-link {
    display: inline-flex;
}

.contacts-tooltip-link img {
    display: block;
}

.offer-engagement-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.offer-reaction-panel--horizontal {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--offer-engagement-bg, #f4f7fe);
}

.offer-reaction-panel--horizontal .reaction-title {
    text-align: center;
    margin-bottom: 10px;
}

.offer-reaction-panel--horizontal .offer-reaction {
    justify-content: center;
}

.offer-reaction-panel--horizontal .offer-reaction-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.offer-reaction-panel--horizontal .offer-reaction-divider {
    display: none;
}

.offer-reaction-panel--horizontal .reaction-button,
.contact-button {
    padding: 8px;
}

@media (min-width: 768px) {
    .offer_body-inner {
        display: flex;
        align-items: stretch;
        gap: 24px;
        padding: 24px 24px 14px !important;
    }

    .offer_body-inner::before {
        display: none !important;
    }

    .offer_body-main {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .offer_body-engagement {
        display: flex;
        align-items: stretch;
        width: 240px;
        flex: 0 0 240px;
        padding-left: 24px;
        border-left: 1px solid #f0f2f6;
    }

    .offer_row {
        display: block;
    }

    .offer_price.offer-engagement-horizontal {
        position: static;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        transform: none;
        width: 100%;
    }

    .offer_body-engagement .offer-reaction-panel--horizontal {
        padding: 10px;
    }

    .offer_body-engagement .offer-reaction-panel--horizontal .offer-reaction-actions,
    .offer_body-engagement .offer-reaction-panel--horizontal .offer-reactions {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1172px) and (min-width: 768px) {
    .offer_body-inner {
        display: block;
    }

    .offer_body-main {
        width: 100%;
    }

    .offer_body-engagement {
        width: 100%;
        flex: none;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #f0f2f6;
        padding-top: 16px;
        margin-top: 16px;
    }

    .offer_price.offer-engagement-horizontal {
        width: 100%;
    }
}

.offer_price.offer-engagement-horizontal .old-offer-price {
    text-decoration: line-through;
    color: #979ca7;
}

.offer_price.offer-engagement-horizontal .offer-price {
    font-weight: 800;
    font-size: 24px;
    color: #fbb640;
    white-space: nowrap;
}

.offer_price.offer-engagement-horizontal .offer-price-status--not-actual {
    display: block;
    width: 100%;
    text-align: center;
    color: #ec6161;
}

@media (max-width: 767px) {
    .offer_body-engagement {
        border-top: 1px solid #f0f2f6;
        padding-top: 20px;
        margin-top: 16px;
    }

    .offer_price.offer-engagement-horizontal {
        width: 100%;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }
}

.reaction-icon,
.contact-icon {
    transition: all .2s;
}
