.gr-favorites {
	--gr-favorites-accent: #005432;
	--gr-favorites-accent-hover: #003f26;
	--gr-favorites-border: #dedfdb;
	--gr-favorites-muted: #696b67;
	--gr-favorites-surface: #ffffff;
	--gr-favorites-text: #252623;
	box-sizing: border-box;
	padding: clamp(34px, 5vw, 64px) 0 clamp(72px, 8vw, 110px);
	color: var(--gr-favorites-text);
}

.gr-favorites *,
.gr-favorites *::before,
.gr-favorites *::after,
.gr-favorite *,
.gr-favorite *::before,
.gr-favorite *::after {
	box-sizing: border-box;
}

.gr-favorites__header {
	max-width: 760px;
	margin-bottom: clamp(34px, 5vw, 56px);
}

.gr-favorites__eyebrow {
	margin: 0 0 8px;
	color: var(--gr-favorites-accent);
}

.gr-favorites__header h2 {
	margin: 0;
}

.gr-favorites__header > p:last-child {
	margin: 16px 0 0;
	color: var(--gr-favorites-muted);
}

.gr-favorites__status {
	min-height: 24px;
	margin: -28px 0 24px;
	color: var(--gr-favorites-accent);
}

.gr-favorites__status.is-error {
	color: #a12e0d;
}

.gr-favorites__summary {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--gr-favorites-border);
	color: var(--gr-favorites-muted);
}

.gr-favorites__grid {
	display: grid;
	grid-template-columns: repeat(var(--gr-favorites-columns, 3), minmax(0, 1fr));
	gap: clamp(18px, 2.5vw, 30px);
}

.gr-favorites__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 42px;
}

.gr-favorites__pagination .page-numbers {
	display: inline-flex;
	min-width: 40px;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 7px 11px;
	border: 1px solid var(--gr-favorites-border);
	border-radius: 4px;
	background: #ffffff;
	color: var(--gr-favorites-text);
	text-decoration: none;
}

.gr-favorites__pagination .page-numbers.current {
	border-color: var(--gr-favorites-accent);
	background: var(--gr-favorites-accent);
	color: #ffffff;
}

.gr-favorites__access,
.gr-favorites__empty {
	padding: clamp(38px, 7vw, 72px) 24px;
	border: 1px dashed var(--gr-favorites-border);
	border-radius: 9px;
	background: var(--gr-favorites-surface);
	text-align: center;
}

.gr-favorites__access h3,
.gr-favorites__empty h3 {
	margin: 0;
}

.gr-favorites__access p,
.gr-favorites__empty p {
	margin: 9px 0 20px;
	color: var(--gr-favorites-muted);
}

.gr-favorites__access a,
.gr-favorites__empty a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 9px 20px;
	border-radius: 4px;
	background: var(--gr-favorites-accent);
	color: #ffffff;
	text-decoration: none;
}

.gr-favorites__access-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.gr-favorites__access .gr-favorites__register {
	border: 1px solid var(--gr-favorites-accent);
	background: #ffffff;
	color: var(--gr-favorites-accent);
}

.gr-favorites__empty > svg {
	width: 38px;
	height: 38px;
	margin-bottom: 14px;
	fill: none;
	stroke: var(--gr-favorites-accent);
	stroke-width: 1.7;
}

.gr-favorite {
	margin: 0;
}

.gr-archive-card {
	position: relative;
}

.gr-favorite--card {
	position: absolute;
	z-index: 4;
	top: 12px;
	right: 12px;
}

.gr-favorite button,
.gr-favorite--login {
	display: inline-flex;
	min-width: 42px;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 0;
	padding: 9px 13px;
	border: 1px solid rgba(37, 38, 35, 0.15);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 4px 16px rgba(27, 34, 30, 0.12);
	color: #343633;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.gr-favorite button:hover,
.gr-favorite--login:hover {
	border-color: #e24728;
	color: #d83d20;
	transform: translateY(-1px);
}

.gr-favorite button:focus-visible,
.gr-favorite--login:focus-visible {
	outline: 3px solid rgba(0, 84, 50, 0.28);
	outline-offset: 2px;
}

.gr-favorite svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	fill: transparent;
	stroke: currentColor;
	stroke-width: 1.8;
}

.gr-favorite.is-saved button svg {
	fill: #e24728;
	stroke: #e24728;
}

#ajax-content-wrap .gr-favorite.gr-favorite--card button[type="submit"] {
	box-sizing: border-box !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 9px !important;
	border: 1px solid rgba(37, 38, 35, 0.15) !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.96) !important;
	background-color: rgba(255, 255, 255, 0.96) !important;
	box-shadow: 0 4px 16px rgba(27, 34, 30, 0.12) !important;
	color: #343633 !important;
}

#ajax-content-wrap .gr-favorite.gr-favorite--card button[type="submit"]:hover {
	border-color: #e24728 !important;
	color: #d83d20 !important;
}

.gr-favorite--card button span,
.gr-favorite--card.gr-favorite--login span {
	position: absolute;
	overflow: hidden;
	width: 1px;
	height: 1px;
	padding: 0;
	border: 0;
	margin: -1px;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.gr-favorite--single {
	margin-top: 18px;
}

.gr-favorite--single button,
.gr-favorite--single.gr-favorite--login {
	width: 100%;
	border-color: var(--gr-single-border, var(--gr-favorites-border));
	border-radius: 4px;
	background: #ffffff;
	box-shadow: none;
	color: var(--gr-single-text, var(--gr-favorites-text));
}

#ajax-content-wrap .gr-single .gr-favorite.gr-favorite--single button[type="submit"] {
	box-sizing: border-box !important;
	width: 100% !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 9px 13px !important;
	border: 1px solid var(--gr-single-border, var(--gr-favorites-border)) !important;
	border-radius: 4px !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	box-shadow: none !important;
	color: var(--gr-single-text, var(--gr-favorites-text)) !important;
}

.gr-favorite--single.is-saved button {
	border-color: rgba(226, 71, 40, 0.42);
	color: #b83219;
}

.gr-favorite.is-loading button {
	opacity: 0.65;
	cursor: wait;
}

@media (max-width: 980px) {
	.gr-favorites__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.gr-favorites__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gr-favorite button,
	.gr-favorite--login {
		transition: none;
	}
}
