.sgcc {
    --sgcc-accent: #117f91;
    --sgcc-accent-dark: #075c6a;
    --sgcc-success: #35b963;
    --sgcc-ease: cubic-bezier(.22, 1, .36, 1);
    bottom: 86px;
    font-family: inherit;
    position: fixed;
    right: 24px;
    z-index: 10010;
}

.sgcc *,
.sgcc *::before,
.sgcc *::after {
    box-sizing: border-box;
}

.sgcc button,
.sgcc input,
.sgcc select {
    font: inherit;
}

.sgcc__launcher {
    align-items: center;
    background: var(--sgcc-accent);
    border: 0;
    border-radius: 50%;
    bottom: 0;
    box-shadow: 0 13px 34px rgba(8, 92, 106, .34);
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 60px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 0;
    transition: background .2s ease, transform .22s var(--sgcc-ease);
    width: 60px;
    z-index: 3;
}

.sgcc__launcher:hover {
    background: var(--sgcc-accent-dark);
    transform: translateY(-2px);
}

.sgcc__launcher svg {
    height: 27px;
    width: 27px;
}

.sgcc__icon-close {
    display: none;
}

.sgcc.is-open .sgcc__icon-chat {
    display: none;
}

.sgcc.is-open .sgcc__icon-close {
    display: block;
}

.sgcc.is-open .sgcc__launcher {
    display: none;
}

.sgcc__launcher::before,
.sgcc__launcher::after {
    border: 1px solid rgba(17, 127, 145, .46);
    border-radius: 50%;
    content: "";
    inset: -1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.sgcc.is-attending .sgcc__launcher::before {
    animation: sgcc-halo 1.55s var(--sgcc-ease) 1;
}

.sgcc.is-attending .sgcc__launcher::after {
    animation: sgcc-halo 1.55s .32s var(--sgcc-ease) 1;
}

.sgcc__prompt {
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(17, 127, 145, .18);
    border-radius: 17px;
    bottom: 0;
    box-shadow: 0 15px 42px rgba(28, 38, 43, .18);
    cursor: pointer;
    display: flex;
    gap: 11px;
    max-width: min(360px, calc(100vw - 116px));
    min-height: 60px;
    opacity: 0;
    padding: 10px 44px 10px 11px;
    position: absolute;
    right: 72px;
    text-align: left;
    transform: translate3d(0, 16px, 0) scale(.98);
    transform-origin: right bottom;
    visibility: hidden;
    width: max-content;
}

.sgcc__prompt[hidden] {
    display: none;
}

.sgcc__prompt::before {
    background: linear-gradient(90deg, transparent, #61bfca, transparent);
    content: "";
    height: 1px;
    left: 14px;
    opacity: .8;
    position: absolute;
    right: 42px;
    top: 0;
}

.sgcc__prompt.is-visible {
    animation: sgcc-prompt-arrive .52s var(--sgcc-ease) both;
    visibility: visible;
}

.sgcc__prompt-signal {
    align-items: center;
    background: #edf8f9;
    border: 1px solid #d6ecef;
    border-radius: 12px;
    color: var(--sgcc-accent);
    display: flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.sgcc__prompt-signal svg {
    height: 20px;
    width: 20px;
}

.sgcc.is-attending .sgcc__prompt-signal {
    animation: sgcc-signal-breathe 1.4s .35s ease-in-out 2;
}

.sgcc__prompt-text {
    color: #1a1a1a;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 260px;
}

.sgcc__prompt-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #777;
    cursor: pointer;
    display: flex;
    font-size: 21px;
    height: 36px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 3px;
    top: 3px;
    transition: background .18s ease, color .18s ease, transform .18s var(--sgcc-ease);
    width: 36px;
}

.sgcc__prompt-close:hover {
    background: #efefed;
    color: #171717;
    transform: rotate(5deg);
}

.sgcc__panel {
    background: #fff;
    border: 1px solid rgba(19, 19, 19, .08);
    border-radius: 20px;
    bottom: 74px;
    box-shadow: 0 24px 70px rgba(25, 35, 40, .24);
    max-height: min(650px, calc(100vh - 180px));
    overflow: hidden;
    position: absolute;
    right: 0;
    transform-origin: right bottom;
    width: 390px;
}

.sgcc__panel[hidden] {
    display: none;
}

.sgcc.is-open .sgcc__panel {
    animation: sgcc-panel-open .38s var(--sgcc-ease) both;
    bottom: 16px;
    max-height: min(720px, calc(100vh - 32px));
    position: fixed;
    right: 24px;
}

.sgcc__header {
    align-items: center;
    border-bottom: 1px solid #eeece9;
    display: grid;
    gap: 12px;
    grid-template-columns: 96px minmax(0, 1fr) 36px;
    min-height: 76px;
    padding: 12px 14px;
}

.sgcc__logo {
    display: block;
    height: auto;
    max-width: 96px;
    width: 100%;
}

.sgcc__identity {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sgcc__identity strong {
    color: #171717;
    font-size: 13px;
    line-height: 1.3;
}

.sgcc__identity small {
    color: #777;
    font-size: 11px;
}

.sgcc__online-dot {
    background: var(--sgcc-success);
    border-radius: 50%;
    display: inline-block;
    height: 7px;
    margin-right: 5px;
    width: 7px;
}

.sgcc__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #777;
    cursor: pointer;
    display: flex;
    font-size: 25px;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition: background .18s ease, color .18s ease, transform .18s var(--sgcc-ease);
    width: 36px;
}

.sgcc__close:hover {
    background: #f1f1ef;
    color: #171717;
    transform: rotate(5deg);
}

.sgcc__body {
    max-height: calc(min(650px, 100vh - 180px) - 76px);
    overflow-y: auto;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
}

.sgcc.is-open .sgcc__body {
    max-height: calc(min(720px, 100vh - 32px) - 76px);
}

.sgcc__screen {
    animation: sgcc-screen-enter .28s var(--sgcc-ease) both;
}

.sgcc__message {
    background: linear-gradient(135deg, #edf7f8, #f7fbfb);
    border: 1px solid rgba(17, 127, 145, .12);
    border-radius: 5px 17px 17px 17px;
    color: #1a1a1a;
    font-size: 13px;
    line-height: 1.48;
    margin-bottom: 17px;
    padding: 13px 14px;
}

.sgcc__questions {
    display: grid;
    gap: 9px;
}

.sgcc__question {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(17, 127, 145, .24);
    border-radius: 15px;
    color: #12373d;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    justify-content: space-between;
    line-height: 1.38;
    min-height: 48px;
    padding: 12px 14px;
    text-align: left;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--sgcc-ease);
    width: 100%;
}

.sgcc__question::after {
    content: "\203A";
    font-size: 20px;
    font-weight: 400;
    margin-left: 10px;
    transition: transform .18s var(--sgcc-ease);
}

.sgcc__question:hover {
    background: var(--sgcc-accent);
    border-color: var(--sgcc-accent);
    color: #fff;
    transform: translateX(-2px);
}

.sgcc__question:hover::after {
    transform: translateX(3px);
}

.sgcc__caption {
    color: #909090;
    font-size: 11px;
    line-height: 1.45;
    margin: 14px 2px 0;
}

.sgcc__back {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--sgcc-accent);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    min-height: 36px;
    padding: 0 3px;
}

.sgcc__back:hover {
    color: var(--sgcc-accent-dark);
}

.sgcc__selected {
    background: linear-gradient(135deg, #eaf6f7, #f8fbfb);
    border: 1px solid rgba(17, 127, 145, .18);
    border-radius: 14px;
    color: #153a40;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    margin: 2px 0 17px;
    padding: 12px 13px;
}

.sgcc__choose,
.sgcc__form-title {
    color: #171717;
    font-size: 15px;
    line-height: 1.35;
    margin: 2px 0 12px;
}

.sgcc__channels {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sgcc__channel {
    --sgcc-channel: #117f91;
    align-items: center;
    background: var(--sgcc-channel);
    border: 0;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 700;
    gap: 7px;
    isolation: isolate;
    justify-content: center;
    min-height: 78px;
    overflow: hidden;
    padding: 10px 6px;
    position: relative;
    transition: box-shadow .24s var(--sgcc-ease), filter .2s ease, transform .24s var(--sgcc-ease);
}

.sgcc__channel::before {
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .38) 48%, transparent 72%);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-130%);
    transition: transform .55s var(--sgcc-ease);
    z-index: -1;
}

.sgcc__channel:hover {
    filter: saturate(1.08);
    transform: translateY(-4px) scale(1.025);
}

.sgcc__channel:hover::before {
    transform: translateX(130%);
}

.sgcc__channel:active {
    transform: translateY(-1px) scale(.985);
}

.sgcc__channel svg {
    height: 23px;
    transition: transform .24s var(--sgcc-ease);
    width: 23px;
}

.sgcc__channel:hover svg {
    transform: rotate(-7deg) scale(1.12);
}

.sgcc__channel--whatsapp {
    --sgcc-channel: #24ad5f;
}

.sgcc__channel--whatsapp:hover {
    box-shadow: 0 12px 24px rgba(36, 173, 95, .35);
}

.sgcc__channel--telegram {
    --sgcc-channel: #229ed9;
}

.sgcc__channel--telegram:hover {
    box-shadow: 0 12px 24px rgba(34, 158, 217, .35);
}

.sgcc__channel--viber {
    --sgcc-channel: #7055e8;
}

.sgcc__channel--viber:hover {
    box-shadow: 0 12px 24px rgba(112, 85, 232, .35);
}

.sgcc__form-open {
    background: #fff;
    border: 1px solid var(--sgcc-accent);
    border-radius: 14px;
    color: var(--sgcc-accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    min-height: 46px;
    padding: 10px 14px;
    transition: background .18s ease, color .18s ease, transform .18s var(--sgcc-ease);
    width: 100%;
}

.sgcc__form-open:hover {
    background: #eaf6f7;
    color: var(--sgcc-accent-dark);
    transform: translateY(-2px);
}

.sgcc__form {
    display: grid;
    gap: 11px;
}

.sgcc__field {
    display: grid;
    gap: 5px;
}

.sgcc__field-label {
    color: #555;
    font-size: 11px;
    font-weight: 700;
}

.sgcc__field input,
.sgcc__field select {
    background: #fff;
    border: 1px solid #d9d7d4;
    border-radius: 11px;
    color: #171717;
    font: inherit;
    font-size: 13px;
    min-height: 44px;
    padding: 9px 11px;
    width: 100%;
}

.sgcc__field input:focus,
.sgcc__field select:focus {
    border-color: var(--sgcc-accent);
    box-shadow: 0 0 0 3px rgba(17, 127, 145, .12);
    outline: 0;
}

.sgcc__submit {
    background: var(--sgcc-accent);
    border: 0;
    border-radius: 13px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    min-height: 46px;
    padding: 10px 14px;
    transition: background .18s ease, transform .18s var(--sgcc-ease);
}

.sgcc__submit:hover {
    background: var(--sgcc-accent-dark);
    transform: translateY(-2px);
}

.sgcc__submit[disabled] {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.sgcc__form-status {
    color: #b3261e;
    font-size: 11px;
    line-height: 1.4;
    min-height: 16px;
}

.sgcc__body--form {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.sgcc__body--form .sgcc__back {
    min-height: 26px;
}

.sgcc__body--form .sgcc__form-title {
    font-size: 14px;
    margin: 0 0 7px;
}

.sgcc__body--form .sgcc__selected {
    font-size: 12px;
    line-height: 1.35;
    margin: 0 0 8px;
    padding: 8px 10px;
}

.sgcc__body--form .sgcc__form {
    gap: 6px;
}

.sgcc__body--form .sgcc__field {
    gap: 2px;
}

.sgcc__body--form .sgcc__field input,
.sgcc__body--form .sgcc__field select {
    min-height: 38px;
    padding: 6px 10px;
}

.sgcc__body--form .sgcc__form-status {
    min-height: 12px;
}

.sgcc__body--form .sgcc__submit {
    min-height: 40px;
    padding: 7px 12px;
}

.sgcc__success {
    padding: 20px 4px 10px;
    text-align: center;
}

.sgcc__success-mark {
    align-items: center;
    background: #e6f7ed;
    border-radius: 50%;
    color: #21884a;
    display: inline-flex;
    font-size: 24px;
    height: 54px;
    justify-content: center;
    margin-bottom: 13px;
    width: 54px;
}

.sgcc__success h3 {
    color: #171717;
    font-size: 16px;
    margin: 0 0 7px;
}

.sgcc__success p {
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.sgcc__notice {
    background: #1f2933;
    border-radius: 10px;
    bottom: 72px;
    color: #fff;
    font-size: 12px;
    max-width: 280px;
    opacity: 0;
    padding: 10px 12px;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s var(--sgcc-ease);
}

.sgcc__notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sgcc__honeypot,
.sgcc-copy-field {
    height: 1px !important;
    left: -10000px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: fixed !important;
    top: -10000px !important;
    width: 1px !important;
}

.sgcc__prompt-close:focus-visible,
.sgcc__close:focus-visible,
.sgcc__launcher:focus-visible,
.sgcc__question:focus-visible,
.sgcc__channel:focus-visible,
.sgcc__form-open:focus-visible,
.sgcc__submit:focus-visible,
.sgcc__back:focus-visible {
    outline: 3px solid rgba(17, 127, 145, .28);
    outline-offset: 2px;
}

@keyframes sgcc-prompt-arrive {
    0% {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(.98);
    }
    65% {
        opacity: 1;
        transform: translate3d(0, -2px, 0) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes sgcc-panel-open {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(.975);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes sgcc-halo {
    0% {
        opacity: .7;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.65);
    }
}

@keyframes sgcc-signal-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(17, 127, 145, 0);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(17, 127, 145, .12);
    }
}

@keyframes sgcc-screen-enter {
    from {
        opacity: 0;
        transform: translate3d(8px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 600px) {
    .sgcc {
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 14px;
    }

    .sgcc__launcher {
        height: 56px;
        width: 56px;
    }

    .sgcc__prompt {
        max-width: calc(100vw - 94px);
        min-height: 56px;
        padding: 9px 43px 9px 9px;
        right: 66px;
    }

    .sgcc__prompt-signal {
        flex-basis: 34px;
        height: 34px;
        width: 34px;
    }

    .sgcc__prompt-text {
        font-size: 12px;
        max-width: calc(100vw - 190px);
    }

    .sgcc__prompt-close {
        height: 40px;
        right: 1px;
        top: 1px;
        width: 40px;
    }

    .sgcc__panel {
        bottom: 68px;
        max-height: calc(100vh - 168px);
        max-height: calc(100dvh - 168px);
        width: min(362px, calc(100vw - 28px));
    }

    .sgcc.is-open .sgcc__panel {
        bottom: calc(8px + env(safe-area-inset-bottom));
        left: 8px;
        max-height: calc(100vh - 16px - env(safe-area-inset-bottom));
        max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
        right: 8px;
        width: auto;
    }

    .sgcc__header {
        gap: 8px;
        grid-template-columns: 84px minmax(0, 1fr) 40px;
        min-height: 72px;
        padding: 10px 11px;
    }

    .sgcc__logo {
        max-width: 84px;
    }

    .sgcc__identity strong {
        font-size: 12px;
    }

    .sgcc__close {
        height: 40px;
        width: 40px;
    }

    .sgcc__body {
        max-height: calc(100vh - 240px);
        max-height: calc(100dvh - 240px);
        padding: 15px 14px calc(15px + env(safe-area-inset-bottom));
    }

    .sgcc.is-open .sgcc__body {
        max-height: calc(100vh - 88px - env(safe-area-inset-bottom));
        max-height: calc(100dvh - 88px - env(safe-area-inset-bottom));
    }

    .sgcc__channels {
        grid-template-columns: 1fr;
    }

    .sgcc__channel {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 48px;
        padding: 9px 14px;
    }
}

@media (max-height: 760px) {
    .sgcc.is-open .sgcc__panel {
        bottom: 8px;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .sgcc__header {
        gap: 8px;
        grid-template-columns: 82px minmax(0, 1fr) 36px;
        min-height: 64px;
        padding: 8px 12px;
    }

    .sgcc__logo {
        max-width: 82px;
    }

    .sgcc.is-open .sgcc__body {
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        padding: 10px 14px;
    }

    .sgcc__back {
        min-height: 28px;
    }

    .sgcc__form-title {
        font-size: 14px;
        margin: 0 0 7px;
    }

    .sgcc__form {
        gap: 6px;
    }

    .sgcc__field {
        gap: 2px;
    }

    .sgcc__field input,
    .sgcc__field select {
        min-height: 38px;
        padding: 6px 10px;
    }

    .sgcc__form-status {
        min-height: 13px;
    }

    .sgcc__submit {
        min-height: 40px;
        padding: 7px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgcc *,
    .sgcc *::before,
    .sgcc *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
