/* Dealmania Laptop Finder, in the Electro theme's look (yellow #fed700, dark #333e48, rounded buttons). */
.dmlf {
	--dmlf-yellow: #fed700;
	--dmlf-yellow-dark: #e7c400;
	--dmlf-ink: #333e48;
	--dmlf-muted: #6b7280;
	--dmlf-line: #e6e6e6;
	--dmlf-soft: #f5f5f5;
	--dmlf-sale: #df3737;
	--dmlf-good: #1a7f37;
	color: var(--dmlf-ink);
	font-size: 15px;
	line-height: 1.45;
	margin: 0 0 2rem;
}
.dmlf *, .dmlf *::before, .dmlf *::after { box-sizing: border-box; }
.dmlf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dmlf [hidden] { display: none !important; }
.dmlf-loading { color: var(--dmlf-muted); }
html.dmlf-lock, html.dmlf-lock body { overflow: hidden; }

/* Buttons and links */
.dmlf button { font: inherit; }
.dmlf .dmlf-btn, .dmlf .dmlf-buy, .dmlf .dmlf-show, .dmlf .dmlf-filter-btn {
	display: inline-block; background: var(--dmlf-yellow) !important; color: var(--dmlf-ink); border: 0; border-radius: 1.5rem; box-shadow: none;
	padding: .5rem 1.2rem; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; text-align: center;
	white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.dmlf .dmlf-btn:hover, .dmlf .dmlf-buy:hover, .dmlf .dmlf-show:hover, .dmlf .dmlf-filter-btn:hover,
.dmlf .dmlf-btn:focus-visible, .dmlf .dmlf-buy:focus-visible { background: var(--dmlf-ink) !important; color: #fff; }
.dmlf .dmlf-btn:disabled { background: #5b6670 !important; color: #e6e6e6; cursor: default; }
.dmlf .dmlf-buy { font-size: .85rem; padding: .45rem 1rem; }
.dmlf .dmlf-link { background: none; border: 0; padding: 0; color: var(--dmlf-ink); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.dmlf .dmlf-link:hover { color: #000; }
.dmlf .dmlf-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; padding: 0 .3rem; cursor: pointer; color: var(--dmlf-ink); }
.dmlf :focus-visible { outline: 2px solid var(--dmlf-ink); outline-offset: 2px; }
/* Electro gives every <button> a grey pill; the finder's text buttons stay plain. */
.dmlf .dmlf-link, .dmlf .dmlf-link:hover, .dmlf .dmlf-link:focus,
.dmlf .dmlf-close, .dmlf .dmlf-close:hover, .dmlf .dmlf-close:focus,
.dmlf .dmlf-tray-x, .dmlf .dmlf-tray-x:hover, .dmlf .dmlf-tray-x:focus { background: none !important; box-shadow: none !important; border-radius: 0; min-height: 0; }

/* Top bar */
.dmlf-top { display: flex; flex-direction: column; gap: .75rem; margin: 0 0 1rem; }
.dmlf .dmlf-search {
	width: 100%; border: 2px solid var(--dmlf-yellow); border-radius: 1.5rem; padding: .6rem 1.1rem; font-size: 1rem;
	background: #fff; color: var(--dmlf-ink); margin: 0; height: auto;
}
.dmlf .dmlf-search:focus { outline: none; border-color: var(--dmlf-ink); }
.dmlf-top-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dmlf-count { margin: 0; font-weight: 700; flex: 1 1 auto; }
.dmlf-sort-wrap { white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; color: var(--dmlf-muted); }
.dmlf .dmlf-sort { border: 1px solid var(--dmlf-line); border-radius: 1.5rem; padding: .35rem 2rem .35rem .9rem; background-color: #fff; color: var(--dmlf-ink); font-size: .9rem; height: auto; margin: 0; max-width: 100%; }
.dmlf .dmlf-filter-btn { display: none; }

/* Layout */
.dmlf-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.dmlf-main { min-width: 0; }

/* Sidebar */
.dmlf-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding-right: .25rem; }
.dmlf-side-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-bottom: 2px solid var(--dmlf-yellow); padding-bottom: .5rem; margin-bottom: .5rem; }
.dmlf .dmlf-side-title { font-size: 1.1rem; margin: 0; padding: 0; flex: 1; }
.dmlf-side-head .dmlf-close, .dmlf-side-foot { display: none; }
.dmlf-group { border-bottom: 1px solid var(--dmlf-line); padding: .55rem 0; margin: 0; }
.dmlf-group > summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .1rem 0; }
.dmlf-group > summary::-webkit-details-marker { display: none; }
.dmlf-group > summary::after { content: '+'; font-weight: 400; font-size: 1.1rem; color: var(--dmlf-muted); }
.dmlf-group[open] > summary::after { content: '–'; }
.dmlf .dmlf-opts { list-style: none; margin: .35rem 0 0; padding: 0; }
.dmlf .dmlf-opts li { margin: 0; padding: 0; }
.dmlf-opts label { display: flex; align-items: center; gap: .5rem; padding: .18rem 0; cursor: pointer; font-size: .9rem; margin: 0; font-weight: 400; }
.dmlf-opts input { accent-color: var(--dmlf-ink); width: 16px; height: 16px; margin: 0; flex: none; }
.dmlf-opt-text { flex: 1; }
.dmlf-cnt { color: var(--dmlf-muted); font-size: .8rem; }
.dmlf-opts li.is-zero label { color: #a8adb4; cursor: default; }
.dmlf-more { margin: .3rem 0 0 1.5rem; }
.dmlf-price { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; font-size: .9rem; }
.dmlf .dmlf-num { width: 100%; min-width: 0; border: 1px solid var(--dmlf-line); border-radius: .5rem; padding: .35rem .5rem; font-size: .9rem; margin: 0; height: auto; background: #fff; }
.dmlf-hint { font-size: .78rem; color: var(--dmlf-muted); margin: .35rem 0 0; }
.dmlf-slider { margin: .5rem 0 .25rem; font-size: .88rem; }
.dmlf-slider-top { display: flex; justify-content: space-between; }
.dmlf-out { font-weight: 700; }
.dmlf .dmlf-range { width: 100%; accent-color: var(--dmlf-ink); margin: .2rem 0 0; padding: 0; border: 0; }

/* Active filter chips */
.dmlf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .9rem; }
.dmlf .dmlf-chip { background: #fff6c2; border: 1px solid var(--dmlf-yellow-dark); color: var(--dmlf-ink); border-radius: 1rem; padding: .2rem .7rem; font-size: .82rem; cursor: pointer; }
.dmlf .dmlf-chip:hover { background: var(--dmlf-yellow); }

/* Results table */
.dmlf-table-wrap { overflow-x: auto; }
.dmlf .dmlf-table { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-size: .9rem; }
.dmlf .dmlf-table th, .dmlf .dmlf-table td { border: 0; border-bottom: 1px solid var(--dmlf-line); padding: .7rem .4rem; vertical-align: middle; text-align: left; background: none; }
.dmlf .dmlf-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--dmlf-muted); font-weight: 700; border-bottom: 2px solid var(--dmlf-ink); white-space: nowrap; padding-top: .3rem; padding-bottom: .5rem; }
.dmlf .dmlf-table .dmlf-th-btn { background: none !important; box-shadow: none !important; border: 0; border-radius: 0; padding: 0; margin: 0; min-height: 0; line-height: inherit; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.dmlf .dmlf-table .dmlf-th-btn:hover, .dmlf .dmlf-table .dmlf-th-btn.is-sorted { color: var(--dmlf-ink); background: none !important; }
.dmlf-th-sub { display: block; font-weight: 400; font-size: .68rem; }
.dmlf-arrow { font-size: .7rem; }
.dmlf .dmlf-table tbody tr:hover { background: #fffbe0; }
.dmlf .dmlf-table tbody tr.is-picked { background: #fff6c2; }
.dmlf-c-cmp { width: 34px; }
.dmlf-cmp-label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; cursor: pointer; }
.dmlf-cmp { width: 18px; height: 18px; accent-color: var(--dmlf-ink); margin: 0; }
.dmlf-cmp-text { display: none; font-size: .85rem; }
.dmlf .dmlf-c-img { width: 76px; min-width: 76px; }
.dmlf-c-img a { display: block; }
.dmlf .dmlf-c-img img { width: 68px; height: 68px; max-width: none; object-fit: contain; mix-blend-mode: multiply; display: block; }
.dmlf-c-name { min-width: 165px; }
.dmlf .dmlf-name { display: block; font-weight: 700; color: var(--dmlf-ink); text-decoration: none; line-height: 1.3; }
.dmlf .dmlf-name:hover { text-decoration: underline; }
.dmlf-brand { display: block; color: var(--dmlf-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .15rem; }
.dmlf-spec { display: block; font-size: .82rem; margin-top: .2rem; }
.dmlf-uses { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.dmlf-use { background: var(--dmlf-soft); border-radius: 1rem; padding: .05rem .55rem; font-size: .72rem; font-weight: 600; }
.dmlf-c-best { width: 100px; min-width: 92px; }
.dmlf .dmlf-best-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.dmlf .dmlf-best-list li { margin: 0; }
.dmlf-tag { display: inline-block; border-radius: 1rem; padding: .08rem .55rem; font-size: .72rem; font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--dmlf-soft); color: var(--dmlf-ink); }
.dmlf-tag-gaming { background: #fde2e2; color: #9b1c1c; }
.dmlf-tag-students { background: #e0ecff; color: #1e40af; }
.dmlf-tag-business { background: #e5e7eb; color: #333e48; }
.dmlf-tag-editing { background: #f3e8ff; color: #6b21a8; }
.dmlf-tag-low-budget { background: #dcfce7; color: #166534; }
.dmlf-tag-2-in-1 { background: #fff6c2; color: #6b5400; }
.dmlf-tag-portable { background: #e0f2fe; color: #075985; }
.dmlf-tag-drawing-notes { background: #fce7f3; color: #9d174d; }
.dmlf-tag-movies-streaming { background: #ede9fe; color: #5b21b6; }
.dmlf-tag-kids { background: #ffedd5; color: #9a3412; }
.dmlf-tag-compact, .dmlf-tag-mini-pc { background: #e0f2fe; color: #075985; }
.dmlf-tag-all-in-one { background: #e5e7eb; color: #333e48; }
/* No graphics column (tablets): processor and price share the space; mobile cards put the processor on its own row. */
.dmlf-nogpu .dmlf-c-cpu { max-width: none; }
.dmlf-c-cpu, .dmlf-c-gpu { min-width: 104px; max-width: 150px; font-size: .84rem; }
.dmlf-chipname { display: block; margin-bottom: .3rem; line-height: 1.3; }
.dmlf-score { display: inline-flex; flex-direction: column; gap: .2rem; min-width: 56px; }
.dmlf-score b { font-size: 1rem; }
.dmlf-bar { display: block; height: 6px; border-radius: 3px; background: var(--dmlf-soft); overflow: hidden; width: 60px; }
.dmlf-bar-fill { display: block; height: 100%; background: var(--dmlf-yellow-dark); }
.dmlf-dash { color: var(--dmlf-muted); }
.dmlf-c-price { white-space: nowrap; width: 124px; }
.dmlf-c-price .dmlf-buy { margin-top: .45rem; }
.dmlf-price-cell { display: flex; flex-direction: column; }
.dmlf-now { font-weight: 700; font-size: 1rem; }
.dmlf-was { color: var(--dmlf-muted); font-size: .78rem; }
.dmlf-see { color: var(--dmlf-muted); font-size: .85rem; }
.dmlf-empty { text-align: center; padding: 2rem 1rem; background: var(--dmlf-soft); border-radius: 10px; }
.dmlf-note { font-size: .78rem; color: var(--dmlf-muted); margin: 1rem 0 0; }

/* Compare tray */
.dmlf-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: var(--dmlf-ink); color: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .15); }
.dmlf-tray-inner { max-width: 1200px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; }
.dmlf .dmlf-tray-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; flex: 1; min-width: 0; }
.dmlf-tray-list li { display: inline-flex; align-items: center; gap: .2rem; background: rgba(255, 255, 255, .12); border-radius: 1rem; padding: .15rem .3rem .15rem .7rem; font-size: .82rem; max-width: 240px; margin: 0; }
.dmlf-tray-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmlf .dmlf-tray-x { background: none; border: 0; color: #fff; font-size: 1.1rem; line-height: 1; padding: 0 .3rem; cursor: pointer; }
.dmlf-tray-actions { display: flex; align-items: center; gap: .9rem; flex: none; }
.dmlf .dmlf-tray .dmlf-link, .dmlf .dmlf-tray .dmlf-link:hover, .dmlf .dmlf-tray .dmlf-tray-x { color: #fff !important; }
.dmlf.has-tray { padding-bottom: 4.5rem; }

/* Compare dialog */
.dmlf-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(20, 26, 32, .55); display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; overflow-y: auto; }
.dmlf-modal-box { background: #fff; border-radius: 12px; width: 100%; max-width: 1100px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.dmlf-modal-head { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 2px solid var(--dmlf-yellow); }
.dmlf .dmlf-modal-head h2 { margin: 0; font-size: 1.25rem; flex: 1; padding: 0; }
.dmlf-diff { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; margin: 0; cursor: pointer; }
.dmlf-diff input { accent-color: var(--dmlf-ink); }
.dmlf-cmp-body { padding: .5rem 1.2rem 1.2rem; }
.dmlf-cmp-scroll { overflow-x: auto; }
.dmlf .dmlf-cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0; border: 0; table-layout: fixed; min-width: 520px; }
.dmlf .dmlf-cmp-table th, .dmlf .dmlf-cmp-table td { border: 0; border-bottom: 1px solid var(--dmlf-line); padding: .55rem .6rem; text-align: left; vertical-align: top; background: none; }
.dmlf .dmlf-cmp-table thead th { vertical-align: bottom; border-bottom: 2px solid var(--dmlf-ink); }
.dmlf .dmlf-cmp-table thead img { display: block; width: 110px; height: 110px; object-fit: contain; margin: 0 0 .4rem; mix-blend-mode: multiply; }
.dmlf .dmlf-cmp-table thead .dmlf-name { margin-bottom: .3rem; font-size: .92rem; }
.dmlf .dmlf-cmp-table tbody th { width: 130px; color: var(--dmlf-muted); font-weight: 600; font-size: .82rem; }
.dmlf-cmp-corner { width: 130px; }
.dmlf .dmlf-cmp-table td.is-best { background: #effaf1; }
.dmlf-best { display: inline-block; margin-left: .4rem; font-size: .7rem; font-weight: 700; color: var(--dmlf-good); text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.dmlf-cmp-table .dmlf-score { flex-direction: row; align-items: center; gap: .5rem; }

/* Tablets and phones: filters slide in from the left, and each laptop becomes a card. */
@media (max-width: 1199px) {
	.dmlf-body { grid-template-columns: minmax(0, 1fr); }
	.dmlf .dmlf-filter-btn { display: inline-block; }
	.dmlf-side {
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 9995; width: min(340px, 88vw); max-height: none;
		background: #fff; padding: 1rem 1rem 0; transform: translateX(-105%); transition: transform .2s ease;
		box-shadow: 4px 0 24px rgba(0, 0, 0, .2); display: flex; flex-direction: column; visibility: hidden;
	}
	.dmlf.is-drawer .dmlf-side { transform: none; visibility: visible; }
	.dmlf-side-head .dmlf-close { display: block; }
	.dmlf-side-foot { display: block; position: sticky; bottom: 0; background: #fff; padding: .75rem 0 1rem; margin-top: auto; border-top: 1px solid var(--dmlf-line); }
	.dmlf .dmlf-show { width: 100%; }
	.dmlf-shade { display: none; }
	.dmlf.is-drawer .dmlf-shade { display: block; position: fixed; inset: 0; z-index: 9994; background: rgba(20, 26, 32, .45); }
}
@media (max-width: 991px) {
	.dmlf-top-row { gap: .6rem; }
	.dmlf-count { order: 3; flex-basis: 100%; }
	.dmlf-sort-wrap > span { display: none; }
	.dmlf .dmlf-table, .dmlf .dmlf-table tbody { display: block; }
	.dmlf .dmlf-table thead { display: none; }
	.dmlf .dmlf-table tbody tr {
		display: grid; grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr); gap: .35rem .75rem;
		grid-template-areas: "img name name" "img best best" "img cpu gpu" "cmp price price";
		border: 1px solid var(--dmlf-line); border-radius: 10px; padding: .8rem; margin: 0 0 .75rem; background: #fff;
	}
	.dmlf.dmlf-nogpu .dmlf-table tbody tr { grid-template-areas: "img name name" "img best best" "img cpu cpu" "cmp price price"; }
	.dmlf .dmlf-table tbody tr:hover { background: #fff; }
	.dmlf .dmlf-table tbody tr.is-picked { background: #fffbe0; border-color: var(--dmlf-yellow-dark); }
	.dmlf .dmlf-table td { display: block; border: 0; padding: 0; width: auto; min-width: 0; }
	.dmlf .dmlf-c-img { grid-area: img; }
	.dmlf-c-name { grid-area: name; }
	.dmlf-c-cpu { grid-area: cpu; }
	.dmlf-c-gpu { grid-area: gpu; }
	.dmlf .dmlf-c-best { grid-area: best; }
	.dmlf .dmlf-c-cmp { grid-area: cmp; align-self: center; }
	.dmlf .dmlf-c-price { grid-area: price; display: flex; align-items: center; justify-content: flex-end; gap: .75rem; white-space: normal; }
	.dmlf-c-price .dmlf-price-cell { text-align: right; }
	.dmlf .dmlf-c-price .dmlf-buy { margin-top: 0; width: auto; flex: 0 1 auto; }
	.dmlf .dmlf-c-img, .dmlf .dmlf-c-img img { width: 80px; min-width: 0; }
	.dmlf .dmlf-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--dmlf-muted); }
	.dmlf-cmp-text { display: inline; }
	.dmlf .dmlf-buy { padding: .5rem .9rem; white-space: normal; }
	.dmlf-tray-inner { flex-direction: column; align-items: stretch; gap: .5rem; padding: .6rem .75rem; }
	.dmlf-tray-list li { max-width: 46vw; }
	.dmlf-tray-actions { justify-content: space-between; }
	.dmlf.has-tray { padding-bottom: 7rem; }
	.dmlf-modal { padding: 0; }
	.dmlf-modal-box { border-radius: 0; min-height: 100%; }
	.dmlf-modal-head { flex-wrap: wrap; position: sticky; top: 0; background: #fff; z-index: 1; }
	.dmlf-cmp-body { padding: .5rem .5rem 1rem; }
	.dmlf .dmlf-cmp-table { min-width: 0; table-layout: auto; font-size: .84rem; }
	.dmlf .dmlf-cmp-table tbody th { width: 84px; }
	.dmlf .dmlf-cmp-table tbody th, .dmlf .dmlf-cmp-table .dmlf-cmp-corner { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--dmlf-line); }
	.dmlf .dmlf-cmp-table thead img { width: 72px; height: 72px; }
}
