/* Ask OGAICE · OGAICE Smart Assistant for OSSN · OGA navy + red */
.ogaice-assist {
	--oa-navy: #1c3f8f;
	--oa-navy-900: #0f2557;
	--oa-red: #d81f36;
	--oa-cream: #fdfaf3;
	--oa-ink: #1d2433;
	--oa-muted: #5b6475;
	--oa-line: #e3e6ee;
	--oa-soft: #f4f6fb;
	--oa-wa: #1fa855;
	--oa-tg: #229ed9;
	--oa-font: "OGA PT Sans", "PT Sans", Arial, sans-serif;
	--oa-bottom: 20px;
	position: fixed;
	right: 20px;
	bottom: var(--oa-bottom);
	z-index: 1060;
	font-family: var(--oa-font);
	color: var(--oa-ink);
	line-height: 1.4;
}
/* lift above the OSSN chat bar for signed-in members */
.ogaice-assist--member {
	--oa-bottom: 48px;
}
.ogaice-assist *,
.ogaice-assist *::before,
.ogaice-assist *::after {
	box-sizing: border-box;
}
.ogaice-assist [hidden] {
	display: none !important;
}
.ogaice-assist svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ogaice-assist .oga-ico {
	width: 22px;
	height: 22px;
	stroke-width: 1.7;
	flex-shrink: 0;
}
.ogaice-assist .oga-ico--emoji {
	font-size: 20px;
	line-height: 22px;
	text-align: center;
}

/* ── Floating button ─────────────────────────────── */
.ogaice-assist-fab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 18px 7px 7px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(120deg, var(--oa-navy-900), var(--oa-navy));
	color: #fff;
	font: 700 15px/1 var(--oa-font);
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(15, 37, 87, 0.35), inset 0 -3px 0 var(--oa-red);
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ogaice-assist-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(15, 37, 87, 0.42), inset 0 -3px 0 var(--oa-red);
}
.ogaice-assist-fab:focus-visible {
	outline: 3px solid #f47a88;
	outline-offset: 3px;
}
.ogaice-assist-fab__mk {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--oa-cream);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ogaice-assist-fab__mk img {
	width: 30px;
	height: 30px;
	display: block;
}
.ogaice-assist-fab__live {
	position: absolute;
	left: 38px;
	top: 7px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid var(--oa-navy);
}
.ogaice-assist.is-open .ogaice-assist-fab__txt {
	display: none;
}
.ogaice-assist.is-open .ogaice-assist-fab {
	padding-right: 7px;
}

/* ── Teaser bubble ───────────────────────────────── */
.ogaice-assist-teaser {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	width: 240px;
	padding: 12px 34px 12px 14px;
	background: #fff;
	border: 1px solid var(--oa-line);
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(15, 37, 87, 0.18);
	cursor: pointer;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.ogaice-assist-teaser.is-on {
	opacity: 1;
	transform: none;
}
.ogaice-assist-teaser strong {
	display: block;
	color: var(--oa-navy-900);
	font-size: 15px;
}
.ogaice-assist-teaser small {
	color: var(--oa-muted);
	font-size: 13px;
}
.ogaice-assist-teaser__x {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	border: 0;
	background: transparent;
	color: var(--oa-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
}

/* ── Panel ───────────────────────────────────────── */
.ogaice-assist-panel {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	width: 380px;
	height: min(620px, calc(100vh - var(--oa-bottom) - 96px));
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(15, 37, 87, 0.28);
	border: 1px solid var(--oa-line);
	overflow: hidden;
	opacity: 0;
	transform: translateY(10px) scale(0.98);
	transform-origin: bottom right;
	transition: opacity 0.22s ease, transform 0.22s ease, width 0.22s ease, height 0.22s ease;
}
.ogaice-assist.is-open .ogaice-assist-panel {
	opacity: 1;
	transform: none;
}
.ogaice-assist-panel.is-max {
	width: min(720px, calc(100vw - 40px));
	height: calc(100vh - var(--oa-bottom) - 96px);
}
.ogaice-assist-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 12px 14px 16px;
	background: linear-gradient(120deg, var(--oa-navy-900), var(--oa-navy) 70%, #24489b);
	color: #fff;
	box-shadow: inset 0 -3px 0 var(--oa-red);
}
.ogaice-assist-id {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.ogaice-assist-av {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--oa-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ogaice-assist-av img {
	width: 30px;
	height: 30px;
	display: block;
}
.ogaice-assist-id strong {
	display: block;
	font-size: 17px;
	letter-spacing: 0.01em;
}
.ogaice-assist-status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: rgba(253, 250, 243, 0.82);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ogaice-assist-status__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	flex-shrink: 0;
}
.ogaice-assist-actions {
	display: flex;
	gap: 2px;
}
.ogaice-assist-x {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.ogaice-assist-x:hover,
.ogaice-assist-x[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.14);
}

.ogaice-assist-tabs {
	display: flex;
	gap: 4px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--oa-line);
	background: #fff;
}
.ogaice-assist-tab {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 8px 10px;
	border-radius: 10px;
	font: 700 14px var(--oa-font);
	color: var(--oa-muted);
	cursor: pointer;
}
.ogaice-assist-tab[aria-selected="true"] {
	background: var(--oa-soft);
	color: var(--oa-navy);
}

.ogaice-assist-view {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.ogaice-assist-log {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: linear-gradient(180deg, #fafbfe, #fff);
	scroll-behavior: smooth;
}

/* welcome */
.oga-hero h3 {
	margin: 2px 0 2px;
	font: 700 22px var(--oa-font);
	color: var(--oa-navy-900);
}
.oga-hero p {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--oa-muted);
}
.oga-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}
.oga-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 4px 10px;
	border: 1px solid var(--oa-line);
	border-radius: 14px;
	background: #fff;
	font: 700 12px var(--oa-font);
	color: var(--oa-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.oga-tile:hover {
	border-color: rgba(28, 63, 143, 0.4);
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(15, 37, 87, 0.08);
}
.oga-tile-ico {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--oa-soft);
	color: var(--oa-navy);
	display: flex;
	align-items: center;
	justify-content: center;
}
.oga-tile:nth-child(4n+2) .oga-tile-ico {
	color: var(--oa-red);
	background: #fbeef0;
}

/* messages */
.oga-msg {
	max-width: 88%;
	padding: 10px 13px;
	border-radius: 16px;
	font-size: 14.5px;
	word-wrap: break-word;
}
.oga-msg p {
	margin: 0;
	font-size: inherit;
}
.oga-msg--me {
	align-self: flex-end;
	background: var(--oa-navy);
	color: #fff;
	border-bottom-right-radius: 6px;
}
.oga-msg--bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid var(--oa-line);
	border-bottom-left-radius: 6px;
}
.oga-msg--typing {
	display: flex;
	gap: 5px;
	padding: 13px 15px;
}
.oga-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--oa-navy);
	opacity: 0.35;
	animation: oga-dot 1s infinite ease-in-out;
}
.oga-dot:nth-child(2) { animation-delay: 0.15s; }
.oga-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes oga-dot {
	0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-3px); }
}
.oga-src,
.oga-book {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.oga-src-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--oa-muted);
}
.oga-src a {
	display: block;
	padding: 7px 10px;
	border-radius: 10px;
	background: var(--oa-soft);
	color: var(--oa-navy) !important;
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none !important;
}
.oga-src a:hover {
	background: #e9edf7;
}
.oga-src--community a {
	background: #fbeef0;
	color: #a3142a !important;
}
.oga-src-note {
	font-size: 13px;
	color: var(--oa-muted);
}
.oga-book-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.oga-book a {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 12px;
	border-radius: 999px;
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	white-space: nowrap;
}
.oga-book a .oga-ico {
	width: 18px;
	height: 18px;
}
.oga-book a.wa { background: var(--oa-wa); }
.oga-book a.tg { background: var(--oa-tg); }
.oga-book a:hover { filter: brightness(0.94); }

/* chips + input */
.ogaice-assist-chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 8px 12px 0;
	scrollbar-width: none;
}
.ogaice-assist-chips::-webkit-scrollbar { display: none; }
.ogaice-assist.has-chat .ogaice-assist-chips { display: none; }
.ogaice-assist-chips button {
	flex-shrink: 0;
	border: 1px solid var(--oa-line);
	background: #fff;
	color: var(--oa-navy);
	border-radius: 999px;
	padding: 6px 12px;
	font: 700 13px var(--oa-font);
	cursor: pointer;
	white-space: nowrap;
}
.ogaice-assist-chips button:hover { border-color: var(--oa-navy); }
.ogaice-assist-form {
	display: flex;
	gap: 8px;
	padding: 10px 12px 12px;
	margin: 0;
}
.ogaice-assist-form input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--oa-line);
	border-radius: 12px;
	background: var(--oa-soft);
	font: 400 15px var(--oa-font);
	color: var(--oa-ink);
	outline: none;
	box-shadow: none;
}
.ogaice-assist-form input:focus {
	border-color: var(--oa-navy);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(28, 63, 143, 0.14);
}
.ogaice-assist-form button {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 12px;
	background: var(--oa-red);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.ogaice-assist-form button:hover { background: #b9172b; }

/* services tab */
.ogaice-assist-explore {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.oga-svc-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--oa-muted);
	margin-bottom: 8px;
}
.oga-svc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.oga-svc-grid a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 10px;
	border: 1px solid var(--oa-line);
	border-radius: 12px;
	color: var(--oa-ink) !important;
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none !important;
	background: #fff;
}
.oga-svc-grid a:hover { border-color: rgba(28, 63, 143, 0.4); }
.oga-svc-ico {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--oa-soft);
	color: var(--oa-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.oga-svc-ico .oga-ico { width: 18px; height: 18px; }
.oga-sites {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.oga-sites a {
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--oa-soft);
	color: var(--oa-navy) !important;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none !important;
}
.oga-book--svc { margin-top: 0; }

.ogaice-assist-foot {
	padding: 7px 14px 9px;
	font-size: 11px;
	color: var(--oa-muted);
	text-align: center;
	border-top: 1px solid var(--oa-line);
	background: #fafbfe;
}

/* ── Phones: full-screen sheet ───────────────────── */
@media (max-width: 640px) {
	.ogaice-assist {
		right: 14px;
		--oa-bottom: 14px;
	}
	.ogaice-assist--member {
		--oa-bottom: 44px;
	}
	.ogaice-assist-fab__txt { display: none; }
	.ogaice-assist-fab { padding: 6px; }
	.ogaice-assist-fab__live { left: 36px; top: 5px; }
	.ogaice-assist-panel,
	.ogaice-assist-panel.is-max {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		border-radius: 0;
		border: 0;
		transform: translateY(16px);
	}
	.ogaice-assist.is-open .ogaice-assist-fab { display: none; }
	#ogaice-assist-max { display: none; }
	.oga-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.oga-tile { font-size: 11.5px; padding: 10px 2px 8px; }
	.ogaice-assist-form input { font-size: 16px; } /* no iOS zoom */
	.ogaice-assist-teaser { width: 210px; }
}
html.ogaice-assist-lock,
html.ogaice-assist-lock body {
	overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
	.ogaice-assist-panel,
	.ogaice-assist-teaser,
	.ogaice-assist-fab,
	.oga-tile { transition: none; }
	.oga-dot { animation: none; opacity: 0.6; }
}
