/* RewardEnginePro — Messaging module frontend styles.
   No animation, no transition effects, mobile-first. */

.rep-msg-float-icon,
.rep-msg-float-panel,
.rep-msg-card,
.rep-msg-btn,
.rep-msg-input,
.rep-msg-textarea {
	animation: none !important;
	transition: none !important;
}

.rep-msg-float-icon {
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 48px;
	height: 48px;
	background: #2271b1;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	cursor: pointer;
	z-index: 9999;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.rep-msg-icon-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #d63638;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 3px 5px;
	border-radius: 10px;
	min-width: 14px;
	text-align: center;
}

.rep-msg-float-panel {
	position: fixed;
	right: 12px;
	bottom: 72px;
	width: 92vw;
	max-width: 360px;
	max-height: 70vh;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.rep-msg-float-panel[hidden] {
	display: none;
}

.rep-msg-panel-tabs {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #eee;
	background: #f6f7f7;
}

.rep-msg-tab-btn {
	flex: 1;
	padding: 10px 8px;
	background: none;
	border: none;
	font-size: 13px;
	cursor: pointer;
	color: #333;
}

.rep-msg-tab-btn.rep-msg-tab-active {
	font-weight: 600;
	border-bottom: 2px solid #2271b1;
	color: #2271b1;
}

.rep-msg-panel-close {
	background: none;
	border: none;
	font-size: 18px;
	line-height: 1;
	padding: 6px 10px;
	cursor: pointer;
	color: #666;
}

.rep-msg-panel-body {
	padding: 10px;
	overflow-y: auto;
	flex: 1;
}

.rep-msg-panel-body[hidden] {
	display: none;
}

/* Private thread */
.rep-msg-thread {
	max-height: 40vh;
	overflow-y: auto;
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rep-msg-msg {
	max-width: 85%;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.4;
	word-wrap: break-word;
}

.rep-msg-msg-user {
	align-self: flex-end;
	background: #2271b1;
	color: #fff;
}

.rep-msg-msg-admin {
	align-self: flex-start;
	background: #f0f0f1;
	color: #1d2327;
}

.rep-msg-msg-time {
	display: block;
	font-size: 10px;
	opacity: 0.75;
	margin-top: 3px;
}

.rep-msg-send-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rep-msg-textarea,
.rep-msg-input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
}

.rep-msg-btn {
	display: inline-block;
	padding: 9px 14px;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	text-align: center;
}

.rep-msg-btn-primary {
	background: #2271b1;
	color: #fff;
}

.rep-msg-btn-secondary {
	background: #f0f0f1;
	color: #1d2327;
	border: 1px solid #ccc;
}

.rep-msg-status-line {
	font-size: 12px;
	min-height: 16px;
	color: #444;
}

.rep-msg-login-notice {
	font-size: 13px;
}

/* Public board */
.rep-msg-public-wrap {
	font-size: 14px;
}

.rep-msg-public-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 10px 0;
	padding: 10px;
	border: 1px solid #eee;
	border-radius: 6px;
	background: #fafafa;
}

.rep-msg-public-form[hidden] {
	display: none;
}

.rep-msg-label {
	font-size: 12px;
	font-weight: 600;
	color: #333;
}

.rep-msg-card-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rep-msg-card {
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 10px;
	background: #fff;
}

.rep-msg-card-header {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #666;
	margin-bottom: 4px;
}

.rep-msg-card-name {
	font-weight: 600;
	color: #1d2327;
}

.rep-msg-card-message {
	font-size: 13px;
	line-height: 1.5;
	margin: 4px 0;
	word-wrap: break-word;
}

.rep-msg-card-qr img {
	max-width: 120px;
	height: auto;
	display: block;
	margin-top: 6px;
	border-radius: 4px;
}

.rep-msg-report-btn {
	margin-top: 6px;
	background: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 11px;
	padding: 4px 8px;
	cursor: pointer;
	color: #666;
}

.rep-msg-empty {
	font-size: 13px;
	color: #777;
}

@media (max-width: 420px) {
	.rep-msg-float-panel {
		right: 4vw;
		width: 92vw;
	}
}
