/* =========================================================
   Luxelle Panel — მენეჯერის და კურიერის გვერდები
   ========================================================= */

.lx-app {
	--lx-bg: #F7F5F0;
	--lx-card: #FFFFFF;
	--lx-line: #EAE4D9;
	--lx-line-soft: #F0EBE2;
	--lx-ink: #2F2A25;
	--lx-ink-soft: #6E6559;
	--lx-muted: #9A9187;
	--lx-gold: #B08D57;
	--lx-gold-dark: #8C6F45;
	--lx-gold-soft: #F5EEE1;
	--lx-green: #3F8E5A;
	--lx-green-soft: #E9F4EC;
	--lx-radius: 12px;
	--lx-font: "Noto Sans Georgian", "Helvetica Neue", Arial, sans-serif;

	font-family: var(--lx-font);
	color: var(--lx-ink);
	background: var(--lx-bg);
	line-height: 1.45;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
	border-radius: var(--lx-radius);
	overflow: hidden;
	border: 1px solid var(--lx-line);
}

.lx-app *, .lx-app *::before, .lx-app *::after { box-sizing: border-box; }
.lx-app a { text-decoration: none; color: inherit; }
.lx-app h1, .lx-app h2, .lx-app p, .lx-app ul { margin: 0; padding: 0; }
.lx-app ul { list-style: none; }
.lx-ic { flex: none; }

/* -------- Shell layout -------- */
.lx-shell { display: flex; min-height: 720px; background: var(--lx-bg); }

.lx-sidebar {
	width: 216px;
	flex: none;
	background: var(--lx-card);
	border-right: 1px solid var(--lx-line);
	padding: 20px 12px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.lx-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.lx-logo-text {
	font-family: "Playfair Display", serif;
	letter-spacing: .34em;
	font-size: 13px;
	color: var(--lx-ink);
}

.lx-nav { display: flex; flex-direction: column; gap: 2px; }
.lx-nav-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 12px;
	border-radius: 9px;
	color: var(--lx-ink-soft);
	font-size: 13.5px;
	transition: background .15s ease, color .15s ease;
}
.lx-nav-item:hover { background: var(--lx-bg); color: var(--lx-ink); }
.lx-nav-item.is-active { background: var(--lx-gold-soft); color: var(--lx-gold-dark); font-weight: 600; }
.lx-nav-item.is-active .lx-ic { color: var(--lx-gold-dark); }

/* -------- Main column -------- */
.lx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.lx-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 24px;
	background: var(--lx-card);
	border-bottom: 1px solid var(--lx-line);
}

.lx-burger { display: none; }

.lx-search {
	flex: 1;
	max-width: 420px;
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--lx-bg);
	border: 1px solid var(--lx-line);
	border-radius: 9px;
	padding: 8px 12px;
	color: var(--lx-muted);
}
.lx-search input {
	border: 0; outline: 0; background: transparent;
	font-family: var(--lx-font); font-size: 13px;
	color: var(--lx-ink); width: 100%;
}
.lx-search input::placeholder { color: var(--lx-muted); }

.lx-header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lx-icon-btn {
	position: relative;
	background: none; border: 0; cursor: pointer;
	color: var(--lx-ink-soft); padding: 6px; border-radius: 8px;
}
.lx-icon-btn:hover { background: var(--lx-bg); }
.lx-icon-btn.has-dot::after {
	content: ""; position: absolute; top: 5px; right: 5px;
	width: 7px; height: 7px; border-radius: 50%;
	background: #C0392B; border: 1.5px solid var(--lx-card);
}

.lx-user { display: flex; align-items: center; gap: 10px; }
.lx-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; display: inline-flex; }
.lx-avatar.sm { width: 40px; height: 40px; }
.lx-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.lx-user-meta strong { font-size: 13px; font-weight: 600; }
.lx-user-meta small { font-size: 11px; color: var(--lx-muted); }

.lx-content { padding: 26px 26px 10px; display: flex; flex-direction: column; gap: 18px; }

.lx-footer {
	margin-top: auto;
	padding: 16px 26px 20px;
	font-size: 11.5px;
	color: var(--lx-muted);
}

/* -------- Cards & headings -------- */
.lx-card {
	background: var(--lx-card);
	border: 1px solid var(--lx-line);
	border-radius: var(--lx-radius);
}
.lx-section { padding: 20px 22px; }

.lx-page-head { display: flex; align-items: center; gap: 12px; }
.lx-page-head.lx-col { flex-direction: column; align-items: flex-start; gap: 4px; }
.lx-title { font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.lx-subtitle { font-size: 13px; color: var(--lx-muted); }

.lx-badge {
	font-size: 11.5px; font-weight: 600;
	padding: 4px 12px; border-radius: 999px;
}
.lx-badge-progress { background: var(--lx-gold-soft); color: var(--lx-gold-dark); }

.lx-section-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.lx-step-num { color: var(--lx-gold-dark); }
.lx-section-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.lx-section-head .lx-section-title { margin-bottom: 0; }

/* -------- Meta blocks -------- */
.lx-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lx-meta small, .lx-label-top { font-size: 11.5px; color: var(--lx-muted); }
.lx-meta strong { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.lx-mt { margin-top: 16px; }

.lx-meta-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	padding: 16px 22px;
}
.lx-meta-strip .lx-meta { border-left: 1px solid var(--lx-line-soft); padding-left: 16px; }
.lx-meta-strip .lx-meta:first-child { border-left: 0; padding-left: 0; }

.lx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* -------- Buttons -------- */
.lx-btn {
	display: inline-flex; align-items: center; gap: 7px;
	font-family: var(--lx-font); font-size: 12.5px; font-weight: 600;
	padding: 9px 15px; border-radius: 9px; cursor: pointer;
	border: 1px solid transparent;
	transition: filter .15s ease, background .15s ease;
	white-space: nowrap;
}
.lx-btn-ghost { background: var(--lx-card); border-color: var(--lx-line); color: var(--lx-ink-soft); }
.lx-btn-ghost:hover { background: var(--lx-bg); }
.lx-btn-gold { background: var(--lx-gold); color: #fff; }
.lx-btn-gold:hover { filter: brightness(.95); }
.lx-btn:focus-visible { outline: 2px solid var(--lx-gold-dark); outline-offset: 2px; }

/* -------- Courier section -------- */
.lx-courier-row {
	display: grid;
	grid-template-columns: 1fr 1.4fr auto;
	gap: 18px;
	align-items: center;
}
.lx-courier-person { display: flex; align-items: center; gap: 11px; margin-top: 6px; }
.lx-courier-name { display: flex; flex-direction: column; line-height: 1.25; }
.lx-courier-name strong { font-size: 13.5px; }
.lx-courier-name small { font-size: 12px; color: var(--lx-muted); }
.lx-courier-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* -------- Location / map -------- */
.lx-location-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.lx-map {
	position: relative;
	min-height: 240px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--lx-line);
	background: #F1EEE7;
	z-index: 0;
}
.lx-map-fallback, .lx-map-fallback svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-location-facts { display: flex; flex-direction: column; gap: 15px; justify-content: center; }

.lx-map .leaflet-container { position: absolute; inset: 0; font-family: var(--lx-font); }
.lx-map-pin-courier, .lx-map-pin-dest { background: none; border: 0; }

/* -------- Timeline -------- */
.lx-timeline { display: flex; padding: 8px 4px 2px; }
.lx-tl-step {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	min-width: 0;
}
.lx-tl-dot {
	width: 40px; height: 40px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--lx-line-soft); color: var(--lx-muted);
	position: relative; z-index: 1;
}
.lx-tl-step.is-done .lx-tl-dot { background: var(--lx-gold); color: #fff; }
.lx-tl-line {
	position: absolute; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px);
	height: 2px; background: var(--lx-line);
}
.lx-tl-step.is-done .lx-tl-line { background: var(--lx-gold); }
.lx-tl-label { font-size: 12.5px; font-weight: 600; }
.lx-tl-time { font-size: 11.5px; color: var(--lx-muted); }

/* -------- Delivered & signature -------- */
.lx-delivered-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr auto;
	gap: 22px;
	align-items: center;
}
.lx-signature-box {
	margin-top: 6px;
	border: 1px solid var(--lx-line);
	border-radius: 10px;
	background: #FDFCFA;
	padding: 10px 14px;
	max-width: 260px;
}
.lx-signature-box svg { width: 100%; height: 52px; display: block; }
.lx-delivered-check {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--lx-green); font-weight: 700; font-size: 13.5px;
	background: var(--lx-green-soft);
	padding: 9px 16px; border-radius: 999px;
	justify-self: end;
}

/* -------- Manager: stats -------- */
.lx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lx-stat { padding: 16px 18px; }
.lx-stat-top {
	display: flex; align-items: center; gap: 8px;
	font-size: 12px; color: var(--lx-muted); margin-bottom: 10px;
}
.lx-stat-top .lx-ic { color: var(--lx-gold); }
.lx-stat-value { font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.lx-stat-delta { font-size: 11.5px; color: var(--lx-green); margin-top: 5px; font-weight: 600; }

/* -------- Manager: table -------- */
.lx-table-wrap { overflow-x: auto; }
.lx-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.lx-table th {
	text-align: left; font-size: 11.5px; font-weight: 600;
	color: var(--lx-muted); padding: 10px 12px;
	border-bottom: 1px solid var(--lx-line);
	white-space: nowrap;
}
.lx-table td { padding: 13px 12px; border-bottom: 1px solid var(--lx-line-soft); }
.lx-table tbody tr:hover { background: #FBFAF7; }
.lx-td-strong { font-weight: 600; }
.lx-table tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--lx-line); }
.lx-status-active { color: var(--lx-green); font-weight: 600; font-size: 12.5px; }

/* -------- Manager: charts -------- */
.lx-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }

.lx-legend { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--lx-muted); margin-bottom: 8px; }
.lx-legend-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lx-gold); display: inline-block; }
.lx-linechart { width: 100%; min-height: 220px; }
.lx-linechart svg { width: 100%; height: auto; display: block; }
.lx-chart-grid { stroke: var(--lx-line-soft); stroke-width: 1; }
.lx-chart-axis { fill: var(--lx-muted); font-size: 10px; font-family: var(--lx-font); }
.lx-chart-line { fill: none; stroke: var(--lx-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lx-chart-area { fill: var(--lx-gold); opacity: .08; }
.lx-chart-pt { fill: #fff; stroke: var(--lx-gold); stroke-width: 2; }

.lx-donut-wrap { display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: center; }
.lx-donut { width: 128px; height: 128px; transform: rotate(0deg); }
.lx-donut-legend { display: flex; flex-direction: column; gap: 9px; }
.lx-donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; min-width: 0; }
.lx-dl-num { color: var(--lx-muted); width: 12px; flex: none; }
.lx-dl-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.lx-dl-name { font-weight: 600; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-dl-val { margin-left: auto; color: var(--lx-ink-soft); white-space: nowrap; }

/* -------- Manager: income -------- */
.lx-income {
	display: grid;
	grid-template-columns: repeat(3, 1fr) auto;
	gap: 18px;
	align-items: center;
}
.lx-income-value { font-size: 19px; font-weight: 700; }

/* -------- Responsive -------- */
@media (max-width: 1080px) {
	.lx-stats, .lx-meta-strip, .lx-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.lx-charts { grid-template-columns: 1fr; }
	.lx-courier-row { grid-template-columns: 1fr 1fr; }
	.lx-courier-actions { grid-column: 1 / -1; }
	.lx-income { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.lx-sidebar {
		position: absolute; inset: 0 auto 0 0; z-index: 30;
		transform: translateX(-100%);
		transition: transform .2s ease;
		box-shadow: 8px 0 30px rgba(47, 42, 37, .12);
	}
	.lx-shell { position: relative; overflow: hidden; }
	.lx-app.lx-nav-open .lx-sidebar { transform: translateX(0); }
	.lx-overlay {
		display: none; position: absolute; inset: 0;
		background: rgba(47, 42, 37, .28); z-index: 20;
	}
	.lx-app { position: relative; }
	.lx-app.lx-nav-open .lx-overlay { display: block; }

	.lx-burger {
		display: inline-flex; flex-direction: column; gap: 4px;
		background: none; border: 0; cursor: pointer; padding: 6px;
	}
	.lx-burger span { width: 18px; height: 2px; background: var(--lx-ink); border-radius: 2px; }

	.lx-location-grid, .lx-delivered-grid, .lx-donut-wrap { grid-template-columns: 1fr; }
	.lx-delivered-check { justify-self: start; }
	.lx-timeline { flex-direction: column; align-items: stretch; gap: 18px; }
	.lx-tl-step { flex-direction: row; text-align: left; align-items: center; }
	.lx-tl-line { display: none; }
	.lx-tl-label { margin-right: auto; }
	.lx-content { padding: 18px 14px 8px; }
	.lx-user-meta { display: none; }
}

@media (max-width: 560px) {
	.lx-stats, .lx-meta-strip, .lx-grid-4, .lx-courier-row, .lx-income { grid-template-columns: 1fr; }
	.lx-meta-strip .lx-meta { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.lx-app * { transition: none !important; }
}

/* =========================================================
   V2 — ინტერაქტიული ელემენტები
   ========================================================= */

/* Locked view */
.lx-locked {
	padding: 70px 24px; text-align: center; background: var(--lx-bg, #F7F5F0);
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	font-family: "Noto Sans Georgian", sans-serif;
}
.lx-locked .lx-ic { color: #B08D57; }
.lx-locked h2 { margin: 0; font-size: 18px; }
.lx-locked p { margin: 0 0 8px; color: #9A9187; font-size: 13px; }

/* Empty states */
.lx-empty {
	padding: 42px 20px; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	color: var(--lx-muted);
}
.lx-empty .lx-ic { color: var(--lx-gold); }
.lx-empty p { font-size: 13px; max-width: 420px; }

/* Loading state on tab switch */
.lx-content.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s ease; }

/* Status pills */
.lx-pill {
	display: inline-block; font-size: 11.5px; font-weight: 600;
	padding: 4px 11px; border-radius: 999px;
	background: var(--lx-gold-soft); color: var(--lx-gold-dark);
}
.lx-pill.st-completed, .lx-pill.st-delivered { background: var(--lx-green-soft); color: var(--lx-green); }
.lx-pill.st-processing, .lx-pill.st-on_way { background: #EAF1F7; color: #3E5C76; }
.lx-pill.st-cancelled, .lx-pill.st-failed, .lx-pill.st-refunded { background: #F9E9E7; color: #B0442F; }
.lx-pill.st-pending, .lx-pill.st-on-hold, .lx-pill.st-issued, .lx-pill.st-assigned { background: var(--lx-gold-soft); color: var(--lx-gold-dark); }
.lx-badge-done { background: var(--lx-green-soft); color: var(--lx-green); }

/* Clickable status toggle */
.lx-status-btn {
	border: 0; cursor: pointer; font-family: var(--lx-font);
	font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
	transition: filter .15s ease;
}
.lx-status-btn:hover { filter: brightness(.95); }
.lx-status-btn.is-on { background: var(--lx-green-soft); color: var(--lx-green); }
.lx-status-btn.is-off { background: #F0EDE8; color: var(--lx-muted); }

/* Table row actions */
.lx-td-actions { white-space: nowrap; text-align: right; }
.lx-td-actions .lx-btn.sm { padding: 6px 10px; font-size: 11.5px; }
.lx-icon-btn.danger { color: #B0442F; }
.lx-icon-btn.danger:hover { background: #F9E9E7; }

/* Modal */
.lx-modal-backdrop {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(47, 42, 37, .45);
	display: flex; align-items: center; justify-content: center; padding: 18px;
	font-family: "Noto Sans Georgian", sans-serif;
}
.lx-modal-backdrop[hidden] { display: none !important; }
.lx-modal {
	position: relative; background: #fff; border-radius: 14px;
	width: 100%; max-width: 480px; max-height: 90vh; overflow: auto;
	padding: 26px 26px 24px;
	box-shadow: 0 24px 60px rgba(47, 42, 37, .25);
	color: #2F2A25; font-size: 14px;
}
.lx-modal-x {
	position: absolute; top: 12px; right: 12px;
	background: none; border: 0; cursor: pointer; color: #9A9187;
	padding: 6px; border-radius: 8px;
}
.lx-modal-x:hover { background: #F7F5F0; }
.lx-modal-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; }

/* Forms */
.lx-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.lx-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #6E6559; font-weight: 600; }
.lx-form input, .lx-form select {
	font-family: "Noto Sans Georgian", sans-serif; font-size: 13.5px;
	padding: 10px 12px; border: 1px solid #EAE4D9; border-radius: 9px;
	background: #FDFCFA; color: #2F2A25; outline: none;
}
.lx-form input:focus, .lx-form select:focus { border-color: #B08D57; box-shadow: 0 0 0 3px rgba(176, 141, 87, .12); }
.lx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lx-form .lx-btn { align-self: flex-start; }
.lx-form-row .lx-btn { align-self: stretch; justify-content: center; }

/* Signature canvas */
.lx-sign-canvas {
	width: 100%; height: 140px; border: 1px dashed #C9BFA9;
	border-radius: 10px; background: #FDFCFA; touch-action: none; cursor: crosshair;
}
.lx-muted-note { color: var(--lx-muted, #9A9187); font-size: 12.5px; }

/* Toast */
.lx-toast {
	position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
	z-index: 100000; background: #2F2A25; color: #fff;
	font-family: "Noto Sans Georgian", sans-serif; font-size: 13px;
	padding: 11px 20px; border-radius: 999px;
	box-shadow: 0 10px 30px rgba(47, 42, 37, .3);
	max-width: 90vw;
}
.lx-toast.is-error { background: #B0442F; }

/* Search dropdown */
.lx-search { position: relative; }
.lx-search-results {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
	background: #fff; border: 1px solid var(--lx-line); border-radius: 10px;
	box-shadow: 0 14px 34px rgba(47, 42, 37, .14); overflow: hidden;
}
.lx-sr-item {
	display: flex; align-items: center; gap: 9px;
	padding: 10px 13px; font-size: 12.5px; color: var(--lx-ink);
	border-bottom: 1px solid var(--lx-line-soft);
}
.lx-sr-item:last-child { border-bottom: 0; }
.lx-sr-item:hover { background: var(--lx-bg); }
.lx-sr-type {
	flex: none; font-size: 10.5px; font-weight: 700; color: var(--lx-gold-dark);
	background: var(--lx-gold-soft); padding: 2px 8px; border-radius: 999px;
}
.lx-sr-empty { padding: 12px 14px; font-size: 12.5px; color: var(--lx-muted); }

/* Timeline actions */
.lx-tl-actions { margin-top: 18px; display: flex; justify-content: center; gap: 10px; }

/* Report cards */
.lx-report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lx-report-card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
	background: #FDFCFA; border: 1px solid var(--lx-line); border-radius: 12px;
	padding: 18px; cursor: pointer; text-align: left;
	font-family: var(--lx-font); color: var(--lx-ink);
	transition: border-color .15s ease, transform .15s ease;
}
.lx-report-card:hover { border-color: var(--lx-gold); transform: translateY(-2px); }
.lx-report-card .lx-ic { color: var(--lx-gold); }
.lx-report-card strong { font-size: 13.5px; }
.lx-report-card small { font-size: 11.5px; color: var(--lx-muted); }

/* Help list */
.lx-help ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }

@media (max-width: 860px) {
	.lx-report-grid, .lx-form-row { grid-template-columns: 1fr; }
	.lx-modal { padding: 22px 18px; }
}

/* Hidden-attribute safety for all toggled elements (theme resets may override) */
.lx-toast[hidden],
.lx-search-results[hidden],
.lx-app [hidden] { display: none !important; }

/* Quick order modal */
.lx-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lx-qo-list {
	max-height: 260px; overflow-y: auto;
	border: 1px solid #EAE4D9; border-radius: 10px; background: #FDFCFA;
}
.lx-qo-row {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 12px; border-bottom: 1px solid #F0EBE2;
}
.lx-qo-row:last-child { border-bottom: 0; }
.lx-qo-row.is-checked { background: #F5EEE1; }
.lx-qo-check { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; cursor: pointer; font-weight: 400 !important; color: #2F2A25 !important; font-size: 13px !important; flex-direction: row !important; }
.lx-qo-cb { width: 16px; height: 16px; accent-color: #B08D57; flex: none; margin: 0; }
.lx-qo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-qo-price { flex: none; font-size: 12px; color: #6E6559; white-space: nowrap; }
.lx-qo-qty { width: 62px !important; flex: none; padding: 6px 8px !important; text-align: center; }
.lx-qo-summary { font-size: 12.5px; color: #6E6559; }
.lx-qo-summary strong { color: #8C6F45; }

/* =========================================================
   Onboarding tour — animated spotlight
   ========================================================= */
.lx-tour-hl {
	position: absolute; z-index: 100001;
	border: 2px solid #B08D57; border-radius: 14px;
	box-shadow: 0 0 0 9999px rgba(31, 27, 22, .55), 0 0 0 6px rgba(176, 141, 87, .25);
	pointer-events: none;
	transition: top .45s cubic-bezier(.4, 0, .2, 1), left .45s cubic-bezier(.4, 0, .2, 1),
	            width .45s cubic-bezier(.4, 0, .2, 1), height .45s cubic-bezier(.4, 0, .2, 1);
	animation: lx-tour-pulse 2s ease-in-out infinite;
}
@keyframes lx-tour-pulse {
	0%, 100% { box-shadow: 0 0 0 9999px rgba(31,27,22,.55), 0 0 0 5px rgba(176,141,87,.22); }
	50%       { box-shadow: 0 0 0 9999px rgba(31,27,22,.55), 0 0 0 10px rgba(176,141,87,.10); }
}
.lx-tour-card {
	position: absolute; z-index: 100002;
	background: #fff; border-radius: 14px;
	padding: 18px 18px 16px;
	box-shadow: 0 20px 50px rgba(31, 27, 22, .35);
	font-family: "Noto Sans Georgian", sans-serif;
	color: #2F2A25; font-size: 13px; line-height: 1.55;
	opacity: 0; transform: translateY(8px);
	transition: top .45s cubic-bezier(.4,0,.2,1), left .45s cubic-bezier(.4,0,.2,1),
	            opacity .3s ease .15s, transform .3s ease .15s;
}
.lx-tour-card.is-in { opacity: 1; transform: translateY(0); }
.lx-tour-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.lx-tour-head strong { font-size: 14.5px; }
.lx-tour-count { font-size: 11px; color: #9A9187; font-weight: 600; flex: none; }
.lx-tour-card p { margin: 0 0 12px; color: #6E6559; }
.lx-tour-dots { display: flex; gap: 5px; margin-bottom: 13px; }
.lx-tour-dot { width: 6px; height: 6px; border-radius: 50%; background: #EAE4D9; transition: background .2s, transform .2s; }
.lx-tour-dot.is-on { background: #B08D57; transform: scale(1.35); }
.lx-tour-nav { display: flex; align-items: center; gap: 8px; }
.lx-tour-spacer { flex: 1; }
.lx-tour-nav .lx-btn.sm { padding: 7px 13px; font-size: 12px; }
body.lx-touring { overflow-x: hidden; }

/* =========================================================
   Hover tooltips (data-lx-tip)
   ========================================================= */
[data-lx-tip] { position: relative; }
[data-lx-tip]::after {
	content: attr(data-lx-tip);
	position: absolute; bottom: calc(100% + 9px); left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: #2F2A25; color: #fff;
	font-family: "Noto Sans Georgian", sans-serif;
	font-size: 11.5px; font-weight: 500; line-height: 1.45;
	padding: 7px 11px; border-radius: 8px;
	width: max-content; max-width: 230px; text-align: center;
	white-space: normal;
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	z-index: 100000;
	box-shadow: 0 8px 22px rgba(47, 42, 37, .28);
}
[data-lx-tip]::before {
	content: "";
	position: absolute; bottom: calc(100% + 3px); left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent; border-top-color: #2F2A25;
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .18s ease;
	z-index: 100000;
}
[data-lx-tip]:hover::after, [data-lx-tip]:focus-visible::after {
	opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
[data-lx-tip]:hover::before, [data-lx-tip]:focus-visible::before {
	opacity: 1; visibility: visible;
}
/* Don't show hover tips while the tour spotlight is running */
body.lx-touring [data-lx-tip]::after, body.lx-touring [data-lx-tip]::before { display: none; }
/* Table row buttons: tooltip could clip at table edge — keep above, table has overflow visible on y by default */
.lx-td-actions [data-lx-tip]::after { max-width: 200px; }

/* Courier account groups + my deliveries list */
.lx-ac-group { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #F9F7F2; border: 1px dashed #E0D8C8; border-radius: 10px; }
.lx-ac-group[hidden] { display: none !important; }
.lx-search-spacer { flex: 1; max-width: 420px; }
.lx-my-deliveries { display: flex; flex-direction: column; gap: 8px; }
.lx-md-item {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 11px 14px; border: 1px solid var(--lx-line); border-radius: 10px;
	background: #FDFCFA; transition: border-color .15s ease, background .15s ease;
}
.lx-md-item:hover { border-color: var(--lx-gold); }
.lx-md-item.is-current { background: var(--lx-gold-soft); border-color: var(--lx-gold); }
.lx-md-item strong { font-size: 13px; }
.lx-md-item > span:first-of-type { color: var(--lx-ink-soft); font-size: 12.5px; flex: 1; min-width: 120px; }

/* Destination picker + Google Maps button */
.lx-dest-search { display: flex; gap: 8px; }
.lx-dest-search input { flex: 1; }
.lx-dest-search .lx-btn { flex: none; padding: 9px 13px; }
.lx-pick-map {
	height: 220px; border-radius: 10px; overflow: hidden;
	border: 1px solid #EAE4D9; background: #F1EEE7;
	cursor: crosshair; position: relative; z-index: 0;
}
.lx-pick-map .leaflet-container { position: absolute; inset: 0; }
.lx-map-wrap { position: relative; }
.lx-gmaps-btn {
	position: absolute; top: 12px; right: 12px; z-index: 500;
	display: inline-flex; align-items: center; gap: 7px;
	background: #fff; color: #2F2A25;
	font-family: var(--lx-font); font-size: 12px; font-weight: 700;
	padding: 9px 14px; border-radius: 999px;
	box-shadow: 0 4px 14px rgba(47, 42, 37, .22);
	border: 1px solid var(--lx-line);
	transition: transform .15s ease, box-shadow .15s ease;
}
.lx-gmaps-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47,42,37,.28); }
.lx-gmaps-btn svg { color: #B08D57; }
@media (max-width: 560px) { .lx-gmaps-btn { font-size: 11px; padding: 8px 12px; } }

/* =========================================================
   Marketing / referral / tracking
   ========================================================= */
.lx-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px; background: var(--lx-gold-soft); color: var(--lx-gold-dark);
	padding: 3px 8px; border-radius: 6px; letter-spacing: .04em;
}
.lx-reflink { display: flex; gap: 8px; align-items: stretch; }
.lx-reflink input {
	flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px;
	padding: 10px 12px; border: 1px solid var(--lx-line); border-radius: 9px;
	background: #FDFCFA; color: var(--lx-ink); min-width: 0;
}
.lx-reflink .lx-btn { flex: none; }
.lx-tracklink-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lx-tracklink-card > div:first-child { flex: 1; min-width: 220px; }
.lx-tracklink-card .lx-reflink { flex: 1.4; min-width: 240px; }
.lx-ct-group { display: flex; flex-direction: column; gap: 12px; }
.lx-ct-group[hidden] { display: none !important; }

/* Public tracking page */
.lx-track { border: none; background: transparent; }
.lx-track-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding: 8px; }
.lx-track-head { display: flex; align-items: center; gap: 14px; padding: 8px 4px; }
.lx-track-head h1 { font-size: 20px; margin-bottom: 4px; }
.lx-track .lx-map { min-height: 300px; }

@media (max-width: 700px) {
	.lx-tracklink-card { flex-direction: column; align-items: stretch; }
	.lx-reflink { flex-direction: column; }
}

/* ---------------- v2.7: analytics + B2B ---------------- */
.lx-an-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.lx-an-quick .lx-btn.is-active { border-color: var(--lx-gold, #B08D57); color: var(--lx-gold, #B08D57); font-weight: 700; }
.lx-an-row { align-items: flex-end; }
.lx-an-row label { flex: 1 1 140px; }
.lx-an-row .lx-btn { align-self: flex-end; }
#lx-analytics-results.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s ease; }
.lx-hist-filter {
	font-family: inherit; font-size: 12.5px; padding: 7px 10px; border-radius: 9px;
	border: 1px solid var(--lx-line-soft, #EAE4D9); background: #fff; color: inherit;
}
.lx-qo-price s { margin-right: 6px; opacity: .7; }
.lx-hist-empty { margin-top: 10px; }

/* ---------------- v2.8: product photos + info popup ---------------- */
.lx-qo-img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid var(--lx-line-soft, #EAE4D9); flex: 0 0 42px; background: #F6F2EA; }
.lx-qo-info { flex: 0 0 auto; }
.lx-pi { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.lx-pi-img { width: 150px; max-width: 42%; border-radius: 10px; border: 1px solid var(--lx-line-soft, #EAE4D9); display: block; }
.lx-pi-price { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.lx-pi-desc { font-size: 13px; line-height: 1.65; color: #5D564C; max-height: 220px; overflow: auto; }
.lx-pi-desc img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------------- v2.9: currency toggle + invoices ---------------- */
.lx-cur-usd .lx-price-gel { display: none !important; }
.lx-cur-gel .lx-price-usd { display: none !important; }
.lx-cur-toggle {
	display: inline-flex; align-items: center; gap: 2px;
	background: #fff; border: 1.5px solid var(--lx-gold, #B08D57);
	border-radius: 30px; padding: 2px; user-select: none;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
}
.lx-copt {
	display: flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%; border: 0;
	background: transparent; font-size: 13px; font-weight: 700;
	color: var(--lx-gold, #B08D57); cursor: pointer; font-family: inherit;
	transition: all .15s ease-in-out;
}
.lx-copt.is-active { background: var(--lx-gold, #B08D57); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.lx-price { white-space: nowrap; }
.lx-pill[class*="st-wc-pending"], .lx-pill[class*="st-wc-on-hold"], .lx-pill[class*="st-wc-failed"] { background: #F7E8DC; color: #A0522D; }
.lx-pill[class*="st-wc-processing"], .lx-pill[class*="st-wc-completed"] { background: #E3F0E6; color: #3F8E5A; }

/* ---------------- v2.9.2: B2B auth screen ---------------- */
.lx-auth { max-width: 440px; }
.lx-auth-tabs { display: flex; gap: 8px; margin: 16px 0 14px; width: 100%; }
.lx-auth-tab {
	flex: 1; padding: 10px 12px; border-radius: 10px;
	border: 1px solid var(--lx-line-soft, #EAE4D9); background: #fff;
	font-family: inherit; font-size: 13.5px; font-weight: 600;
	color: #6E6559; cursor: pointer; transition: all .15s ease;
}
.lx-auth-tab.is-active { border-color: var(--lx-gold, #B08D57); color: var(--lx-gold, #B08D57); background: #FBF7F0; }
.lx-auth .lx-form { width: 100%; text-align: left; }

/* ---------------- v2.10: PWA install button ---------------- */
#lx-pwa-install {
	position: fixed; right: 18px; bottom: 18px; z-index: 9998;
	padding: 11px 16px; border: 0; border-radius: 30px; cursor: pointer;
	background: var(--lx-gold, #B08D57); color: #fff;
	font-family: inherit; font-size: 13.5px; font-weight: 700;
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
	transition: transform .15s ease, box-shadow .15s ease;
}
#lx-pwa-install:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(0,0,0,.22); }
@media (max-width: 640px) { #lx-pwa-install { right: 12px; bottom: 12px; } }

/* ---------------- v2.10.1: center auth screen on desktop ---------------- */
.lx-app:has(> .lx-locked) { display: flex; justify-content: center; width: 100%; }
.lx-locked { margin-left: auto; margin-right: auto; width: 100%; }
.lx-locked.lx-auth { max-width: 460px; margin: 0 auto; }
@media (min-width: 900px) {
	.lx-locked.lx-auth { padding: 90px 24px; min-height: 60vh; justify-content: center; }
}
