/* Link Master - lista pasujących kont pod polem linku (Instagram, TikTok).
 *
 * Kolory z zmiennych wtyczki (--lcr-accent itd. z opcje-dodatkowe.css). Skrypt dopisuje je z istniejących
 * elementów wtyczki (np. na polskie-lajki.pl z innym akcentem), a poniższe wartości to tylko zapas.
 * Lista jest dołączana na końcu strony i ustawiana pod polem (position:absolute) - nie przesuwa formularza.
 */

.lcr-ak,
.lcr-ak-card,
.lcr-ak-hint,
.lcr-ak-note {
	--ak-accent: var(--lcr-accent, #F9335A);
	--ak-accent-soft: var(--lcr-accent-soft, #FFF3F5);
	--ak-accent-dark: var(--lcr-accent-dark, #C8174A);
	--ak-border: var(--lcr-border, #D7DAE8);
	--ak-line: var(--lcr-line, #E3E6EF);
	--ak-text: var(--lcr-text, #1A191C);
	--ak-muted: var(--lcr-muted, #5B6170);
	--ak-ring: var(--lcr-accent-ring, rgba(249, 51, 90, .12));
	text-align: left;
	font-family: inherit;
	box-sizing: border-box;
}

.lcr-ak *,
.lcr-ak-card *,
.lcr-ak-hint *,
.lcr-ak-note * {
	box-sizing: border-box;
}

/* Pole linku, gdy lista jest otwarta albo trwa szukanie (jak w makiecie: akcent + obwódka). */
input.lcr-ak-on {
	border-color: var(--lcr-accent, #F9335A) !important;
	box-shadow: 0 0 0 4px var(--lcr-accent-ring, rgba(249, 51, 90, .12)) !important;
	outline: 0 !important;
}

/* ------------------------------------------------------------------ */
/* Panel                                                               */
/* ------------------------------------------------------------------ */

.lcr-ak {
	position: absolute;
	z-index: 99990;
	margin: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ak-border);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(26, 25, 28, .16), 0 2px 6px rgba(26, 25, 28, .06);
	overflow: hidden;
	color: var(--ak-text);
	font-size: 15px;
	line-height: 1.35;
}

.lcr-ak[hidden] {
	display: none !important;
}

.lcr-ak__head,
.lcr-ak__search-head {
	flex: none;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 12px 14px 6px;
	font-size: 12px;
	color: var(--ak-muted);
}

.lcr-ak__head-l {
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: #4A4D60;
}

.lcr-ak__head-r {
	font-weight: 400;
	text-align: right;
}

.lcr-ak__search {
	flex: none;
	padding: 2px 14px 4px 0;
}

.lcr-ak__search-head {
	padding-right: 0;
}

.lcr-ak__bar {
	margin: 4px 0 6px 14px;
	height: 4px;
	border-radius: 4px;
	background: #F1F2F7;
	overflow: hidden;
}

.lcr-ak__bar-fill {
	height: 4px;
	width: 0;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--ak-accent), var(--lcr-accent-end, #FC7C65));
}

.lcr-ak__slow {
	margin: 2px 14px 12px;
	font-size: 13px;
	line-height: 1.45;
	color: #4A4D60;
}

.lcr-ak__info {
	flex: none;
	margin: 4px 14px 10px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #F4F6FB;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.45;
	color: #3E4154;
}

.lcr-ak__info svg {
	flex: none;
	margin-top: 1px;
}

.lcr-ak__list {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

/* Wiersz konta */
.lcr-ak .lcr-ak__opt {
	all: unset;
	box-sizing: border-box;
	flex: none;
	width: 100%;
	min-height: 64px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff !important;
	color: var(--ak-text) !important;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.lcr-ak .lcr-ak__opt[aria-selected="true"] {
	background: var(--ak-accent-soft) !important;
}

.lcr-ak .lcr-ak__opt:focus-visible {
	outline: 2px solid var(--ak-accent-dark);
	outline-offset: -2px;
}

.lcr-ak__ava {
	position: relative;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .4px;
	background: var(--ak-accent-soft);
}

.lcr-ak__ava img,
.lcr-ak-card__ava img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

/* Plakietka serwisu w prawym dolnym rogu monogramu */
.lcr-ak__svc {
	position: absolute;
	right: -3px;
	bottom: -3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(26, 25, 28, .25);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lcr-ak__txt {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lcr-ak__login {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	color: var(--ak-text);
	overflow-wrap: anywhere;
}

.lcr-ak__login b {
	font-weight: 800;
	color: var(--ak-accent-dark);
}

.lcr-ak__login span {
	font-weight: 600;
}

.lcr-ak__sub {
	font-size: 13px;
	color: var(--ak-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lcr-ak__badge {
	flex: none;
	width: 15px;
	height: 15px;
}

.lcr-ak__lock {
	align-self: flex-start;
	margin-top: 3px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 7px;
	border-radius: 6px;
	background: #FFF3E0;
	color: #8A4B00;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.lcr-ak__lock svg {
	flex: none;
}

/* „Wybierz ›” przy aktywnym wierszu. */
.lcr-ak__go {
	display: none;

	flex: none;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ak-accent-dark);
}


.lcr-ak .lcr-ak__opt[aria-selected="true"] .lcr-ak__go {
	display: inline-flex;
}

/* Stopka „Nie ma Twojego konta?” - zawsze na dole listy */
.lcr-ak .lcr-ak__foot {
	all: unset;
	box-sizing: border-box;
	flex: none;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-top: 1px solid var(--lcr-line, #EEF0F6);
	background: #FAFBFD !important;
	color: var(--ak-text) !important;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.lcr-ak .lcr-ak__foot[aria-selected="true"] {
	background: var(--ak-accent-soft) !important;
}

.lcr-ak .lcr-ak__foot:focus-visible {
	outline: 2px solid var(--ak-accent-dark);
	outline-offset: -2px;
}

.lcr-ak__foot svg {
	flex: none;
}

.lcr-ak__foot strong {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Szkielety podczas szukania */
.lcr-ak__sk {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
}

.lcr-ak__sk-ava {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(90deg, #EEF0F6 0, #F7F8FB 50%, #EEF0F6 100%);
	background-size: 400px 100%;
	animation: lcr-ak-shine 1.2s linear infinite;
}

.lcr-ak__sk-txt {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.lcr-ak__sk-txt i {
	display: block;
	height: 11px;
	border-radius: 6px;
	background: #EEF0F6;
}

.lcr-ak__sk-txt i + i {
	height: 9px;
	background: #F2F3F8;
}

.lcr-ak__sk-end {
	flex: none;
	height: 8px;
}

/* Brak wyników / błąd */
.lcr-ak__empty {
	flex: none;
	padding: 22px 18px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.lcr-ak__empty-ico {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ak-accent-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lcr-ak__empty-t {
	margin: 4px 0 0;
	font-size: 15px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.lcr-ak__empty-d {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ak-muted);
}

/* Kółko w polu podczas szukania */
.lcr-ak-spin {
	position: absolute;
	z-index: 99991;
	width: 18px;
	height: 18px;
	margin: 0;
	border-radius: 50%;
	border: 2px solid var(--lcr-accent-soft, #F3D3DA);
	border-top-color: var(--lcr-accent, #F9335A);
	box-sizing: border-box;
	pointer-events: none;
	animation: lcr-ak-spin .8s linear infinite;
}

.lcr-ak-spin[hidden] {
	display: none !important;
}

/* Komunikat dla czytników ekranu */
.lcr-ak-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ */
/* Podpowiedź pod polem i stan „wybrane”                                */
/* ------------------------------------------------------------------ */

.lcr-ak-hint {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ak-muted);
}

.lcr-ak-hint strong {
	color: var(--ak-text);
}

.lcr-ak-hint[hidden],
.lcr-ak-card[hidden],
.lcr-ak-note[hidden] {
	display: none !important;
}

.lcr-ak-card {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1.5px solid #1F9D6B;
	border-radius: 10px;
	background: #F2FBF7;
	color: var(--ak-text);
}

.lcr-ak-card__ava {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .4px;
	background: #fff;
}

.lcr-ak-card__txt {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lcr-ak-card__login {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.lcr-ak-card__login svg {
	flex: none;
}

.lcr-ak-card__sub {
	font-size: 13px;
	color: #4A4D60;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lcr-ak-card .lcr-ak-change {
	all: unset;
	box-sizing: border-box;
	flex: none;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #C9CDDC;
	border-radius: 8px;
	background: #fff !important;
	color: var(--ak-text) !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.lcr-ak-card .lcr-ak-change:focus-visible {
	outline: 2px solid var(--ak-accent-dark);
	outline-offset: 2px;
}

.lcr-ak-note {
	margin: 8px 0 0;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 13px;
	line-height: 1.45;
	color: #1A6E4E;
}

.lcr-ak-note svg {
	flex: none;
	margin-top: 1px;
}

.lcr-ak-note strong {
	font-weight: 700;
	overflow-wrap: anywhere;
	word-break: break-all;
}

/* ------------------------------------------------------------------ */
/* Komputer: podpowiedź klawiszy i „Wybierz ›”                          */
/* ------------------------------------------------------------------ */

@media (hover: hover) and (pointer: fine) {
	.lcr-ak .lcr-ak__foot {
		min-height: 50px;
		padding: 0 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lcr-ak-spin,
	.lcr-ak__sk-ava {
		animation: none;
	}
}

@keyframes lcr-ak-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes lcr-ak-shine {
	0% {
		background-position: -200px 0;
	}
	100% {
		background-position: 200px 0;
	}
}
