/* Hevens Water AI chat widget ("Priya") */
.hwc { --hwc-color: #0b2545; --hwc-accent: #1f6fb2; position: fixed; bottom: 24px; right: 24px; z-index: 99999;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5; color: #142033; }
.hwc--left { right: auto; left: 24px; }
.hwc *, .hwc *::before, .hwc *::after { box-sizing: border-box; }
.hwc button { font-family: inherit; }
/* Shield from theme resets (e.g. Hello Elementor colours buttons #c36 red with a border and padding). */
.hwc button, .hwc textarea { margin: 0; text-transform: none; letter-spacing: normal; text-decoration: none; min-height: 0; }
.hwc button { padding: 0; border: 0; border-radius: 0; background-color: transparent; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; white-space: normal; }
html.hwc-lock, html.hwc-lock body { overflow: hidden !important; }

/* ---------- avatars ---------- */
.hwc-av { position: relative; display: inline-block; flex: none; border-radius: 50%; background: #dbeeff; }
.hwc-av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hwc-av--launch { width: 100%; height: 100%; }
.hwc-av--head { width: 46px; height: 46px; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.hwc-av--intro { width: 76px; height: 76px; box-shadow: 0 0 0 4px #fff, 0 8px 22px rgba(11,37,69,.18); }
.hwc-av--msg { width: 30px; height: 30px; align-self: flex-end; margin-bottom: 18px; }
.hwc-online { position: absolute; right: 3px; bottom: 3px; width: 15px; height: 15px; border-radius: 50%; background: #22c55e; border: 3px solid #fff; }
.hwc-online--head { right: -1px; bottom: -1px; width: 13px; height: 13px; border-width: 2px; border-color: var(--hwc-color); }

/* ---------- launcher: photo + "Chat with Priya" pill ---------- */
.hwc .hwc-launcher { position: relative; display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 4px 18px 4px 4px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; text-align: left;
	background: linear-gradient(135deg, #34d36f 0%, #16a34a 55%, #0f7a37 100%); box-shadow: 0 14px 30px rgba(22,163,74,.38), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .2s, box-shadow .2s, padding .25s; }
.hwc--left .hwc-launcher { margin-left: 0; }
.hwc .hwc-launcher:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(22,163,74,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.hwc .hwc-launcher::before { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid #22c55e; opacity: 0; animation: hwc-pulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes hwc-pulse { 0% { transform: scale(.96); opacity: .7; } 80%, 100% { transform: scale(1.12); opacity: 0; } }
.hwc-launch-av { position: relative; display: block; width: 40px; height: 40px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.hwc-launch-av .hwc-online { right: -2px; bottom: -2px; width: 12px; height: 12px; border-width: 2px; border-color: #fff; }
.hwc-launch-text { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.hwc-launch-text strong { font-size: 14.5px; font-weight: 800; line-height: 1.15; letter-spacing: .1px; }
.hwc-launch-x { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: var(--hwc-color); color: #fff; opacity: 0; transform: rotate(-90deg); transition: opacity .2s, transform .25s; pointer-events: none; }
.hwc-launch-x svg { width: 22px; height: 22px; }
/* Open: the pill turns into a round close button */
.hwc--open .hwc-launcher { padding: 0; width: 48px; height: 48px; border-radius: 50%; }
.hwc--open .hwc-launch-text, .hwc--open .hwc-launch-av { display: none; }
.hwc--open .hwc-launch-x { opacity: 1; transform: none; }
.hwc--open .hwc-launcher::before { display: none; }

/* ---------- teaser ---------- */
.hwc-teaser { position: absolute; bottom: 64px; right: 0; width: 260px; opacity: 0; visibility: hidden; transform: translateX(8px) scale(.96); transform-origin: right bottom; transition: opacity .3s, transform .3s, visibility .3s; }
.hwc--left .hwc-teaser { right: auto; left: 0; transform-origin: left bottom; }
.hwc-teaser--show { opacity: 1; visibility: visible; transform: none; }
.hwc--open .hwc-teaser { display: none; }
.hwc .hwc-teaser-body { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-radius: 16px 16px 4px 16px; background: #fff; cursor: pointer;
	box-shadow: 0 14px 34px rgba(11,37,69,.22); color: #142033; font-size: 13.5px; line-height: 1.4; }
.hwc--left .hwc-teaser-body { border-radius: 16px 16px 16px 4px; }
.hwc .hwc-teaser-body strong { font-size: 14.5px; color: var(--hwc-color); }
.hwc .hwc-teaser-x { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #fff; color: #5a6577; font-size: 16px; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(11,37,69,.2); }

/* ---------- panel ---------- */
.hwc-panel { position: absolute; bottom: 64px; right: 0; width: 380px; height: min(620px, calc(100vh - 130px)); display: flex; flex-direction: column;
	background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 28px 70px rgba(11,37,69,.32), 0 2px 8px rgba(11,37,69,.08);
	opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .22s, transform .22s, visibility .22s; }
.hwc--left .hwc-panel { right: auto; left: 0; transform-origin: bottom left; }
.hwc--open .hwc-panel { opacity: 1; visibility: visible; transform: none; }

.hwc-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 16px; color: #fff;
	background: linear-gradient(120deg, var(--hwc-color) 0%, var(--hwc-accent) 100%); }
.hwc-head::after { content: ""; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.hwc-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hwc-title strong { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2; }
.hwc-sub { font-size: 12.5px; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwc .hwc-close { position: relative; z-index: 1; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hwc .hwc-close:hover { background: rgba(255,255,255,.26); }
.hwc .hwc-close svg { width: 22px; height: 22px; }

.hwc-log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; background: linear-gradient(180deg, #eef5fc 0%, #f7fafd 160px, #f7fafd 100%); display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.hwc-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 4px 0 14px; }
.hwc-intro strong { margin-top: 8px; font-size: 16px; color: var(--hwc-color); }
.hwc-intro span:last-child { font-size: 12px; color: #6b7789; }

.hwc-row { display: flex; align-items: flex-start; gap: 8px; animation: hwc-in .25s ease-out; }
.hwc-row--user { justify-content: flex-end; }
@keyframes hwc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hwc-bwrap { display: flex; flex-direction: column; max-width: 80%; }
.hwc-row--user .hwc-bwrap { align-items: flex-end; }
.hwc-msg { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; word-wrap: break-word; }
.hwc-msg--bot { background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 2px 8px rgba(11,37,69,.07); }
.hwc-msg--user { background: linear-gradient(135deg, var(--hwc-accent), var(--hwc-color)); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 4px 12px rgba(31,111,178,.25); }
.hwc-msg--setup { background: #fff7ea; color: #7a4d0b; font-size: 13.5px; box-shadow: none; border: 1px solid #f0c983; }
.hwc .hwc-msg a { color: var(--hwc-accent); font-weight: 700; word-break: break-word; }
.hwc .hwc-msg--user a { color: #fff; }
.hwc-time { margin: 3px 6px 8px; font-size: 10.5px; color: #8a96a8; }
.hwc-li { display: block; padding-left: 15px; position: relative; }
.hwc-li::before { content: ""; position: absolute; left: 3px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--hwc-accent); }
.hwc-typing { display: inline-flex; align-items: center; gap: 8px; color: #6b7789; font-size: 12.5px; margin-bottom: 8px; }
.hwc-dots { display: inline-flex; gap: 4px; }
.hwc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hwc-accent); opacity: .4; animation: hwc-dot 1s infinite ease-in-out; }
.hwc-dots i:nth-child(2) { animation-delay: .15s; }
.hwc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hwc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.hwc-quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 2px 14px 12px; background: #f7fafd; }
.hwc .hwc-chip { border: 1.5px solid #c5daf0; background: #fff; color: var(--hwc-color); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.hwc .hwc-chip:hover { background: var(--hwc-accent); border-color: var(--hwc-accent); color: #fff; }

.hwc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e6edf5; background: #fff; }
.hwc .hwc-input { flex: 1; resize: none; border: 1.5px solid #d8e2ee; border-radius: 22px; padding: 10px 16px; font: inherit; font-size: 15px; line-height: 1.4; max-height: 110px; outline: none; color: #142033; background: #f5f8fc; }
.hwc .hwc-input:focus { border-color: var(--hwc-accent); background: #fff; }
.hwc .hwc-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; color: #fff; display: grid; place-items: center; cursor: pointer;
	background: linear-gradient(135deg, var(--hwc-accent), var(--hwc-color)); box-shadow: 0 6px 14px rgba(31,111,178,.3); transition: transform .15s; }
.hwc .hwc-send:hover { transform: scale(1.06); }
.hwc .hwc-send:disabled { opacity: .5; cursor: default; transform: none; }
.hwc .hwc-send svg { width: 20px; height: 20px; margin-left: 2px; }

.hwc-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 12px 10px; background: #fff; }
.hwc-wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px; border-radius: 12px; background: #e8f8ee; color: #127a3c !important; font-size: 13px; font-weight: 800; text-decoration: none; }
.hwc-wa svg { width: 18px; height: 18px; }
.hwc-wa:hover { background: #d6f2e1; }
.hwc-note { font-size: 11px; color: #8a96a8; text-align: center; }

/* ---------- phones & small tablets ---------- */
/* Pages with the phone action bar (up to 760px wide): only the bar's Chat button opens the chat there. */
@media (max-width: 760px) {
	.hwc--barred .hwc-launcher, .hwc--barred .hwc-teaser { display: none !important; }
	/* Chat opens full screen on phones and small tablets */
	.hwc-panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; transform: translateY(24px); }
	.hwc--open .hwc-panel { transform: none; }
	.hwc--open .hwc-launcher, .hwc--open .hwc-teaser { display: none; }
	.hwc-head { padding: 12px 12px 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
	.hwc-foot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
	.hwc .hwc-input { font-size: 16px; } /* 16px stops iPhone from zooming into the input */
	.hwc-bwrap { max-width: 84%; }
}
@media (max-width: 600px) {
	.hwc { bottom: 16px; right: 14px; }
	.hwc--left { left: 14px; }
	.hwc-teaser { bottom: 60px; width: min(250px, calc(100vw - 28px)); }
}
/* Theme hover/focus colours (red) must never show on the chat's buttons */
.hwc .hwc-launcher:is(:hover, :focus, :active) { background-color: #16a34a; color: #fff; border: 0; }
.hwc .hwc-teaser-body:is(:hover, :focus, :active) { background-color: #fff; color: #142033; }
.hwc .hwc-teaser-x:is(:hover, :focus, :active) { background-color: #fff; color: #5a6577; }
.hwc .hwc-close:is(:hover, :focus, :active) { background-color: rgba(255,255,255,.26); color: #fff; }
.hwc .hwc-send:is(:hover, :focus, :active) { background-color: var(--hwc-color); color: #fff; }
.hwc .hwc-chip:is(:focus, :active) { background-color: #fff; color: var(--hwc-color); }
.hwc .hwc-chip:hover { background-color: var(--hwc-accent); border-color: var(--hwc-accent); color: #fff; }
.hwc .hwc-msg a:is(:hover, :focus) { color: var(--hwc-accent); }
.hwc .hwc-msg--user a:is(:hover, :focus) { color: #fff; }
@media (prefers-reduced-motion: reduce) { .hwc *, .hwc-panel, .hwc-teaser { transition: none !important; animation: none !important; } }
