﻿.online-consult-popup,
.online-consult-popup * {
    box-sizing: border-box;
}

.online-consult-popup {
    position: fixed;
    top: calc(var(--header-h, 76px) + 24px);
    right: 24px;
    z-index: 15000;
    width: 318px;
    max-width: calc(100vw - 48px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 242, 0.94)),
        #ffffff;
    box-shadow: 0 24px 70px rgba(14, 34, 29, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.online-consult-popup.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.online-consult-popup:hover {
    box-shadow: 0 30px 90px rgba(0, 124, 114, 0.22);
}

.online-consult-popup::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(180deg, #007c72, #c69d62);
}

.online-consult-popup__link {
    display: grid;
    gap: 8px;
    padding: 20px 44px 20px 22px;
    color: #14201d;
    text-decoration: none;
}

.online-consult-popup__label {
    width: max-content;
    border: 1px solid rgba(0, 124, 114, 0.18);
    border-radius: 999px;
    padding: 5px 9px;
    color: #007c72;
    background: rgba(0, 124, 114, 0.08);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.online-consult-popup strong {
    max-width: 230px;
    color: #14201d;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.08;
}

.online-consult-popup__price {
    white-space: nowrap;
}

.online-consult-popup__link > span:not(.online-consult-popup__label):not(.online-consult-popup__cta) {
    color: #5c6f69;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.online-consult-popup__note {
    margin-top: 2px;
    color: rgba(20, 32, 29, 0.54) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.online-consult-popup__cta {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: #007c72;
    font-size: 14px;
    font-weight: 900;
}

.online-consult-popup__cta::after {
    content: "→";
    transition: transform 0.18s ease;
}

.online-consult-popup__link:hover .online-consult-popup__cta::after,
.online-consult-popup__link:focus-visible .online-consult-popup__cta::after {
    transform: translateX(4px);
}

.online-consult-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(20, 32, 29, 0.12);
    border-radius: 999px;
    color: #14201d;
    background: rgba(255, 255, 255, 0.82);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.online-consult-popup__close:hover,
.online-consult-popup__close:focus-visible {
    border-color: rgba(0, 124, 114, 0.34);
    color: #007c72;
}

html.a11y-on .online-consult-popup,
html.a11y-on .online-consult-popup * {
    font-family: Arial, Verdana, sans-serif !important;
}

html.a11y-on .online-consult-popup {
    border: 2px solid currentColor;
    color: #000;
    background: #fff !important;
    box-shadow: none;
}

html.a11y-on .online-consult-popup::before {
    display: none;
}

html.a11y-on .online-consult-popup__label,
html.a11y-on .online-consult-popup__cta,
html.a11y-on .online-consult-popup strong,
html.a11y-on .online-consult-popup span {
    color: currentColor !important;
    background: transparent !important;
}

@media (max-width: 720px) {
    .online-consult-popup {
        top: auto;
        right: 10px;
        bottom: 92px;
        width: min(360px, calc(100vw - 20px));
    }

    .online-consult-popup__link {
        padding: 16px 42px 16px 18px;
    }

    .online-consult-popup strong {
        max-width: none;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .online-consult-popup,
    .online-consult-popup__cta::after {
        transition: none;
    }
}

.online-consult-sticker,
.online-consult-sticker * {
    box-sizing: border-box;
}

.online-consult-sticker {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 14500;
    width: 206px;
    max-width: calc(100vw - 48px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, width 0.22s ease;
}

.online-consult-sticker.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.online-consult-sticker.is-expanded {
    width: 320px;
}

.online-consult-sticker.is-cookie-visible {
    bottom: 252px;
}

.online-consult-sticker__trigger {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    padding: 10px 34px 10px 10px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(0, 124, 114, 0.96), rgba(18, 53, 47, 0.98)),
        #007c72;
    box-shadow: 0 18px 52px rgba(0, 124, 114, 0.26);
    text-align: left;
    cursor: pointer;
}

.online-consult-sticker__trigger:hover,
.online-consult-sticker__trigger:focus-visible {
    box-shadow: 0 22px 64px rgba(0, 124, 114, 0.34);
}

.online-consult-sticker__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    color: #007c72;
    background: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.online-consult-sticker__body {
    display: grid;
    gap: 1px;
}

.online-consult-sticker__body span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.online-consult-sticker__body strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.05;
}

.online-consult-sticker__close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 4;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(20, 32, 29, 0.12);
    border-radius: 999px;
    color: #14201d;
    background: rgba(255, 255, 255, 0.94);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(14, 34, 29, 0.14);
}

.online-consult-sticker__panel {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    border: 1px solid rgba(20, 32, 29, 0.10);
    border-radius: 8px;
    padding: 14px;
    color: #14201d;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 64px rgba(14, 34, 29, 0.20);
}

.online-consult-sticker__panel[hidden],
.online-consult-sticker__form[hidden] {
    display: none;
}

.online-consult-sticker__title {
    margin: 0;
    color: #5c6f69;
    font-size: 13px;
    font-weight: 900;
}

.online-consult-sticker__note {
    margin: 0;
    color: rgba(20, 32, 29, 0.54);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.online-consult-sticker__options {
    display: grid;
    gap: 8px;
}

.online-consult-sticker__option {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 9px;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(20, 32, 29, 0.10);
    border-radius: 8px;
    padding: 9px 10px;
    color: #14201d;
    background: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.online-consult-sticker__option:hover,
.online-consult-sticker__option:focus-visible {
    border-color: rgba(0, 124, 114, 0.30);
    box-shadow: 0 10px 24px rgba(0, 124, 114, 0.10);
    transform: translateY(-1px);
}

.online-consult-sticker__option span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 124, 114, 0.08);
}

.online-consult-sticker__form {
    display: grid;
    gap: 9px;
    border-top: 1px solid rgba(20, 32, 29, 0.10);
    padding-top: 12px;
}

.online-consult-sticker__form label {
    display: grid;
    gap: 5px;
    color: #5c6f69;
    font-size: 12px;
    font-weight: 900;
}

.online-consult-sticker__form input {
    width: 100%;
    border: 1px solid rgba(20, 32, 29, 0.14);
    border-radius: 8px;
    padding: 10px 11px;
    color: #14201d;
    background: #ffffff;
    outline: none;
}

.online-consult-sticker__form input:focus {
    border-color: rgba(0, 124, 114, 0.42);
    box-shadow: 0 0 0 4px rgba(0, 124, 114, 0.08);
}

.online-consult-sticker__form button[type="submit"] {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: #007c72;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.online-consult-sticker__form button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.72;
}

.online-consult-sticker__status {
    display: none;
    margin: 0;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.online-consult-sticker__status.is-visible {
    display: block;
}

.online-consult-sticker__status--success {
    color: #005d56;
    background: rgba(0, 124, 114, 0.10);
}

.online-consult-sticker__status--error {
    color: #8b3d2c;
    background: rgba(196, 108, 79, 0.14);
}

.online-consult-sticker__status--pending {
    color: #5c6f69;
    background: rgba(20, 32, 29, 0.06);
}

html.a11y-on .online-consult-sticker,
html.a11y-on .online-consult-sticker * {
    font-family: Arial, Verdana, sans-serif !important;
}

html.a11y-on .online-consult-sticker__trigger,
html.a11y-on .online-consult-sticker__panel,
html.a11y-on .online-consult-sticker__option,
html.a11y-on .online-consult-sticker__form input,
html.a11y-on .online-consult-sticker__form button[type="submit"] {
    border: 2px solid currentColor;
    color: #000 !important;
    background: #fff !important;
    box-shadow: none;
}

html.a11y-on .online-consult-sticker__icon,
html.a11y-on .online-consult-sticker__body span,
html.a11y-on .online-consult-sticker__body strong,
html.a11y-on .online-consult-sticker__option span {
    color: currentColor !important;
    background: transparent !important;
}

@media (max-width: 720px) {
    .online-consult-sticker {
        right: 10px;
        bottom: 92px;
        width: 184px;
    }

    .online-consult-sticker.is-expanded {
        width: min(330px, calc(100vw - 20px));
    }

    .online-consult-sticker.is-cookie-visible {
        bottom: 390px;
    }
}

/* SVG-иконки виджета связи */
.online-consult-sticker__icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.online-consult-sticker__option span svg {
    width: 18px;
    height: 18px;
    display: block;
    color: #0b5f52;
}

/* Мягкое «дыхание» кнопки связи, пока панель закрыта */
@keyframes sticker-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.online-consult-sticker.is-open:not(.is-expanded) .online-consult-sticker__trigger {
    animation: sticker-float 3.4s ease-in-out infinite;
}

.online-consult-sticker__trigger:hover,
.online-consult-sticker__trigger:focus-visible {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .online-consult-sticker__trigger {
        animation: none !important;
    }
}
