@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

body {
    display: flex;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

:root {
    --color-white: #FFFFFF;
    --color-gray-50: #F6F7F8;
    --color-gray-100: #EAEEF1;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #485261;
    --color-gray-700: #3F4856;
    --color-gray-800: #343C4A;
    --color-indigo-400: #8286FC;
    --color-indigo-500: #656AF5;
    --color-indigo-600: #4247D9;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    right: 0;
    bottom: 0;
    padding: 24px 32px 32px 24px;
    pointer-events: none;
    position: absolute;
}

.widget {
    background-color: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px #343C4A1A,
        0 4px 6px -2px #343C4A0D,
        0 0 0 1px var(--color-gray-50);
    display: flex;
    flex-direction: column;
    font-size: 14px;
    opacity: 0;
    pointer-events: auto;
    transform-origin: bottom right;
    transform: scale(0.8);
    transition-duration: 600ms;
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.widget.loaded {
    opacity: 1;
    transform: scale(1);
}

.widget[data-expanded="true"] {
    animation-duration: 250ms;
    animation-name: expand;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.widget[data-expanded="false"] {
    animation-duration: 200ms;
    animation-name: minimize;
    animation-timing-function: ease-in-out;
}

.widget[data-expanded="false"]:not([data-minimizing]) {
    animation-name: pop-out;
}

@keyframes expand {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes minimize {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.2);
    }
}

@keyframes pop-out {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

.widget [role="button"] {
    user-select: none;
}

.widget .disclosure:focus-visible {
    box-shadow: 0 0 0 2px var(--color-indigo-400);
}

.widget .disclosure {
    align-items: center;
    border-radius: 4px;
    color: var(--color-gray-700);
    cursor: pointer;
    display: none;
    font-weight: 500;
    gap: 8px;
    opacity: 1;
    padding: 12px;
}

.widget:not([data-expanded="true"]):not([data-minimizing="true"]) .disclosure {
    display: flex;
}

.widget .disclosure > .icon {
    height: 16px;
    width: 16px;
}

.widget .disclosure > .icon > svg {
    display: block;
    height: 100%;
    width: 100%;
}

.widget .content {
    display: none;
    max-width: 320px;
    min-width: 256px;
    padding: 24px 24px 8px 24px;
}

.widget:is([data-expanded="true"], [data-minimizing="true"]) .content {
    display: block;
}

.widget .header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.widget .header > .logo {
    align-items: center;
    color: var(--color-gray-500);
    display: flex;
    font-size: 16px;
    gap: 8px;
    height: 16px;
    user-select: none;
}

.widget .header > .minimize-button:focus-visible {
    box-shadow: 0 0 0 1px var(--color-white), 0 0 0 3px var(--color-indigo-400);
}

.widget .header > .minimize-button {
    align-items: center;
    color: var(--color-gray-400);
    display: flex;
}

.widget .header > .minimize-button:hover {
    color: var(--color-gray-500);
    cursor: pointer;
}

.widget .header > .minimize-button > svg {
    height: 16px;
    width: 16px;
}

.widget .header > .logo > svg {
    height: 16px;
    width: 75px;
}

.widget .content ul.options {
    margin-top: 32px;
}

.widget .content ul.options > li {
    display: flex;
    gap: 8px;
    overflow: hidden;
}

.widget .content ul.options > li + li {
    margin-top: 24px;
}

.widget .content ul.options > li > .icon {
    color: var(--color-gray-400);
    flex-shrink: 0;
    height: 12px;
    width: 12px;
}

.widget .content ul.options > li > .description {
    overflow: hidden;
}

.widget .content ul.options > li > .description > p {
    color: var(--color-gray-600);
    line-height: 1.5;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget .content ul.options > li > .description > .title {
    color: var(--color-gray-400);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
}

.widget .content ul.options > li > .description .detail {
    color: var(--color-gray-400);
}

.widget .content [role="separator"] {
    background-color: var(--color-gray-100);
    height: 1px;
    margin: 24px -24px 8px -24px;
}

.widget .content .leave-button:focus-visible {
    box-shadow: 0 0 0 2px var(--color-indigo-400);
}

.widget .content .leave-button {
    align-items: center;
    border-radius: 6px;
    color: var(--color-indigo-500);
    cursor: pointer;
    display: flex;
    gap: 8px;
    justify-content: center;
    line-height: 1.5;
    padding: 8px 0;
    text-align: center;
}

.widget .content .leave-button:hover {
    color: var(--color-indigo-600);
}

.widget .content .leave-button > .icon {
    height: 12px;
    width: 12px;
}
