/* LUXMED: CENNIK - style tabeli. Zmienne można nadpisać w motywie. */
.lmc-wrap {
	--lmc-blue: #005ca9;
	--lmc-text: #1b1b1b;
	--lmc-muted: #6b7280;
	--lmc-border: #c9ced6;
	--lmc-row-hover: #f3f7fb;
	--lmc-radius: 12px;
	color: var(--lmc-text);
	font-size: 15px;
	line-height: 1.4;
	position: relative;
}
.lmc-wrap *,
.lmc-wrap *::before,
.lmc-wrap *::after { box-sizing: border-box; }

.lmc-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;
}

/* ---------- toolbar ---------- */
.lmc-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
	align-items: flex-start;
}
.lmc-search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 1 320px;
	min-width: 220px;
	height: 54px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--lmc-border);
	border-radius: 8px;
	margin: 0;
}
.lmc-search:focus-within { border-color: var(--lmc-blue); box-shadow: 0 0 0 2px rgba(0, 92, 169, .18); }
.lmc-search__icon { flex: none; color: var(--lmc-text); }
.lmc-wrap .lmc-search__input {
	flex: 1;
	min-width: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0;
	font: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
}

/* ---------- lista grup ---------- */
.lmc-select { position: relative; flex: 0 0 auto; }
.lmc-select__btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-width: 220px;
	max-width: 100%;
	height: 54px;
	padding: 0 16px;
	background: #fff;
	color: var(--lmc-text);
	font: inherit;
	font-size: 14px;
	border: 1px solid var(--lmc-border);
	border-radius: var(--lmc-radius);
	cursor: pointer;
	text-align: left;
}
.lmc-select__btn:hover,
.lmc-select.is-open .lmc-select__btn { border-color: var(--lmc-blue); }
.lmc-select__btn:focus-visible { outline: 2px solid var(--lmc-blue); outline-offset: 2px; }
.lmc-select.has-value .lmc-select__btn { border-color: var(--lmc-blue); }
.lmc-chevron { flex: none; color: var(--lmc-muted); transition: transform .15s; }
.lmc-select.is-open .lmc-chevron { transform: rotate(180deg); }

.lmc-select__panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	width: max(100%, 280px);
	padding: 12px;
	background: #fff;
	border: 1px solid var(--lmc-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.lmc-select__panel[hidden] { display: none; }
.lmc-wrap .lmc-select__search {
	display: block;
	width: 100%;
	height: 40px;
	margin: 0 0 8px;
	padding: 0 10px;
	font: inherit;
	font-size: 14px;
	border: 1px solid var(--lmc-border);
	border-radius: 6px;
	box-shadow: none;
}
.lmc-wrap .lmc-select__search:focus { outline: 0; border-color: var(--lmc-blue); box-shadow: 0 0 0 2px rgba(0, 92, 169, .18); }
.lmc-select__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 280px;
	overflow-y: auto;
}
.lmc-select__list li {
	margin: 0;
	padding: 10px 12px;
	font-size: 14px;
	color: #4b5563;
	border-radius: 6px;
	cursor: pointer;
}
.lmc-select__list li:hover,
.lmc-select__list li:focus { background: var(--lmc-row-hover); color: var(--lmc-text); outline: 0; }
.lmc-select__list li.is-selected { color: var(--lmc-blue); font-weight: 600; }
.lmc-select__list li.lmc-select__none { cursor: default; color: var(--lmc-muted); }

/* ---------- tabela ---------- */
.lmc-table-wrap { transition: opacity .15s; }
.lmc-wrap.is-loading .lmc-table-wrap { opacity: .5; pointer-events: none; }

.lmc-table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: auto;
}
.lmc-table thead th {
	padding: 0;
	background: var(--lmc-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
	border: 0;
}
.lmc-table thead th:first-child { border-radius: 6px 0 0 6px; }
.lmc-table thead th:last-child { border-radius: 0 6px 6px 0; }
.lmc-sort {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	padding: 10px 6px;
	margin: 0;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
.lmc-col-price .lmc-sort { text-align: right; }
.lmc-sort:hover { background: rgba(255, 255, 255, .12); }
.lmc-sort:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.lmc-sort__icon {
	flex: none;
	width: 10px; height: 10px;
	opacity: .55;
	background:
		linear-gradient(currentColor, currentColor) 0 1px / 10px 2px no-repeat,
		linear-gradient(currentColor, currentColor) 0 4px / 7px 2px no-repeat,
		linear-gradient(currentColor, currentColor) 0 7px / 4px 2px no-repeat;
}
th[aria-sort="ascending"] .lmc-sort__icon,
th[aria-sort="descending"] .lmc-sort__icon { opacity: 1; }
th[aria-sort="descending"] .lmc-sort__icon { transform: scaleY(-1); }

.lmc-table tbody td {
	padding: 13px 6px;
	font-size: 14px;
	vertical-align: top;
	border: 0;
	background: transparent;
}
.lmc-table tbody tr:hover td { background: var(--lmc-row-hover); }
.lmc-table tbody tr:last-child td { border-bottom: 1px solid var(--lmc-border); }
.lmc-col-group { width: 22%; padding-right: 16px !important; }
.lmc-col-price { width: 18%; text-align: right !important; white-space: nowrap; }
.lmc-table tbody td.lmc-col-price { white-space: normal; }
.lmc-empty td { padding: 28px 6px !important; text-align: center; color: var(--lmc-muted); }

/* ---------- stopka ---------- */
.lmc-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
	color: var(--lmc-muted);
	font-size: 14px;
}
.lmc-perpage { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.lmc-wrap .lmc-perpage__select {
	width: auto;
	height: 40px;
	margin: 0;
	padding: 0 32px 0 12px;
	font: inherit;
	color: var(--lmc-text);
	background-color: #fff;
	border: 1px solid var(--lmc-border);
	border-radius: 10px;
}
.lmc-status { flex: 1; text-align: center; }
.lmc-pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lmc-page {
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--lmc-text);
	font: inherit;
	cursor: pointer;
}
.lmc-page:hover:not(:disabled) { background: var(--lmc-row-hover); }
.lmc-page.is-current { background: #eceef1; font-weight: 700; cursor: default; }
.lmc-page:disabled { opacity: .35; cursor: default; }
.lmc-page:focus-visible { outline: 2px solid var(--lmc-blue); outline-offset: 1px; }
.lmc-page-gap { padding: 0 4px; }

/* ---------- telefony: wiersze jako karty ---------- */
@media (max-width: 640px) {
	.lmc-search,
	.lmc-select,
	.lmc-select__btn { flex: 1 1 100%; width: 100%; }
	.lmc-table thead { display: none; }
	.lmc-table, .lmc-table tbody, .lmc-table tr, .lmc-table td { display: block; width: 100%; }
	.lmc-table tbody tr { padding: 12px 0; border-bottom: 1px solid var(--lmc-border); }
	.lmc-table tbody td { padding: 3px 0; }
	.lmc-table tbody tr:last-child td { border-bottom: 0; }
	.lmc-table tbody tr:hover td { background: transparent; }
	.lmc-col-group, .lmc-col-price { width: 100%; padding-right: 0 !important; text-align: left !important; }
	.lmc-col-group { font-size: 12px !important; color: var(--lmc-muted); }
	.lmc-col-name { font-weight: 600; }
	.lmc-col-price { color: var(--lmc-blue); font-weight: 700; }
	.lmc-empty td { text-align: left; }
	.lmc-footer { justify-content: center; text-align: center; }
	.lmc-status { flex-basis: 100%; order: 3; }
}

/* ---------- podstrona pozycji ---------- */
.lmc-item { max-width: 760px; margin: 40px auto; padding: 0 16px; line-height: 1.5; }
.lmc-item__group { margin: 0 0 6px; color: #6b7280; font-size: 14px; }
.lmc-item__name { margin: 0 0 18px; }
.lmc-item__price { font-size: 20px; margin: 0 0 24px; }
.lmc-item__price strong { color: #005ca9; }
.lmc-item__back { color: #005ca9; text-decoration: none; font-weight: 600; }
.lmc-item__back:hover { text-decoration: underline; }
