/* BGR Fiyat Asistanı — yerel widget (asistan.bagardi.com tool gerekmez) */
.bgr-fa-root {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 99990;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.bgr-fa-fab {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #0ea5e9, #0284c7);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
}

.bgr-fa-panel {
    position: absolute;
    left: 0;
    bottom: 4rem;
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(28rem, 70vh);
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.bgr-fa-panel--hidden {
    display: none;
}

.bgr-fa-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
}

.bgr-fa-close {
    background: transparent;
    border: none;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #0f172a;
}

.bgr-fa-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bgr-fa-msg {
    max-width: 92%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.bgr-fa-msg--bot {
    align-self: flex-start;
    background: #1e293b;
    color: #e2e8f0;
}

.bgr-fa-msg--user {
    align-self: flex-end;
    background: #1d4ed8;
    color: #fff;
}

.bgr-fa-form {
    display: flex;
    gap: 0.35rem;
    padding: 0.55rem;
    border-top: 1px solid #334155;
    background: #0b1120;
}

.bgr-fa-input {
    flex: 1;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #f1f5f9;
    padding: 0.45rem 0.55rem;
    font-size: 0.85rem;
}

.bgr-fa-send {
    border: none;
    border-radius: 8px;
    background: #0ea5e9;
    color: #fff;
    padding: 0 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
}

@media (max-width: 480px) {
    .bgr-fa-root {
        left: 0.75rem;
        bottom: 0.75rem;
    }
}
