/* Laxmiloka Connections */

.lxc,
.lxc-panel {
	--lxc-green: var(--e-global-color-1a25f7c, #144a2b);
	--lxc-green-hover: #0f3a21;
	--lxc-text: var(--e-global-color-primary, #1a1c18);
	--lxc-muted: var(--e-global-color-f0b1142, #1a1c18c9);
	--lxc-border: var(--e-global-color-ddc133f, #6bbf4f4d);
	--lxc-sand: var(--e-global-color-06c0358, #e8e8e2);
	--lxc-card: #ffffff;
	--lxc-radius: 999px;
	--lxc-wait: #8a5a00;
	--lxc-wait-tint: #f6efe1;
	--lxc-off: #6d6d66;
}

/* ── Profile widget ─────────────────────────────────────────────────────── */

.lxc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	color: var(--lxc-text);
}

.lxc[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}

/* Doubled class: themes reach buttons and links through selectors that outrank a single class. */
.lxc-btn.lxc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 16px;
	border: 1px solid var(--lxc-green);
	border-radius: var(--lxc-radius);
	background: var(--lxc-green);
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.lxc-btn.lxc-btn:hover,
.lxc-btn.lxc-btn:focus-visible {
	background: var(--lxc-green-hover);
	border-color: var(--lxc-green-hover);
	color: #ffffff;
}

.lxc-btn.lxc-btn:focus-visible,
.lxc-count:focus-visible {
	outline: 2px solid var(--lxc-green);
	outline-offset: 3px;
}

.lxc-btn.lxc-btn:disabled {
	cursor: progress;
}

/* Request sent: quiet, and turns into "Cancel request" on hover. */
.lxc-btn.lxc-btn--sent,
.lxc-btn.lxc-btn--connected {
	background: transparent;
	color: var(--lxc-green);
}

.lxc-btn.lxc-btn--sent:hover,
.lxc-btn.lxc-btn--sent:focus-visible {
	background: var(--lxc-sand);
	border-color: var(--lxc-green);
	color: var(--lxc-green);
}

.lxc-btn__hover,
.lxc-btn--sent:hover .lxc-btn__idle,
.lxc-btn--sent:focus-visible .lxc-btn__idle {
	display: none;
}

.lxc-btn--sent:hover .lxc-btn__hover,
.lxc-btn--sent:focus-visible .lxc-btn__hover {
	display: inline;
}

.lxc-btn.lxc-btn--connected {
	cursor: default;
}

/* ── Count and its tooltip ──────────────────────────────────────────────── */

.lxc-count {
	position: relative;
	display: inline-block;
	font-size: 17px;
	line-height: 1.3;
	color: var(--lxc-text);
}

.lxc-count[aria-controls] {
	cursor: default;
	text-decoration: underline dotted;
	text-underline-offset: 4px;
}

.lxc-tip {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 200px;
	max-width: min(300px, 80vw);
	/* The padding is a hover bridge: the pointer can travel from the count into the card. */
	padding-top: 10px;
	visibility: hidden;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
	text-decoration: none;
}

.lxc-count:hover .lxc-tip,
.lxc-count:focus-within .lxc-tip,
.lxc-count.is-open .lxc-tip {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity 150ms ease, transform 150ms ease, visibility 0s;
}

.lxc-tip__list.lxc-tip__list {
	margin: 0;
	padding: 12px 16px;
	list-style: none;
	background: var(--lxc-card);
	border: 1px solid var(--lxc-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(26, 28, 24, 0.12);
	font-size: 15px;
	line-height: 1.5;
	color: var(--lxc-text);
}

.lxc-tip__list li {
	margin: 0;
	padding: 2px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lxc-tip__list li::before {
	content: none;
}

.lxc-tip__more {
	color: var(--lxc-muted);
}

@media (prefers-reduced-motion: reduce) {
	.lxc-tip,
	.lxc-btn.lxc-btn {
		transition: none;
	}
}

/* ── Account navigator panel ────────────────────────────────────────────── */

.lxc-panel {
	display: grid;
	gap: 28px;
	color: var(--lxc-text);
}

.lxc-panel[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}

.lxc-panel__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
}

.lxc-panel__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--lxc-sand);
	font-size: 13px;
	font-weight: 600;
}

.lxc-panel__list.lxc-panel__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lxc-panel__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--lxc-sand);
}

.lxc-panel__row:first-child {
	border-top: 0;
}

.lxc-panel__avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.lxc-panel__who {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.lxc-panel__name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.lxc-panel__name a {
	color: inherit;
}

.lxc-panel__meta {
	font-size: 14px;
	color: var(--lxc-muted);
}

.lxc-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.lxc-panel__empty {
	padding: 8px 0;
	color: var(--lxc-muted);
}

.lxc-btn.lxc-btn--small {
	min-height: 36px;
	padding: 6px 16px;
	font-size: 14px;
}

.lxc-btn.lxc-btn--ghost {
	background: transparent;
	color: var(--lxc-green);
}

.lxc-btn.lxc-btn--ghost:hover,
.lxc-btn.lxc-btn--ghost:focus-visible {
	background: var(--lxc-sand);
	color: var(--lxc-green);
}

@media (max-width: 480px) {
	.lxc-panel__row {
		flex-wrap: wrap;
	}

	.lxc-panel__actions {
		width: 100%;
		justify-content: flex-start;
		padding-left: 52px;
	}
}

/* ── All connections panel ──────────────────────────────────────────────── */

.lxc-admin {
	gap: 20px;
}

.lxc-admin .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

/* Three figures, so the shape of the queue reads before any row does. */
.lxc-admin__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.lxc-admin__tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border: 1px solid var(--lxc-border);
	border-radius: 12px;
	background: var(--lxc-card);
}

.lxc-admin__tile--pending {
	border-color: var(--lxc-wait);
	background: var(--lxc-wait-tint);
}

.lxc-admin__figure {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.1;
}

.lxc-admin__label {
	font-size: 13px;
	color: var(--lxc-muted);
}

.lxc-admin__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lxc-admin__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 4px 14px;
	border: 1px solid var(--lxc-border);
	border-radius: 999px;
	background: transparent;
	color: var(--lxc-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.lxc-admin__tab:hover,
.lxc-admin__tab:focus-visible {
	background: var(--lxc-sand);
}

.lxc-admin__tab:focus-visible {
	outline: 2px solid var(--lxc-green);
	outline-offset: 2px;
}

.lxc-admin__tab.is-current {
	border-color: var(--lxc-green);
	background: var(--lxc-green);
	color: #ffffff;
}

.lxc-admin__tab.is-current .lxc-panel__badge {
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.lxc-admin__tab:disabled {
	cursor: progress;
}

/* The table is wider than a phone; let it scroll rather than wrap to mush. */
.lxc-admin__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.lxc-admin__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.lxc-admin__table th,
.lxc-admin__table td {
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--lxc-sand);
}

.lxc-admin__table th {
	font-size: 13px;
	font-weight: 600;
	color: var(--lxc-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.lxc-admin__table a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lxc-admin__row.is-pending {
	background: var(--lxc-wait-tint);
}

.lxc-admin__when {
	white-space: nowrap;
	color: var(--lxc-muted);
}

.lxc-admin__status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--lxc-sand);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.lxc-admin__status.is-pending {
	background: var(--lxc-wait);
	color: #ffffff;
}

.lxc-admin__status.is-approved {
	background: var(--lxc-green);
	color: #ffffff;
}

.lxc-admin__status.is-declined {
	background: var(--lxc-off);
	color: #ffffff;
}

.lxc-admin__note {
	display: block;
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--lxc-muted);
}

.lxc-admin__gone {
	color: var(--lxc-muted);
}

.lxc-admin__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

@media (prefers-reduced-motion: reduce) {
	.lxc-admin__tab {
		transition: none;
	}
}
