/* Gromax huisstijl: rood #E30613, geel #FDC401, grijs #4A4A49, lichtgrijs #FAFAFA, lijnen #EFEFEF,
   koppen proxima-nova 800, tekst ibm-plex-sans (beide al op gromaxverhuur.nl geladen) */
.gac { --gac-color: #e30613; --gac-accent: #fdc401; --gac-grey: #4a4a49; --gac-light: #fafafa; --gac-line: #efefef;
  font-family: ibm-plex-sans, "IBM Plex Sans", Arial, sans-serif; font-size: 14px; line-height: 1.5; color: var(--gac-grey); box-sizing: border-box; }
.gac *, .gac *::before, .gac *::after { box-sizing: border-box; }

.gac-panel { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gac-line); overflow: hidden; box-shadow: 0 14px 40px rgba(74,74,73,.28); }
.gac--inline .gac-panel { height: 560px; max-height: 80vh; box-shadow: none; }

.gac-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 12px; background: #fff; color: var(--gac-grey); border-bottom: 4px solid var(--gac-color); }
.gac-wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.gac-wordmark img { display: block; height: 24px; width: auto; }
.gac-wordmark small { font-family: ibm-plex-sans, "IBM Plex Sans", Arial, sans-serif; font-weight: 600; font-size: 12px; color: #7b7b7a; line-height: 1.2; }
.gac-title { display: flex; align-items: center; gap: 10px; font-family: proxima-nova, Montserrat, Arial, sans-serif; font-weight: 800; font-size: 18px; line-height: 1.15; }
.gac-head-icon { flex: none; display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: var(--gac-color); align-items: center; justify-content: center; }
.gac-head-icon .gac-bot { width: 34px; height: 34px; }
.gac-head-icon .gac-bot-bubble { display: none; }
.gac-close { background: none; border: 0; color: var(--gac-grey); font-size: 28px; line-height: 1; cursor: pointer; padding: 0 6px; }

.gac-log { position: relative; flex: 1; overflow-y: auto; padding: 14px; background: var(--gac-light); display: flex; flex-direction: column; gap: 10px; }
.gac-msg { max-width: 88%; padding: 10px 13px; overflow-wrap: anywhere; }
.gac-msg p { margin: 0 0 6px; } .gac-msg p:last-child { margin: 0; }
.gac-msg ul { margin: 4px 0 6px; padding-left: 18px; } .gac-msg li { margin: 3px 0; }
.gac-msg--assistant { align-self: flex-start; background: #fff; border: 1px solid var(--gac-line); border-left: 3px solid var(--gac-color); }
.gac-msg--user { align-self: flex-end; background: var(--gac-grey); color: #fff; white-space: pre-wrap; }
.gac-msg--error { align-self: flex-start; background: #fdecea; color: #a1040e; border-left: 3px solid var(--gac-color); }
.gac-product { color: var(--gac-color); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.gac-examples { display: flex; flex-direction: column; gap: 6px; }
.gac-chip { text-align: left; background: #fff; border: 1px solid var(--gac-line); color: var(--gac-grey); border-radius: 30px; padding: 8px 16px; cursor: pointer; font: inherit; font-weight: 600; }
.gac-chip:hover { border-color: var(--gac-accent); background: var(--gac-accent); }

.gac-typing { display: flex; gap: 4px; padding: 14px; }
.gac-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gac-color); animation: gac-blink 1.2s infinite ease-in-out; }
.gac-typing span:nth-child(2) { animation-delay: .2s; } .gac-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes gac-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.gac-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--gac-line); background: #fff; }
.gac-input { flex: 1; min-width: 0; resize: none; border: 1px solid var(--gac-line); background: var(--gac-light); color: var(--gac-grey); border-radius: 25px; padding: 11px 16px; font: inherit; min-height: 44px; max-height: 120px; }
.gac-input:focus { outline: 2px solid var(--gac-accent); outline-offset: 0; }
.gac-send { background: var(--gac-accent); color: var(--gac-grey); border: 0; border-radius: 30px; padding: 0 20px; font: inherit; font-weight: 600; cursor: pointer; }
.gac-send:hover { filter: brightness(.96); }
.gac-send:disabled { opacity: .5; cursor: default; }
.gac-foot { font-size: 11.5px; color: #8a8a89; padding: 0 12px 9px; background: #fff; }

.gac-fb { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--gac-line); }
.gac-fb-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--gac-line); border-radius: 30px; padding: 3px 10px 3px 4px; font: inherit; font-size: 12px; font-weight: 600; color: #6b6b6a; cursor: pointer; }
.gac-fb-btn:hover { border-color: var(--gac-color); color: var(--gac-color); }
.gac-fb-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gac-accent); color: var(--gac-grey); font-weight: 800; font-size: 12px; line-height: 1; }
.gac-fb-form { display: flex; flex-direction: column; gap: 8px; }
.gac-fb-title { font-weight: 700; font-size: 13px; }
.gac-fb-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.gac-fb-reason { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--gac-line); border-radius: 30px; padding: 3px 10px; font-size: 12px; cursor: pointer; background: #fff; }
.gac-fb-reason:has(input:checked) { border-color: var(--gac-color); color: var(--gac-color); font-weight: 600; }
.gac-fb-reason input { margin: 0; accent-color: var(--gac-color); }
.gac-fb-note { width: 100%; resize: vertical; border: 1px solid var(--gac-line); background: var(--gac-light); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--gac-grey); }
.gac-fb-note:focus { outline: 2px solid var(--gac-accent); outline-offset: 0; }
.gac-fb-actions { display: flex; gap: 8px; }
.gac-fb-send { background: var(--gac-accent); color: var(--gac-grey); border: 0; border-radius: 30px; padding: 6px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gac-fb-send:disabled { opacity: .6; cursor: default; }
.gac-fb-cancel { background: none; border: 0; font: inherit; font-size: 13px; color: #6b6b6a; cursor: pointer; text-decoration: underline; }
.gac-fb-done { font-size: 12px; font-weight: 600; color: #3d7a3a; }
.gac-fb-err { font-size: 12px; color: #a1040e; }
.gac-fb-btn:focus-visible, .gac-fb-send:focus-visible, .gac-fb-cancel:focus-visible { outline: 3px solid var(--gac-accent); outline-offset: 2px; }

/* Klein chat-bot-hoofd rechtsonder; chat opent pas na een klik */
.gac--floating { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 99999; }
.gac--floating .gac-panel { position: absolute; right: 0; bottom: 76px; width: 370px; height: 540px; max-height: calc(100vh - 116px); visibility: hidden; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.gac--floating.gac--open .gac-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .2s ease; }

.gac-launcher { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: var(--gac-color); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 6px 18px rgba(74,74,73,.35); transition: transform .15s ease; }
.gac-launcher:hover { transform: scale(1.06); }
.gac-launcher:focus-visible, .gac-chip:focus-visible, .gac-send:focus-visible, .gac-close:focus-visible { outline: 3px solid var(--gac-accent); outline-offset: 2px; }
.gac-bot { overflow: visible; }
.gac-bot-head { transform-origin: 32px 56px; animation: gac-bob 3.4s ease-in-out infinite; }
.gac-bot-eyes { transform-origin: 32px 41px; animation: gac-eyes 4.5s infinite; }
.gac-bot-bubble { transform-origin: 54px 10px; animation: gac-ask 7s ease-in-out infinite; }
.gac-launcher:hover .gac-bot-head { animation: gac-nod .6s ease-in-out 1; }
.gac--open .gac-launcher .gac-bot-bubble { animation: none; opacity: 0; }
@keyframes gac-bob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-1.5px) rotate(-4deg); } 75% { transform: translateY(-.5px) rotate(4deg); } }
@keyframes gac-nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(7deg); } }
@keyframes gac-eyes { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes gac-ask { 0%, 55%, 100% { transform: scale(0); opacity: 0; } 62%, 90% { transform: scale(1); opacity: 1; } }

@media (max-width: 480px) {
  .gac--floating { right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .gac--floating .gac-panel { position: fixed; left: 8px; right: 8px; top: 8px; bottom: 88px; width: auto; height: auto; max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gac-bot-head, .gac-bot-eyes, .gac-bot-bubble, .gac-launcher:hover .gac-bot-head { animation: none; }
  .gac-bot-bubble { opacity: 1; transform: none; }
  .gac--floating .gac-panel, .gac-launcher { transition: none; }
}
