/* Real Ink Chat — widget styles. Brand navy #0A3161, cream paper tones, 14px panel radius, 6px buttons. */

#ril-chat-root { position: fixed; bottom: 20px; right: 20px; z-index: 99990; font-family: inherit; }

/* Floating button */
#ril-chat-fab {
	position: relative;
	width: 56px; height: 56px;
	border-radius: 50%;
	border: none;
	background: #0A3161; color: #faf7f0;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 18px rgba(10,49,97, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#ril-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10,49,97, 0.4); }
#ril-chat-fab-dot {
	position: absolute; top: 6px; right: 6px;
	width: 10px; height: 10px; border-radius: 50%;
	background: #C4A747; border: 2px solid #faf7f0;
}

/* Panel */
#ril-chat-panel {
	position: absolute; bottom: 70px; right: 0;
	width: 360px; max-width: calc(100vw - 32px);
	height: 480px; max-height: calc(100vh - 110px);
	background: #faf7f0;
	border: 1px solid #e5decf;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(10,49,97, 0.25);
	display: flex; flex-direction: column;
	overflow: hidden;
}
#ril-chat-panel[hidden] { display: none; }

/* Header */
#ril-chat-head {
	background: #0A3161; color: #faf7f0;
	padding: 12px 14px;
	display: flex; align-items: center; justify-content: space-between;
}
#ril-chat-head strong { font-size: 16px; display: block; }
#ril-chat-head small { display: block; opacity: 0.85; font-size: 11.5px; margin-top: 1px; }
#ril-chat-x {
	background: none; border: none; color: #faf7f0;
	font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}
#ril-chat-x:hover { opacity: 0.8; }

/* Messages */
#ril-chat-body {
	flex: 1; overflow-y: auto; padding: 14px;
	display: flex; flex-direction: column; gap: 10px;
	background: #faf7f0;
}
.ril-chat-msg {
	max-width: 85%;
	padding: 9px 12px;
	font-size: 14px; line-height: 1.45;
	border-radius: 12px;
	white-space: pre-wrap; word-wrap: break-word;
}
.ril-chat-abby {
	background: #ffffff; color: #233238;
	align-self: flex-start;
	border: 1px solid #e5decf;
	border-top-left-radius: 4px;
}
.ril-chat-me {
	background: #0A3161; color: #faf7f0;
	align-self: flex-end;
	border-top-right-radius: 4px;
}
.ril-chat-dots { display: inline-flex; gap: 4px; padding: 3px 0; }
.ril-chat-dots i {
	width: 6px; height: 6px; border-radius: 50%;
	background: #0A3161; opacity: 0.4;
	animation: ril-chat-blink 1.2s infinite ease-in-out;
}
.ril-chat-dots i:nth-child(2) { animation-delay: 0.2s; }
.ril-chat-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes ril-chat-blink { 0%, 80%, 100% { opacity: 0.4; } 40% { opacity: 1; } }

/* Input */
#ril-chat-form {
	display: flex; gap: 8px; padding: 10px;
	border-top: 1px solid #e5decf; background: #fffdf9;
}
#ril-chat-in {
	flex: 1; min-width: 0;
	border: 1px solid #d8d0bd; border-radius: 6px;
	padding: 9px 10px; font-size: 14px;
	background: #ffffff; color: #233238;
}
#ril-chat-in:focus { outline: 2px solid #0A3161; outline-offset: -1px; }
#ril-chat-in:disabled, #ril-chat-send:disabled { opacity: 0.55; }
#ril-chat-send {
	background: #0A3161; color: #faf7f0;
	border: none; border-radius: 6px;
	padding: 9px 16px; font-size: 14px; cursor: pointer;
}
#ril-chat-send:hover:not(:disabled) { background: #1d5265; }

/* Note */
#ril-chat-note {
	padding: 8px 12px;
	font-size: 11px; color: #7a7466;
	background: #fffdf9; border-top: 1px solid #eee7d8;
}
#ril-chat-note a { color: #0A3161; }

/* Small screens */
@media (max-width: 420px) {
	#ril-chat-root { bottom: 14px; right: 14px; }
	#ril-chat-panel {
		width: calc(100vw - 28px);
		height: 70vh; max-height: none;
		right: 0;
	}
}


/* Green online dot next to Abby's name */
#ril-online-dot {
	display: inline-block;
	width: 9px; height: 9px; border-radius: 50%;
	background: #3fae5a;
	box-shadow: 0 0 0 3px rgba(63, 174, 90, 0.25);
	margin-right: 6px;
	animation: ril-online-pulse 2.5s ease-in-out infinite;
}
@keyframes ril-online-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(63, 174, 90, 0.25); }
	50%      { box-shadow: 0 0 0 5px rgba(63, 174, 90, 0.12); }
}

/* Inline (embedded) mode, e.g. on the contact page */
#ril-chat-root.ril-inline-wrap { position: static; }
#ril-chat-panel.ril-inline {
	position: relative; bottom: auto; right: auto;
	width: 100%; height: 560px; max-height: none;
	margin-top: 16px;
}
