.vm-shared-tool-heading {
    grid-template-columns: 54px minmax(0, 1fr) auto !important;
}

.vm-shared-tool-heading:has(> .vm-tool-service-price) {
    grid-template-columns: 54px minmax(0, 1fr) auto auto !important;
}

.vm-tool-engagement {
    direction: rtl;
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: max-content;
}

.vm-shared-tool-heading:has(> .vm-tool-service-price) > .vm-tool-engagement {
    grid-column: 4;
}

.vm-tool-engagement__favorite-form {
    display: inline-flex;
    margin: 0;
}

.vm-tool-engagement__button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    color: #59616a;
    background: #fff;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    margin: 0;
    padding: 0 13px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(34, 40, 47, .06);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.vm-tool-engagement__button:hover,
.vm-tool-engagement__button:focus-visible {
    color: #8d2029;
    border-color: rgba(162, 34, 44, .4);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(34, 40, 47, .1);
}

.vm-tool-engagement__button:focus-visible {
    box-shadow: 0 0 0 3px rgba(162, 34, 44, .15), 0 8px 20px rgba(34, 40, 47, .1);
}

.vm-tool-engagement__button:disabled,
.vm-tool-engagement__button.is-loading {
    cursor: wait;
    opacity: .58;
    transform: none;
}

.vm-tool-engagement__button .vm-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.vm-tool-engagement__favorite {
    width: 42px;
    padding: 0;
    color: #69717a;
}

.vm-tool-engagement__favorite .vm-icon {
    fill: transparent;
}

.vm-tool-engagement__favorite.is-active {
    color: #a2222c;
    background: #fff2f3;
    border-color: rgba(162, 34, 44, .32);
}

.vm-tool-engagement__favorite.is-active .vm-icon {
    fill: currentColor;
}

.vm-tool-engagement__report {
    color: #4f5862;
}

.vm-tool-engagement-fallback-heading {
    position: relative;
}

.vm-tool-engagement-fallback-heading > .vm-tool-engagement {
    position: absolute;
    top: 0;
    left: 0;
}

.vm-tool-engagement-toast {
    position: fixed;
    z-index: 1090;
    right: 50%;
    bottom: 24px;
    width: max-content;
    max-width: calc(100vw - 32px);
    color: #fff;
    background: #263039;
    border-radius: 11px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.8;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
    transform: translateX(50%);
}

.vm-tool-engagement-toast.is-error {
    background: #8d2029;
}

.vm-tool-report-modal {
    text-align: right;
}

.vm-tool-report-modal .modal-dialog {
    max-width: 590px;
}

.vm-tool-report-card {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(25, 30, 36, .22);
}

.vm-tool-report-header {
    direction: rtl;
    align-items: flex-start;
    color: #fff;
    background: linear-gradient(135deg, #a2222c, #781820);
    border: 0;
    padding: 20px 22px;
}

.vm-tool-report-title {
    font-size: 20px;
    font-weight: 900;
}

.vm-tool-report-header p {
    color: rgba(255, 255, 255, .78);
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.8;
}

.vm-tool-report-close {
    color: #fff !important;
    opacity: .86 !important;
    margin: -5px auto 0 -6px !important;
    padding: 4px 10px !important;
    font-size: 34px;
    font-weight: 300;
    text-shadow: none;
}

.vm-tool-report-body {
    padding: 22px;
}

.vm-tool-report-intro {
    color: #626a73;
    background: #f7f8f9;
    border-right: 3px solid #a2222c;
    border-radius: 9px;
    margin: 0 0 20px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.9;
}

.vm-tool-report-field {
    margin-bottom: 17px;
}

.vm-tool-report-field label {
    color: #343b43;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 850;
}

.vm-tool-report-field label span {
    color: #818890;
    font-size: 12px;
    font-weight: 650;
}

.vm-tool-report-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vm-tool-report-label-row > span {
    direction: ltr;
    color: #818890;
    font-size: 11px;
}

.vm-tool-report-field .form-control {
    color: #343b43;
    background: #fff;
    border: 1px solid #d6dbe0;
    border-radius: 10px;
    min-height: 46px;
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
}

.vm-tool-report-field textarea.form-control {
    min-height: 140px;
    padding: 11px 13px;
    line-height: 1.9;
    resize: vertical;
}

.vm-tool-report-field .form-control:focus {
    border-color: rgba(162, 34, 44, .65);
    box-shadow: 0 0 0 3px rgba(162, 34, 44, .1);
}

.vm-tool-report-submit {
    width: 100%;
    min-height: 48px;
    color: #fff !important;
    background: #a2222c !important;
    border: 1px solid #a2222c !important;
    border-radius: 11px !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
}

.vm-tool-report-submit:hover,
.vm-tool-report-submit:focus {
    background: #861b24 !important;
    border-color: #861b24 !important;
}

.vm-tool-report-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.vm-tool-report-success {
    text-align: center;
    padding: 12px 8px 22px;
}

.vm-tool-report-success__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #fff;
    background: #258052;
    border-radius: 50%;
    margin: 0 auto 13px;
    font-size: 28px;
}

.vm-tool-report-success strong {
    display: block;
    color: #2d343b;
    font-size: 19px;
}

.vm-tool-report-success p {
    color: #68717a;
    margin: 8px 0 0;
    line-height: 1.9;
}

.vm-favorites-page {
    direction: rtl;
    padding: 22px 0 60px;
}

.vm-favorites-page__header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e7e9eb;
    margin-bottom: 24px;
    padding-bottom: 20px;
}

.vm-favorites-page__icon {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    color: #a2222c;
    background: #fff1f2;
    border-radius: 16px;
}

.vm-favorites-page__icon .vm-icon {
    width: 27px;
    height: 27px;
    stroke: currentColor;
    fill: currentColor;
}

.vm-favorites-page__header h1 {
    color: #292f35;
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
}

.vm-favorites-page__header p {
    color: #707880;
    margin: 5px 0 0;
    font-size: 14px;
}

.vm-favorites-page__notice {
    border-radius: 10px;
}

.vm-favorites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.vm-favorite-card {
    position: relative;
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 7px 22px rgba(31, 38, 45, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.vm-favorite-card:hover {
    border-color: rgba(162, 34, 44, .25);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 38, 45, .09);
}

.vm-favorite-card__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    color: #30363d;
    padding: 14px 14px 14px 70px;
    text-decoration: none !important;
}

.vm-favorite-card__image {
    display: block;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background: #f4f5f6;
    border-radius: 12px;
    overflow: hidden;
}

.vm-favorite-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vm-favorite-card__title {
    color: #30363d;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.9;
}

.vm-favorite-card form {
    position: absolute;
    left: 12px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
}

.vm-favorite-card__remove {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #a2222c;
    background: #fff1f2;
    border: 0;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
}

.vm-favorite-card__remove .vm-icon {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: currentColor;
}

.vm-favorite-card__remove span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.vm-favorites-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed #cfd4d9;
    border-radius: 16px;
    padding: 54px 20px;
}

.vm-favorites-empty > span {
    display: block;
    color: #a2222c;
    font-size: 54px;
    line-height: 1;
}

.vm-favorites-empty h2 {
    color: #30363d;
    margin: 15px 0 6px;
    font-size: 21px;
    font-weight: 900;
}

.vm-favorites-empty p {
    color: #717981;
    margin: 0 0 18px;
}

.vm-favorites-empty .btn {
    color: #fff;
    background: #a2222c;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 800;
}

.vm-favorites-page__pagination {
    margin-top: 28px;
}

@media (max-width: 991.98px) {
    .vm-favorites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .vm-shared-tool-heading,
    .vm-shared-tool-heading:has(> .vm-tool-service-price) {
        grid-template-columns: 48px minmax(0, 1fr) !important;
    }

    .vm-tool-engagement {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: stretch;
        justify-content: flex-end;
        width: 100%;
        min-width: 0;
        border-top: 1px solid #eceef0;
        margin-top: 12px;
        padding-top: 12px;
    }

    .vm-shared-tool-heading:has(> .vm-tool-service-price) > .vm-tool-engagement {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .vm-tool-engagement-fallback-heading {
        padding-bottom: 58px !important;
    }

    .vm-tool-engagement-fallback-heading > .vm-tool-engagement {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
    }
}

@media (max-width: 575.98px) {
    .vm-tool-engagement__report {
        padding: 0 11px;
    }

    .vm-tool-report-body,
    .vm-tool-report-header {
        padding-right: 17px;
        padding-left: 17px;
    }

    .vm-favorites-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vm-favorites-page__header {
        align-items: flex-start;
    }
}
