.offer-engagement,
.offer-reaction-panel,
.offer-price-container,
.offer_price.offer-engagement-vertical {
    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: flex-end;
}

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

.offer-reactions {
    display: flex;
    align-items: 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 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "rate price";
    max-width: 100%;
    overflow: visible;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.offer-reaction-panel,
.offer-price-container {
    min-width: 0;
}

.offer-reaction-panel {
    grid-area: rate;
    border-bottom-left-radius: inherit;
}

.offer-price-container {
    grid-area: price;
    border-bottom-right-radius: inherit;
}

.offer-reaction-panel {
    padding: 20px;
    background: var(--offer-engagement-bg, #f4f7fe);
}

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

.offer-reaction-panel .offer-reaction-actions,
.offer-reaction-panel .offer-reactions {
    flex-wrap: nowrap;
    justify-content: center;
}

.offer-reaction-panel .offer-reaction-actions {
    width: 100%;
}

.offer-reaction-panel .reaction-title {
    text-align: center;
}

.offer-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: auto;
    min-width: 170px;
    padding: 20px;
}

.offer-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.offer-people {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    text-align: right;
    color: var(--offer-engagement-muted-color, #979ca7);
}

.old-offer-price {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--offer-engagement-muted-color, #979ca7);
    text-decoration: line-through;
    margin-bottom: 8px;
}

.offer-price {
    font-size: 24px;
    font-weight: 700;
    line-height: 31px;
    color: var(--offer-engagement-price-color, #219653);
}

@media (max-width: 1240px) {
    .offer-engagement {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        grid-template-areas: none !important;
    }

    .offer-price-container {
        order: 1;
        width: 100%;
        min-width: 0;
        padding: 14px 12px 8px;
        align-items: center !important;
        text-align: center !important;
    }

    .offer-people,
    .old-offer-price,
    .offer-price {
        text-align: center !important;
    }

    .offer-price {
        display: inline-block;
    }

    .offer-reaction-panel {
        order: 2;
        width: 100%;
        padding: 10px 12px 14px;
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
    }

    .offer-price-container {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .offer-price-row {
        justify-content: center !important;
        width: 100%;
        gap: 8px;
    }

    .offer-reaction-panel .reaction-title,
    .offer-reaction-panel .offer-reaction {
        text-align: center !important;
        justify-content: center !important;
    }

    .offer-reaction-panel .offer-reaction-actions,
    .offer-reaction-panel .offer-reactions {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 10px;
    }

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

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

    .offer-reaction-panel .reaction-icon,
.contact-icon {
        width: 24px;
        height: 24px;
    }
}

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