.sgcc {
    --sgcc-accent: #0d638b;
    --sgcc-dark: #111;
    --sgcc-green: #35b95b;
    bottom: 24px;
    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 8px 28px rgba(0,0,0,.23);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 23px;
    height: 58px;
    justify-content: center;
    position: absolute;
    right: 0;
    transition: transform .2s ease, background .2s ease;
    width: 58px;
}
.sgcc__launcher:hover { background: #084c6d; transform: translateY(-2px); }
.sgcc__prompt {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 26px;
    bottom: 5px;
    box-shadow: 0 7px 28px rgba(0,0,0,.18);
    color: #171717;
    cursor: pointer;
    display: flex;
    gap: 9px;
    max-width: min(360px, calc(100vw - 110px));
    opacity: 0;
    padding: 12px 66px 12px 17px;
    position: absolute;
    right: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    white-space: normal;
}
.sgcc__prompt.is-visible { opacity: 1; transform: translateY(0); }
.sgcc__prompt-icon { color: var(--sgcc-green); font-size: 11px; }
.sgcc__prompt-text { font-weight: 600; line-height: 1.25; text-align: left; }
.sgcc__prompt-chat { display: none; }
.sgcc__panel {
    background: #fff;
    border-radius: 20px;
    bottom: 72px;
    box-shadow: 0 15px 55px rgba(0,0,0,.25);
    max-height: min(690px, calc(100vh - 120px));
    overflow: hidden;
    position: absolute;
    right: 0;
    width: 390px;
}
.sgcc__header {
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    gap: 11px;
    padding: 15px 16px;
}
.sgcc__logo {
    align-items: center;
    border: 1px solid #222;
    border-radius: 50%;
    display: flex;
    font-size: 11px;
    height: 42px;
    justify-content: center;
    letter-spacing: -.5px;
    width: 42px;
}
.sgcc__identity { display: flex; flex: 1; flex-direction: column; line-height: 1.25; }
.sgcc__identity strong { color: #171717; font-size: 14px; }
.sgcc__identity small { color: #777; font-size: 12px; }
.sgcc__identity small::first-letter { color: var(--sgcc-green); }
.sgcc__close {
    background: none;
    border: 0;
    color: #777;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    padding: 4px 7px;
}
.sgcc__body {
    max-height: calc(min(690px, 100vh - 120px) - 74px);
    overflow-y: auto;
    padding: 18px;
}
.sgcc__message {
    background: #f3f3f3;
    border-radius: 4px 17px 17px 17px;
    color: #171717;
    line-height: 1.45;
    margin-bottom: 18px;
    padding: 12px 14px;
    white-space: pre-line;
}
.sgcc__questions { display: flex; flex-direction: column; gap: 9px; }
.sgcc__question {
    background: var(--sgcc-accent);
    border: 0;
    border-radius: 18px;
    color: #fff;
    cursor: pointer;
    line-height: 1.35;
    padding: 11px 14px;
    text-align: left;
    transition: background .18s ease, transform .18s ease;
}
.sgcc__question:hover { background: #084c6d; transform: translateX(-2px); }
.sgcc__back {
    background: none;
    border: 0;
    color: var(--sgcc-accent);
    cursor: pointer;
    margin: -5px 0 12px;
    padding: 4px 0;
}
.sgcc__selected {
    background: #eef6fa;
    border-left: 3px solid var(--sgcc-accent);
    line-height: 1.4;
    margin-bottom: 16px;
    padding: 11px 12px;
}
.sgcc__choose { color: #444; font-weight: 600; margin: 0 0 10px; }
.sgcc__channels { display: grid; gap: 9px; grid-template-columns: repeat(3, 1fr); }
.sgcc__channel {
    border: 0;
    border-radius: 13px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    min-height: 46px;
    padding: 8px;
}
.sgcc__channel--whatsapp { background: #1fa855; }
.sgcc__channel--telegram { background: #249bd7; }
.sgcc__channel--viber { background: #7360f2; }
.sgcc__form-open {
    background: transparent;
    border: 1px solid var(--sgcc-accent);
    border-radius: 16px;
    color: var(--sgcc-accent);
    cursor: pointer;
    margin-top: 14px;
    padding: 10px 14px;
    width: 100%;
}
.sgcc__form-title { color: #222; font-size: 17px; margin: 0 0 14px; }
.sgcc__form { display: flex; flex-direction: column; gap: 10px; }
.sgcc__input {
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    color: #222;
    height: 44px;
    padding: 0 12px;
    width: 100%;
}
.sgcc__input:focus { border-color: var(--sgcc-accent); box-shadow: 0 0 0 2px rgba(13,99,139,.12); outline: 0; }
.sgcc__submit {
    background: var(--sgcc-accent);
    border: 0;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    min-height: 44px;
}
.sgcc__submit[disabled] { cursor: wait; opacity: .65; }
.sgcc__form-status { color: #b73535; font-size: 12px; min-height: 2px; }
.sgcc__success {
    background: #effaf2;
    border-radius: 16px;
    color: #176b32;
    line-height: 1.5;
    padding: 20px;
}
.sgcc__honeypot {
    height: 1px !important;
    left: -10000px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 1px !important;
}
.sgcc__notice {
    background: #222;
    border-radius: 12px;
    bottom: 78px;
    color: #fff;
    max-width: 330px;
    opacity: 0;
    padding: 11px 14px;
    position: absolute;
    right: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}
.sgcc__notice.is-visible { opacity: 1; transform: translateY(0); }
.sgcc-copy-field { height: 1px; left: -10000px; position: fixed; top: 0; width: 1px; }
@media (max-width: 640px) {
    .sgcc { bottom: 14px; right: 14px; }
    .sgcc__panel {
        bottom: 68px;
        max-height: calc(100vh - 100px);
        width: min(390px, calc(100vw - 28px));
    }
    .sgcc__body { max-height: calc(100vh - 174px); }
    .sgcc__launcher { height: 54px; width: 54px; }
    .sgcc__prompt { bottom: 3px; padding-right: 62px; }
}
@media (prefers-reduced-motion: reduce) {
    .sgcc *,
    .sgcc *::before,
    .sgcc *::after { scroll-behavior: auto !important; transition: none !important; }
}
