.dg-written-chat {
    position: fixed;
    z-index: 9998;
    right: 22px;
    bottom: 20px;
    display: grid;
    max-width: min(300px, calc(100vw - 32px));
    gap: 8px;
    justify-items: end;
}

.dg-written-chat__button {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    background: #111214;
    box-shadow: 0 14px 36px rgba(17, 18, 20, 0.24);
    color: #fff;
    cursor: pointer;
    padding: 9px 16px 9px 10px;
    text-align: left;
}

.dg-written-chat__button:hover,
.dg-written-chat__button:focus-visible {
    border-color: #f89366;
    background: #1d1e20;
}

.dg-written-chat__button:disabled {
    cursor: wait;
    opacity: 0.78;
}

.dg-written-chat__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 2px;
    background: #b45a38;
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.dg-written-chat__button strong,
.dg-written-chat__button small {
    display: block;
}

.dg-written-chat__button strong {
    font-size: 14px;
    line-height: 1.15;
}

.dg-written-chat__button small {
    margin-top: 3px;
    color: #c7cdd4;
    font-size: 11px;
}

.dg-written-chat__notice {
    margin: 0;
    border: 1px solid #d7dce2;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 18, 20, 0.16);
    color: #30353b;
    padding: 10px 12px;
    font-size: 12px;
}

.dg-written-chat__notice a {
    color: #93452e;
    font-weight: 700;
}

.dg-written-chat.is-loaded {
    display: none;
}

@media (max-width: 600px) {
    .dg-written-chat {
        right: 14px;
        bottom: 14px;
    }

    .dg-written-chat__button {
        width: 48px;
        min-height: 48px;
        overflow: hidden;
        border-radius: 50%;
        padding: 6px;
    }

    .dg-written-chat__button > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .dg-written-chat__icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dg-written-chat *,
    .dg-written-chat *::before,
    .dg-written-chat *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
