.fzac-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    font-family: "Inter", sans-serif;
}

.fzac-toggle {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0c4a9c, #2b6ef0);
    color: #fff;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(12, 74, 156, 0.28);
}

.fzac-panel {
    width: min(380px, calc(100vw - 32px));
    height: 560px;
    max-height: calc(100vh - 96px);
    margin-top: 12px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(12, 74, 156, 0.08);
}

.fzac-header {
    background: linear-gradient(135deg, #082b5c, #0c4a9c);
    color: #fff;
    padding: 18px 18px 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.fzac-header h3 {
    font-size: 18px;
    margin: 0;
}

.fzac-header p {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.86;
}

.fzac-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.fzac-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background:
        radial-gradient(circle at top right, rgba(43, 110, 240, 0.08), transparent 24%),
        linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%);
}

.fzac-message {
    max-width: 88%;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 14px;
    white-space: pre-wrap;
}

.fzac-message--bot {
    background: #fff;
    color: #183153;
    border-top-left-radius: 8px;
    box-shadow: 0 10px 26px rgba(8, 43, 92, 0.06);
}

.fzac-message--user {
    background: #2b6ef0;
    color: #fff;
    margin-left: auto;
    border-top-right-radius: 8px;
}

.fzac-live-agent {
    padding: 0 16px 12px;
    background: #f5f8ff;
}

.fzac-live-agent-link {
    display: inline-block;
    background: #082b5c;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
}

.fzac-sources {
    margin: -4px 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fzac-sources__label {
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    color: #5c6e91;
}

.fzac-source-chip {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: #fff;
    color: #0c4a9c;
    border: 1px solid #d6e3fb;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
}

.fzac-form {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid #e6eefb;
    background: #fff;
}

.fzac-form textarea {
    flex: 1;
    resize: none;
    border: 1px solid #cfdcf4;
    border-radius: 16px;
    padding: 10px 12px;
    font: inherit;
    min-height: 48px;
}

.fzac-form button {
    border: 0;
    border-radius: 14px;
    background: #2b6ef0;
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}
