/* Like / save buttons (BYM_Favorites::render_buttons()) */

.bym-fav {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.bym-fav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	margin: 0;
	border: 1px solid #ece7ee;
	border-radius: 999px;
	background: #fff;
	color: #2d2a32;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bym-fav-btn:hover,
.bym-fav-btn:focus-visible {
	color: #d63384;
	border-color: #e84a8a;
	background: #fff;
}

.bym-fav-btn:active {
	transform: scale(0.94);
}

.bym-fav-btn.is-active {
	color: #e84a8a;
}

.bym-fav-btn[disabled] {
	cursor: default;
	opacity: 0.75;
	transform: none;
}

.bym-fav-btn[aria-busy="true"] {
	opacity: 0.6;
}

.bym-fav-icon {
	flex: 0 0 auto;
	fill: none;
}

.bym-fav-btn.is-active .bym-fav-icon {
	fill: currentColor;
}

.bym-fav-count[hidden],
.bym-fav-label[hidden] {
	display: none;
}

/* On a result card: round icons over the photo, top right. */
.bym-fav--card {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 6;
}

.bym-fav--card .bym-fav-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 0.6rem;
	border-color: transparent;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.bym-fav--card .bym-fav-btn:hover,
.bym-fav--card .bym-fav-btn:focus-visible {
	border-color: transparent;
	background: #fff;
}

/* In the profile header, under the name and rating. */
.bym-fav--profile {
	flex-wrap: wrap;
	margin: 0 0 1rem;
}

.bym-fav--profile .bym-fav-btn {
	height: 38px;
	padding: 0 0.95rem;
}

.bym-fav--profile .bym-fav-btn.is-active {
	border-color: #e84a8a;
	background: #fdf0f6;
}

/* Dashboard «Αποθηκευμένα» */
.bym-saved-list .bym-artist-grid {
	margin: 0;
}

[data-bym-saved-list][hidden],
[data-bym-saved-empty][hidden] {
	display: none !important;
}

/* Toast after saving a profile, linking to «Αποθηκευμένα» (favorites.js). */
.bym-fav-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 12px;
	width: min(360px, calc(100vw - 32px));
	padding: 14px 10px 14px 16px;
	border: 1px solid #f6d3e2;
	border-left: 4px solid #e84a8a;
	border-radius: 16px;
	background: #fff;
	color: #2d2a32;
	box-shadow: 0 18px 45px rgba(25, 18, 32, 0.22);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	box-sizing: border-box;
}

.bym-fav-toast.is-visible {
	opacity: 1;
	transform: none;
}

.bym-fav-toast[hidden] {
	display: none;
}

.bym-fav-toast__icon {
	flex: 0 0 36px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fdf0f6;
	color: #e84a8a;
}

.bym-fav-toast__icon svg {
	fill: currentColor;
}

.bym-fav-toast__body {
	flex: 1;
	min-width: 0;
}

.bym-fav-toast .bym-fav-toast__title {
	margin: 0 0 2px;
	font-weight: 700;
	color: #2d2a32;
}

.bym-fav-toast .bym-fav-toast__link {
	color: #d63384;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bym-fav-toast .bym-fav-toast__link:hover,
.bym-fav-toast .bym-fav-toast__link:focus-visible {
	color: #e84a8a;
}

.bym-fav-toast__close {
	align-self: flex-start;
	margin: -4px 0 0;
	padding: 2px 6px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #7a7380;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.bym-fav-toast__close:hover,
.bym-fav-toast__close:focus-visible {
	color: #2d2a32;
	background: transparent;
}

@media (max-width: 600px) {
	.bym-fav-toast {
		right: 16px;
		left: 16px;
		bottom: 16px;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bym-fav-toast {
		transition: none;
	}
}

/* On a phone the profile's head is centred (public.css): its «Μου αρέσει» and
   «Αποθήκευση» go in the middle with the rest, not to the left. */
@media (max-width: 640px) {
	.bym-profile-hero .bym-fav--profile {
		justify-content: center;
	}
}
