.gg-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    font-family: var(--font, "Outfit", sans-serif);
    color: var(--ink, #5c3344);
}
.gg-chat button,
.gg-chat a,
.gg-chat .gg-chat-launcher,
.gg-chat .gg-chat-send,
.gg-chat .gg-chat-close {
    text-decoration: none;
}
.gg-chat-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.gg-chat-launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--rose, #c45c7a);
    border-radius: 999px;
    padding: 12px 18px 12px 14px;
    box-shadow: 0 14px 32px rgba(139, 53, 84, 0.28);
    text-decoration: none;
}
.gg-chat-launcher:hover,
.gg-chat-launcher:focus-visible {
    background: var(--rose-dark, #a84866);
    text-decoration: none;
}
.gg-chat-launcher:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.gg-chat-launcher-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
}
.gg-chat-panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: min(380px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    background: #fff8fa;
    border: 1px solid var(--line, #ead9df);
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(92, 51, 68, 0.16);
    overflow: hidden;
}
.gg-chat-panel[hidden] { display: none; }
.gg-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 14px;
    background: var(--header, #f7e6ec);
}
.gg-chat-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--rose-deep, #8b3554);
}
.gg-chat-title {
    margin: 2px 0 0;
    font-family: var(--serif, "Gilda Display", Georgia, serif);
    font-size: 20px;
    line-height: 1.2;
}
.gg-chat-close {
    border: 0;
    background: transparent;
    color: var(--rose-deep, #8b3554);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    text-decoration: none;
}
.gg-chat-close:hover,
.gg-chat-close:focus-visible {
    color: var(--rose, #c45c7a);
    text-decoration: none;
}
.gg-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--ivory, #fff8fa);
    min-height: 220px;
}
.gg-chat-bubble {
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}
.gg-chat-bubble-bot {
    align-self: flex-start;
    background: #fdeef2;
    color: var(--ink, #5c3344);
    border-bottom-left-radius: 6px;
}
.gg-chat-bubble-user {
    align-self: flex-end;
    background: var(--rose, #c45c7a);
    color: #fff;
    border-bottom-right-radius: 6px;
}
.gg-chat-book-wrap {
    align-self: flex-start;
    margin: -2px 0 4px;
}
.gg-chat-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 650;
    font-size: 13px;
    line-height: 1.2;
    color: #fff;
    background: var(--rose, #c45c7a);
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
}
.gg-chat-book:hover,
.gg-chat-book:focus-visible {
    background: var(--rose-dark, #a84866);
    color: #fff;
    text-decoration: none;
}
.gg-chat-book:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.gg-chat-bubble-loading {
    color: var(--muted, #7a5864);
}
.gg-chat-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 3px;
    border-radius: 50%;
    background: var(--rose, #c45c7a);
    animation: gg-chat-pulse 1s infinite ease-in-out;
}
.gg-chat-dots span:nth-child(2) { animation-delay: .15s; }
.gg-chat-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes gg-chat-pulse {
    0%, 80%, 100% { opacity: .3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}
.gg-chat-status {
    margin: 0;
    padding: 0 16px 8px;
    font-size: 13px;
    color: var(--rose-deep, #8b3554);
}
.gg-chat-status[hidden] { display: none; }
.gg-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid var(--line, #ead9df);
}
.gg-chat-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line, #ead9df);
    border-radius: 999px;
    padding: 11px 14px;
    font: inherit;
    color: var(--ink, #5c3344);
    background: var(--blush-soft, #fdeef2);
}
.gg-chat-input:focus {
    outline: 2px solid var(--rose, #c45c7a);
    outline-offset: 1px;
    background: #fff;
}
.gg-chat-send {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    border-radius: 999px;
    padding: 11px 16px;
    background: var(--rose, #c45c7a);
    color: #fff;
    text-decoration: none;
}
.gg-chat-send:hover,
.gg-chat-send:focus-visible {
    background: var(--rose-dark, #a84866);
    text-decoration: none;
}
.gg-chat-send:disabled {
    opacity: .6;
    cursor: wait;
}
@media (max-width: 640px) {
    .gg-chat {
        right: 12px;
        bottom: 12px;
    }
    .gg-chat-panel {
        position: fixed;
        right: 12px;
        left: 12px;
        bottom: 72px;
        width: auto;
        max-height: min(70vh, 560px);
    }
}
