/* Стили шапки. BEM-слой (.header__*) живёт в style.css — здесь только то,
   что относится к блоку уведомлений, попапу и утилитам разметки шапки. */

body {
    margin: 0;
}

/* ---------------------------- УТИЛИТЫ ---------------------------- */
.hidden {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------- УВЕДОМЛЕНИЯ --------------------------- */
/* .header-notification и вложенные классы — DOM-контракт notifications.js,
   переименовывать нельзя. */
.header-notification {
    border-right: 1px solid #404040;
    border-left: 1px solid #404040;
    width: 75px;
    height: 100%;
    display: flex;
    position: relative;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

    .header-notification svg {
        -webkit-transition: 0.3s;
        transition: 0.3s;
    }

    .header-notification:hover svg path {
        stroke: #333;
    }

    .header-notification:hover {
        background-color: #fff;
    }

.header-notification-open {
    display: flex;
    height: 0px;
    overflow-y: auto;
    opacity: 0;
    position: absolute;
    width: 420px;
    max-width: calc(100vw - 40px);
    top: -180px;
    left: 0;
    z-index: 3;
    background: #FFFFFF;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05), 0px 15px 50px rgba(0, 0, 0, 0.1);
    border-radius: 0px 15px 15px 15px;
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #444444;
    padding: 15px;
    align-items: start;
    flex-direction: column-reverse;
}

.header-notification.active .header-notification-open {
    opacity: 1;
    height: fit-content;
    top: var(--header-h);
    max-height: 331px;
}

/* Счётчик непрочитанных. .frame-frame1/.frame-text06 — тоже контракт notifications.js. */
.frame-frame1 {
    top: 19.25px;
    left: 36.5px;
    height: 16.78px;
    display: flex;
    padding: 1px 6px;
    position: absolute;
    align-items: center;
    flex-shrink: 0;
    border-color: transparent;
    border-radius: 50px;
    justify-content: center;
    background-color: #0E8C1A;
}

.frame-text06 {
    color: rgba(255, 255, 255, 1);
    height: auto;
    font-size: 13px;
    text-align: center;
    font-family: Inter Tight;
    font-weight: 900;
    line-height: normal;
    text-decoration: none;
}

.notification {
    width: 100%;
    height: fit-content;
    padding-bottom: 10px;
    padding-top: 10px;
}

.notification-time {
    font-family: Inter Tight;
    font-size: 11px;
    font-weight: 500;
    line-height: 13px;
    text-align: left;
    color: #99999980;
}

.notification-body {
    font-family: Inter Tight;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    text-align: left;
    color: #444444;
}

    .notification-body a {
        color: #0E8C1A;
    }

.notif-bold {
    font-weight: 800;
}

/* --------------------------- ПРОФИЛЬ ----------------------------- */
.header-font-2 {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 26px;
    color: rgba(153, 153, 153, 0.5);
}

    .header-font-2 .agent-header {
        color: #333;
    }

.input-header {
    display: none;
    border: 1px solid #d6d6da;
    border-radius: 6px;
    padding: 4px 8px;
    width: 100%;
    font-size: 14px;
    color: #333;
}

    .input-header:focus {
        border-color: #0E8C1A;
    }

/* ---------------------------- ПОПАП ------------------------------ */
.popup1-wrapper {
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

    .popup1-wrapper svg {
        position: absolute;
        width: 20px;
        height: 20px;
        right: 8px;
        top: 8px;
        cursor: pointer;
    }

.popup1 {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 32px 25px 25px;
    font-size: 18px;
    line-height: 1.4;
    max-width: 100%;
    position: relative;
}

.popup1__cross-line {
    fill: none;
    stroke: #000;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2px;
}

.popup1-wrapper.active {
    display: flex;
}
