/*
 * Pharma Plus — the customer's message inbox.
 *
 * Deliberately small and theme-agnostic: the inbox is placed inside somebody
 * else's page (an account page, a footer widget), so it inherits the theme's
 * type and colours and only adds the structure a list of messages needs. Every
 * rule is scoped under `.pp-inbox`, and every value is logical (`margin-inline`,
 * `padding-inline`) so the same sheet works on an RTL and an LTR store.
 */

.pp-inbox {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 16px 18px;
	background: rgba(255, 255, 255, 0.6);
}

.pp-inbox__title {
	margin: 0 0 12px;
	font-size: 1.05em;
	line-height: 1.6;
}

.pp-inbox__empty,
.pp-inbox__notice {
	margin: 0;
	opacity: 0.75;
}

.pp-inbox__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pp-inbox__item {
	padding-block: 12px;
	border-block-start: 1px solid rgba(0, 0, 0, 0.08);
}

.pp-inbox__item:first-child {
	border-block-start: 0;
	padding-block-start: 0;
}

.pp-inbox__body {
	margin: 0 0 6px;
	line-height: 1.9;
	white-space: normal;
}

.pp-inbox__action {
	margin: 0 0 4px;
}

.pp-inbox__date {
	display: block;
	font-size: 0.85em;
	opacity: 0.65;
}

@media (prefers-color-scheme: dark) {
	.pp-inbox {
		border-color: rgba(255, 255, 255, 0.16);
		background: rgba(255, 255, 255, 0.04);
	}

	.pp-inbox__item {
		border-block-start-color: rgba(255, 255, 255, 0.12);
	}
}
