:root {
--ahg-font-family: sans-serif;
--ahg-input-focus: #4a90e2;
--ahg-btn-font: sans-serif; --ahg-header-bg: #000000;
--ahg-header-color: #ffffff;
--ahg-status-dot: #4ade80; --ahg-send-bg: #C89B7B;
--ahg-send-color: #ffffff;
--ahg-send-radius: 50%;
}
#ahg-sc-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: var(--ahg-sc-z, 9000); max-width: calc(100vw - 24px);
right: max(20px, env(safe-area-inset-right));
bottom: max(20px, env(safe-area-inset-bottom));
}
#ahg-sc-container.ahg-sc-chat-position-left {
left: max(20px, env(safe-area-inset-left));
right: auto;
}
#ahg-sc-container.ahg-sc-chat-position-left #ahg-sc-window {
left: 0;
right: auto;
}
#ahg-sc-container.ahg-sc-chat-position-right {
left: auto;
}
#ahg-sc-container.ahg-sc-chat-position-center {
left: 50%;
right: auto;
transform: translateX(-50%);
width: min(380px, calc(100vw - 24px));
max-width: calc(100vw - 24px);
} #ahg-sc-window {
position: absolute;
bottom: 0;
right: 0;
width: 380px;
max-width: calc(100vw - 32px); height: calc(100vh - 140px);
max-height: calc(100vh - 140px);
background: #fff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 8px 30px rgba(0,0,0,.15);
display: flex;
flex-direction: column; opacity: 0;
transform: translateY(10px);
pointer-events: none;
transition: opacity .25s ease, transform .25s ease; box-sizing: border-box; contain: layout paint size;
} #ahg-sc-window.active {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
} #ahg-sc-window.ahg-expanded {
width: 480px;
max-width: calc(100vw - 16px);
height: calc(100vh - 40px);
max-height: calc(100vh - 40px);
} @media (max-width: 768px) {
#ahg-sc-window {
position: fixed;
bottom: 16px;
left: 16px;
right: 16px;
width: auto;
max-width: none; height: calc(100vh - 120px);
max-height: calc(100vh - 120px);
height: calc(100dvh - 120px);
max-height: calc(100dvh - 120px);
transform: translateY(20px);
}
#ahg-sc-window.active {
transform: translateY(0);
}
#ahg-sc-window.ahg-expanded {
top: 8px;
bottom: 8px;
left: 8px;
right: 8px;
width: auto;
height: auto;
max-height: none;
}
#ahg-sc-container {
right: max(12px, env(safe-area-inset-right));
bottom: max(12px, env(safe-area-inset-bottom));
max-width: calc(100vw - 16px);
}
#ahg-sc-container.ahg-sc-chat-position-left {
left: max(12px, env(safe-area-inset-left));
right: auto;
}
#ahg-sc-container.ahg-sc-chat-position-right {
left: auto;
right: max(12px, env(safe-area-inset-right));
}
#ahg-sc-container.ahg-sc-chat-position-center {
left: 50%;
right: auto;
transform: translateX(-50%);
width: auto;
max-width: calc(100vw - 16px);
}
} @media (max-width: 1024px) and (orientation: landscape) {
#ahg-sc-container {
display: none !important;
}
} #ahg-sc-topbar {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 40px;
padding: 0 12px;
display: flex;
align-items: center;
background: var(--ahg-header-bg);
color: var(--ahg-header-color); border-top-left-radius: 16px;
border-top-right-radius: 16px;
z-index: 50;
} #ahg-sc-expand,
#ahg-sc-info,
#ahg-sc-close {
width: 32px;
height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
user-select: none; background: transparent !important;
border: none !important;
box-shadow: none !important;
outline: none !important;
padding: 0 !important;
color: var(--ahg-header-color);
line-height: 1;
} #ahg-sc-expand { margin-right: auto; }
#ahg-sc-info,
#ahg-sc-close { margin-left: 8px; } #ahg-sc-expand,
#ahg-sc-info,
#ahg-sc-close {
font-size: 0 !important;
}  #ahg-sc-expand::before {
content: "+";
font-size: 20px;
font-weight: 600;
line-height: 1;
}
#ahg-sc-expand.is-expanded::before {
content: "−";
} #ahg-sc-info::before {
content: "i";
font-size: 14px;
font-weight: 700;
line-height: 1;
} #ahg-sc-close::before {
content: "✕";
font-size: 18px;
font-weight: 500;
line-height: 1;
} #ahg-sc-expand:hover,
#ahg-sc-info:hover,
#ahg-sc-close:hover {
opacity: 0.85;
} @media (max-width: 768px) {
#ahg-sc-expand { display: none; }
#ahg-sc-topbar { justify-content: flex-end; }
}
.ahg-sc-expand {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
} .ahg-sc-close {
background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6 6l12 12M18 6l-12 12'/%3E%3C/svg%3E\");
} .ahg-sc-info {
background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E\");
}
#ahg-sc-header {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
background: var(--ahg-header-bg);
color: var(--ahg-header-color); position: relative;
z-index: 10;
} .ahg-sc-photo {
width: 42px;
height: 42px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
} .ahg-sc-title-wrap {
display: flex;
flex-direction: column;
gap: 2px;
}
#ahg-sc-header .ahg-sc-title {
font-size: 18px;
font-weight: 600;
line-height: 1.2;
}
#ahg-sc-header .ahg-sc-status {
display: flex;
align-items: center;
gap: 6px;
font-size: 14px;
opacity: 0.95;
} .ahg-sc-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--ahg-dot-color);
}
#ahg-sc-messages {
flex: 1;
padding: 14px;
overflow-y: auto;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
pointer-events: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
touch-action: pan-y;
}
.ahg-sc-msg,
.ahg-sc-option {
pointer-events: auto;
}
.ahg-sc-msg {
display: inline-block;
align-self: flex-start;
width: fit-content;
max-width: 82%;
padding: 5px 16px;
border-radius: 14px;
font-size: 13.5px;
line-height: 1.38;
box-sizing: border-box;
}
.ahg-sc-bot {
background: var(--ahg-bot-bubble-color, #f3f4f6);
color: var(--ahg-bot-text-color, #000);
}
.ahg-sc-user {
background: var(--ahg-user-bubble-color, #0084ff);
color: var(--ahg-user-text-color, #fff);
align-self: flex-end;
} .ahg-sc-link-preview {
align-self: flex-start;
display: flex;
flex-direction: column;
max-width: 94%;
text-decoration: none;
color: inherit;
background: #ffffff;
border: 1px solid #d5e2f0;
border-radius: 24px;
overflow: hidden;
box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
transition: transform .15s ease, box-shadow .15s ease;
}
.ahg-sc-link-preview:hover {
transform: translateY(-1px);
box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}
.ahg-sc-lp-img {
width: 100%;
height: 180px;
background: #eef3f8;
}
.ahg-sc-lp-img img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}
.ahg-sc-lp-body {
padding: 18px 22px 22px;
background: #f1f6fb;
display: flex;
flex-direction: column;
gap: 6px;
}
.ahg-sc-lp-title {
font-size: 18px;
font-weight: 800;
line-height: 1.32;
margin: 0;
color: #0f172a;
}
.ahg-sc-lp-desc {
font-size: 14px;
line-height: 1.45;
color: #475569;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
margin: 0;
}
.ahg-sc-link-preview.is-no-image .ahg-sc-lp-body {
padding-top: 14px;
}
.ahg-sc-lp-cta {
margin-top: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 22px;
border-radius: 999px;
font-size: 16px;
font-weight: 800;
background: #ffd200;
color: #111827;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
.ahg-sc-link-preview {
max-width: 100%;
}
.ahg-sc-lp-img {
height: 160px;
}
}
.ahg-sc-option {
display: inline-block;
align-self: flex-start;
width: fit-content;
max-width: 82%;
box-sizing: border-box;
padding: 5px 12px;
margin: 1px 0;
font-size: 12.5px;
line-height: 1.33;
white-space: normal;
overflow-wrap: anywhere;
border-radius: 14px;
border: 1.5px solid var(--ahg-bot-action-color, #c89b7b);
background: transparent;
color: var(--ahg-bot-action-color, #c89b7b);
cursor: pointer;
transition: .25s;
}
.ahg-sc-option-link {
text-decoration: none;
}
.ahg-sc-option:hover,
.ahg-sc-option-selected {
background: var(--ahg-bot-action-hover-color, #c89b7b);
border-color: var(--ahg-bot-action-hover-color, #c89b7b);
color: var(--ahg-bot-action-hover-text-color, #fff);
}
#ahg-sc-input {
display: flex;
align-items: center;
padding: 12px;
gap: 10px;
background: #fff;
position: relative;
z-index: 20;
flex-shrink: 0;
}
#ahg-sc-text {
flex: 1;
padding: 12px 16px;
border: none;
border-radius: 20px;
background: #f9f9f9;
box-shadow:
0 1px 2px rgba(0,0,0,0.06),
0 4px 12px rgba(0,0,0,0.08);
font-size: 15px;
}
#ahg-sc-text:hover,
#ahg-sc-text:focus {
outline: none;
box-shadow:
0 2px 4px rgba(0,0,0,0.10),
0 8px 20px rgba(0,0,0,0.15);
background: #ffffff;
} #ahg-sc-send {
width: 42px;
height: 42px;
border: none;
cursor: pointer;
background: var(--ahg-send-bg) !important;
color: var(--ahg-send-color) !important;
border-radius: var(--ahg-send-radius) !important;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
transition: .25s;
}
#ahg-sc-send:hover {
opacity: .85;
}
#ahg-sc-send svg {
width: 100% !important;
height: 100% !important;
max-width: 28px;
max-height: 28px;
display: block;
stroke: currentColor;
stroke-width: 2.2;
transform-origin: center;
} #ahg-sc-branding {
padding: 10px 12px;
text-align: center;
font-size: 11px;
background: #fff;
flex-shrink: 0;
}
#ahg-sc-branding a {
color: #9ca3af;
text-decoration: none;
font-weight: 400;
transition: opacity 0.2s;
display: block;
}
#ahg-sc-branding a:hover {
opacity: 0.7;
} @media (max-width: 768px) {
#ahg-sc-text { font-size: 16px !important; }
#ahg-sc-window { -webkit-text-size-adjust: 100%; }
} .ahg-hidden {
display: none !important;
}
#ahg-sc-window.active {
opacity: 1 !important;
transform: translateY(0);
pointer-events: auto !important;
}
#ahg-sc-typing {
opacity: 0;
transition: opacity .25s ease;
}
#ahg-sc-typing.active {
opacity: 1;
}
#ahg-sc-typing .dot {
animation: ahg-bounce 1.4s infinite;
opacity: .6;
}
@keyframes ahg-bounce {
50% {
transform: translateY(-4px);
opacity: 1;
}
} .ahg-btn-notif {
position: absolute;
top: -4px;
right: -4px;
width: 12px;
height: 12px;
background: #ff3b30;
border-radius: 50%;
border: 2px solid white;
animation: ahg-pulse 1.4s infinite ease-out;
pointer-events: none;
}
@keyframes ahg-pulse {
0%   { transform: scale(1);   opacity: 1; }
60%  { transform: scale(1.8); opacity: .4; }
100% { transform: scale(1);   opacity: 1; }
} #ahg-sc-rgpd {
position: absolute;
inset: 0;
z-index: 100;
background: rgba(0,0,0,.55);
display: flex;
align-items: center;
justify-content: center;
}
#ahg-sc-rgpd:not(.active) {
display: none;
} .ahg-sc-rgpd-modal {
position: relative;
width: calc(100% - 32px);
max-width: 440px;
height: calc(100% - 32px);
max-height: 560px;
background: #ffffff;
border-radius: 16px;
display: flex;
flex-direction: column;
box-shadow: 0 10px 40px rgba(0,0,0,.25);
font-family: var(--ahg-font-family, system-ui, sans-serif);
color: #000;
overflow: hidden;
} .ahg-sc-rgpd-modal * {
box-sizing: border-box;
color: inherit;
font-family: inherit;
} .ahg-sc-rgpd-modal h3 {
position: relative;
height: 52px;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
font-weight: 600;
text-align: center;
border-bottom: 1px solid rgba(0,0,0,.08);
flex-shrink: 0;
} .ahg-sc-rgpd-close {
position: absolute;
top: 10px;
right: 12px;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: none !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
cursor: pointer;
color: #000 !important;
font-size: 0 !important;
z-index: 2;
}
.ahg-sc-rgpd-close::before {
content: "✕";
font-size: 18px;
font-weight: 500;
line-height: 1;
}
.ahg-sc-rgpd-close:hover {
opacity: .7;
} .ahg-sc-rgpd-content {
padding: 20px;
font-size: 14px;
line-height: 1.65;
overflow-y: auto;
flex: 1;
} .ahg-sc-rgpd-content p {
margin: 0 0 16px;
} .ahg-sc-rgpd-content ul,
.ahg-sc-rgpd-content ol {
margin: 0 0 16px 20px;
padding: 0;
}
.ahg-sc-rgpd-content li {
margin-bottom: 8px;
} .ahg-sc-rgpd-content h4 {
margin: 20px 0 10px;
font-size: 14px;
font-weight: 600;
} .ahg-sc-rgpd-content strong {
font-weight: 600;
} #ahg-sc-bubble-button {
position: relative !important;
display: inline-flex !important;
align-items: center !important;
gap: 8px !important;
padding: 12px 18px !important;
border-radius: 999px !important;
border: none !important;
outline: none !important;
background: #C89B7B !important;
box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
color: #fff !important;
cursor: pointer !important;
font-size: 15px !important;
font-weight: 500 !important;
line-height: 1 !important;
opacity: 1;
transform: translateY(0) scale(1);
transition:
opacity .25s ease,
transform .25s ease;
pointer-events: auto !important;
} #ahg-sc-bubble-button.hidden,
#ahg-sc-bubble-button.is-hiding {
opacity: 0 !important;
transform: translateY(8px) scale(.96) !important;
pointer-events: none !important;
} #ahg-sc-bubble-button.is-showing {
opacity: 1 !important;
transform: translateY(0) scale(1) !important;
pointer-events: auto !important;
} #ahg-sc-bubble-button svg {
width: 22px;
height: 22px;
display: block;
fill: currentColor;
} #ahg-sc-window {
opacity: 0;
transform: translateY(12px) scale(.98);
pointer-events: none;
transition:
opacity .28s ease,
transform .28s ease;
} #ahg-sc-window.active {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
} #ahg-sc-window,
#ahg-sc-bubble-button {
-webkit-tap-highlight-color: transparent;
} #ahg-sc-window #ahg-sc-lead-overlay,
#ahg-sc-window #ahg-sc-lead-sheet {
font-family: var(--ahg-font-family);
} #ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-sub,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-sub {
margin-bottom: 18px !important;
} #ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-label,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-label {
display: none !important;
} #ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-close,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-close {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
outline: none !important;
padding: 6px !important;
line-height: 1 !important;
}
#ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-close:hover,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-close:hover {
background: transparent !important;
box-shadow: none !important;
opacity: .7 !important;
}
#ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-close:active,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-close:active {
background: transparent !important;
box-shadow: none !important;
opacity: .55 !important;
} #ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-input,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-input {
width: 100% !important;
box-sizing: border-box !important;
padding: 12px 16px !important;
border: none !important;
border-radius: 20px !important;
background: #f9f9f9 !important;
box-shadow:
0 1px 2px rgba(0,0,0,0.06),
0 4px 12px rgba(0,0,0,0.08) !important;
font-size: 15px !important;
font-family: var(--ahg-font-family) !important;
outline: none !important;
}
#ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-input:hover,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-input:hover,
#ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-input:focus,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-input:focus {
outline: none !important;
box-shadow:
0 2px 4px rgba(0,0,0,0.10),
0 8px 20px rgba(0,0,0,0.15) !important;
background: #ffffff !important;
}
#ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-input::placeholder,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-input::placeholder {
color: rgba(0,0,0,.35) !important;
} @media (max-width: 768px) {
#ahg-sc-window #ahg-sc-lead-overlay .ahg-sc-lead-input,
#ahg-sc-window #ahg-sc-lead-sheet  .ahg-sc-lead-input {
font-size: 16px !important;
}
} .ahg-sc-msg a {
color: inherit;
text-decoration: underline;
cursor: pointer;
}
.ahg-sc-msg a:hover {
text-decoration: none;
opacity: 0.85;
}
.ahg-sc-msg a:visited {
color: inherit;
}
.ahg-sc-msg {
pointer-events: auto;
} .ahg-sc-msg span {
white-space: pre-line;
}
.ahg-sc-msg a {
pointer-events: auto;
} #ahg-sc-messages .ahg-sc-msg.ahg-sc-bot span {  color: var(--ahg-bot-text-color, inherit) !important;
} #ahg-sc-messages .ahg-sc-msg.ahg-sc-bot {  background: var(--ahg-bot-bubble-color, #f3f4f6) !important;
} .ahg-sc-option {  background: transparent !important;
border-color: var(--ahg-bot-action-color, #c89b7b) !important;
color: var(--ahg-bot-action-color, #c89b7b) !important;
}
.ahg-sc-option-link {
text-decoration: none !important;
}
.ahg-sc-option:hover,
.ahg-sc-option-selected {
background: var(--ahg-bot-action-hover-color, #c89b7b) !important;
border-color: var(--ahg-bot-action-hover-color, #c89b7b) !important;
color: var(--ahg-bot-action-hover-text-color, #fff) !important;
} #ahg-sc-messages .ahg-sc-msg.ahg-sc-user {  background: var(--ahg-user-bubble-color, #0084ff) !important;
color: var(--ahg-user-text-color, #fff) !important;
}