:root {
  --mdcmp-bg: #fff;
  --mdcmp-ink: #1e252d;
  --mdcmp-soft: #465461;
  --mdcmp-tint: #f1f4f6;
  --mdcmp-line: #cbd2d9;
  --mdcmp-action: #244b70;
  --mdcmp-on: #fff;
  --mdcmp-focus: #176fba;
}
@media (max-width: 767.98px) {
  html[data-md-solar="dark"] {
    --mdcmp-bg: #212123;
    --mdcmp-ink: #f5f5f5;
    --mdcmp-soft: #d0d2d8;
    --mdcmp-tint: #34363b;
    --mdcmp-line: #70737b;
    --mdcmp-action: #bedbfa;
    --mdcmp-on: #122438;
    --mdcmp-focus: #ffcf8d;
  }
}
.mdcmp-tray[hidden], .mdcmp-dialog:not([open]), .mdcmp-notice:empty { display: none !important; }
.mdcmp-tray, .mdcmp-dialog, #mse2_results .mdcmp-pick { font-family: inherit; color: var(--mdcmp-ink); }
.mdcmp-tray *, .mdcmp-dialog *, #mse2_results .mdcmp-pick { box-sizing: border-box; }
.mdcmp-dialog button, .mdcmp-tray button, #mse2_results .mdcmp-pick {
  appearance: none; font: inherit; line-height: 1.2; min-height: 44px;
  margin: 0; cursor: pointer; border: 0; border-radius: 10px;
}
.mdcmp-dialog :is(button,input,a):focus-visible, .mdcmp-tray button:focus-visible,
#mse2_results button.mdcmp-pick:focus-visible {
  outline: 3px solid var(--mdcmp-focus) !important; outline-offset: 1px;
}
#mse2_results button.mdcmp-pick {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .45em;
  width: 100%; margin: 4px 0 0; padding: 5px 8px; background: var(--mdcmp-bg);
  color: var(--mdcmp-action); border: 1px solid var(--mdcmp-line); font-size: 14px; font-weight: 600;
}
#mse2_results .mdcmp-pick::before {
  content: ""; width: 15px; height: 15px; flex: 0 0 15px; box-sizing: border-box;
  border: 1.5px solid currentColor; border-radius: 4px;
}
#mse2_results .mdcmp-pick[aria-pressed="true"] { color: var(--mdcmp-on); background: var(--mdcmp-action); border-color: var(--mdcmp-action); }
#mse2_results .mdcmp-pick[aria-pressed="true"]::before {
  width: 12px; height: 7px; flex-basis: 12px; border: 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  border-radius: 0; transform: translateY(-2px) rotate(-45deg);
}
#mse2_results .mdcmp-pick:disabled, .mdcmp-tray button:disabled { opacity: .58; cursor: default; }
.mdcmp-tray {
  position: fixed; z-index: 998; right: max(16px,env(safe-area-inset-right)); bottom: 20px;
  box-sizing: border-box; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 20px);
  padding: 6px 8px 6px 13px; background: var(--mdcmp-bg); border: 1px solid var(--mdcmp-line);
  border-radius: 15px; box-shadow: 0 3px 16px rgba(0,0,0,.16);
}
.mdcmp-count { line-height: 1.24; color: var(--mdcmp-ink); font-size: 14px; }
.mdcmp-tray .mdcmp-primary { background: var(--mdcmp-action); color: var(--mdcmp-on); padding: 7px 14px; font-weight: 700; }
.mdcmp-quiet, .mdcmp-close, .mdcmp-remove { background: transparent; color: var(--mdcmp-action); padding: 6px 9px; font-weight: 600; }
.mdcmp-dialog[open] {
  position: fixed; inset: 0; box-sizing: border-box; display: flex; flex-direction: column;
  padding: 0; margin: auto; width: min(820px,calc(100vw - 32px)); height: min(760px,86vh);
  max-height: 92vh; overflow: hidden; border: 1px solid var(--mdcmp-line); border-radius: 22px;
  background: var(--mdcmp-bg); color: var(--mdcmp-ink); font-size: 16px; line-height: 1.45;
}
.mdcmp-dialog::backdrop { background: rgba(10,15,20,.66); }
.mdcmp-head, .mdcmp-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none;
  padding: 8px 18px; border-bottom: 1px solid var(--mdcmp-line);
}
.mdcmp-head h2 { margin: 0; padding: 0; font: inherit; font-size: 22px; font-weight: 700; color: var(--mdcmp-ink); }
.mdcmp-head .mdcmp-close { color: var(--mdcmp-action); background: var(--mdcmp-tint); }
.mdcmp-diff { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; color: var(--mdcmp-ink); font: inherit; cursor: pointer; }
.mdcmp-diff input[type="checkbox"] { appearance: auto; position: static; opacity: 1; margin: 0; width: 18px; height: 18px; accent-color: var(--mdcmp-action); }
.mdcmp-notice { flex: none; padding: 8px 18px; margin: 0; color: var(--mdcmp-soft); font-size: 15px; }
.mdcmp-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.mdcmp-table { margin: 0; width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; color: var(--mdcmp-ink); font-size: inherit; }
.mdcmp-table th, .mdcmp-table td { border: none; padding: 8px 14px; background: transparent; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.mdcmp-table thead th { position: sticky; top: 0; z-index: 1; background: var(--mdcmp-bg); border-bottom: 1px solid var(--mdcmp-line); font-weight: 650; }
.mdcmp-table .mdcmp-product { display: inline-block; color: var(--mdcmp-action); text-decoration: underline; line-height: 1.28; }
.mdcmp-table .mdcmp-remove { display: block; margin-top: 2px; padding: 3px 1px; color: var(--mdcmp-soft); font-size: 13px; }
.mdcmp-table .mdcmp-field { padding-top: 6px; padding-bottom: 6px; background: var(--mdcmp-tint); color: var(--mdcmp-ink); font-size: 14px; font-weight: 650; }
.mdcmp-table td + td, .mdcmp-table thead th + th { border-left: 1px solid var(--mdcmp-line); }
.mdcmp-missing { color: var(--mdcmp-soft); }
.mdcmp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 767.98px) {
  .mdcmp-tray { right: max(8px,env(safe-area-inset-right)); left: max(8px,env(safe-area-inset-left)); bottom: calc(72px + env(safe-area-inset-bottom)); max-width: none; }
  .mdcmp-count { flex: 1; }
  .mdcmp-dialog[open] { width: 100%; max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh; border: 0; border-radius: 0; }
  .mdcmp-head { padding-top: max(8px,env(safe-area-inset-top)); }
  .mdcmp-head, .mdcmp-tools { padding-left: 12px; padding-right: 12px; }
  .mdcmp-head h2 { font-size: 20px; }
  .mdcmp-scroll { padding-bottom: env(safe-area-inset-bottom); }
  .mdcmp-table { font-size: 14px; }
  .mdcmp-table th, .mdcmp-table td { padding-left: 9px; padding-right: 9px; }
}

@media (max-width: 767.98px) {
  #mse2_results > .mdm-card:has(> .mdcmp-pick) {
    flex-direction: column;
    align-items: stretch;
  }
  #mse2_results > .mdm-card:has(> .mdcmp-pick) > .shares {
    width: 100%;
    min-width: 0;
  }
  #mse2_results > .mdm-card > .mdcmp-pick {
    flex: 0 0 auto;
  }
}

@media (max-width: 767.98px) {
  html:has(head link[rel="canonical"][href*="/katalog/byitovaya-texnika/"])
  #mse2_results > .mdm-card .description .name > a {
    display: block;
    -webkit-line-clamp: none;
    max-height: none;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: visible;
  }
}
