/* AW Lipodbor — поиск аккумулятора по размерам. Всё внутри .awl, чтобы не задеть тему. */
.awl {
	--awl-accent: #1976d2;
	--awl-line: rgba(0, 0, 0, .14);
	--awl-soft: rgba(0, 0, 0, .04);
	--awl-mute: rgba(0, 0, 0, .58);
	--awl-warn: #b26a00;
	--awl-bad: #c62828;
	max-width: 1040px;
	margin: 24px auto;
	padding: 0 16px;
	font-size: 16px;
	line-height: 1.45;
}
/* задаём явно, а не через inherit: содержимое <details> наследует от внутреннего слота браузера, а не от .awl */
.awl, .awl *, .awl *::before, .awl *::after { box-sizing: border-box; }

.awl-form { display: grid; gap: 14px; margin: 0 0 18px; }
.awl label { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0; }
.awl input[type="text"], .awl input[type="number"] {
	width: 100%;
	margin: 4px 0 0;
	padding: 9px 11px;
	font: inherit;
	font-weight: 400;
	color: inherit;
	background: #fff;
	border: 1px solid var(--awl-line);
	border-radius: 6px;
	min-height: 42px;
}
.awl input:focus-visible, .awl button:focus-visible, .awl summary:focus-visible { outline: 2px solid var(--awl-accent); outline-offset: 2px; }

.awl-q-row { display: flex; gap: 8px; align-items: flex-end; }
.awl-q-row input { flex: 1 1 auto; min-width: 0; }
.awl-btn {
	flex: 0 0 auto;
	min-height: 42px;
	padding: 9px 18px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--awl-accent);
	border: 1px solid var(--awl-accent);
	border-radius: 6px;
	cursor: pointer;
}
.awl-btn:hover { filter: brightness(.93); }
.awl-btn-ghost { color: var(--awl-accent); background: transparent; }
.awl-btn-ghost:hover { background: var(--awl-soft); filter: none; }
.awl [hidden] { display: none !important; }

.awl-msg { min-height: 0; margin: 6px 0 0; font-size: 14px; color: var(--awl-mute); }
.awl-msg:empty { display: none; }
.awl-link { padding: 0; font: inherit; color: var(--awl-accent); background: none; border: 0; text-decoration: underline; cursor: pointer; }

.awl-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.awl-tol { border: 1px solid var(--awl-line); border-radius: 6px; padding: 9px 12px; }
.awl-tol summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.awl-tol summary span { font-weight: 400; color: var(--awl-mute); }
.awl-tol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 12px; }
.awl-tol-grid label { font-weight: 400; }
.awl-check { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 8px; }
.awl-check input { width: 18px; height: 18px; margin: 0; }

.awl-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.awl-seg button {
	min-height: 36px;
	padding: 6px 14px;
	font: inherit;
	font-size: 14px;
	color: inherit;
	background: transparent;
	border: 1px solid var(--awl-line);
	border-radius: 999px;
	cursor: pointer;
}
.awl-seg button[aria-pressed="true"] { color: #fff; background: var(--awl-accent); border-color: var(--awl-accent); }

.awl-summary { margin: 0 0 10px; font-size: 15px; }

.awl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.awl-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.awl-table th, .awl-table td { padding: 8px 10px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--awl-line); background: none; }
.awl-table thead th { padding: 0; font-size: 13px; white-space: nowrap; background: var(--awl-soft); border-bottom: 1px solid var(--awl-line); }
.awl-table thead button {
	display: block;
	width: 100%;
	padding: 9px 10px;
	font: inherit;
	font-weight: 600;
	color: inherit;
	text-align: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}
.awl-table thead th[aria-sort="ascending"] button::after { content: " ↑"; }
.awl-table thead th[aria-sort="descending"] button::after { content: " ↓"; }
.awl-table .awl-num { text-align: right; white-space: nowrap; }
.awl-table tbody tr:hover { background: var(--awl-soft); }
.awl-table a { color: var(--awl-accent); }
.awl-name { min-width: 180px; overflow-wrap: anywhere; }
.awl-col-gap { white-space: nowrap; }

.awl-tag { display: inline-block; padding: 1px 7px; font-size: 12px; line-height: 1.5; white-space: nowrap; color: var(--awl-accent); border: 1px solid currentColor; border-radius: 999px; vertical-align: 1px; }
.awl-tag-rot { color: var(--awl-mute); }
.awl-sub { margin-top: 3px; font-size: 13px; color: var(--awl-mute); }
.awl-gap-inline { display: none; color: inherit; }
.awl-plus { color: var(--awl-warn); font-weight: 600; }
.awl-out { color: var(--awl-bad); font-weight: 600; }

.awl-more { display: block; margin: 14px auto 0; }
.awl-foot { margin: 16px 0 0; font-size: 13px; color: var(--awl-mute); }

@media (max-width: 640px) {
	.awl { padding: 0 12px; }
	.awl-q-row { flex-wrap: wrap; }
	.awl-q-row input { flex-basis: 100%; }
	.awl-q-row .awl-btn { flex: 1 1 0; }
	.awl-tol-grid { grid-template-columns: 1fr; }
	.awl-table { font-size: 14px; }
	.awl-table th, .awl-table td { padding: 7px 6px; }
	.awl-table thead button { padding: 8px 6px; }
	.awl-name { min-width: 130px; }
	.awl-col-k, .awl-col-gap { display: none; }      /* на телефоне зазор показывается под названием */
	.awl-gap-inline { display: block; }
}
