
.gb-faqbot {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 950;
    font-family: var(--agriox-font, 'Poppins', sans-serif);
}

.gb-faqbot__toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--agriox-secondary, #567a3d);
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 16px 34px -10px rgba(43, 40, 43, 0.55);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease, background 200ms ease;
}

.gb-faqbot__toggle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(var(--agriox-secondary-rgb, 86, 122, 61), 0.45);
    animation: gbFaqPulse 2.4s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .gb-faqbot__toggle::before {
        animation: none;
    }
}

@keyframes gbFaqPulse {
    0% { transform: scale(0.92); opacity: 0.9; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

.gb-faqbot__toggle:hover {
    background: var(--brand-gold-dark, #b58a32);
    transform: translateY(-3px);
}

.gb-faqbot__toggle-icon-close {
    display: none !important;
}

.gb-faqbot.is-open .gb-faqbot__toggle-icon-open {
    display: none !important;
}

.gb-faqbot.is-open .gb-faqbot__toggle-icon-close {
    display: block !important;
}

.gb-faqbot__panel {
    position: absolute;
    left: 0;
    bottom: 74px;
    width: 340px;
    max-width: calc(100vw - 48px);
    max-height: 70vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 35px 70px -25px rgba(43, 40, 43, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transform-origin: bottom left;
    transition: all 220ms ease;
    border-top: 4px solid var(--agriox-base, #cfae53);
}

.gb-faqbot.is-open .gb-faqbot__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.gb-faqbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    background: var(--agriox-primary, #2b282b);
    color: #ffffff;
}

.gb-faqbot__header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gb-faqbot__header-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--agriox-base, #cfae53);
    color: var(--agriox-primary, #2b282b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.gb-faqbot__header h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    margin: 0 0 2px;
    color: #ffffff;
    line-height: 1.25;
}

.gb-faqbot__header span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.gb-faqbot__reset {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: background 200ms ease;
}

.gb-faqbot__reset:hover {
    background: var(--agriox-base, #cfae53);
    color: var(--agriox-primary, #2b282b);
}

.gb-faqbot__transcript {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--brand-cream, #f7f3ec);
    min-height: 120px;
    max-height: 320px;
}

.gb-faqbot__bubble {
    max-width: 88%;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.gb-faqbot__bubble--bot {
    align-self: flex-start;
    background: #ffffff;
    color: var(--agriox-color-1, #5c5a5a);
    border-bottom-left-radius: 3px;
    box-shadow: 0 8px 18px -12px rgba(43, 40, 43, 0.3);
}

.gb-faqbot__bubble--user {
    align-self: flex-end;
    background: var(--agriox-secondary, #567a3d);
    color: #ffffff;
    border-bottom-right-radius: 3px;
}

.gb-faqbot__bubble-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-gold-dark, #b58a32);
}

.gb-faqbot__bubble-link:hover {
    color: var(--agriox-secondary, #567a3d);
}

.gb-faqbot__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid rgba(43, 40, 43, 0.08);
}

.gb-faqbot__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(var(--agriox-secondary-rgb, 86, 122, 61), 0.35);
    background: #ffffff;
    color: var(--agriox-secondary, #567a3d);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 180ms ease;
}

.gb-faqbot__chip i {
    font-size: 11px;
}

.gb-faqbot__chip:hover {
    background: var(--agriox-secondary, #567a3d);
    color: #ffffff;
}

.gb-faqbot__empty {
    font-size: 12.5px;
    color: var(--agriox-color-1, #5c5a5a);
    padding: 2px 4px;
}

.gb-faqbot__footnote {
    font-size: 11px;
    color: var(--agriox-color-1, #5c5a5a);
    padding: 0 18px 16px;
}

.gb-faqbot__footnote a {
    color: var(--agriox-secondary, #567a3d);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .gb-faqbot {
        left: 16px;
        bottom: 16px;
    }

    .gb-faqbot__panel {
        width: calc(100vw - 32px);
    }
}
