/* Laxmiloka Providers Listing — deliberately built on the appointments panel's
   vocabulary, so the two listings do not read as two different plugins. */

.lpl {
	--lpl-accent: #2271b1;
	--lpl-border: #e2e5e9;
	--lpl-text: #1d2327;
	--lpl-muted: #646970;
	--lpl-success: #1a7f37;
	--lpl-verify: #8250df;
	--lpl-radius: 8px;

	color: var(--lpl-text);
	font-family: "Figtree", sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

.lpl,
.lpl *:not([class*="eicon-"]) {
	font-family: var(--lpl-font, "Figtree", sans-serif);
}

.lpl [hidden] {
	display: none !important;
}

/* ---- Toolbar ---- */

.lpl-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.lpl-search {
	position: relative;
	flex: 1 1 260px;
	min-width: 0;
}

.lpl-search__input {
	width: 100%;
	padding: 9px 34px 9px 12px;
	border: 1px solid var(--lpl-border);
	border-radius: var(--lpl-radius);
	background: #fff;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.lpl-search__input:focus {
	outline: none;
	border-color: var(--lpl-accent);
	box-shadow: 0 0 0 1px var(--lpl-accent);
}

/* The search input's own clear glyph, so there are not two of them side by
   side — ours is bound to the store, the browser's is not. */
.lpl-search__input::-webkit-search-cancel-button {
	display: none;
}

/* A div, not a button: Elementor styles bare <button> globally and this is a
   bare glyph. role="button" and Enter/Space come back via actions.onKey. */
.lpl-search__clear {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	color: var(--lpl-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	user-select: none;
}

.lpl-search__clear:hover {
	color: var(--lpl-text);
}

.lpl-search__clear:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.lpl-count {
	flex: 0 0 auto;
	color: var(--lpl-muted);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ---- State checkboxes ---- */

.lpl-states {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid var(--lpl-border);
	border-radius: var(--lpl-radius);
	background: #f6f7f8;
}

.lpl-states__legend {
	flex: 0 0 auto;
	color: var(--lpl-muted);
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.lpl-states__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1 1 auto;
}

/* A real checkbox inside a label: it carries its own state, keyboard behaviour
   and semantics, none of which are worth reimplementing on a div. */
.lpl-state {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 6px 11px;
	border: 1px solid var(--lpl-border);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lpl-state:hover {
	border-color: var(--lpl-accent);
}

.lpl-state.is-on {
	border-color: var(--lpl-accent);
	background: #eaf2f9;
	font-weight: 600;
}

.lpl-state__box {
	width: 15px;
	height: 15px;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var(--lpl-accent);
}

.lpl-state__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.07);
	font-size: 11.5px;
	font-weight: 700;
}

.lpl-states__clear {
	flex: 0 0 auto;
	padding: 4px 8px;
	border-radius: 6px;
	color: var(--lpl-accent);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.lpl-states__clear:hover {
	text-decoration: underline;
}

.lpl-states__clear:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

/* ---- Table ---- */

.lpl-table-wrap {
	overflow-x: auto;
	border-radius: var(--lpl-radius);
	transition: opacity 0.12s ease;
}

/*
 * A query in flight over rows that are already showing. Dimmed rather than
 * emptied: the rows on screen are still a true answer to the previous keystroke,
 * and blanking the table between them is the one thing that makes a search feel
 * broken.
 */
.lpl-table-wrap.is-busy {
	opacity: 0.55;
}

.lpl-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.lpl-table thead th {
	position: sticky;
	top: 0;
	text-align: left;
	padding: 11px 12px;
	background: #f6f7f8;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--lpl-muted);
	white-space: nowrap;
	border: none !important;
}

.lpl-row td {
	padding: 11px 12px;
	vertical-align: middle;
	border: none !important;
	border-bottom: 1px solid var(--lpl-border) !important;
}

/* ---- Provider cell ---- */

.lpl-cell-provider {
	min-width: 190px;
}

.lpl-provider {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.lpl-avatar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background: #e8e8e2;
	color: var(--lpl-muted);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.lpl-avatar__img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.lpl-provider__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Doubled to outrank theme rules like `.entry-content a`, the same trick the
   navigator's own menu links need. */
.lpl .lpl-provider__name,
.lpl .lpl-provider__name:hover,
.lpl .lpl-provider__name:visited {
	color: var(--lpl-text);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.lpl .lpl-provider__name:hover {
	color: var(--lpl-accent);
	text-decoration: underline;
}

.lpl-provider__id {
	color: var(--lpl-muted);
	font-size: 11.5px;
}

/* ---- User / contact cells ---- */

.lpl-cell-user {
	min-width: 150px;
}

.lpl-user__name {
	display: block;
	font-weight: 600;
}

/* No related user and no author to fall back on — a data problem, and worth
   looking different from a name. */
.lpl-user__name.is-missing {
	color: var(--lpl-muted);
	font-weight: 400;
	font-style: italic;
}

.lpl-user__login {
	display: block;
	color: var(--lpl-muted);
	font-size: 12px;
	overflow-wrap: anywhere;
}

.lpl-cell-email {
	min-width: 180px;
}

.lpl .lpl-email,
.lpl .lpl-email:visited {
	color: var(--lpl-muted);
	font-size: 12.5px;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.lpl .lpl-email:hover {
	color: var(--lpl-accent);
	text-decoration: underline;
}

.lpl-cell-phone,
.lpl-cell-role,
.lpl-cell-registered {
	white-space: nowrap;
	color: var(--lpl-muted);
	font-size: 12.5px;
}

.lpl-muted {
	color: var(--lpl-muted);
}

/* ---- State pills ---- */

.lpl-pills {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
}

.lpl-pill {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	color: var(--lpl-muted);
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

/*
 * The three terms this taxonomy ships with. An unknown term keeps the neutral
 * pill above rather than falling through to nothing, so adding a state to the
 * taxonomy needs no CSS to look right.
 */
.lpl-pill[data-state="active"] {
	background: #e6f4ea;
	color: #1a7f37;
}

.lpl-pill[data-state="applied"] {
	background: #fde7d6;
	color: #99551f;
}

.lpl-pill[data-state="suspended"] {
	background: #fdeef0;
	color: #b32d2e;
}

/* The three the row actions move between. */
.lpl-pill[data-state="pending"] {
	background: #fdf3d6;
	color: #8a6300;
}

.lpl-pill[data-state="confirmed"] {
	background: #e6f4ea;
	color: #1a7f37;
}

.lpl-pill[data-state="verified"] {
	background: #f1e9fd;
	color: #6b2fc7;
}

/* ---- Row actions ---- */

.lpl-col-actions {
	text-align: right;
	white-space: nowrap;
}

.lpl-actions {
	display: inline-flex;
	gap: 4px;
	justify-content: flex-end;
	transition: opacity 0.12s ease;
}

/* A write in flight. Dimmed rather than emptied, the same as the table above —
   the pills on screen are still the last true answer. */
.lpl-actions.is-busy {
	opacity: 0.45;
}

/*
 * Divs, not buttons, for the reason given in the markup. Colour is the whole
 * vocabulary — no ring, no fill — matching the bookings panel's icons so the two
 * listings do not read as two different plugins.
 */
.lpl-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: none;
	cursor: pointer;
	user-select: none;
	line-height: 0;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.lpl-icon--confirm {
	color: var(--lpl-success);
}

.lpl-icon--verify {
	color: var(--lpl-verify);
}

.lpl-icon:hover:not([aria-disabled="true"]) {
	background: none;
	opacity: 0.7;
}

.lpl-icon:active:not([aria-disabled="true"]) {
	transform: scale(0.9);
}

/* These are divs, so `:disabled` never matches — aria-disabled carries the
   state. pointer-events is what stops the click; the store refuses as well. */
.lpl-icon[aria-disabled="true"] {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

.lpl-icon:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.lpl-icon [class*="eicon-"] {
	font-size: 16px;
}

/* ---- Messages ---- */

.lpl-error {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid #b32d2e;
	background: #fcf0f1;
	color: #b32d2e;
}

.lpl-empty {
	padding: 28px;
	text-align: center;
	color: var(--lpl-muted);
	background: #f6f7f8;
	border: 1px dashed var(--lpl-border);
	border-radius: var(--lpl-radius);
}

@media (max-width: 720px) {
	.lpl-table {
		font-size: 13px;
	}

	.lpl-table thead th,
	.lpl-row td {
		padding: 9px 10px;
	}
}
