/* ORA AI Chatbot — concierge UI
   Scoped under #ora-chat-root. Every inherited property the ORA theme forces
   sitewide (Cormorant Garamond, small-caps, pink button states) is reset here. */

#ora-chat-root {
	--ora-gold: #c9a227;
	--ora-gold-soft: rgba(201, 162, 39, .16);
	--ora-gold-line: rgba(201, 162, 39, .28);
	--ora-ink: #15161a;
	--ora-ink-2: #1b1d22;
	--ora-ink-3: #23262c;
	--ora-cream: #f3efe6;
	--ora-muted: #a6a195;
	--ora-radius: 18px;
	--ora-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	--ora-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- hard reset against the theme ------------------------------------- */
#ora-chat-root,
#ora-chat-root * ,
#ora-chat-root *::before,
#ora-chat-root *::after {
	font-family: var(--ora-font) !important;
	font-variant: normal !important;
	font-feature-settings: normal !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-sizing: border-box !important;
	-webkit-font-smoothing: antialiased;
}

#ora-chat-root button,
#ora-chat-root input,
#ora-chat-root textarea {
	font-size: 100%;
	margin: 0;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
}

#ora-chat-root button {
	cursor: pointer;
	-webkit-appearance: none !important;
	appearance: none !important;
	min-height: 0 !important;
	text-shadow: none !important;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

#ora-chat-root button:hover,
#ora-chat-root button:focus,
#ora-chat-root button:active,
#ora-chat-root a:hover,
#ora-chat-root a:focus,
#ora-chat-root a:active {
	outline: none;
	color: inherit;
	background-image: none !important;
}

#ora-chat-root p,
#ora-chat-root h1,
#ora-chat-root h2,
#ora-chat-root h3,
#ora-chat-root span,
#ora-chat-root div {
	margin: 0;
	padding: 0;
	color: inherit;
}

#ora-chat-root a {
	color: var(--ora-gold);
	text-decoration: none !important;
}

#ora-chat-root :focus-visible {
	outline: 2px solid var(--ora-gold) !important;
	outline-offset: 2px;
}

/* ---- launcher ---------------------------------------------------------- */
.ora-launcher {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 12px;
	background: linear-gradient(145deg, #1d1f25, #121317);
	border: 1px solid var(--ora-gold-line) !important;
	border-radius: 999px !important;
	box-shadow: var(--ora-shadow) !important;
	color: var(--ora-cream) !important;
}

.ora-launcher:hover { transform: translateY(-2px); }
.ora-launcher[hidden] { display: none !important; }

.ora-launcher__logo {
	width: 38px;
	height: 38px;
	object-fit: contain;
	border-radius: 50%;
	background: #0f1013;
	padding: 3px;
	flex: 0 0 auto;
}

.ora-launcher__crest {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--ora-gold-soft);
	color: var(--ora-gold) !important;
	font-size: 17px;
	font-weight: 700;
	flex: 0 0 auto;
}

.ora-launcher__text { text-align: left; line-height: 1.2; }
.ora-launcher__title { display: block; font-size: 14px; font-weight: 600; }
.ora-launcher__sub { display: block; font-size: 11px; color: var(--ora-muted) !important; }

.ora-launcher__pulse {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ora-gold);
	animation: ora-pulse 2.4s infinite;
}

@keyframes ora-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(201, 162, 39, .55); }
	70%  { box-shadow: 0 0 0 10px rgba(201, 162, 39, 0); }
	100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

/* ---- panel ------------------------------------------------------------- */
.ora-panel {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 2147483001;
	width: 390px;
	max-width: calc(100vw - 28px);
	height: 640px;
	max-height: calc(100vh - 44px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ora-ink);
	color: var(--ora-cream) !important;
	border: 1px solid var(--ora-gold-line) !important;
	border-radius: var(--ora-radius) !important;
	box-shadow: var(--ora-shadow) !important;
	opacity: 0;
	transform: translateY(14px) scale(.98);
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease;
	font-size: 14px;
	line-height: 1.5;
}

.ora-panel.is-open {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* ---- header ------------------------------------------------------------ */
.ora-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px 13px;
	background: linear-gradient(180deg, #1e2027, #171920);
	border-bottom: 1px solid var(--ora-gold-line);
	flex: 0 0 auto;
}

.ora-head__logo {
	height: 40px;
	max-width: 140px;
	width: auto;
	object-fit: contain;
	flex: 0 0 auto;
}

.ora-head__fallback {
	font-size: 16px;
	font-weight: 700;
	color: var(--ora-cream) !important;
}

.ora-head__meta { flex: 1 1 auto; min-width: 0; }

.ora-head__tag {
	display: block;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--ora-gold) !important;
	letter-spacing: .14em !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ora-head__status {
	display: block;
	font-size: 11px;
	color: var(--ora-muted) !important;
}

.ora-head__btns { display: flex; gap: 6px; flex: 0 0 auto; }

.ora-iconbtn {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 10px !important;
	background: rgba(255, 255, 255, .05) !important;
	color: var(--ora-cream) !important;
	font-size: 14px;
	line-height: 1;
}

.ora-iconbtn:hover { background: var(--ora-gold-soft) !important; color: var(--ora-gold) !important; }
.ora-iconbtn.is-off { color: #6f6b62 !important; }
.ora-iconbtn svg { width: 16px; height: 16px; display: block; }

/* ---- body -------------------------------------------------------------- */
.ora-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 16px 14px 18px;
	background:
		radial-gradient(900px 300px at 50% -10%, rgba(201, 162, 39, .07), transparent 70%),
		var(--ora-ink);
	scrollbar-width: thin;
	scrollbar-color: #3a3d45 transparent;
}

.ora-body::-webkit-scrollbar { width: 7px; }
.ora-body::-webkit-scrollbar-thumb { background: #3a3d45; border-radius: 10px; }

.ora-view { display: none; }
.ora-view.is-active { display: block; animation: ora-fade .22s ease; }

@keyframes ora-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

.ora-section-title {
	font-size: 10.5px !important;
	font-weight: 700;
	color: var(--ora-gold) !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	margin: 2px 0 10px !important;
}

/* ---- category tiles ---------------------------------------------------- */
.ora-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ora-tile {
	text-align: left;
	padding: 14px 13px;
	background: var(--ora-ink-2) !important;
	border: 1px solid rgba(255, 255, 255, .06) !important;
	border-radius: 14px !important;
	color: var(--ora-cream) !important;
}

.ora-tile:hover { border-color: var(--ora-gold-line) !important; background: var(--ora-ink-3) !important; }
.ora-tile__icon { font-size: 18px; color: var(--ora-gold) !important; display: block; margin-bottom: 7px; }
.ora-tile__name { display: block; font-size: 13.5px; font-weight: 600; }
.ora-tile__count { display: block; font-size: 11px; color: var(--ora-muted) !important; margin-top: 2px; }

/* ---- quick actions ----------------------------------------------------- */
.ora-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.ora-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	font-size: 12.5px;
	font-weight: 600;
	background: var(--ora-gold-soft) !important;
	color: var(--ora-gold) !important;
	border: 1px solid var(--ora-gold-line) !important;
	border-radius: 999px !important;
}

.ora-chip:hover { background: var(--ora-gold) !important; color: #14151a !important; }

/* ---- questions --------------------------------------------------------- */
.ora-qlist { display: flex; flex-direction: column; gap: 8px; }

.ora-q {
	background: var(--ora-ink-2);
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 13px;
	overflow: hidden;
}

.ora-q__btn {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 13px;
	text-align: left;
	font-size: 13.5px;
	color: var(--ora-cream) !important;
	background: transparent !important;
}

.ora-q__btn:hover { background: rgba(255, 255, 255, .03) !important; }
.ora-q__num { color: var(--ora-gold) !important; font-weight: 700; font-size: 12px; min-width: 16px; padding-top: 1px; }
.ora-q__text { flex: 1 1 auto; }

.ora-q__caret {
	color: var(--ora-muted) !important;
	font-size: 11px;
	transition: transform .2s ease;
	padding-top: 2px;
}

.ora-q.is-open .ora-q__caret { transform: rotate(180deg); }

.ora-q__answer {
	display: none;
	padding: 0 13px 13px 39px;
	font-size: 13px;
	color: #ded9cf !important;
}

.ora-q.is-open .ora-q__answer { display: block; }
.ora-q__answer .ora-chip { margin-top: 10px; }

/* ---- conversation ------------------------------------------------------ */
.ora-thread { display: flex; flex-direction: column; gap: 10px; }

.ora-msg {
	max-width: 86%;
	padding: 10px 13px;
	font-size: 13.5px;
	border-radius: 14px;
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.ora-msg--bot {
	align-self: flex-start;
	background: var(--ora-ink-2);
	border: 1px solid rgba(255, 255, 255, .06);
	border-bottom-left-radius: 5px;
	color: var(--ora-cream) !important;
}

.ora-msg--user {
	align-self: flex-end;
	background: var(--ora-gold);
	color: #14151a !important;
	border-bottom-right-radius: 5px;
	font-weight: 500;
}

.ora-msg--note {
	align-self: center;
	max-width: 94%;
	text-align: center;
	font-size: 11.5px;
	color: var(--ora-muted) !important;
	background: rgba(255, 255, 255, .03);
	border: 1px dashed rgba(255, 255, 255, .09);
}

.ora-msg__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }

.ora-typing { display: inline-flex; gap: 4px; align-items: center; padding: 3px 0; }

.ora-typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ora-muted);
	animation: ora-bounce 1.3s infinite;
}

.ora-typing i:nth-child(2) { animation-delay: .18s; }
.ora-typing i:nth-child(3) { animation-delay: .36s; }

@keyframes ora-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .45; }
	30%           { transform: translateY(-4px); opacity: 1; }
}

/* ---- support cards ----------------------------------------------------- */
.ora-cards { display: flex; flex-direction: column; gap: 9px; }

.ora-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px;
	background: var(--ora-ink-2) !important;
	border: 1px solid rgba(255, 255, 255, .06) !important;
	border-radius: 13px !important;
	color: var(--ora-cream) !important;
}

.ora-card:hover { border-color: var(--ora-gold-line) !important; background: var(--ora-ink-3) !important; }

.ora-card__icon {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: var(--ora-gold-soft);
	color: var(--ora-gold) !important;
	font-size: 16px;
}

.ora-card__label { display: block; font-size: 13.5px; font-weight: 600; }
.ora-card__value { display: block; font-size: 11.5px; color: var(--ora-muted) !important; }

/* ---- ask bar (below the scroll area, above the nav) -------------------- */
.ora-ask {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 12px;
	background: var(--ora-ink-2);
	border-top: 1px solid var(--ora-gold-line);
}

.ora-ask__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 13px;
	font-size: 13.5px;
	color: var(--ora-cream) !important;
	background: #101115 !important;
	border: 1px solid rgba(255, 255, 255, .08) !important;
	border-radius: 999px !important;
	outline: none;
}

.ora-ask__input::placeholder { color: #6f6b62 !important; }
.ora-ask__input:focus { border-color: var(--ora-gold-line) !important; }

.ora-ask__btn {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border-radius: 50% !important;
	background: var(--ora-gold-soft) !important;
	color: var(--ora-gold) !important;
}

.ora-ask__btn:hover { background: var(--ora-gold) !important; color: #14151a !important; }
.ora-ask__btn svg { width: 16px; height: 16px; display: block; }
.ora-ask__btn--send { background: var(--ora-gold) !important; color: #14151a !important; }
.ora-ask__btn--send:hover { filter: brightness(1.08); }
.ora-ask__btn.is-listening { background: #c0392b !important; color: #fff !important; animation: ora-pulse 1.4s infinite; }

/* ---- bottom nav -------------------------------------------------------- */
.ora-nav {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: #121317;
	border-top: 1px solid rgba(255, 255, 255, .06);
}

.ora-nav__btn {
	padding: 10px 4px 11px;
	font-size: 11px;
	font-weight: 600;
	color: var(--ora-muted) !important;
	background: transparent !important;
	border-top: 2px solid transparent !important;
}

.ora-nav__btn:hover { color: var(--ora-cream) !important; background: rgba(255, 255, 255, .03) !important; }
.ora-nav__btn.is-active { color: var(--ora-gold) !important; border-top-color: var(--ora-gold) !important; background: rgba(201, 162, 39, .07) !important; }
.ora-nav__icon { display: block; font-size: 15px; margin-bottom: 3px; }

/* ---- small screens ----------------------------------------------------- */
@media (max-width: 480px) {
	.ora-panel {
		right: 0;
		bottom: 0;
		width: 100vw;
		max-width: 100vw;
		height: 100%;
		max-height: 100%;
		border-radius: 0 !important;
		border-left: 0 !important;
		border-right: 0 !important;
		border-bottom: 0 !important;
	}
	.ora-launcher { right: 16px; bottom: 16px; }
	.ora-launcher__text { display: none; }
	.ora-launcher { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	#ora-chat-root *,
	#ora-chat-root *::before,
	#ora-chat-root *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}
