.gl-chat-launcher {
    --gl-black: #1c1c1c;
    --gl-muted: #71717a;
    --gl-orange: #ef5435;
    --gl-text: #303036;
    --gl-white: #fff;
    position: fixed;
    z-index: 950;
    right: 40px;
    bottom: 40px;
    display: flex;
    width: 50px;
    height: 50px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 100px;
    background: #f78d4d;
    box-shadow: 0 8px 22px rgba(8, 8, 8, .22);
    cursor: pointer;
    isolation: isolate;
}

.gl-chat-launcher[hidden] {
    display: none;
}

.gl-chat-launcher::before {
    position: absolute;
    z-index: -1;
    inset: -8px;
    border-radius: 100px;
    background: rgba(247, 141, 77, .25);
    content: '';
    pointer-events: none;
}

.gl-chat-launcher:hover,
.gl-chat-launcher:focus-visible {
    background: #f0784d;
}

.gl-chat-launcher__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-chat-launcher__icon svg {
    width: 28px;
    height: 29px;
}

.gl-chat-consent[hidden] {
    display: none;
}

.gl-chat-consent {
    --gl-black: #1c1c1c;
    --gl-muted: #71717a;
    --gl-orange: #ef5435;
    --gl-text: #303036;
    --gl-white: #fff;
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
}

.gl-chat-consent__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, .6);
}

.gl-chat-consent__dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 36px;
    border-radius: 24px;
    background: var(--gl-white);
    color: var(--gl-text);
    box-shadow: 0 20px 56px rgba(0, 0, 0, .28);
}

.gl-chat-consent__dialog h2 {
    margin: 0;
    padding-right: 32px;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
}

.gl-chat-consent__intro {
    margin: 12px 0 24px;
    color: var(--gl-muted);
    font-size: 16px;
    line-height: 1.45;
}

.gl-chat-consent__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.gl-chat-consent__close span {
    position: absolute;
    top: 15px;
    left: 5px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--gl-black);
}

.gl-chat-consent__close span:first-child {
    transform: rotate(45deg);
}

.gl-chat-consent__close span:last-child {
    transform: rotate(-45deg);
}

.gl-chat-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    cursor: pointer;
}

.gl-chat-consent__label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gl-chat-consent__box {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border: 1px solid #a6a6a6;
    border-radius: 4px;
    background: var(--gl-white);
}

.gl-chat-consent__label input:checked + .gl-chat-consent__box {
    border-color: var(--gl-orange);
    background: var(--gl-orange);
}

.gl-chat-consent__label input:checked + .gl-chat-consent__box::after {
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid var(--gl-white);
    border-width: 0 2px 2px 0;
    content: '';
    transform: rotate(45deg);
}

.gl-chat-consent__label input:focus-visible + .gl-chat-consent__box {
    outline: 2px solid #1e70bf;
    outline-offset: 2px;
}

.gl-chat-consent__text {
    color: var(--gl-text);
    font-size: 14px;
    line-height: 1.45;
}

.gl-chat-consent__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gl-chat-consent__error {
    margin: 16px 0 0;
    color: #b53522;
    font-size: 14px;
    font-weight: 700;
}

.gl-chat-consent__submit {
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    border: 0;
    border-radius: 999px;
    background: var(--gl-orange);
    color: var(--gl-white);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.gl-chat-consent__submit:hover,
.gl-chat-consent__submit:focus-visible {
    background: #c9452c;
}

.gl-chat-consent__submit:disabled {
    cursor: wait;
    opacity: .7;
}

.gl-chat-consent-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .gl-chat-launcher {
        right: 24px;
        bottom: 24px;
    }

    .gl-chat-consent {
        padding: 12px;
    }

    .gl-chat-consent__dialog {
        max-height: calc(100vh - 24px);
        padding: 28px 20px 20px;
        border-radius: 20px;
    }

    .gl-chat-consent__dialog h2 {
        font-size: 22px;
    }

    .gl-chat-consent__label {
        gap: 10px;
        margin-top: 16px;
    }

    .gl-chat-consent__text {
        font-size: 13px;
    }
}
