.beaver-cogi-launcher-wrap,
#beaver-cogi-modal,
#beaver-cogi-modal * {
    box-sizing: border-box;
}

.beaver-cogi-launcher-wrap {
    position: fixed;
    right: 45px;
    bottom: 100px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.beaver-cogi-launcher {
    position: relative;
    display: block;
    width: 64px;
    min-width: 64px;
    height: 64px;
    min-height: 64px;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 50% !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent;
    line-height: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .25s ease;
}

.beaver-cogi-launcher:hover {
    transform: scale(1.08);
}

.beaver-cogi-launcher:active {
    transform: scale(.98);
}

.beaver-cogi-launcher:hover,
.beaver-cogi-launcher:focus,
.beaver-cogi-launcher:focus-visible,
.beaver-cogi-launcher:active {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent;
}

.beaver-cogi-launcher:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .28) !important;
}

.beaver-cogi-launcher::before,
.beaver-cogi-launcher::after {
    display: none !important;
    content: none !important;
}

.beaver-cogi-launcher img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 50%;
    object-fit: contain;
    pointer-events: none;
}

.beaver-cogi-greeting {
    position: absolute;
    top: 50%;
    right: calc(100% + 16px);
    width: min(362px, calc(100vw - 140px));
    padding: 11px 40px 11px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
    color: #334155;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(10px, -50%);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.beaver-cogi-greeting.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.beaver-cogi-greeting p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.5;
    word-break: keep-all;
}

.beaver-cogi-greeting-close {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

#beaver-cogi-modal {
    display: none;
    position: fixed;
    right: 2%;
    bottom: 2%;
    z-index: 2147483001;
    width: 400px;
    height: 680px;
    max-height: calc(100vh - 30px);
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .18);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#beaver-cogi-modal.is-open {
    display: block;
}

.beaver-cogi-modal-top {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 0 14px;
    background: #fff;
    cursor: move;
    user-select: none;
}

.beaver-cogi-refresh,
.beaver-cogi-close {
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    margin: 0 5px;
    padding: 3px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #333;
    font-size: 20px;
    line-height: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.beaver-cogi-refresh:hover,
.beaver-cogi-close:hover,
.beaver-cogi-refresh:focus,
.beaver-cogi-close:focus,
.beaver-cogi-refresh:focus-visible,
.beaver-cogi-close:focus-visible,
.beaver-cogi-refresh:active,
.beaver-cogi-close:active {
    padding: 3px 0 !important;
    border: 0 !important;
    border-radius: 5px !important;
    outline: 0;
    background: rgba(168, 189, 227, .142) !important;
    box-shadow: none !important;
    color: #333;
}

.beaver-cogi-refresh::before,
.beaver-cogi-refresh::after,
.beaver-cogi-close::before,
.beaver-cogi-close::after {
    display: none !important;
    content: none !important;
}

.beaver-cogi-refresh svg,
.beaver-cogi-close svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #333;
    pointer-events: none;
}

.beaver-cogi-modal-title {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.beaver-cogi-modal-title img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
}

.beaver-cogi-modal-title span {
    color: #333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.beaver-cogi-modal-title small {
    display: block;
    margin-top: 2px;
    color: #919191;
    font-size: 10px;
    font-weight: 400;
}

.beaver-cogi-content {
    width: 100%;
    height: calc(100% - 60px);
    background: #fff;
}

.beaver-cogi-error {
    padding: 30px 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.beaver-cogi-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .beaver-cogi-launcher-wrap {
        right: 16px;
        bottom: 24px;
    }

    .beaver-cogi-greeting {
        width: min(290px, calc(100vw - 110px));
    }

    .beaver-cogi-greeting p {
        font-size: 14px;
    }

    #beaver-cogi-modal {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        height: min(680px, calc(100vh - 20px));
        height: min(680px, calc(100dvh - 20px));
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 20px;
    }

    .beaver-cogi-modal-top {
        cursor: default;
    }
}
