/*
 * Totzine Facebook Live Feed - front-end styles.
 * Designed for sidebar/widget contexts: always 100% of the parent wrapper.
 * Compact side-by-side card layout: fixed thumbnail + clamped text, so the
 * feed stays short regardless of how long a post's message is.
 */

.tot-feed-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	margin-top: 25px;
	margin-bottom: 25px;
}

.tot-feed-container * {
	box-sizing: border-box;
}

.tot-feed-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 100%;
	overflow: hidden;
	margin: 0 0 0.85em;
	padding: 0 0 0.85em;
	border-bottom: 1px solid #dcdcde;
}

.tot-feed-card:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.tot-feed-card-media {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 4px;
	line-height: 0;
}

.tot-feed-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tot-feed-card-content {
	flex: 1 1 auto;
	min-width: 0; /* required for text-overflow/line-clamp to work inside a flex child */
}

.tot-feed-card--no-media .tot-feed-card-content {
	flex-basis: 100%;
}

.tot-feed-card-message {
	margin: 0 0 0.3em;
	font-size: 0.9em;
	line-height: 1.4;
	overflow-wrap: break-word;
	word-wrap: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tot-feed-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-size: 0.75em;
	line-height: 1.3;
}

.tot-feed-card-meta a {
	color: #8C4228;
}

.tot-feed-card-date {
	color: #646970;
	white-space: nowrap;
}

.tot-feed-card-link {
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.tot-feed-card-link:hover,
.tot-feed-card-link:focus {
	text-decoration: underline;
}

.tot-feed-error,
.tot-feed-admin-notice {
	max-width: 100%;
	font-size: 0.9em;
	color: #646970;
}

@media screen and (max-width: 480px) {
	.tot-feed-card-media {
		flex-basis: 52px;
		width: 52px;
		height: 52px;
	}

	.tot-feed-card-message {
		font-size: 0.85em;
	}
}
