/*
 * J&V Unified Arrows 1.5.0
 * Точковий патч для реальної структури кнопок сайту.
 * Старий символ повністю замінюється на CSS-стрілку без вертикального «хвоста».
 */

/*
 * Реальний контейнер проблемної стрілки:
 * .jvmr-ui-button > .jvmr-ui-arrow
 *
 * Важливо: псевдоелемент ::after належить САМОМУ контейнеру стрілки.
 * Саме там тема виводила додатковий символ "→" поверх нової SVG-стрілки.
 */
html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host {
    --jv-arrow-v130-color: #0b172f;
    --jv-arrow-v130-line: 20px;
    --jv-arrow-v130-head: 8px;
    --jv-arrow-v130-stroke: 2px;

    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    isolation: isolate !important;
    color: var(--jv-arrow-v130-color) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
}

/* Прибираємо будь-які старі SVG, текстові символи та шари попередніх версій. */
html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host > * {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host > .jv-arrow-v120-overlay,
html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host > .jv-arrow-v110-overlay,
html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host > .jv-arrow-v130-overlay {
    display: none !important;
}

/* Горизонтальна лінія нової стрілки. */
html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: 20 !important;
    left: 50% !important;
    top: 50% !important;
    width: var(--jv-arrow-v130-line) !important;
    height: var(--jv-arrow-v130-stroke) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--jv-arrow-v130-color) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-55%, -50%) !important;
    pointer-events: none !important;
}

/* Наконечник без додаткової вертикальної лінії. */
html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: 21 !important;
    left: calc(50% + 4px) !important;
    top: 50% !important;
    width: var(--jv-arrow-v130-head) !important;
    height: var(--jv-arrow-v130-head) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: var(--jv-arrow-v130-stroke) solid var(--jv-arrow-v130-color) !important;
    border-right: var(--jv-arrow-v130-stroke) solid var(--jv-arrow-v130-color) !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: transparent !important;
    font-family: sans-serif !important;
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
    pointer-events: none !important;
}

/* Компактні круги 34–46 px. */
html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host.jv-arrow-v130-small {
    --jv-arrow-v130-line: 18px;
    --jv-arrow-v130-head: 7px;
    --jv-arrow-v130-stroke: 2px;
}

/* Великі круги у плаваючому квізі. */
html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host.jv-arrow-v130-large {
    --jv-arrow-v130-line: 25px;
    --jv-arrow-v130-head: 10px;
    --jv-arrow-v130-stroke: 2.2px;
}

/* Старі hover-анімації не повинні зсувати або обертати іконку. */
html body .jvmr-ui-button:hover .jvmr-ui-arrow.jv-arrow-v130-host,
html body .jvmr-ui-button:focus .jvmr-ui-arrow.jv-arrow-v130-host,
html body .jvmr-ui-button:active .jvmr-ui-arrow.jv-arrow-v130-host {
    transform: none !important;
}

/*
 * «Усі кейси»: у звичайному стані текст і стрілка темні,
 * на hover/focus стають білими, як було задумано в макеті.
 * Інші тексти сторінки цей блок не зачіпає.
 */
html body a.jv-all-cases-v130,
html body a.jv-all-cases-v130:link,
html body a.jv-all-cases-v130:visited,
html body a.jv-all-cases-v130 > span:first-child {
    color: #0b172f !important;
    -webkit-text-fill-color: #0b172f !important;
}

html body a.jv-all-cases-v130 .jvcr-button__icon {
    color: #0b172f !important;
}

html body a.jv-all-cases-v130 .jvcr-button__icon::before {
    background: #0b172f !important;
    background-color: #0b172f !important;
}

html body a.jv-all-cases-v130 .jvcr-button__icon::after {
    border-color: #0b172f !important;
    border-top-color: #0b172f !important;
    border-right-color: #0b172f !important;
}

html body a.jv-all-cases-v130:hover,
html body a.jv-all-cases-v130:focus,
html body a.jv-all-cases-v130:focus-visible,
html body a.jv-all-cases-v130:active,
html body a.jv-all-cases-v130:hover > span:first-child,
html body a.jv-all-cases-v130:focus > span:first-child,
html body a.jv-all-cases-v130:active > span:first-child {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body a.jv-all-cases-v130:hover .jvcr-button__icon,
html body a.jv-all-cases-v130:focus .jvcr-button__icon,
html body a.jv-all-cases-v130:active .jvcr-button__icon {
    color: #ffffff !important;
}

html body a.jv-all-cases-v130:hover .jvcr-button__icon::before,
html body a.jv-all-cases-v130:focus .jvcr-button__icon::before,
html body a.jv-all-cases-v130:active .jvcr-button__icon::before {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

html body a.jv-all-cases-v130:hover .jvcr-button__icon::after,
html body a.jv-all-cases-v130:focus .jvcr-button__icon::after,
html body a.jv-all-cases-v130:active .jvcr-button__icon::after {
    border-color: #ffffff !important;
    border-top-color: #ffffff !important;
    border-right-color: #ffffff !important;
}

/*
 * Головна сторінка: прибираємо порожній «хвіст» ПІСЛЯ футера.
 *
 * Діагностика показала, що це не padding футера. Висоту документа
 * утримує абсолютний декоративний шар .jvmr-continuous-atmosphere,
 * який залишається 8038px навіть після того, як реальний футер уже закінчився.
 * JS записує точний низ футера в --jv-home-real-bottom.
 */
html body.jv-home-tail-fixed-v150 {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

html body.jv-home-tail-fixed-v150 .jv-footer-compact-chain-v150 {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin-bottom: 0 !important;
}

html body.jv-home-tail-fixed-v150 .jv-footer-compact-root-v150 {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding-bottom: clamp(22px, 2.4vw, 38px) !important;
    margin-bottom: 0 !important;
}

/* Саме цей шар створював зайву прокрутку після футера. */
html body.jv-home-tail-fixed-v150 > .jvmr-continuous-atmosphere,
html body.jv-home-tail-fixed-v150 .jvmr-continuous-atmosphere {
    height: var(--jv-home-real-bottom, auto) !important;
    min-height: 0 !important;
    max-height: var(--jv-home-real-bottom, none) !important;
    bottom: auto !important;
}

/* Його псевдоелемент мав таку саму стару висоту; обмежуємо межами контейнера. */
html body.jv-home-tail-fixed-v150 .jvmr-continuous-atmosphere::after {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
}

@media (max-width: 767px) {
    html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host {
        --jv-arrow-v130-line: 19px;
        --jv-arrow-v130-head: 8px;
        --jv-arrow-v130-stroke: 2px;
    }

    html body .jvmr-ui-button .jvmr-ui-arrow.jv-arrow-v130-host.jv-arrow-v130-large {
        --jv-arrow-v130-line: 23px;
        --jv-arrow-v130-head: 9px;
    }
}
