.compat-page {
  margin-bottom: 20px;
}

.compat-params-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 18px;
  padding: 0;
  border: 0;
  background: none;
  color: #2b2b2b;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.compat-params-toggle__caret {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #2b2b2b;
}

.compat-page.is-filters-hidden .compat-params-toggle__caret {
  border-right: 0;
  border-bottom: 6px solid transparent;
  border-top: 6px solid transparent;
  border-left: 8px solid #2b2b2b;
}

.compat-page.is-filters-hidden .compat-filters {
  display: none;
}

.compat-filters__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.compat-filters select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid #e1e1e1;
  border-radius: 2px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #63666a;
  font-family: inherit;
  font-size: 16px;
  appearance: none;
}

.compat-filters__actions {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  margin: 14px 0 22px;
}

.compat-reset,
.compat-filters-hide {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.compat-reset {
  color: #fe5000;
}

.compat-reset::before {
  content: "×\00a0";
}

.compat-filters-hide {
  color: #333;
}

.compat-filters-hide::before {
  content: "▲\00a0";
  font-size: 12px;
}

.compat-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  -webkit-overflow-scrolling: touch;
}

.compat-scroll-hint,
.compat-meta__sub {
  display: none;
}

.compat-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 3px;
}

.compat-table th {
  padding: 14px 10px;
  background: #5a5e63;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.compat-table th a {
  color: #fff;
  text-decoration: none;
}

.compat-table th a:hover {
  color: #fe5000;
}

.compat-table td.compat-meta {
  padding: 16px 12px;
  background: #e3e3e3;
  color: #4d5156;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.compat-table td.compat-cell {
  min-width: 150px;
  padding: 0;
  background: #f3f3f3;
  text-align: center;
  vertical-align: middle;
}

.compat-table td.compat-cell.compat-cell--certificate {
  background: #fe5000;
}

.compat-table td.compat-cell.compat-cell--compatible {
  background: #004c97;
}

.compat-table td.compat-cell.compat-cell--tested {
  background: #7d8287;
}

.compat-table tr.compat-row.is-filtered-out,
.compat-table tr.compat-row.is-filtered-out + tr.compat-note {
  display: none;
}

.compat-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.compat-status.is-active {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.compat-note td {
  padding: 0;
  background: transparent;
}

.compat-note {
  display: none;
}

.compat-note.is-open {
  display: table-row;
}

.compat-note__panel {
  display: none;
}

.compat-note__panel.is-open {
  display: block;
}

.compat-note__inner {
  padding: 22px 24px 26px;
  background: #f7f8fa;
  border-top: 3px solid #004c97;
  color: #444;
  text-align: left;
}

.compat-note__heading {
  margin-bottom: 10px;
  color: #004c97;
  font-size: 18px;
  font-weight: 700;
}

.compat-note__text {
  font-size: 16px;
  line-height: 1.45;
}

.compat-note__text p {
  margin: 0 0 8px;
}

.compat-note__text p:last-child {
  margin-bottom: 0;
}

.compat-note__text ol {
  margin: 8px 0 0 20px;
  padding: 0;
  list-style: decimal;
}

.compat-note__text li {
  margin-bottom: 6px;
  list-style: decimal;
}

.compat-note__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
}

.compat-note__docs a {
  color: #004c97;
  font-weight: 700;
  text-decoration: none;
}

.compat-note__docs a:hover {
  color: #fe5000;
}

.compat-empty,
.compat-placeholder {
  display: none;
  margin: 16px 0 28px;
  color: #63666a;
  font-size: 16px;
}

.compat-empty.is-visible,
.compat-placeholder {
  display: block;
}

.compat-setup {
  margin: 12px 0 28px;
  color: #63666a;
  font-size: 16px;
  line-height: 1.45;
}

.compat-feedback {
  margin-top: 70px;
}

@media (max-width: 900px) {
  .compat-filters__grid {
    grid-template-columns: 1fr;
  }

  .compat-filters__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 780px) {
  h1.compat-title {
    font-size: 22px;
    padding: 8px 0 20px 46px;
  }

  .compat-scroll-hint {
    display: block;
    margin: 0 0 8px;
    color: #63666a;
    font-size: 13px;
    line-height: 1.3;
  }

  .compat-meta__sub {
    display: block;
    margin-top: 4px;
    color: #63666a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .compat-table .compat-col-side {
    display: none;
  }

  .compat-table {
    width: max-content;
    min-width: 100%;
  }

  .compat-table th.compat-col-name,
  .compat-table td.compat-meta--name {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 132px;
    max-width: 168px;
    box-shadow: 3px 0 0 #fff;
  }

  .compat-table th.compat-col-name {
    z-index: 3;
    background: #5a5e63;
  }

  .compat-table td.compat-meta--name {
    background: #e3e3e3;
  }

  .compat-table th.compat-col-server,
  .compat-table td.compat-cell {
    min-width: 124px;
    width: 124px;
  }

  .compat-status {
    min-height: 48px;
    font-size: 14px;
  }

  .compat-note__inner {
    padding: 16px;
  }

  .compat-feedback {
    margin-top: 40px;
  }
}
