/* Dealigg mobile theme (2026 redesign). Loaded instead of main.css. Plain CSS, no external fonts. */

:root {
	--bg: #f7f7f7; --bar: #fff; --text: #333; --link: #105CB3; --orange: #ff9900; --deep: #FF7F00;
	--peach: #fff3e8; --muted: #6f6f6f; --faint: #999; --line: #e6e6e6; --ship: #339900; --red: #CC0000;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, "Helvetica Neue", arial, sans-serif; }
a { color: var(--link); text-decoration: none; }
img { max-width: 100%; border: 0; }
h1, h2, h3 { margin: 0; }
button { font: inherit; }
.m-hide { display: none !important; }

/* ---------- header ---------- */
.m-disclosure { background: var(--bar); color: #333; font-size: 11px; line-height: 1.3; text-align: center; padding: 4px 10px; border-bottom: 1px solid #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-head { position: sticky; top: 0; z-index: 50; background: var(--bar); box-shadow: 0 1px 0 var(--line); }
.m-topbar { display: flex; align-items: center; height: 58px; padding: 0 6px 0 12px; }
.m-logo { display: block; margin-right: auto; }
.m-logo img { display: block; width: 116px; height: 50px; object-fit: contain; }
.m-iconbtn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: #444; cursor: pointer; border-radius: 8px; }
.m-iconbtn:active { background: #f2f2f2; }
.m-iconbtn svg { width: 22px; height: 22px; }
.m-search { display: none; padding: 0 12px 10px; gap: 8px; }
.m-search.is-open { display: flex; }
.m-search input { flex: 1; min-width: 0; height: 38px; padding: 0 14px; font-size: 16px; border: 1px solid #d6d6d6; border-radius: 999px; background: #fff; color: #222; outline: none; -webkit-appearance: none; }
.m-search input:focus { border-color: var(--orange); }
.m-search button { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; }
/* tabs look like the desktop site's: grey tabs, the current one filled peach (colors from tab_left/right.gif) */
.m-tabs { display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 10px 0; border-bottom: 1px solid #CAC8C6; background: #fff; }
.m-tabs::-webkit-scrollbar, .m-chips::-webkit-scrollbar, .m-strip::-webkit-scrollbar { display: none; }
.m-tabs a { flex: 0 0 auto; margin-bottom: -1px; padding: 8px 12px 7px; font-size: 14px; font-weight: 600; color: #333; white-space: nowrap;
	background: linear-gradient(#f4f2f0, #e8e6e5); border: 1px solid #d8d6d5; border-bottom-color: #CAC8C6; border-radius: 6px 6px 0 0; }
.m-tabs a.is-current { color: #000; font-weight: 700; background: linear-gradient(#fae1b9, #fadbab); border-color: #CAC8C6; border-bottom-color: #fadbab; }

/* category chips */
.m-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 14px 4px; }
.m-chips a { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: #f1f4f9; color: var(--link); font-size: 13px; white-space: nowrap; border: 1px solid transparent; }
.m-chips a.is-current { background: var(--peach); border-color: var(--orange); color: #7a3d00; }

/* ---------- menu panel ---------- */
.m-menu { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; background: #fff; overflow-y: auto; display: none; }
.m-menu.is-open { display: block; }
.m-menu-head { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 6px 0 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; }
.m-menu ul { list-style: none; margin: 0; padding: 0; }
.m-menu li a { display: block; padding: 13px 16px; color: #222; font-size: 15px; border-left: 4px solid transparent; border-bottom: 1px solid #f2f2f2; }
.m-menu li a.is-current { border-left-color: var(--orange); background: #fffaf3; font-weight: 600; }
.m-menu-group { padding: 16px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--faint); }
.m-menu .m-menu-more a { color: var(--link); }
.m-menu-foot { padding: 16px; font-size: 13px; line-height: 2.1; }
.m-menu-foot a { color: var(--muted); margin-right: 14px; white-space: nowrap; }
body.m-menu-open { overflow: hidden; }

/* ---------- page layout ---------- */
.m-main { padding: 0 0 24px; }
.m-section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 14px 8px; }
.m-section-head h2 { font-size: 17px; font-weight: 700; color: #111; }
.m-section-head a { font-size: 13px; font-weight: 600; }
.m-banner { margin: 10px 14px; text-align: center; overflow: hidden; }
.m-banner img { height: auto; }
.m-empty { padding: 30px 14px; text-align: center; color: var(--muted); }

/* ---------- deal grid + card ---------- */
.m-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 4px 14px; }
.m-grid > .m-banner, .m-grid > .m-full { grid-column: 1 / -1; margin: 0; }
.dc { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.dc-link { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; border-radius: 10px; }
.dc-img { position: relative; height: 0; padding-bottom: 100%; background: #fafafa; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.dc-img img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.dc-title { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--link); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dc-title a { color: inherit; }
.dc-price { margin-top: 5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.dc-now { font-size: 18px; font-weight: 700; color: #111; }
.dc-was { font-size: 12px; color: #8a8a8a; text-decoration: line-through; }
.dc-note { font-size: 11px; color: var(--muted); }
.is-dead .dc-now { color: var(--red); text-decoration: line-through; }
.tag-exp, .tag-ship { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 1px 5px; border-radius: 3px; vertical-align: middle; }
.tag-exp { color: var(--red); border: 1px solid var(--red); }
.tag-ship { color: var(--ship); border: 1px solid var(--ship); }
.dc-meta { margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-meta a { color: var(--muted); position: relative; z-index: 2; }
.dc-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dc > .dc-title, .dc > .dc-price { flex: 0 0 auto; }
.dc-meta { margin-bottom: 8px; }

/* vote block (wired to menealo) */
.vb { position: relative; z-index: 2; display: inline-flex; align-items: stretch; height: 28px; border: 1px solid var(--orange); border-radius: 6px; overflow: hidden; font-size: 12px; }
.vb-n { display: flex; align-items: center; justify-content: center; min-width: 30px; padding: 0 6px; background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; }
.vb-l { display: flex; align-items: center; background: var(--peach); }
.vb-l a, .vb-l span { display: flex; align-items: center; height: 100%; padding: 0 8px; color: var(--deep); font-weight: 600; }
.btn-get { position: relative; z-index: 2; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; background: var(--peach); border: 1px solid var(--orange); border-radius: 6px; color: #7a3d00 !important; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ---------- top deals strip ---------- */
.m-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 14px 8px; }
.m-strip > .dc { flex: 0 0 232px; scroll-snap-align: start; }
.dc-big .dc-by { font-size: 12px; color: var(--muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-big .dc-title { font-size: 15px; }
.dc-big .dc-now { font-size: 20px; }

/* ---------- infinite scroll ---------- */
.m-pager { padding: 12px 14px; text-align: center; }
html.js .m-pager { display: none; }
.pages a, .pages span { display: inline-block; margin: 2px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--link); }
.pages span.current { background: var(--orange); border-color: var(--orange); color: #fff; }
.m-more { padding: 18px 14px 6px; text-align: center; color: var(--muted); font-size: 13px; }
.m-spin { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border: 2px solid #ddd; border-top-color: var(--orange); border-radius: 50%; animation: mspin .8s linear infinite; }
@keyframes mspin { to { transform: rotate(360deg); } }
.m-more button { padding: 9px 18px; border: 1px solid var(--orange); border-radius: 999px; background: #fff; color: #7a3d00; font-weight: 700; }
.m-totop { position: fixed; right: 14px; bottom: 18px; z-index: 40; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); color: #444; display: none; align-items: center; justify-content: center; }
.m-totop.is-on { display: flex; }
.m-totop svg { width: 20px; height: 20px; }

/* ---------- detail page ---------- */
.m-crumb { padding: 10px 14px 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-crumb a { color: var(--muted); }
.m-hero { margin: 10px 14px 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.m-hero .dc-img { padding-bottom: 75%; }
.m-hero h1 { margin-top: 12px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--link); overflow-wrap: anywhere; }
.m-hero h1 a { color: inherit; }
.m-hero .dc-price { margin-top: 8px; }
.m-hero .dc-now { font-size: 26px; }
.m-hero .dc-was { font-size: 14px; }
.m-hero .dc-meta { white-space: normal; margin-bottom: 0; }
.btn-cta { display: block; margin-top: 14px; padding: 13px 10px 10px; background: var(--orange); border-radius: 10px; color: #fff !important; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.2; }
.btn-cta small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; opacity: .9; }
.m-hero-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.btn-ghost { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #444; font-size: 12px; font-weight: 600; }
.m-card { margin: 12px 14px 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.m-card h2 { font-size: 16px; margin-bottom: 8px; color: #111; }
.m-card ul { margin: 0 0 8px; padding-left: 18px; }
.m-card li { margin: 4px 0; }
.m-card img { height: auto; }
.m-card table { max-width: 100%; }
.m-code { margin: 10px 0; padding: 10px 12px; background: var(--peach); border: 1px dashed var(--orange); border-radius: 8px; color: #7a3d00; }
.m-ship { color: var(--ship); }
.m-history div { padding: 6px 0; border-top: 1px solid #f2f2f2; font-size: 13px; }
.m-history div:first-child { border-top: 0; }
.m-related .m-strip > .mc { flex: 0 0 140px; }
.mc { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px; color: var(--text); scroll-snap-align: start; }
.mc .dc-img { border-radius: 6px; }
.mc-title { margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--link); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc .dc-now { font-size: 15px; }

/* ---------- stores, merchant, static ---------- */
.m-stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 14px; }
.m-store { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 86px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: 12px; color: #333; }
.m-store img { max-height: 44px; width: auto; margin-bottom: 4px; }
.m-az { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 14px 8px; }
.m-az a { min-width: 30px; padding: 5px 0; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
.m-storelist { margin: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.m-storelist h3 { padding: 10px 12px 4px; font-size: 13px; color: var(--faint); }
.m-storelist a.m-sl { display: flex; justify-content: space-between; padding: 10px 12px; border-top: 1px solid #f2f2f2; color: #222; }
.m-storelist a.m-sl span { color: var(--faint); font-size: 12px; }
.m-storehead { display: flex; align-items: center; gap: 12px; margin: 12px 14px 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.m-storehead img { max-width: 90px; max-height: 50px; }
.m-storehead h1 { font-size: 18px; color: #111; }
.m-static { margin: 12px 14px 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.m-static table, .m-static div, .m-static p, .m-static img { max-width: 100% !important; }
.m-static input, .m-static textarea, .m-static select { max-width: 100%; font-size: 16px; }
.m-results { padding: 14px 14px 4px; font-size: 15px; color: #111; }
.m-results b { font-weight: 700; }

/* ---------- footer ---------- */
.m-footer { margin-top: 18px; padding: 18px 14px 28px; background: #fff; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--faint); line-height: 2; }
.m-footer a { color: var(--muted); margin: 0 7px; white-space: nowrap; }
.m-footer .m-switch { display: inline-block; margin-top: 6px; padding: 4px 14px; border: 1px solid var(--orange); border-radius: 999px; color: #7a3d00; font-weight: 600; }
a.dc-img { display: block; }

/* ---------- list row: one deal per row (2026-10-22) ---------- */
.dc-row { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px; }
.dc-row > .dc-img { flex: 0 0 96px; width: 96px; height: 96px; padding-bottom: 0; }
.dc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-row .dc-title { margin-top: 0; -webkit-line-clamp: 3; }
.dc-row .dc-price { margin-top: 4px; }
.dc-row .dc-meta { margin-bottom: 6px; white-space: normal; }
.dc-row .dc-foot { margin-top: 2px; }

/* coupon code chips (list) and copy boxes (detail) */
.dc-codes { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; background: var(--peach); border: 1px dashed var(--orange); border-radius: 6px; color: #7a3d00; font-size: 12px; cursor: pointer; }
.code-k { font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.code-v { font-family: Menlo, Consolas, "Courier New", monospace; font-size: 13px; font-weight: 700; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-a { font-weight: 700; color: var(--deep); }
.m-code { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0; padding: 10px 12px; background: var(--peach); border: 1px dashed var(--orange); border-radius: 8px; color: #7a3d00; text-align: left; cursor: pointer; }
.m-code-label { font-size: 12px; font-weight: 600; }
.m-code-val { flex: 1; min-width: 0; font-family: Menlo, Consolas, "Courier New", monospace; font-size: 20px; font-weight: 700; color: #111; overflow-wrap: anywhere; }
.m-code-copy { padding: 6px 14px; background: var(--orange); border-radius: 6px; color: #fff; font-weight: 700; font-size: 14px; }
.code-inline { padding: 0 3px; background: var(--peach); border: 1px dashed var(--orange); border-radius: 4px; cursor: pointer; }
.is-copied { border-style: solid !important; border-color: var(--ship) !important; }
.is-copied .m-code-copy { background: var(--ship); }
.is-copied .code-a { color: var(--ship); }
.m-toast { position: fixed; left: 50%; bottom: 70px; z-index: 120; transform: translateX(-50%); padding: 8px 14px; background: rgba(0,0,0,.82); border-radius: 999px; color: #fff; font-size: 13px; pointer-events: none; }

/* ---------- no sideways page panning (2026-10-30) ---------- */
/* safety net: the document itself never scrolls horizontally. "clip" (unlike "hidden") does not turn
   html/body into scroll containers, so the sticky header keeps working. */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
.m-main, .m-head, .m-footer, section, article { max-width: 100%; }
.dc, .dc-body, .m-card, .m-hero, .m-related { min-width: 0; }
/* deal descriptions and other copied-in HTML: wrap long words/URLs, keep media and tables inside the card */
.m-card, .m-hero, .m-static, .dc-title, .dc-meta, .m-crumb { overflow-wrap: anywhere; word-break: break-word; }
.m-card img, .m-card video, .m-card iframe, .m-card embed, .m-card object, .m-static img, .m-static iframe { max-width: 100% !important; height: auto; }
.m-card table, .m-static table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-card pre, .m-static pre { white-space: pre-wrap; }
.m-card [width], .m-static [width] { max-width: 100% !important; }
.m-content > li { list-style: none; margin-left: 0; padding-left: 0; }
/* horizontal strips scroll by themselves and do not hand the swipe to the page */
.m-strip, .m-tabs, .m-chips {
	overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain; scroll-snap-type: x proximity; max-width: 100%;
}
.m-strip > *, .m-tabs > *, .m-chips > * { flex-shrink: 0; scroll-snap-align: start; }

/* AdSense in-feed ad between deals; collapses when Google has no ad to show */
.m-ad { min-width: 0; max-width: 100%; overflow: hidden; }
.m-ad.is-filled { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.m-ad ins[data-ad-status="unfilled"] { display: none !important; }
.m-ad-detail { margin-top: 12px; }
.m-ad-detail.is-filled { border: 0; border-radius: 0; background: none; }
.m-ad.is-preview { position: relative; min-height: 100px; background: #f2f2f2; border: 1px dashed #b5b5b5; border-radius: 10px; }
.m-ad.is-preview::before { content: "Ad"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #888; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
