/* GCPH Event Hire Assistant – chat bubble styles */
#gcph-eha-root { --gcph-accent: #1f6fb2; position: fixed; right: 20px; bottom: 20px; z-index: 99999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.45; color: #222; }
#gcph-eha-root *, #gcph-eha-root *::before, #gcph-eha-root *::after { box-sizing: border-box; }

.gcph-bubble { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--gcph-accent); color: #fff; border-radius: 999px; padding: 12px 18px 12px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.22); font-weight: 600; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease; }
.gcph-bubble:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.gcph-bubble:focus-visible { outline: 3px solid rgba(0,0,0,.35); outline-offset: 2px; }
.gcph-bubble-label:empty { display: none; }
.gcph-open .gcph-bubble-label { display: none; }
.gcph-open .gcph-bubble { padding: 12px 14px; }

.gcph-panel { position: absolute; right: 0; bottom: 64px; width: 370px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 110px); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; animation: gcph-in .18s ease-out; }
.gcph-panel[hidden] { display: none; }
@keyframes gcph-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gcph-head { display: flex; align-items: center; gap: 8px; background: var(--gcph-accent); color: #fff; padding: 12px 14px; }
.gcph-title { font-weight: 700; flex: 1; font-size: 16px; }
.gcph-new { background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 8px; padding: 5px 9px; font-size: 12px; cursor: pointer; }
.gcph-new:hover { background: rgba(255,255,255,.3); }
.gcph-close { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }

.gcph-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; background: #f4f6f8; display: flex; flex-direction: column; gap: 10px; }
.gcph-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; word-wrap: break-word; overflow-wrap: anywhere; }
.gcph-msg p { margin: 0 0 6px; }
.gcph-msg p:last-child { margin-bottom: 0; }
.gcph-msg ul { margin: 4px 0 6px 18px; padding: 0; }
.gcph-msg li { margin: 2px 0; }
.gcph-msg a { color: var(--gcph-accent); text-decoration: underline; }
.gcph-agent { align-self: flex-start; background: #fff; border: 1px solid #e3e7ea; border-bottom-left-radius: 4px; }
.gcph-user { align-self: flex-end; background: var(--gcph-accent); color: #fff; border-bottom-right-radius: 4px; }
.gcph-error { background: #fff4f4; border-color: #f1c0c0; color: #8a1f1f; }

.gcph-typing { display: flex; align-items: center; gap: 4px; padding: 10px 12px; }
.gcph-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa4ad; animation: gcph-dot 1.2s infinite ease-in-out; }
.gcph-typing span:nth-child(2) { animation-delay: .2s; }
.gcph-typing span:nth-child(3) { animation-delay: .4s; }
.gcph-typing em { font-style: normal; color: #6b7680; font-size: 13px; margin-left: 6px; }
@keyframes gcph-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

.gcph-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #e3e7ea; background: #fff; }
.gcph-input { flex: 1; resize: none; border: 1px solid #cfd6dc; border-radius: 12px; padding: 9px 12px; font: inherit; line-height: 1.35; max-height: 120px; min-height: 40px; }
.gcph-input:focus { outline: 2px solid var(--gcph-accent); border-color: transparent; }
.gcph-send { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--gcph-accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.gcph-send:disabled { opacity: .5; cursor: default; }

.gcph-foot { font-size: 11px; color: #6b7680; padding: 6px 12px 9px; background: #fff; }
.gcph-foot:empty { display: none; }

@media (max-width: 480px) {
	#gcph-eha-root { right: 12px; bottom: 12px; }
	.gcph-panel { position: fixed; inset: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: 0; }
	.gcph-open .gcph-bubble { display: none; }
}
