.todoist-query-title {
  display: inline;
  font-size: 1.25em;
}

.todoist-refresh-button {
  display: inline;
  margin-left: 8px;
  margin-right: 8px;
  float: right;
}

.todoist-refresh-spin {
  animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

.task-metadata {
  margin-left: 28px;
}

.task-calendar-icon,
.task-project-icon,
.task-labels-icon {
  vertical-align: middle;
  height: 17px;
  width: 17px;
}

.task-date.task-overdue {
  color: var(--text-error);
}

.todoist-project {
  white-space: normal;
}

.todoist-project .todoist-project {
  margin-left: 20px;
}

.todoist-project .todoist-section {
  margin-left: 20px;
}

.todoist-error {
  background-color: rgb(var(--background-modifier-error-rgb), 0.5);
  border: 1px solid var(--background-modifier-error);
  padding: 0 10px 20px 10px;
  margin-top: 20px;
}

.todoist-success {
  border: 1px solid var(--background-modifier-border);
  padding: 0 10px 20px 10px;
  margin-top: 20px;
}

.todoist-task-content {
  display: inline;
}

ul.todoist-task-list {
  white-space: normal;
}

.markdown-reading-view .hide-in-reading-view {
  display: none;
}

.is-live-preview .block-language-todoist {
  padding-left: 15px;
}

.theme-dark {
    --todoist-p1-border: #ff7066;
    --todoist-p1-border-hover: #ff706680;
    --todoist-p1-background: rgba(255,112,102, .1);

    --todoist-p2-border: #ff9a14;
    --todoist-p2-border-hover: #ff9a1480;
    --todoist-p2-background: rgba(255,154,20, .1);

    --todoist-p3-border: #5297ff;
    --todoist-p3-border-hover: #5297ff80;
    --todoist-p3-background: rgba(82,151,255, .1);
}

.theme-light {
    --todoist-p1-border: #d1453b;
    --todoist-p1-border-hover: #d1453b80;
    --todoist-p1-background: rgba(209,69,59, .1);

    --todoist-p2-border: #eb8909;
    --todoist-p2-border-hover: #eb890980;
    --todoist-p2-background: rgba(235,137,9, .1);

    --todoist-p3-border: #246fe0;
    --todoist-p3-border-hover: #246fe080;
    --todoist-p3-background: rgba(36,111,224, .1);
}

.todoist-p1 input {
    --checkbox-border-color: var(--todoist-p1-border);
    --checkbox-border-color-hover: var(--todoist-p1-border-hover);
    background-color: var(--todoist-p1-background);

}

.todoist-p2 input {
    --checkbox-border-color: var(--todoist-p2-border);
    --checkbox-border-color-hover: var(--todoist-p2-border-hover);
    background-color: var(--todoist-p2-background);
}

.todoist-p3 input {
    --checkbox-border-color: var(--todoist-p3-border);
    --checkbox-border-color-hover: var(--todoist-p3-border-hover);
    background-color: var(--todoist-p3-background);
}

.todoist-task-description {
  font-size: 80%;
  color: var(--text-muted);
  margin-left: 28px;
}

