/* stolen from globals in the frontend repo, which was stolen from zinnia */
@font-face {
  font-family: Degular Display;
  src: url('https://zapier-fonts-production.s3.amazonaws.com/Degular/Degular_Display-Bold.woff2') format('woff2');
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: Degular;
  src: url('https://zapier-fonts-production.s3.amazonaws.com/Degular/Degular-Medium.woff2') format('woff2');
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: Degular;
  src: url('https://zapier-fonts-production.s3.amazonaws.com/Degular/Degular-Semibold.woff2') format('woff2');
  font-display: swap;
  font-weight: 600;
}

html,
body {
  --zds-colors-zapier: #ff4f00;
  --zds-colors-earth: #201515;
  --zds-colors-moss: #1f3121;
  --zds-colors-night: #2b2358;
  --zds-colors-lavender: #c1b7ff;
  --zds-colors-peach: #ffbf63;
  --zds-colors-bolt: #f6ffdb;
  --zds-colors-sky: #cde4e1;
  --zds-colors-cream: #fff3e6;
  --zds-colors-blue-jeans: #3d4592;
  --zds-colors-bluebell: #5e71c7;
  --zds-colors-periwinkle: #90a1ed;
  --zds-colors-lilac: #b2bce9;
  --zds-colors-hydrangea: #d2d8f3;
  --zds-colors-acid-wash: #f0f1fa;
  --zds-colors-error-500: #b83519;
  --zds-colors-error-400: #ce482d;
  --zds-colors-error-300: #e87057;
  --zds-colors-error-200: #feb7a8;
  --zds-colors-error-100: #fadfd9;
  --zds-colors-warning-500: #dfb900;
  --zds-colors-warning-400: #ffd300;
  --zds-colors-warning-300: #f8df68;
  --zds-colors-warning-200: #fcec9f;
  --zds-colors-warning-100: #fff4bc;
  --zds-colors-success-500: #086f3d;
  --zds-colors-success-400: #0f884e;
  --zds-colors-success-300: #36a770;
  --zds-colors-success-200: #ade2c8;
  --zds-colors-success-100: #def3e9;
  --zds-colors-neutral-800: #2d2e2e;
  --zds-colors-neutral-700: #403f3e;
  --zds-colors-neutral-600: #95928e;
  --zds-colors-neutral-500: #a8a5a0;
  --zds-colors-neutral-400: #d7d5d2;
  --zds-colors-neutral-300: #e8e7e4;
  --zds-colors-neutral-200: #f7f5f2;
  --zds-colors-neutral-100: #fffdf9;
  --zds-typography-base: 'Inter', sans-serif;
  --zds-typography-heading: 'Degular', sans-serif;
  --zds-typography-heading-display: 'Degular Display', sans-serif;
  --zds-typography-large-letter-spacing: 1px;
  --zds-typography-small-letter-spacing: normal;
  --zds-typography-pageheader-weight: 700;
  --zds-typography-semibold-weight: 600;
  --zds-typography-medium-weight: 500;
  --zds-typography-pageheader1-fontsize: 82px;
  --zds-typography-pageheader1-lineheight: 84px;
  --zds-typography-pageheader3-fontsize: 62px;
  --zds-typography-pageheader3-lineheight: 66px;
  --zds-typography-pageheader4-fontsize: 52px;
  --zds-typography-pageheader4-lineheight: 60px;
  --zds-typography-pageheader5-fontsize: 42px;
  --zds-typography-pageheader5-lineheight: 50px;
  --zds-typography-pageheader7-fontsize: 34px;
  --zds-typography-pageheader7-lineheight: 40px;
  --zds-typography-pageheader9-fontsize: 26px;
  --zds-typography-pageheader9-lineheight: 32px;
  --zds-typography-paragraph1short-lineheight: 24px;
  --zds-typography-paragraph3-lineheight: 24px;

  padding: 0;
  margin: 0;
  min-height: 100%;

  background-color: var(--zds-colors-neutral-100);
  font-family: var(--zds-typography-base);
  font-size: 16px;
  line-height: 31px;
  font-weight: 400;
  color: var(--zds-colors-neutral-700);
}

html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

pre {
  margin-top: 0;
  margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(
          --zds-typography-heading-display,
          'Degular Display',
          Helvetica,
          arial,
          sans-serif
  );
  font-weight: var(--zds-typography-pageheader-weight, 700);
  letter-spacing: var(--zds-typography-large-letter-spacing, 1px);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: var(--zds-typography-pageheader3-fontsize, 62px);
  line-height: var(--zds-typography-pageheader3-lineheight, 66px);
}

h2 {
  font-size: var(--zds-typography-pageheader4-fontsize, 52px);
  line-height: var(--zds-typography-pageheader4-lineheight, 60px);
}

h3 {
  font-size: var(--zds-typography-pageheader5-fontsize, 42px);
  line-height: var(--zds-typography-pageheader5-lineheight, 50px);
}

h4 {
  font-size: var(--zds-typography-pageheader7-fontsize, 34px);
  line-height: var(--zds-typography-pageheader7-lineheight, 40px);
}

h5 {
  font-size: var(--zds-typography-pageheader9-fontsize, 26px);
  line-height: var(--zds-typography-pageheader9-lineheight, 32px);
}

.inline {
  display: inline-block;
  vertical-align: baseline;
}

p,
li {
  font-size: 16px;
  line-height: var(--zds-typography-paragraph3-lineheight, 24px);
  font-weight: 400;
}

li {
  margin-bottom: 0.5em;
}

strong,
b {
  font-weight: 700;
}

small {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

a {
  text-decoration: underline;
  color: var(--zds-colors-blue-jeans);
}

a:hover {
  color: #2b2358;
  text-decoration: underline;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

img {
  max-width: 100%;
  height: auto;
}

abbr {
  cursor: help;
}

#__next {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

input, textarea, select {
  width: 100%;
  background-color: var(--zds-colors-neutral-100);
  font-family: var(--zds-typography-base);
  line-height: 24px;
  font-size: 16px;
  font-weight: 500;
  padding: 9px 15px;
  color: var(--zds-colors-neutral-700);
  border: 1px solid var(--zds-colors-blue-jeans);
  box-shadow: none;
  outline: none;
  position: relative;
  border-radius: 3px;
  transition-duration: 300ms;
  transition-property: background-color, color, box-shadow;
  transition-timing-function: ease;
}

input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 1px var(--zds-colors-blue-jeans);
}

label {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

input[type=text],
input[type=url],
input[type=email] {
  font-size: 16px;
  height: 42px;
  line-height: 24px;
  min-width: 1px;
  padding-bottom: 9px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 9px;
  border-radius: 3px;
  border-color: #95928e;
}

input[type=checkbox] {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  margin: 0 10px 0 5px;
  accent-color: var(--zds-colors-blue-jeans);
}

.input-group {
  margin: 20px 0;
}

.input-group.checkbox {
 margin: 30px 0;
}

.input-group.checkbox label {
  font-weight: normal;
  font-size: inherit;
  vertical-align: top;
  display: inline;
}

input:not([type='checkbox']):read-only {
  background-color: #f7f5f2;
  border-color: #d7d5d2;
  color: rgb(168, 165, 160);
  cursor: not-allowed;
}

.help-text {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    -webkit-box-align: start;
    align-items: start;
}

.help-text,
.help-text p {
    color: #403F3E;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 5px 0 0 2px;
}

.help-text-toggle {
    background: none;
    border: none;
    color: #403F3E;
    cursor: pointer;
    text-decoration: underline;
    text-transform: lowercase;
}

.help-text div {
    -webkit-line-clamp: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.help-text.expanded div {
    -webkit-line-clamp: unset;
}

.error {
  color: #ce482d;
}

.button, button, input[type="button"], input[type="submit"] {
  background-color: var(--zds-colors-blue-jeans);
  border-color: transparent;
  color: var(--zds-colors-neutral-100);
  -webkit-box-align: center;
  align-items: center;
  appearance: none;
  border-radius: 3px;
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  display: inline-flex;
  -webkit-box-pack: center;
  justify-content: center;
  margin: 0px;
  min-width: 0px;
  opacity: 1;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: all 200ms ease-in-out 0s;
  vertical-align: middle;
  white-space: nowrap;
  font-family: var(--zds-typography-base, "Inter", Helvetica, arial, sans-serif);
  font-size: 16px;
  line-height: var(--zds-typography-paragraph3-lineheight, 24px);
  font-weight: 600;
  height: 44px;
  padding: 0px 20px;
  width: auto;
}

.button:hover, button:hover, input[type="button"]:hover, input[type="submit"]:hover {
  background-color: var(--zds-colors-night);
  border-color: transparent;
  box-shadow: rgb(0 0 0 / 20%) 0px 5px 10px 0px;
  color: var(--zds-colors-neutral-100);
}

/* lets do a :before */
.button:before, button:before, input[type="button"]:before, input[type="submit"]:before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition-property: all;
  transition-timing-function: ease-in-out;
  transition-duration: 200ms;
}

.button:focus:before, button:focus:before, input[type="button"]:focus:before, input[type="submit"]:focus:before {
  border-color: var(--zds-colors-blue-jeans);
  inset: -5px;
}

/* secondary class for buttons, background is neutral, border os blue jeans, text is blue jeans */
.button.secondary, button.secondary, input[type="button"].secondary, input[type="submit"].secondary {
  background-color: var(--zds-colors-neutral-100);
  border-color: var(--zds-colors-blue-jeans);
  color: var(--zds-colors-blue-jeans);
}

/* small class for buttons */

.button.small, button.small, input[type="button"].small, input[type="submit"].small {
  font-size: 15px;
  height: 30px;
  padding: 0 10px;
}

body.htmx-request form input, body.htmx-request form textarea, body.htmx-request form select, body.htmx-request form button, body.htmx-request form .button, .button:disabled, button:disabled, input:disabled, textarea:disabled {
  opacity: 0.5;
  cursor: wait;
  pointer-events: none;
}

.icon-new-window {
  display: inline-block;
  width: 12px;
  height: 12px;
}

.icon {
  display: inline-block;
  height: 20px;
  width: 20px;
  vertical-align: text-top;
}

svg {
  max-width: 100%;
}

/* Hide this class until the form is submitted. */
body form .loading-show {
  display: none;
}

/* Show this class after the form is submitted. */
body.htmx-request form .loading-show {
  display: initial;
}

/* Hide this class after the form is submitted. */
body.htmx-request form .loading-hide {
  display: none;
}

.spinner-small {
  display: inline-block;
  vertical-align: middle;
  border-right-color: transparent;
  height: 20px;
  width: 20px;
  border-width: 4px;
  opacity: 0.7;
  animation: 0.75s linear 0s infinite normal none running spinner;
  border-style: solid;
  border-radius: 50%;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* some basic styles for tables, lifted from DS */

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  text-align: left;
}

table th, table td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--zds-colors-neutral-400);
}

table tr:hover {
  background-color: var(--zds-colors-acid-wash);
}

table.condensed th, table.condensed td, .condensed table th, .condensed table td {
  padding: 5px 10px;
}

table table > tbody > tr:last-child > th,
table table > tbody > tr:last-child > td {
  border-bottom: 0;
}

.table-wrapper {
    background-color: #F7F5F2;
    display: block;
    overflow: auto;
    width: 100%;
}

/*placeholderColor-7fa032fc: #95928e;*/

.weight-600 {
  font-weight: 600;
}

.nav-bar-panels {
  display: flex;
  justify-content: space-evenly;
  padding-top: 10px;
}

.nav-panel {
  flex: 1;
  cursor: pointer;
  border-bottom: 3px solid #dadcde;
  padding: 0 0 14px;
  font-weight: 600;
  text-align: center;
  color: #403f3e;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-panel span {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.nav-panel:hover {
  text-decoration: none;
}

.nav-panel.active {
  color: #3d4592;
  border-bottom-color: #3d4592;
}

.nav-sidebar {
  font-size: 14px;
  margin-bottom: 40px;
}

.nav-sidebar ul {
  list-style: none;
  padding: 0;
}

.nav-sidebar ul li {
  font-size: 14px;
  line-height:1.8;
  margin-bottom: 0;
}

.nav-sidebar a {
  font-weight: 600;
  text-decoration: none;
}

ul.toc {
  list-style: none;
  padding: 0;
}

.toc li {
  font-size: 14px;
  line-height: 1.8;
  font-weight: 600;
  margin-bottom: 0;
}

.toc li a {
  text-decoration: none;
}

/* TODO: replace with the Zapier design system */
.ai-alpha {
  color: #2d2e2e;
  background-color: #ffbf6e;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 15px;
  margin-left: 5px;
  vertical-align: super;
}

.ai-alpha.small {
  font-size: 10px;
  margin-left: 2px;
}

h1 .ai-alpha {
  font-size: 15px;
}

h1.header {
  margin-bottom: 32px;
}

.header-nav-icon {
  height: 32px;
  width:32px;
  display:inline-block;
  vertical-align: middle;
}

.provider-details {
  background-color:#F7F5F2;
  padding:20px;
  border-radius: 4px;
}

.provider-details .identity-container {
  display:inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  margin:10px 0 20px;
}

.provider-details .logo-container {
  width:80px;
  margin-right:20px;
  background-color:#FFF;
  border-radius: 2px;
}

.provider-details .logo-container img {
  width:80px;
  padding: 10px;
  display: block;
}

.provider-details .values {
  line-height: 1.8;
  margin:0 0 20px;
}

.row [class^=col].docs {
  margin-bottom: 80px;
}

.docs h2 {
  font-size: 32px;
  line-height: 1.3em;
}

.docs h3 {
  line-height: 1.3em;
  font-size: 25px;
  margin-bottom: 0.7em;
}

.docs h4 {
  line-height: 1.3em;
  font-size: 20px;
  margin-top: 1.5em;
}

.docs pre {
  background: none;
  color: #000;
  font-weight: 400;
  padding: 0;
  white-space: pre-wrap;
}

.docs pre>code {
  background-color: #354147;
  color: #f2f2f2;
  display: block;
  font-size: 15px;
  font-weight: normal;
  line-height: 26px;
  overflow: scroll;
  padding: 20px;
  white-space: pre;
}

.docs code {
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  padding: 2px 5px;
  background: #E8E7E4;
  color: #6859ca;
  font-weight: normal;
}

.docs hr {
  background-color: #2d2e2e;
  border: 0;
  height: 2px;
  margin: 40px 0;
}

.docs p:last-child {
  margin-bottom: 1rem;
}

.docs .grid h4 {
  margin-top: 0.5em;
}

.grid {
  display: grid;
  grid-gap: 40px;
  grid-template-columns: 50% 50%;
  align-items: center;
}

.grid-item img {
  display: inherit;
}

/* https://simplegrid.io/ with wider grids */

.container {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (min-width: 33.75em) {
  .container {
    width: 80%;
  }
}

@media only screen and (min-width: 86.25em) {
  .container {
    width: 75%;
    max-width: 86.25rem;
  }
}

.row {
  position: relative;
  width: 100%;
}

.row [class^=col] {
  float: left;
  margin: 0.5rem 2%;
  min-height: 0.125rem;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  width: 96%;
}

.col-1-sm {
  width: 4.3333333333%;
}

.col-2-sm {
  width: 12.6666666667%;
}

.col-3-sm {
  width: 21%;
}

.col-4-sm {
  width: 29.3333333333%;
}

.col-5-sm {
  width: 37.6666666667%;
}

.col-6-sm {
  width: 46%;
}

.col-7-sm {
  width: 54.3333333333%;
}

.col-8-sm {
  width: 62.6666666667%;
}

.col-9-sm {
  width: 71%;
}

.col-10-sm {
  width: 79.3333333333%;
}

.col-11-sm {
  width: 87.6666666667%;
}

.col-12-sm {
  width: 96%;
}

.banner {
    width: 100%;
    position: fixed;
    z-index: 1000;
    text-align: center;
    color: #fff;
    background: var(--zds-colors-blue-jeans);
    padding: 5px 0;
}

article.alert {
  position: relative;
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  -webkit-box-align: start;
  align-items: start;
  gap: 10px;
  padding: 10px 10px 10px 25px;
  border: 1px solid var(--zds-colors-neutral-300, #e8e7e4);
  border-radius: 5px;
  font-size: 15px;
  line-height: var(--zds-typography-paragraph3-lineheight, 24px);
  font-weight: 400;
  color: var(--zds-colors-neutral-700, #403f3e);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 5px 10px 0px;
  margin: 10px 0 30px;
}

article.alert:before {
  content: "";
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  width: 10px;
  background-color: var(--zds-colors-blue-jeans, #3d4592);
}

article.alert svg {
  height: 24px;
  width: 24px;
}

article.alert svg path {
  fill: var(--zds-colors-blue-jeans, #3d4592);
}

article.alert.success svg path {
  fill: #0f884e;
}

article.alert.success:before {
  background-color: #0f884e;
}

article.alert.error svg path {
  fill: #CE482D;
}

article.alert.error:before {
  background-color: #CE482D;
}

article.alert.warning svg path {
  fill: #403f3e;
}

article.alert.warning:before {
  background-color: #ffd300;
}

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

.pointer {
  cursor: pointer;
}

.action-name {
    margin: 0 0 20px;
}

.action-name span {
  font-weight: 600;
}

.action-name img {
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
}

.action-name a {
  float: right;
}

@media only screen and (min-width: 60em) {
  .col-1 {
    width: 4.3333333333%;
  }

  .col-2 {
    width: 12.6666666667%;
  }

  .col-3 {
    width: 21%;
  }

  .col-4 {
    width: 29.3333333333%;
  }

  .col-5 {
    width: 37.6666666667%;
  }

  .col-6 {
    width: 46%;
  }

  .col-7 {
    width: 54.3333333333%;
  }

  .col-8 {
    width: 62.6666666667%;
  }

  .col-9 {
    width: 71%;
  }

  .col-10 {
    width: 79.3333333333%;
  }

  .col-11 {
    width: 87.6666666667%;
  }

  .col-12 {
    width: 96%;
  }

  .hidden-sm {
    display: block;
  }
}

@media only screen and (max-width: 600px) {
  h1 {
    font-size: 40px;
  }

  .grid {
    grid-template-columns: 100%;
    grid-gap: 20px;
  }
}