.chatdock {
    bottom: 47px;
    pointer-events: none;
    position: fixed;
    right: 40px;
    z-index: 9999;
}

.chatdock__launcher {
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    cursor: pointer;
    display: grid;
    height: 77px;
    padding: 0;
    place-items: center;
    pointer-events: auto;
    width: 77px;
}

.chatdock__launcher img {
    display: block;
    height: 64px;
    width: 64px;
}

.chatdock__tip {
    background: #fff;
    border: 1px solid rgba(10, 18, 40, .12);
    border-radius: 8px;
    bottom: 16px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .10);
    color: #A3A3A3;
    display: none;
    font-size: 14px;
    line-height: 1.25;
    min-width: 390px;
    opacity: 0;
    padding: 12px 44px 12px 14px;
    pointer-events: auto;
    position: absolute;
    right: 95px;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
}

.chatdock__tip.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.chatdock__tip::before {
    background: #ffffff;
    border: 1px solid rgba(10, 18, 40, .12);
    box-shadow: 6px 8px 18px rgba(0, 0, 0, .06);
    content: "";
    height: 14px;
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 14px;
}

/* hide the extra border lines so it looks connected */

.chatdock__tip::after {
    background: #ffffff;
    content: "";
    height: 20px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
}

.chatdock__tipclose {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 22px;
    height: 28px;
    line-height: 28px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
}

.chatdock__tipclose img {
    filter: brightness(0) saturate(100%) invert(70%);
}

.chatdock__badge {
    background: #8b1d0e;
    border-radius: 50%;
    bottom: 56px;
    color: #fff;
    display: grid;
    font-size: 12px;
    height: 18px;
    place-items: center;
    pointer-events: none;
    position: absolute;
    right: 6px;
    width: 18px;
}

/* Panel */

.chatpanel {
    background: transparent;
    border: 1px solid rgba(10, 18, 40, .08);
    border-radius: 32px;
    bottom: -2px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .22);
    display: none;
    max-width: calc(100vw - 36px);
    overflow: hidden;
    pointer-events: auto;
    position: absolute;
    right: -2px;
    width: 483px;
}

.chatpanel.is-open {
    display: block;
}

/* Header: solid */

.chatpanel__head {
    align-items: center;
    background: #0c1f53;
    box-shadow: inset 0 7px 7px rgba(255, 255, 255, .7);
    color: #fff;
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    height: 52px;
    padding: 6px 10px 0 13px;
}

/* Delete icon (top-left) */

.chatpanel__headleft {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.iconbtn {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.iconbtn img {
    display: block;
    height: 22px;
    width: 22px;
}

.chatpanel__title {
    font-size: 22px;
    letter-spacing: .2px;
    text-align: center;
    user-select: none;
}

/* Close (top-right) */

.chatpanel__headright {
    align-items: center;
    display: flex;
    justify-content: flex-end;
}

.closebtn {
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: grid;
    font-size: 30px;
    height: 44px;
    line-height: 44px;
    place-items: center;
    width: 44px;
}

/* Frosted background (20px blur) */

.chatpanel__body {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(240, 240, 240, .72);
}

.chatpanel__foot {
    background: #E6E6E6;
}

.chatpanel__body {
    height: 320px;
    overflow: auto;
    padding: 18px 18px 10px;
}

.msg {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px 1fr;
    margin: 0 0 20px;
}

.msg__avatar {
    background: #fff;
    border-radius: 12px;
    border-radius: 50%;
    display: grid;
    height: 42px;
    place-items: center;
    width: 42px
}

.msg__avatar img {
    display: block;
    height: 34px;
    width: 34px;
}

.msg__bubble {
    background: rgba(255, 255, 255, .86);
    border-radius: 0 32px 32px 32px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .06);
    color: #00205D;
    font-size: 12px;
    line-height: 1.45;
    padding: 10px 14px 20px;
}

.msg--me {
    grid-template-columns: 1fr;
    justify-items: end;
}

.msg--me .msg__bubble {
    background: #0c1f53;
    border-color: rgba(255, 255, 255, .15);
    border-radius: 32px 0 32px 32px;
    box-shadow: 0 10px 20px rgba(12, 31, 83, .22);
    color: #fff;
    max-width: 78%;
    padding: 10px 14px;
}

/* Composer with floating send button (bottom-right) */

.composer {
    position: relative;
}

.composer__input {
    background: transparent;
    border: 0;
    color: #A3A3A3;
    font-size: 15px;
    outline: none;
    padding: 18px 72px 18px 30px;
    width: 100%;
}

.composer__input::placeholder {
    color: rgba(17, 24, 39, .45);
}

.composer__send {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    position: absolute;
    right: 6px;
    top: -18px;
}

.composer__send img {
    display: block;
    height: 38px;
    width: 38px;
}

.composer__send:active img { /* neu img */
    transform: translateY(calc(-50% + 1px));
}

.chatrate {
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(240, 240, 240, .72);
    color: rgba(12, 31, 83, .30);
    display: flex;
    font-size: 12px;
    gap: 2px;
    padding: 10px 0 6px 30px;
    user-select: none;
}

.chatrate__btn {
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    height: 26px;
    opacity: .35;
    padding: 0;
    place-items: center;
    width: 26px;
}

.chatrate__btn img {
    display: block;
    filter: invert(22%) sepia(19%) saturate(0%) hue-rotate(196deg) brightness(90%);
    height: 16px;
    width: 16px;
}

.chatrate__btn--down img {
    transform: rotate(180deg);
}

.chatrate__btn:hover {
    background: rgba(12, 31, 83, .06);
    opacity: .7;
}

.chatrate__btn:active {
    transform: translateY(1px);
}