/* App-specific styles. Blok ships its own CSS (sitecore-blok.css) — keep this minimal. */

html, body {
	margin: 0;
	padding: 0;
}

/* Talk runs in a narrow Pages context panel. Leave room at the top for the floating menu bar. */
.talk-panel {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding-top: 38px; /* clear the fixed menu bar */
}

.talk-panel__body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 14px 16px 32px;
}

.talk-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.talk-center {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 200px;
}

.talk-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* --- floating menu bar ------------------------------------------------------ */
.talk-menubar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 38px;
	background-color: #e9e9e9;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 8px;
}

.talk-menubar__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	width: 26px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: #000;
	cursor: pointer;
}

.talk-menubar__trigger:hover {
	background: rgba(0, 0, 0, 0.08);
}

.talk-menubar__link {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.talk-menubar__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	border-top: 1px solid #e0e0e0;
	margin-top: 4px;
	padding: 4px 8px 2px;
	font-size: 11px;
	color: #666;
}

.talk-menubar__footer img {
	height: 15px;
	width: auto;
	opacity: 0.7;
}

/* --- setup ------------------------------------------------------------------ */
.talk-setup__header {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* --- messages --------------------------------------------------------------- */
.talk-messages {
	height: 400px;
	overflow-y: auto;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 12px;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.talk-message {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	padding: 12px;
}

.talk-message__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.talk-message__time {
	margin-left: auto;
	font-size: 11px;
	color: #94a3b8;
}

/* --- composer --------------------------------------------------------------- */
.talk-input {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}

.talk-input__row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}

.talk-textarea {
	flex: 1;
	min-height: 60px;
	resize: vertical;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
}
