/*
 * The favorite hearts, and the "Your favorites" strip above the calendar.
 *
 * Colours are the palette assets/account.css and the theme's listings.css
 * declare, written out here with the same values as fallbacks: these load on
 * the calendar, where neither of those does.
 */

/* The heart */
.owb-fav {
	align-items: center;
	background: #fff;
	border: 1px solid var(--owb-line);
	border-radius: 50%;
	color: var(--owb-main);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 38px;
	justify-content: center;
	line-height: 1;
	margin: 0;
	padding: 0;
	transition: background-color .15s, border-color .15s, color .15s;
	width: 38px;
}

.owb-fav:hover,
.owb-fav:focus-visible {
	background: var(--owb-tint);
}

.owb-fav-icon {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.owb-fav.is-on,
.owb-fav[aria-pressed="true"] {
	border-color: var(--owb-red);
	color: var(--owb-red);
}

.owb-fav.is-on .owb-fav-icon,
.owb-fav[aria-pressed="true"] .owb-fav-icon {
	fill: currentColor;
}

.owb-fav--small {
	height: 32px;
	width: 32px;
}

.owb-fav--small .owb-fav-icon {
	height: 16px;
	width: 16px;
}

/* On the single event page it follows the title. */
.owb-fav--event {
	margin: 0 0 16px;
}

/* The strip */
.owb-fav-strip {
	border: 1px solid var(--owb-line);
	margin: 0 0 24px;
	padding: 14px 16px 6px;
}

.owb-fav-strip-title {
	font-size: 14px;
	letter-spacing: .08em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.owb-fav-strip-list {
	display: flex;
	gap: 12px;
	list-style: none;
	margin: 0;
	overflow-x: auto;
	padding: 0 0 10px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.owb-fav-strip-item {
	align-items: center;
	background: var(--owb-tint);
	display: flex;
	flex: 0 0 280px;
	gap: 10px;
	margin: 0;
	padding: 8px 10px;
	scroll-snap-align: start;
}

.owb-fav-strip-link {
	align-items: center;
	color: var(--owb-main);
	display: flex;
	flex: 1 1 auto;
	gap: 10px;
	min-width: 0;
	text-decoration: none;
}

.owb-fav-strip-image {
	flex: 0 0 52px;
	height: 52px;
	object-fit: cover;
	width: 52px;
}

.owb-fav-strip-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.owb-fav-strip-name {
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.owb-fav-strip-when {
	color: var(--owb-muted);
	font-size: 13px;
	line-height: 1.3;
}

@media (max-width: 680px) {
	.owb-fav-strip-item {
		flex-basis: 85%;
	}
}
