.vstfav-page {
	--vstfav-ink: #17324d;
	--vstfav-text: #33485b;
	--vstfav-muted: #586b7b;
	--vstfav-blue: #2067d5;
	--vstfav-border: #d9e2ea;
	--vstfav-heart: #b4235a;
}
.vstfav-page .vstfav-summary,
.vstfav-page .vstfav-notice {
	margin: 0 0 24px;
}
.vstfav-page .vstfav-summary:empty {
	display: none;
}
.vstfav-page .vstfav-summary:focus {
	outline: none;
}
.vstfav-page [hidden] {
	display: none !important;
}
.vstfav-page .vstfav-group {
	--vstfav-color: #586b7b;
	margin: 0 0 40px;
}
.vstfav-page .vstfav-group-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 5px solid var(--vstfav-color);
	color: inherit;
	font-size: 1.4rem;
	line-height: 1.3;
}
.vstfav-page .vstfav-count {
	min-width: 1.8em;
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(127, 127, 127, 0.2);
	color: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
}
.vstfav-page .vstfav-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vstfav-page .vstfav-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid #e0e1e5;
	border-top: 5px solid var(--vstfav-color);
	border-radius: 12px;
	background: #fff;
	color: var(--vstfav-text);
	box-shadow: 0 2px 6px #00000006;
}
.vstfav-page .vstfav-image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	margin: 14px 16px 0;
	overflow: hidden;
	border: 1px solid #ebebee;
	border-radius: 7px;
	background: #fafafa;
}
.vstfav-page .vstfav-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.vstfav-page .vstfav-image-fallback {
	color: var(--vstfav-muted);
	font-weight: 600;
}
.vstfav-page .vstfav-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 14px 16px 16px;
}
.vstfav-page .vstfav-type {
	margin: 0 0 4px;
	color: var(--vstfav-color);
	font-size: 12px;
	font-weight: 700;
}
.vstfav-page .vstfav-title {
	margin: 0 0 8px;
	color: var(--vstfav-ink);
	font-size: 1.05rem;
	line-height: 1.3;
}
.vstfav-page .vstfav-description {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
}
.vstfav-page .vstfav-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}
.vstfav-page .vstfav-open,
.vstfav-page .vstfav-remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 7px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.vstfav-page .vstfav-open {
	border: 1px solid var(--vstfav-blue);
	background: var(--vstfav-blue);
	color: #fff;
}
.vstfav-page .vstfav-open:hover {
	background: #1855b3;
	color: #fff;
}
.vstfav-page .vstfav-remove {
	border: 1px solid var(--vstfav-border);
	background: #fff;
	color: var(--vstfav-heart);
}
.vstfav-page .vstfav-remove:hover {
	border-color: var(--vstfav-heart);
	background: #fdf2f6;
	color: var(--vstfav-heart);
}
.vstfav-page .vstfav-remove:disabled {
	opacity: 0.6;
	cursor: progress;
}
.vstfav-page .vstfav-remove svg {
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vstfav-page :is(.vstfav-open, .vstfav-remove, .vstfav-group-title):focus-visible {
	outline: 3px solid #111;
	outline-offset: 3px;
}
/* Headings sit on the theme background, so match its text colour. */
.vstfav-page .vstfav-group-title:focus-visible {
	outline-color: currentColor;
}
.vstfav-page .vstfav-error {
	margin: 10px 0 0;
	color: #a8261b;
	font-size: 13px;
}
.vstfav-page .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Notes */
.vstfav-page .vstfav-note {
	margin: 0 0 14px;
}
.vstfav-page .vstfav-note-display {
	margin: 0 0 8px;
	padding: 8px 10px;
	border-left: 3px solid var(--vstfav-color);
	border-radius: 0 6px 6px 0;
	background: #f6f8fa;
}
.vstfav-page .vstfav-note-label {
	display: block;
	margin: 0 0 4px;
	color: var(--vstfav-muted);
	font-size: 12px;
	font-weight: 700;
}
.vstfav-page .vstfav-note-text {
	margin: 0;
	color: var(--vstfav-ink);
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.vstfav-page .vstfav-note-edit {
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--vstfav-blue);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.vstfav-page .vstfav-note-edit:hover {
	background: none;
	color: #1855b3;
}
.vstfav-page .vstfav-note-form textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 90px;
	padding: 8px 10px;
	border: 1px solid #8fa8c1;
	border-radius: 6px;
	color: var(--vstfav-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
	resize: vertical;
}
.vstfav-page .vstfav-note-hint {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 4px 0 8px;
	color: var(--vstfav-muted);
	font-size: 12px;
}
.vstfav-page .vstfav-note-count {
	flex: none;
	font-variant-numeric: tabular-nums;
}
.vstfav-page .vstfav-note-buttons {
	display: flex;
	gap: 8px;
}
.vstfav-page .vstfav-note-save,
.vstfav-page .vstfav-note-cancel {
	min-height: 36px;
	padding: 6px 12px;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.vstfav-page .vstfav-note-save {
	border: 1px solid var(--vstfav-blue);
	background: var(--vstfav-blue);
	color: #fff;
}
.vstfav-page .vstfav-note-cancel {
	border: 1px solid var(--vstfav-border);
	background: #fff;
	color: var(--vstfav-ink);
}
.vstfav-page .vstfav-note-status:not(:empty) {
	margin: 6px 0 0;
	color: var(--vstfav-muted);
	font-size: 13px;
}
.vstfav-page .vstfav-note-status:empty {
	margin: 0;
}
.vstfav-page :is(.vstfav-note-edit, .vstfav-note-save, .vstfav-note-cancel):focus-visible,
.vstfav-page .vstfav-note-form textarea:focus-visible {
	outline: 3px solid #111;
	outline-offset: 2px;
}
