.gdchat {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
}

.gdchat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
    background: var(--gdchat-main, #0b2a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    position: relative;
}

.gdchat-bubble:hover {
    transform: scale(1.05);
}

.gdchat-bubble-text-container {
    position: absolute;
    right: 76px;
    pointer-events: none;
    opacity: 0;
    animation: gdchatBadgeEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

.gdchat-bubble-text {
    display: block;
    background: #fff;
    color: var(--gdchat-main, #0b2a4a);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: gdchatFloat 3s ease-in-out 1.8s infinite;
}

.gdchat-bubble-text::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

@keyframes gdchatBadgeEnter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes gdchatFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.gdchat-bubble-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    opacity: 0.95;
    transition: opacity 0.2s;
}

.gdchat-bubble:hover .gdchat-bubble-icon {
    opacity: 1;
}

.gdchat-panel {
    width: 380px;
    height: 580px;
    max-height: 85vh;
    display: none;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
    background: #fff;
    transform: translateY(10px) scale(.98);
    opacity: 0;
    transition: transform .16s ease, opacity .16s ease;
    /* Overlay on top of where bubble was */
    position: absolute;
    bottom: 0px;
    right: 0px;
}

.gdchat-panel.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gdchat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--gdchat-main, #0b2a4a);
    color: #fff
}

.gdchat-title {
    font-weight: 650;
    font-size: 16px;
}

.gdchat-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer
}

.gdchat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f5f7fb
}

.gdchat-msg {
    display: flex;
    margin: 8px 0
}

.gdchat-user {
    justify-content: flex-end
}

.gdchat-bot {
    justify-content: flex-start
}

.gdchat-msg-bubble {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 16px;
    white-space: pre-wrap;
    line-height: 1.35;
    font-size: 14.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.gdchat-user .gdchat-msg-bubble {
    background: var(--gdchat-main, #0b2a4a);
    color: #fff;
    border-bottom-right-radius: 6px
}

.gdchat-bot .gdchat-msg-bubble {
    background: #fff;
    color: #1b2430;
    border: 1px solid #e7ebf3;
    border-bottom-left-radius: 6px
}

.gdchat-msg-img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 6px;
    display: block;
}

.gdchat-msg-bubble a {
    color: inherit;
    text-decoration: underline;
}

.gdchat-typing {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0 12px 10px 12px;
}

.gdchat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #9aa6b2;
    animation: gdchatDot 1s infinite ease-in-out;
    opacity: .8;
}

.gdchat-typing span:nth-child(2) {
    animation-delay: .12s
}

.gdchat-typing span:nth-child(3) {
    animation-delay: .24s
}

@keyframes gdchatDot {

    0%,
    100% {
        transform: translateY(0);
        opacity: .6
    }

    50% {
        transform: translateY(-4px);
        opacity: 1
    }
}

.gdchat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e7ebf3
}

.gdchat-input {
    flex: 1;
    border: 1px solid #d9dfec;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.gdchat-input:focus {
    border-color: var(--gdchat-main, #0b2a4a);
}

.gdchat-send {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--gdchat-main, #0b2a4a);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.gdchat-send:active {
    opacity: 0.8;
}

.gdchat-actions{display:flex;gap:8px;align-items:center}
.gdchat-new{
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.10);
  color:#fff;
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
  font-size:13px;
}
.gdchat-new:hover{background:rgba(255,255,255,.18)}