/* Laxmiloka Service Listing */

.lsl {
	--lsl-accent: #2271b1;
	--lsl-accent-dark: #135e96;
	--lsl-border: #d8dde3;
	--lsl-bg: #fff;
	--lsl-bg-soft: #f6f7f8;
	--lsl-text: #1d2327;
	--lsl-muted: #646970;
	--lsl-danger: #b32d2e;
	--lsl-success: #1a7f37;
	/* Shared across all three panels so edit controls read the same everywhere. */
	--laxmi-edit: #2563eb;
	--lsl-radius: 8px;
	/*
	 * Figtree was loaded from Google Fonts as a separate registered stylesheet.
	 * That did not survive the merge on purpose: every panel's CSS is now on
	 * every page, so a remote stylesheet would put a slow or blocked third-party
	 * request in front of the first paint for everyone (and hosting an EU site's
	 * fonts at Google is its own problem). Self-host the face and add it to this
	 * file if the exact typeface matters.
	 */
	--lsl-font: "Figtree", sans-serif;
	--lsl-title-font: "Sentient", serif;

	max-width: 860px;
	margin: 0 auto;
	color: var(--lsl-text);
	font-family: var(--lsl-font);
	font-size: 15px;
	line-height: 1.5;
}

/* Force Figtree on every element in the listing (themes often set their own
   font on headings, inputs and buttons), but never on the eicon glyphs or the
   Sentient service title. */
.lsl,
.lsl *:not([class*="eicon-"]):not(.lsl-title):not(.lsl-title-input) {
	font-family: var(--lsl-font);
}

/* Service title — Sentient, large. */
.lsl-title,
.lsl-title-input {
	font-family: var(--lsl-title-font) !important;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--lsl-text);
	margin: 0 0 12px;
}

.lsl-title-input {
	display: block;
	width: 100%;
	padding: 4px 8px;
	border: 1px solid var(--lsl-border);
	border-radius: 6px;
	background: #fff;
	box-sizing: border-box;
}

.lsl [hidden] {
	display: none !important;
}

.lsl-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.lsl-card {
	border: 1px solid var(--lsl-border);
	border-radius: var(--lsl-radius);
	background: var(--lsl-bg);
	overflow: hidden;
}

.lsl-card.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.lsl-card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 14px 18px;
	background: var(--lsl-bg-soft);
	border-bottom: 1px solid var(--lsl-border);
}

/*
 * Collapsed, the head *is* the card, so its bottom border would draw a second
 * line just inside the card's own rounded edge. Hidden rather than removed:
 * the width stays, so expanding a card moves nothing.
 */
.lsl-card:not(.is-open) .lsl-card__head {
	border-bottom-color: transparent;
}

/* Ids and name, stacked — the half of the head that is content rather than
   controls. min-width:0 so a long name wraps instead of pushing the chevron
   off the row. */
.lsl-card__summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 12rem;
	min-width: 0;
}

/* Sentient, like .lsl-title, but sized for a header rather than a page. The
   !important matches the rule those two need: the blanket font-family on
   `.lsl *` outranks a plain declaration here. */
.lsl-card__name {
	font-family: var(--lsl-title-font) !important;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--lsl-text);
	overflow-wrap: anywhere;
}

.lsl-ids {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.lsl-badge {
	font-size: 12px;
	color: var(--lsl-muted);
	background: #fff;
	border: 1px solid var(--lsl-border);
	border-radius: 999px;
	padding: 6px 10px;
}

.lsl-badge b {
	color: var(--lsl-text);
}

.lsl-status {
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef1f4;
	color: var(--lsl-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.lsl-status[data-status="publish"] {
	background: #e6f4ea;
	color: var(--lsl-success);
}

.lsl-status[data-status="draft"],
.lsl-status[data-status="pending"] {
	background: #fcf3e6;
	color: #8a6d3b;
}

.lsl-status[data-status="on-hold"] {
	background: #fdeef0;
	color: var(--lsl-danger);
}

/* ---- Header actions (on-hold switch + delete) ---- */

.lsl-head__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.lsl-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--lsl-muted);
}

.lsl-switch__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.lsl-switch__track {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: var(--lsl-border);
	transition: background-color 0.18s ease;
	flex: 0 0 auto;
}

.lsl-switch__thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.18s ease;
}

/* on */
.lsl-switch__input:checked + .lsl-switch__track {
	background: var(--lsl-danger);
}

.lsl-switch__input:checked + .lsl-switch__track .lsl-switch__thumb {
	transform: translateX(18px);
}

.lsl-switch__input:checked ~ .lsl-switch__text {
	color: var(--lsl-danger);
}

.lsl-switch__input:focus-visible + .lsl-switch__track {
	outline: 2px solid var(--lsl-danger);
	outline-offset: 2px;
}

.lsl-switch__input:disabled + .lsl-switch__track {
	opacity: 0.5;
}

/* ---- Groups ---- */

.lsl-group {
	padding: 16px 18px;
	border-bottom: 1px solid var(--lsl-border);
}

.lsl-group:last-child {
	border-bottom: 0;
}

.lsl-group__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.lsl-group__head h4 {
	margin: 0;
	font-size: 15px;
}

.lsl-subhead {
	margin: 16px 0 8px;
	font-size: 13px;
	color: var(--lsl-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ---- Read-mode field grid ---- */

.lsl-fields {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 6px 16px;
	margin: 0;
}

.lsl-fields dt {
	font-weight: 600;
	color: var(--lsl-muted);
}

.lsl-fields dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* ---- Hours table ---- */

.lsl-hours {
	width: 100%;
	border-collapse: collapse;
}

.lsl-hours th,
.lsl-hours td {
	text-align: left;
	padding: 5px 8px;
	border-bottom: 1px solid var(--lsl-bg-soft);
	font-weight: 400;
}

.lsl-hours th {
	width: 140px;
	font-weight: 600;
}

.lsl-hours tr.is-off {
	color: var(--lsl-muted);
}

/* ---- Chips (days off) ---- */

.lsl-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lsl-chips li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--lsl-border);
	border-radius: 999px;
	background: var(--lsl-bg-soft);
	font-size: 13px;
}

.lsl-chip__x {
	border: 0;
	background: none;
	color: var(--lsl-danger);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

/* ---- Edit forms ---- */

.lsl-edit {
	background: var(--lsl-bg-soft);
	border: 1px solid var(--lsl-border);
	border-radius: var(--lsl-radius);
	padding: 14px;
}

.lsl-field {
	display: block;
	margin-bottom: 12px;
}

.lsl-field > span {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
}

.lsl-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.lsl-row .lsl-field {
	flex: 1;
	min-width: 160px;
}

.lsl input[type="text"],
.lsl input[type="number"],
.lsl input[type="date"],
.lsl input[type="time"],
.lsl select,
.lsl textarea {
	width: 100%;
	padding: 7px 9px;
	border: 1px solid var(--lsl-border);
	border-radius: 6px;
	background: #fff;
	color: var(--lsl-text);
	font: inherit;
	box-sizing: border-box;
}

.lsl-days {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lsl-day {
	display: grid;
	grid-template-columns: 150px 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 5px 8px;
	border: 1px solid var(--lsl-border);
	border-radius: 6px;
	background: #fff;
}

.lsl-day.is-off {
	opacity: 0.6;
}

.lsl-day__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	cursor: pointer;
}

.lsl-day__sep {
	color: var(--lsl-muted);
}

.lsl-daysoff__add {
	display: flex;
	gap: 8px;
	align-items: center;
	max-width: 320px;
	margin-bottom: 10px;
}

.lsl-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

/* ---- Buttons ---- */

.lsl-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 6px;
	border: 1px solid var(--lsl-border);
	background: #fff;
	color: var(--lsl-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.lsl-btn:hover {
	border-color: var(--lsl-accent);
}

.lsl-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.lsl-btn--small {
	padding: 5px 12px;
	font-size: 13px;
}

.lsl-btn--primary {
	background: var(--lsl-accent);
	border-color: var(--lsl-accent);
	color: #fff;
}

.lsl-btn--primary:hover:not(:disabled) {
	background: var(--lsl-accent-dark);
	border-color: var(--lsl-accent-dark);
}

/* ---- Icon-only buttons (edit / delete) ---- */

/* Ensure the eicons font applies to our glyphs (Elementor's stylesheet
   defines the @font-face named "eicons" and the .eicon-* glyph codes). */
.lsl i[class^="eicon-"],
.lsl i[class*=" eicon-"] {
	font-family: eicons;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	speak: never;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.lsl-btn i[class^="eicon-"] {
	font-size: 15px;
	line-height: 1;
}

.lsl-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	/*
	 * No ring, no fill — colour carries the meaning. !important because these
	 * are still <button> elements, so Elementor's global button styling is live
	 * on them and would otherwise draw both. Converting them to divs, as the
	 * appointments panel does, is the way to drop these.
	 */
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	border-radius: 6px;
	cursor: pointer;
	line-height: 0;
	transition: transform 0.1s ease, opacity 0.15s ease;
}

.lsl-icon i {
	display: block;
	font-size: 18px;
	line-height: 1;
}

.lsl-icon:disabled {
	opacity: 0.4;
	cursor: default;
}

/* Glyph colors are set on the eicon's ::before (where the font renders). */

/* Edit — blue. */
.lsl-icon--edit i::before {
	color: var(--laxmi-edit);
}

/* Delete — red, larger glyph */
.lsl-icon--danger i::before {
	color: var(--lsl-danger);
}

.lsl-icon--danger i,
.lsl-icon--save i {
	font-size: 26px;
}

/* Save — green */
.lsl-icon--save i::before {
	color: var(--lsl-success);
}

/* Cancel (undo) — muted */
.lsl-icon--cancel i::before {
	color: var(--lsl-muted);
}

.lsl-icon:hover:not(:disabled) {
	opacity: 0.7;
}

.lsl-icon:active:not(:disabled) {
	transform: scale(0.92);
}

.lsl-icon:focus-visible {
	outline: 2px solid var(--lsl-muted);
	outline-offset: 1px;
}

/* ---- Icons that are divs ----
 *
 * The collapse chevron and the delete trigger, matched on role rather than on a
 * variant class so anything else converted later is covered by writing no CSS
 * at all.
 *
 * Elementor's global button styling — the background and padding these icons
 * want neither of — cannot reach a div, so none of the !importants above are
 * doing anything here. They are restated plainly, both as the actual style and
 * as the record that it is deliberate rather than inherited by accident.
 */

.lsl-icon[role="button"] {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/*
 * A div has no :disabled, so the :not(:disabled) hover and active rules above
 * never match one — and aria-disabled has to carry the look as well as the
 * meaning. The store refuses a disabled action itself; this is only how it
 * reads.
 */
.lsl-icon[role="button"]:hover {
	opacity: 0.7;
}

.lsl-icon[role="button"]:active {
	transform: scale(0.92);
}

.lsl-icon[role="button"][aria-disabled="true"] {
	opacity: 0.4;
	cursor: default;
}

.lsl-icon[role="button"][aria-disabled="true"]:hover {
	opacity: 0.4;
}

.lsl-icon[role="button"][aria-disabled="true"]:active {
	transform: none;
}

/* ---- Collapse chevron ----
 *
 * Points down when the card is closed and flips when it opens, which is the
 * only thing telling the visitor the card has more in it.
 */

.lsl-icon--toggle {
	color: var(--lsl-muted);
}

.lsl-icon--toggle svg {
	display: block;
	transition: transform 0.2s ease;
}

.lsl-card.is-open .lsl-icon--toggle svg {
	transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
	.lsl-icon--toggle svg {
		transition: none;
	}
}

/* ---- Delete confirmation tooltip ---- */

.lsl-confirm-wrap {
	position: relative;
	display: inline-flex;
}

.lsl-confirm {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	width: 200px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--lsl-border);
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	text-align: left;
}

/* little arrow pointing up at the delete icon */
.lsl-confirm::before {
	content: "";
	position: absolute;
	top: -6px;
	right: 12px;
	width: 11px;
	height: 11px;
	background: #fff;
	border-left: 1px solid var(--lsl-border);
	border-top: 1px solid var(--lsl-border);
	transform: rotate(45deg);
}

.lsl-confirm__msg {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--lsl-text);
}

.lsl-confirm__actions {
	display: flex;
	justify-content: flex-end;
	gap: 4px;
}

/* the confirmation icons sit a bit smaller than the card icons */
.lsl-confirm__actions .lsl-icon {
	width: 30px;
	height: 30px;
}

.lsl-confirm__actions .lsl-icon i {
	font-size: 18px;
}

.lsl-confirm__actions .lsl-icon--danger i {
	font-size: 22px;
}

/* ---- Messages ---- */

.lsl-error {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid var(--lsl-danger);
	background: #fcf0f1;
	color: var(--lsl-danger);
}

.lsl-empty {
	padding: 24px;
	text-align: center;
	color: var(--lsl-muted);
	background: var(--lsl-bg-soft);
	border: 1px dashed var(--lsl-border);
	border-radius: var(--lsl-radius);
}

.lsl-muted {
	color: var(--lsl-muted);
	margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
	.lsl-fields {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.lsl-fields dd {
		margin-bottom: 10px;
	}

	.lsl-day {
		grid-template-columns: 110px 1fr auto 1fr;
	}
}
