/**
 * In-app notification bell + inbox modal.
 */

.ltlxp-inapp-bell-item {
	list-style: none;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0 0.35rem;
	vertical-align: middle;
}

.ltlxp-inapp-bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.ltlxp-inapp-bell:hover,
.ltlxp-inapp-bell:focus-visible {
	background: rgba(0, 0, 0, 0.06);
	outline: none;
}

.ltlxp-inapp-bell-wrap {
	display: inline-flex;
	align-items: center;
}

.ltlxp-inapp-bell--labelled {
	width: auto;
	gap: 0.4rem;
	padding: 0 0.75rem 0 0.5rem;
}

.ltlxp-inapp-bell__label {
	font-size: 0.95rem;
	line-height: 1;
}

.ltlxp-inapp-bell__icon {
	display: inline-flex;
	line-height: 0;
}

.ltlxp-inapp-bell__badge {
	position: absolute;
	top: -0.15rem;
	right: -0.15rem;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: #c62828;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.1rem;
	text-align: center;
}

.ltlxp-inapp-bell__badge[hidden] {
	display: none !important;
}

.ltlxp-inapp-modal[hidden] {
	display: none !important;
}

.ltlxp-inapp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4rem 1rem 1rem;
}

.ltlxp-inapp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}

.ltlxp-inapp-modal__panel {
	position: relative;
	z-index: 1;
	width: min(28rem, 100%);
	max-height: min(70vh, 32rem);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
	overflow: hidden;
}

.ltlxp-inapp-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.ltlxp-inapp-modal__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
}

.ltlxp-inapp-modal__x {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.ltlxp-inapp-modal__body {
	overflow: auto;
	padding: 0.5rem 0;
}

.ltlxp-inapp-modal__empty {
	margin: 1.25rem 1rem;
	color: #64748b;
	text-align: center;
}

.ltlxp-inapp-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #f1f5f9;
}

.ltlxp-inapp-item:last-child {
	border-bottom: 0;
}

.ltlxp-inapp-item__copy {
	min-width: 0;
	flex: 1;
}

.ltlxp-inapp-item__title {
	margin: 0 0 0.2rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
}

.ltlxp-inapp-item__body {
	margin: 0;
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.4;
}

.ltlxp-inapp-item__link {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: #1e3a5f;
}

.ltlxp-inapp-item__read {
	flex-shrink: 0;
	padding: 0.35rem 0.7rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.4rem;
	background: #f8fafc;
	color: #0f172a;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.ltlxp-inapp-item__read:hover {
	background: #e2e8f0;
}

html.ltlxp-inapp-open {
	overflow: hidden;
}
