:root {
    --chatbot-gold: #D4AF37;
    --chatbot-gold-light: #F4E4BC;
    --chatbot-gold-dark: #B8860B;
    --chatbot-bg: #fff;
    --chatbot-text: #2c2c2c;
    --chatbot-soft: #fdf9f2;
    --chatbot-shadow: 0 12px 40px rgba(166, 124, 0, .25);
}

.chatbot-widget,
.chatbot-widget *,
.chatbot-widget *::before,
.chatbot-widget *::after {
    box-sizing: border-box;
}

.chatbot-widget {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    z-index: 99999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.chatbot-toggle {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: 3px solid #fff !important;
    background: radial-gradient(circle at 30% 30%, #F4E4BC 0%, #D4AF37 40%, #B8860B 75%, #A67C00 100%) !important;
    box-shadow: 0 6px 20px rgba(166, 124, 0, .35) !important;
    cursor: pointer !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.chatbot-toggle:hover { transform: scale(1.08); }

.chatbot-toggle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.chatbot-window {
    position: absolute !important;
    bottom: 75px !important;
    right: 0 !important;
    width: 340px !important;
    max-width: calc(100vw - 40px) !important;
    height: 460px !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(166, 124, 0, .25) !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.chatbot-widget.open .chatbot-window {
    display: flex !important;
}

.chatbot-header {
    background: radial-gradient(circle at 30% 30%, #F4E4BC 0%, #D4AF37 40%, #B8860B 75%, #A67C00 100%) !important;
    color: #fff !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.chatbot-header img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #fff !important;
    background: #fff !important;
}

.chatbot-header h4 { margin: 0 !important; font-size: 15px !important; font-weight: 700 !important; }
.chatbot-header span { font-size: 12px !important; opacity: .9 !important; }

.chatbot-close {
    margin-left: auto !important;
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 26px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 4px !important;
}

.chatbot-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px !important;
    background: #fdf9f2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.chatbot-message {
    max-width: 80% !important;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
}

.chatbot-message.user {
    align-self: flex-end !important;
    background: radial-gradient(circle at 30% 30%, #F4E4BC 0%, #D4AF37 40%, #B8860B 75%, #A67C00 100%) !important;
    color: #fff !important;
    border-bottom-right-radius: 4px !important;
}

.chatbot-message.bot {
    align-self: flex-start !important;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #eee !important;
    border-bottom-left-radius: 4px !important;
}

.chatbot-suggestions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 4px !important;
}

.chatbot-suggestions button {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border: 1px solid #D4AF37 !important;
    background: #fff !important;
    color: #A67C00 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: .2s !important;
}

.chatbot-suggestions button:hover {
    background: #D4AF37 !important;
    color: #fff !important;
}

.chatbot-footer {
    padding: 12px 14px !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
    display: flex !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.chatbot-footer input {
    flex: 1 !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    outline: none !important;
}

.chatbot-footer input:focus { border-color: #D4AF37 !important; }

.chatbot-footer button {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: none !important;
    background: radial-gradient(circle at 30% 30%, #F4E4BC 0%, #D4AF37 40%, #B8860B 75%, #A67C00 100%) !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: .2s !important;
}

.chatbot-footer button:hover { transform: scale(1.05); }

.chatbot-link {
    display: inline-block;
    padding: 6px 12px;
    background: radial-gradient(circle at 30% 30%, #F4E4BC 0%, #D4AF37 40%, #B8860B 75%, #A67C00 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    transition: .2s;
}

.chatbot-link:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(166, 124, 0, .3);
}

.chatbot-typing {
    display: flex !important;
    gap: .25rem !important;
    padding: .5rem .75rem !important;
    align-self: flex-start !important;
    background: #fff !important;
    border-radius: 18px !important;
    border: 1px solid #eee !important;
}

.chatbot-typing span {
    width: 6px !important;
    height: 6px !important;
    background: #D4AF37 !important;
    border-radius: 50% !important;
    animation: typing 1s infinite ease-in-out !important;
}

.chatbot-typing span:nth-child(2) { animation-delay: .15s; }
.chatbot-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 480px) {
    .chatbot-widget { bottom: 100px !important; right: 14px !important; }
    .chatbot-window { width: calc(100vw - 28px) !important; height: 400px !important; }
    .chatbot-toggle { width: 54px !important; height: 54px !important; }
}
