/* Sender realtime — delivery chat + driver found modal */

.ship-chat {
	border: 1px solid rgba(37, 99, 235, 0.12);
	border-radius: 18px;
	background: #fff;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 280px;
}

.ship-chat--blocked {
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #64748b;
	min-height: 120px;
}

.ship-chat__head h3 {
	margin: 0 0 4px;
	font-size: 16px;
	color: #0f172a;
}

.ship-chat__head p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.ship-chat__thread {
	flex: 1;
	min-height: 180px;
	max-height: 320px;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-right: 4px;
}

.ship-chat__empty {
	font-size: 13px;
	color: #475569;
	text-align: center;
	padding: 24px 12px;
}

.ship-chat__bubble-row {
	display: flex;
}

.ship-chat__bubble-row.is-mine {
	justify-content: flex-end;
}

.ship-chat__bubble {
	max-width: 85%;
	padding: 10px 12px;
	border-radius: 16px;
	background: #f1f5f9;
	color: #0f172a;
}

.ship-chat__bubble-row.is-mine .ship-chat__bubble {
	background: linear-gradient(180deg, #3b82f6, #2563eb);
	color: #fff;
}

.ship-chat__author {
	display: block;
	font-size: 11px;
	font-weight: 700;
	margin-bottom: 4px;
	color: #475569;
}

.ship-chat__text {
	font-size: 14px;
	line-height: 1.45;
	word-break: break-word;
}

.ship-chat__time {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	opacity: 0.75;
}

.ship-chat__image {
	max-width: 220px;
	border-radius: 12px;
	display: block;
}

.ship-chat__composer {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
}

.ship-chat__input {
	height: 42px;
	border: 1px solid rgba(148, 163, 184, 0.45);
	border-radius: 999px;
	padding: 0 14px;
	font: inherit;
}

.ship-chat__send {
	height: 42px;
	padding: 0 16px;
	border: none;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.ship-chat__send:disabled {
	opacity: 0.6;
	cursor: wait;
}

.dash-table__msg-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: 8px;
	padding: 0 6px;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}

.moot-driver-found {
	position: fixed;
	inset: 0;
	z-index: 400000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.moot-driver-found[hidden] {
	display: none !important;
}

.moot-driver-found__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(4px);
}

.moot-driver-found__dialog {
	position: relative;
	width: min(480px, 100%);
	padding: 28px 24px 24px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
	text-align: center;
	animation: mootDriverFoundIn 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
	.moot-driver-found__dialog {
		animation: none;
	}
}

@keyframes mootDriverFoundIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.moot-driver-found__badge {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.1);
	display: grid;
	place-items: center;
}

.moot-driver-found__badge span {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: #2563eb;
	box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.moot-driver-found__title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.25;
	color: #0f172a;
}

.moot-driver-found__body {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.55;
	color: #475569;
}

.moot-driver-found__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.moot-driver-found__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
}

.moot-driver-found__btn--primary {
	background: linear-gradient(180deg, #3b82f6, #2563eb);
	color: #fff;
}

.moot-driver-found__btn--ghost {
	background: #eff6ff;
	color: #1d4ed8;
}

.moot-driver-found__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 999px;
	background: #f8fafc;
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

body.moot-driver-found-open {
	overflow: hidden;
}
