html {
    background-color: #ffffff !important; 
}
body {
    background-color: #FFFFFF;
    position:relative;
    overflow: hidden;
}
header,
.header--fixed 
{
    background: #FFFFFF;
}
.specialist__booking:empty {
    display: none;
}
#captcha-container {
    display: inline-block;
    width: fit-content;
    height: auto;
    max-width: 300px;
}

#btnChat.telegram {
    background: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg width='800px' height='800px' viewBox='0 0 256 256' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' preserveAspectRatio='xMidYMid'%3E%3Cg%3E%3Cpath d='M128,0 C57.307,0 0,57.307 0,128 L0,128 C0,198.693 57.307,256 128,256 L128,256 C198.693,256 256,198.693 256,128 L256,128 C256,57.307 198.693,0 128,0 L128,0 Z' fill='%2340B3E0'%3E%3C/path%3E%3Cpath d='M190.2826,73.6308 L167.4206,188.8978 C167.4206,188.8978 164.2236,196.8918 155.4306,193.0548 L102.6726,152.6068 L83.4886,143.3348 L51.1946,132.4628 C51.1946,132.4628 46.2386,130.7048 45.7586,126.8678 C45.2796,123.0308 51.3546,120.9528 51.3546,120.9528 L179.7306,70.5928 C179.7306,70.5928 190.2826,65.9568 190.2826,73.6308' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M98.6178,187.6035 C98.6178,187.6035 97.0778,187.4595 95.1588,181.3835 C93.2408,175.3085 83.4888,143.3345 83.4888,143.3345 L161.0258,94.0945 C161.0258,94.0945 165.5028,91.3765 165.3428,94.0945 C165.3428,94.0945 166.1418,94.5735 163.7438,96.8115 C161.3458,99.0505 102.8328,151.6475 102.8328,151.6475' fill='%23D2E5F1'%3E%3C/path%3E%3Cpath d='M122.9015,168.1154 L102.0335,187.1414 C102.0335,187.1414 100.4025,188.3794 98.6175,187.6034 L102.6135,152.2624' fill='%23B5CFE4'%3E%3C/path%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
}


/* Основной контейнер виджета */
#swidget {
    position: fixed;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Десктоп — справа внизу */
@media (min-width: 768px) {
    #swidget {
        bottom: 14px;
        right: 20px;
        left: auto;
        width: 270px;
    }
    #swidget.widthCookieNotification {
        bottom: 80px;
    }
}

/* Мобильные — по центру, почти на всю ширину */
@media (max-width: 767px) {
    #swidget {
        bottom: 16px;
        width: 270px;
        right: 14px;
    }
    #swidget.widthCookieNotification {
        /*bottom: 100px;*/
        bottom: 200px;
    }
}

/* Общий стиль для обеих версий */
#swidget .box {
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: appear 0.4s ease-out forwards;
}

/* Компактный режим - Уменьшены отступы */
#swidget .compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 16px;
    cursor: pointer;
    min-height: 50px;
    gap: 15px;
    box-sizing: border-box;
    text-decoration: none;
}

/* Раскрытый режим - Уменьшены отступы */
#swidget .expanded {
    padding: 20px 16px 16px;
    position: relative;
    min-height: auto;
    box-sizing: border-box;
}

#swidget .icons {
    display: flex;
    flex-shrink: 0;
}
#swidget .icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Иконки в компактном режиме */
#swidget .compact .icon {
    width: 28px;
    height: 28px;
}

#swidget .compact .icon:not(:first-child) {
    margin-left: -6px;
    z-index: -1;
}

/* Иконки в расширенном режиме */
#swidget .expanded .icon {
    width: 40px;
    height: 40px;
}

#swidget .icon svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
#swidget .icon.wa {
    background: #1ed742;
}
#swidget .icon.tg {
    background: #27a7e7;
    position: relative;
}
#swidget .icon.wa svg {
    width: 80%;
}
#swidget .icon.tg svg {
    width: 70%;
    position: absolute;
    left: 3px;
    bottom: -1px;
}

#swidget .text {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    flex-grow: 1;
}

/* Контент раскрытой версии */
#swidget .expanded-content {
    width: 100%;
}

#swidget .header-note {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    padding: 0 30px 0 8px;
    line-height: 1.4;
}

#swidget .options {
    margin-top: 8px;
    width: 100%;
}
#swidget .option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-bottom: 6px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}
#swidget .option:hover { background: rgba(0,0,0,0.07); }
#swidget .option-text {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

#swidget .close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 28px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
#swidget .close:hover { background: rgba(0,0,0,0.1); }

@keyframes appear {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}


.element .btn_tg {
    display: block;
}
.btn_tg {
    background: url(/themes/neiropsi/assets/images/telegram-bg.svg) 0 100% no-repeat,linear-gradient(90deg,#1a95d0 0,#3bb6f5 100%);
    color: #fff;
    border: none !important;
    width: 100%;
    box-sizing: border-box;
}
.popup__comments__text .element {
    text-align: left;
    margin-top: 20px;
    padding: 20px 40px;
}
.popup__comments__text .element:first-child {
    margin-top: 0;
}
#specialist_modal_container .popup__comments__text .element .page__title {
    margin-top: 2px;
}
@media (max-width: 768px) {
    .popup__result-state {
        padding: 20px !important;
    }
    .popup__comments__text .element {
        padding: 20px 30px !important;
    }
}
#nav {
    background: #5b5954;
    height: 40px;
}
#nav .header__list--mobile {
    padding: 0;
}
#nav .header__nav-link {
    font-size: 1.8rem;
    color: var(--text);
    padding: 0.7rem 1rem;
    min-height: auto;
}
#nav .header__nav-item--active .header__nav-link {
    color: #fec;
}
@media (min-width:68em) {
    #nav {
        height: 34px;
    }
    #nav .header__nav-link {
        padding: 0.7rem 1.4rem;
        font-size: 1.4rem;
    }
    #nav .header__list--mobile .header__nav-item:first-child a {
        padding-left: 0px !important;
    }
}
@media (min-width:108em) {
    #nav {
        height: 48px;
    }
    #nav .header__nav-link {
        font-size: 1.6rem;
    }
}

#maxDialog {
    max-height: 300px;
    align-content: center;
}
