.gc-ai-chat-widget {
position: fixed;
left: 24px;
bottom: 24px;
z-index: 99999;
font-family: Arial, sans-serif;
}
.gc-ai-chat-toggle {
position: relative;
display: flex;
align-items: center;
gap: 11px;
min-width: 232px;
height: 64px;
padding: 0 15px 0 14px;
border: 1px solid #111;
border-radius: 999px;
background: #111;
color: #fff;
cursor: pointer;
text-align: left;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
overflow: visible;
}
.gc-ai-chat-toggle:hover,
.gc-ai-chat-toggle:focus-visible {
transform: translateY(-2px);
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.gc-ai-chat-toggle:focus-visible {
outline: 3px solid rgba(17, 17, 17, 0.22);
outline-offset: 3px;
}
.gc-ai-chat-toggle-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 38px;
width: 38px;
height: 38px;
}
.gc-ai-chat-toggle-icon svg {
display: block;
width: 32px;
height: 32px;
fill: currentColor;
}
.gc-ai-chat-toggle-copy {
display: flex;
flex: 1 1 auto;
min-width: 0;
flex-direction: column;
gap: 2px;
}
.gc-ai-chat-toggle-title {
font-size: 16px;
font-weight: 700;
line-height: 1.15;
white-space: nowrap;
}
.gc-ai-chat-toggle-subtitle {
color: rgba(255, 255, 255, 0.7);
font-size: 12.5px;
font-weight: 400;
line-height: 1.2;
white-space: nowrap;
}
.gc-ai-chat-toggle-badge {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
min-width: 24px;
height: 24px;
padding: 0 6px;
border-radius: 999px;
background: #fff;
color: #111;
font-size: 12px;
font-weight: 700;
line-height: 1;
box-sizing: border-box;
}
.gc-ai-chat-toggle-badge[hidden] {
display: none;
}
.gc-ai-chat-toggle-manager {
background: #fff;
color: #111;
}
.gc-ai-chat-toggle-manager .gc-ai-chat-toggle-subtitle {
color: rgba(17, 17, 17, 0.62);
}
.gc-ai-chat-toggle-manager .gc-ai-chat-toggle-badge {
background: #111;
color: #fff;
}
.gc-ai-chat-toggle-attention {
position: absolute;
left: 18px;
bottom: calc(100% + 9px);
padding: 7px 11px;
border-radius: 999px;
background: #111;
color: #fff;
font-size: 12px;
font-weight: 600;
line-height: 1;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transform: translateY(5px) scale(0.96);
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
transition: opacity 180ms ease, transform 180ms ease;
}
.gc-ai-chat-toggle-attention-visible {
opacity: 1;
transform: translateY(0) scale(1);
}
.gc-ai-chat-toggle-attention-active {
animation: gc-ai-chat-launcher-attention 900ms ease;
}
@keyframes gc-ai-chat-launcher-attention {
0%, 100% {
transform: scale(1);
}
45% {
transform: scale(1.035);
}
}
.gc-ai-chat-window {
display: none;
position: absolute;
left: 0;
bottom: 80px;
width: 360px;
height: 520px;
background: #fff;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
border: 1px solid #e5e5e5;
}
.gc-ai-chat-window-open {
display: flex;
flex-direction: column;
}
.gc-ai-chat-header {
display: flex;
justify-content: space-between;
align-items: center;
background: #111;
color: #fff;
padding: 14px 16px;
}
.gc-ai-chat-header span {
display: block;
font-size: 12px;
opacity: 0.75;
margin-top: 2px;
}
.gc-ai-chat-close {
background: transparent;
border: none;
color: #fff;
font-size: 26px;
cursor: pointer;
line-height: 1;
}
.gc-ai-chat-messages {
flex: 1;
padding: 14px;
overflow-y: auto;
background: #f7f7f7;
}
.gc-ai-chat-handoff-status {
max-width: 88%;
box-sizing: border-box;
margin: 0 auto 10px;
padding: 8px 11px;
border: 1px solid #d9e1e7;
border-radius: 12px;
background: #eef3f6;
color: #4b5963;
font-size: 12.5px;
line-height: 1.35;
text-align: center;
}
.gc-ai-chat-message {
max-width: 85%;
padding: 10px 12px;
border-radius: 14px;
margin-bottom: 10px;
font-size: 14px;
line-height: 1.4;
white-space: pre-wrap;
word-wrap: break-word;
}
.gc-ai-chat-message-bot {
background: #fff;
color: #111;
border: 1px solid #e5e5e5;
margin-right: auto;
}
.gc-ai-chat-message-operator {
background: #fff8e8;
color: #111;
border: 1px solid #f0d596;
margin-right: auto;
}
.gc-ai-chat-message-operator-label {
margin-bottom: 4px;
font-size: 12px;
font-weight: 700;
color: #76530b;
}
.gc-ai-chat-message-operator-text {
white-space: pre-wrap;
}
.gc-ai-chat-message-bot a,
.gc-ai-chat-message-bot a:visited,
.gc-ai-chat-message-operator a,
.gc-ai-chat-message-operator a:visited {
color: #06c;
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
.gc-ai-chat-message-bot a:hover,
.gc-ai-chat-message-bot a:focus,
.gc-ai-chat-message-operator a:hover,
.gc-ai-chat-message-operator a:focus {
color: #004999;
}
.gc-ai-chat-message-user {
background: #111;
color: #fff;
margin-left: auto;
}
.gc-ai-chat-message-user a,
.gc-ai-chat-message-user a:visited {
color: #55c8ff;
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
.gc-ai-chat-message-user a:hover,
.gc-ai-chat-message-user a:focus {
color: #a6e5ff;
}
.gc-ai-chat-message-loading {
background: #fff;
color: #777;
border: 1px solid #e5e5e5;
margin-right: auto;
font-style: italic;
}
.gc-ai-chat-message-error {
background: #ffecec;
color: #9b0000;
border: 1px solid #ffb8b8;
margin-right: auto;
}
.gc-ai-chat-form {
display: flex;
align-items: flex-end;
gap: 8px;
padding: 12px;
border-top: 1px solid #e5e5e5;
background: #fff;
}
.gc-ai-chat-form textarea {
flex: 1;
min-width: 0;
min-height: 42px;
max-height: 120px;
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 20px;
padding: 10px 14px;
font: inherit;
font-size: 14px;
line-height: 20px;
outline: none;
resize: none;
overflow-y: hidden;
}
.gc-ai-chat-form textarea:focus {
border-color: #111;
}
.gc-ai-chat-form button {
width: 42px;
height: 42px;
flex: 0 0 42px;
border-radius: 50%;
border: none;
background: #111;
color: #fff;
cursor: pointer;
}
.gc-ai-chat-form button:disabled,
.gc-ai-chat-form textarea:disabled {
opacity: 0.6;
cursor: not-allowed;
}
@media (max-width: 480px) {
.gc-ai-chat-widget {
left: 14px;
bottom: 14px;
}
.gc-ai-chat-toggle {
min-width: 172px;
height: 54px;
gap: 8px;
padding: 0 12px;
}
.gc-ai-chat-toggle-icon {
flex-basis: 30px;
width: 30px;
height: 30px;
}
.gc-ai-chat-toggle-icon svg {
width: 27px;
height: 27px;
}
.gc-ai-chat-toggle-title {
font-size: 14px;
}
.gc-ai-chat-toggle-subtitle {
display: none;
}
.gc-ai-chat-toggle-badge {
min-width: 22px;
height: 22px;
padding: 0 5px;
font-size: 11px;
}
.gc-ai-chat-toggle-attention {
left: 12px;
}
.gc-ai-chat-window {
width: calc(100vw - 28px);
height: 70vh;
left: 0;
bottom: 68px;
}
}
@media (prefers-reduced-motion: reduce) {
.gc-ai-chat-toggle,
.gc-ai-chat-toggle-attention {
transition: none;
}
.gc-ai-chat-toggle-attention-active {
animation: none;
}
}
.gc-ai-chat-lead-actions {
display: flex;
gap: 8px;
padding: 10px 12px 0;
background: #fff;
border-top: 1px solid #e5e5e5;
}
.gc-ai-chat-lead-open,
.gc-ai-chat-handoff-toggle {
flex: 1;
min-width: 0;
border: 1px solid #111;
border-radius: 999px;
padding: 8px 10px;
font-size: 13px;
cursor: pointer;
}
.gc-ai-chat-lead-open {
background: #fff;
color: #111;
}
.gc-ai-chat-handoff-toggle {
background: #111;
color: #fff;
}
.gc-ai-chat-lead-open:hover {
background: #111;
color: #fff;
}
.gc-ai-chat-handoff-toggle:hover {
background: #333;
}
.gc-ai-chat-handoff-toggle:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.gc-ai-chat-system-notice {
margin: 4px 0;
padding: 8px 10px;
border-radius: 10px;
background: #f4f4f4;
color: #444;
font-size: 12px;
line-height: 1.4;
}
.gc-ai-chat-system-notice-manager {
border: 1px solid #cfe5d5;
background: #edf7f0;
color: #2d5d3a;
}
.gc-ai-chat-lead-form {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px 12px;
background: #fff;
border-top: 1px solid #e5e5e5;
}
.gc-ai-chat-lead-form[hidden] {
display: none;
}
.gc-ai-chat-lead-form input,
.gc-ai-chat-lead-form select,
.gc-ai-chat-lead-form textarea {
width: 100%;
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 10px;
padding: 9px 10px;
font-size: 14px;
font-family: inherit;
outline: none;
}
.gc-ai-chat-lead-form textarea {
resize: vertical;
min-height: 70px;
}
.gc-ai-chat-lead-form input:focus,
.gc-ai-chat-lead-form select:focus,
.gc-ai-chat-lead-form textarea:focus {
border-color: #111;
}
.gc-ai-chat-lead-consent {
display: flex;
align-items: flex-start;
gap: 7px;
color: #444;
font-size: 12px;
line-height: 1.35;
}
.gc-ai-chat-lead-consent input[type="checkbox"] {
width: 16px;
height: 16px;
margin: 1px 0 0;
padding: 0;
border: 0;
border-radius: 0;
appearance: auto;
flex: 0 0 auto;
}
.gc-ai-chat-lead-consent a {
color: inherit;
text-decoration: underline;
}
.gc-ai-chat-lead-form-actions {
display: flex;
gap: 8px;
}
.gc-ai-chat-lead-form-actions button {
flex: 1;
border: none;
border-radius: 999px;
padding: 9px 12px;
font-size: 14px;
cursor: pointer;
}
#gc-ai-chat-lead-cancel {
background: #eee;
color: #111;
}
#gc-ai-chat-lead-submit {
background: #111;
color: #fff;
}
.gc-ai-chat-lead-form button:disabled,
.gc-ai-chat-lead-form input:disabled,
.gc-ai-chat-lead-form select:disabled,
.gc-ai-chat-lead-form textarea:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.gc-ai-inquiry {
max-width: 640px;
margin: 0 auto;
}
.gc-ai-inquiry-form {
display: flex;
flex-direction: column;
gap: 12px;
}
.gc-ai-inquiry-form input,
.gc-ai-inquiry-form select,
.gc-ai-inquiry-form textarea {
width: 100%;
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 8px;
padding: 12px;
font: inherit;
}
.gc-ai-inquiry-form textarea {
resize: vertical;
min-height: 110px;
}
.gc-ai-inquiry-form input:focus,
.gc-ai-inquiry-form select:focus,
.gc-ai-inquiry-form textarea:focus {
border-color: #111;
outline: none;
}
.gc-ai-inquiry-form .gc-ai-chat-lead-consent input[type="checkbox"] {
width: 16px;
height: 16px;
margin: 1px 0 0;
padding: 0;
border: 0;
border-radius: 0;
appearance: auto;
}
.gc-ai-inquiry-form button {
align-self: flex-start;
border: none;
border-radius: 999px;
padding: 12px 20px;
background: #111;
color: #fff;
cursor: pointer;
}
.gc-ai-inquiry-form button:disabled,
.gc-ai-inquiry-form input:disabled,
.gc-ai-inquiry-form select:disabled,
.gc-ai-inquiry-form textarea:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.gc-ai-inquiry-status {
min-height: 1.5em;
margin: 0;
}
.gc-ai-inquiry-status-success {
color: #167a35;
}
.gc-ai-inquiry-status-error {
color: #b42318;
}
.gc-ai-chat-feedback {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
margin-top: 8px;
font-size: 12px;
}
.gc-ai-chat-feedback-button,
.gc-ai-chat-recovery-button,
.gc-ai-chat-feedback-detail-actions button {
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
background: rgba(255, 255, 255, 0.06);
color: inherit;
cursor: pointer;
}
.gc-ai-chat-feedback-button {
min-width: 30px;
min-height: 28px;
padding: 3px 6px;
}
.gc-ai-chat-feedback-button:hover,
.gc-ai-chat-feedback-button-active {
background: rgba(255, 255, 255, 0.14);
}
.gc-ai-chat-feedback button:disabled {
cursor: default;
opacity: 0.6;
}
.gc-ai-chat-feedback-status {
flex: 1 1 140px;
min-width: 0;
opacity: 0.8;
}
.gc-ai-chat-feedback-status-error {
opacity: 1;
}
.gc-ai-chat-feedback-details,
.gc-ai-chat-recovery-offer {
flex: 1 0 100%;
display: grid;
gap: 7px;
margin-top: 2px;
}
.gc-ai-chat-feedback-details[hidden] {
display: none;
}
.gc-ai-chat-feedback-details select,
.gc-ai-chat-feedback-details textarea {
width: 100%;
box-sizing: border-box;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 8px;
background: rgba(0, 0, 0, 0.14);
color: inherit;
padding: 7px 8px;
font: inherit;
}
.gc-ai-chat-feedback-detail-actions {
display: flex;
justify-content: flex-end;
gap: 7px;
}
.gc-ai-chat-feedback-detail-actions button,
.gc-ai-chat-recovery-button {
padding: 6px 9px;
}
.gc-ai-chat-recovery-offer span {
opacity: 0.9;
}
.gc-ai-chat-send-retry {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px 12px;
border: 1px solid currentColor;
border-radius: 10px;
font-size: 13px;
}
.gc-ai-chat-send-retry button {
align-self: flex-start;
cursor: pointer;
}