/* DOCS */

.docs .page-content {
  padding-right: 20px;
}

@media (min-width: 768px) {
  .docs .page-content {
    width: calc(100% - 230px);
    padding-right: 20px;
  }
}

.docs .page-content p,
.docs .page-content ol li {
  font-size: 14px;
}

.docs li p {
  color: var(--gray);
}

.docs h1 {
  font-size: 1.5em;
}

.docs h2 {
  font-size: 1.4em;
}

.docs .doc-api-call-details h2 {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: normal;
}

.docs h3 {
  font-size: 1.3em;
}

.docs pre {
  min-width: 100%;
  padding: 20px;
  overflow-x: scroll;
  font-size: 0.8em;
}

/* don't override syntax highlighter from zola */
.docs code:not([class*='language-']) {
  padding: 1px 6px;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #f9f9f9;
  color: var(--gray);
}

.docs pre code {
  font-family: Menlo, Consolas, monospace;
  line-height: 18px;
}

.docs .method-item {
  padding: 10px 0;
  font-size: 14px;
}

.docs .method-item:not(:first-child) {
  border-top: 1px solid #ebebeb;
}

.docs .method-name {
  font-weight: 600;
}

.docs .tracking-anchor {
  margin: 30px 0 10px 0;
}

.docs .h3-anchor {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: bold;
}

.docs .method-name.deep {
  cursor: pointer;
}

.doc-api-content {
  display: flex;
  flex-direction: column;
}

.doc-api-call-details,
.doc-api-call-code {
  width: 100%;
}

.doc-api-call-code pre {
  border-radius: 4px;
}

.doc-api-call-details {
  margin-right: 18px;
}

@media (min-width: 1000px) {
  .doc-api-content {
    flex-direction: row;
  }

  .doc-api-call-details {
    width: 45%;
  }

  .doc-api-call-code {
    position: -webkit-sticky;
    position: sticky;
    top: 10px;
    width: 55%;
    height: 100%;
    max-height: 750px;
    align-self: flex-start;
    overflow: auto;
    border-radius: 4px;
  }
}

.docs .plus-sign {
  position: relative;
  bottom: 12px;
}

.docs .wp-screenshot {
  width: 100%;
  max-width: 700px;
  height: auto;
}

.docs .doc-screenshot {
  max-width: 525px;
}

.docs .step {
  margin-left: 8px;
}

.docs .step img {
  margin-top: 4px;
  margin-left: 16px;
}

.docs .step-note {
  margin-left: 30px;
}

/* DOC TABS */

.doc-api-call-code .tabs-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.doc-api-call-code .tabs-container.first {
  margin-bottom: 8px;
}

.doc-api-call-code .tabs-container span {
  display: inline-block;
  margin-top: 5px;
  margin-right: 12px;
  font-size: 14px;
}

.doc-api-call-code .tabs {
  display: flex;
}

.doc-api-call-code .tab {
  display: flex;
  padding: 4px 8px;
  border-top: 1px solid lightgray;
  border-bottom: 1px solid lightgray;
  border-right: 1px solid lightgray;
  border-left: none;
  color: gray;
  font-size: 12px;
  cursor: pointer;
}

.doc-api-call-code .tab:first-child {
  border-left: 1px solid lightgray;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.doc-api-call-code .tab:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.doc-api-call-code .tab.active-tab {
  background-color: var(--blurple);
  color: #fff;
}

.doc-api-call-code .register-secure-code, .doc-api-call-code .insecure-reg-code-block {
  display: none;
}
