.fit-mode-recommended-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.fit-mode-inline-recommend {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: #eceeea;
  color: #171917;
  font: 750 9px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  pointer-events: none;
}

.fit-mode-info-trigger {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 33px;
  margin-left: 4px;
  padding: 0 11px;
  border: 1px solid #d8dcd6;
  border-radius: 7px;
  background: #f5f6f4;
  color: #4f574e;
  font: 650 11px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.fit-mode-info-trigger:hover,
.fit-mode-info-trigger.is-open {
  border-color: #171917;
  background: #fff;
  color: #171917;
}

.fit-mode-info-icon {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.fit-mode-popover {
  position: fixed;
  z-index: 300100;
  display: none;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #dfe2dd;
  border-radius: 10px;
  background: #fff;
  color: #171917;
  box-shadow: 0 20px 58px rgba(0, 0, 0, .22);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.fit-mode-popover.is-open {
  display: block;
}

.fit-mode-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eceeea;
}

.fit-mode-popover-head strong,
.fit-mode-popover-head span {
  display: block;
}

.fit-mode-popover-head strong {
  font-size: 15px;
  line-height: 1.35;
}

.fit-mode-popover-head span {
  margin-top: 3px;
  color: #7a8178;
  font-size: 11px;
}

.fit-mode-popover-close {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #f1f2ef;
  color: #596057;
  font-size: 18px;
  cursor: pointer;
}

.fit-mode-popover-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.fit-mode-popover-row {
  display: grid;
  grid-template-columns: 92px 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid #e6e8e4;
  border-radius: 7px;
  background: #f8f9f7;
}

.fit-mode-popover-row.recommended {
  border-color: #b9beb7;
  background: #fff;
}

.fit-mode-popover-name,
.fit-mode-popover-cost {
  font-size: 12px;
  font-weight: 750;
}

.fit-mode-popover-desc {
  color: #535b52;
  font-size: 11px;
  line-height: 1.5;
}

.fit-mode-popover-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  border-radius: 4px;
  background: #171917;
  color: #fff;
  font-size: 9px;
  font-weight: 750;
}

.fit-mode-preview-label {
  position: fixed;
  z-index: 150000;
  top: 76px;
  right: 336px;
  padding: 9px 12px;
  border: 1px solid #dfe2dd;
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  color: #697168;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .08);
  font: 650 11px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
}

@media (max-width: 800px) {
  .fit-mode-inline-recommend {
    min-width: 16px;
    padding: 0 3px;
    font-size: 0;
  }

  .fit-mode-inline-recommend::after {
    font-size: 9px;
    content: "荐";
  }

  .fit-mode-info-trigger > span:last-child {
    display: none;
  }

  .fit-mode-preview-label {
    display: none;
  }

  .fit-mode-popover {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
  }

  .fit-mode-popover-row {
    grid-template-columns: 1fr auto 34px;
  }

  .fit-mode-popover-desc {
    grid-column: 1 / -1;
  }
}
