/* ListSecure Vendor Verification — private messaging */

/* --- Buttons -------------------------------------------------------------- */
.lsvv-msg-btn {
	display: inline-block;
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 11px 20px;
	margin: 10px 0 0;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	background: #0b63ce;
	color: #fff !important;
	transition: background 0.15s ease, opacity 0.15s ease;
}
.lsvv-msg-btn:hover { background: #0951a8; color: #fff !important; }
.lsvv-msg-btn:disabled { opacity: 0.55; cursor: default; }
.lsvv-msg-btn--send { margin: 0; }

/* --- "Message Seller" modal -------------------------------------------- */
body.lsvv-msg-modal-open { overflow: hidden; }

.lsvv-msg-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 20, 32, 0.62);
	padding: 16px;
}
.lsvv-msg-modal__box {
	position: relative;
	width: 100%;
	max-width: 460px;
	background: #fff;
	color: #1f2733;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.lsvv-msg-modal__box h3 { margin: 0 0 12px; font-size: 1.2rem; }
.lsvv-msg-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #8a94a3;
}
.lsvv-msg-modal__text {
	width: 100%;
	border: 1px solid #c7d0dc;
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	resize: vertical;
}
.lsvv-msg-modal__actions { margin-top: 14px; text-align: right; }
.lsvv-msg-modal__result { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.lsvv-msg-modal__result.is-error { background: #fdecec; border: 1px solid #f3b5b5; color: #a02020; }
.lsvv-msg-modal__done { text-align: center; padding: 12px 0 4px; }
.lsvv-msg-modal__done p { font-weight: 600; margin-bottom: 14px; }

/* --- Floating unread indicator --------------------------------------- */
.lsvv-msg-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99998;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #0b63ce;
	color: #fff !important;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(11, 99, 206, 0.4);
	text-decoration: none;
}
.lsvv-msg-fab.is-unread { display: flex; }
.lsvv-msg-fab__icon { font-size: 22px; line-height: 1; }
.lsvv-msg-fab__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: #d63638;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

/* Account-menu unread pill */
.lsvv-msg-count {
	display: inline-block;
	min-width: 18px;
	padding: 0 5px;
	margin-left: 4px;
	border-radius: 9px;
	background: #d63638;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	vertical-align: middle;
}

/* --- Inbox ---------------------------------------------------------------- */
.lsvv-msg {
	display: grid;
	grid-template-columns: minmax(200px, 300px) 1fr;
	gap: 18px;
	min-height: 420px;
	border: 1px solid #e3e8ee;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	color: #1f2733;
}
.lsvv-msg__list { border-right: 1px solid #e3e8ee; padding: 16px; overflow-y: auto; max-height: 560px; }
.lsvv-msg__list-title { margin: 0 0 10px; font-size: 1rem; }
.lsvv-msg__empty { color: #6a7078; font-size: 0.92rem; }
.lsvv-msg__list ul { list-style: none; margin: 0; padding: 0; }
.lsvv-msg__thread a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 8px;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}
.lsvv-msg__thread a:hover { background: #f2f6fb; }
.lsvv-msg__thread.is-active a { background: #e7f0fd; }
.lsvv-msg__thread-name { font-weight: 700; }
.lsvv-msg__thread.is-unread .lsvv-msg__thread-name { color: #0b63ce; }
.lsvv-msg__thread-subject { grid-column: 1 / -1; font-size: 0.82rem; color: #6a7078; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsvv-msg__thread-time { font-size: 0.75rem; color: #97a0ad; }
.lsvv-msg__thread-badge {
	min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: #d63638; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.lsvv-msg__pane { display: flex; flex-direction: column; max-height: 560px; }
.lsvv-msg__pane-empty { margin: auto; color: #97a0ad; padding: 40px; text-align: center; }
.lsvv-msg__header { padding: 14px 16px; border-bottom: 1px solid #e3e8ee; }
.lsvv-msg__header strong { display: block; font-size: 1.05rem; }
.lsvv-msg__product { font-size: 0.82rem; color: #0b63ce; text-decoration: none; }
.lsvv-msg__log { flex: 1; overflow-y: auto; padding: 16px; background: #f7f9fc; }
.lsvv-msg__loading { color: #97a0ad; }
.lsvv-msg__bubble { max-width: 78%; margin-bottom: 10px; }
.lsvv-msg__bubble.is-mine { margin-left: auto; text-align: right; }
.lsvv-msg__bubble-body {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e3e8ee;
	text-align: left;
	white-space: pre-wrap;
	word-break: break-word;
}
.lsvv-msg__bubble.is-mine .lsvv-msg__bubble-body { background: #dcf8c6; border-color: #cdeeb4; }
.lsvv-msg__bubble-meta { font-size: 0.72rem; color: #97a0ad; margin-top: 3px; }
.lsvv-msg__reply { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #e3e8ee; }
.lsvv-msg__reply textarea {
	flex: 1; border: 1px solid #c7d0dc; border-radius: 8px; padding: 8px 10px; font: inherit; resize: vertical; min-height: 42px;
}

@media (max-width: 640px) {
	.lsvv-msg { grid-template-columns: 1fr; }
	.lsvv-msg__list { border-right: 0; border-bottom: 1px solid #e3e8ee; max-height: 220px; }
}
