:host {
  display: block;
  --nylas-primary: #2563eb;
  --nylas-error: #cc4841;
  --nylas-error-50: #ffeae8;
  --nylas-error-100: #ffc5bf;
  --nylas-error-200: #fecaca;
  --nylas-error-pressed: #992222;
  --nylas-wraning: #f06c00;
  --nylas-success: #16a392;
  --nylas-info: #2b8fc2;
  --nylas-base-0: #ffffff;
  --nylas-base-25: #fcfcfd;
  --nylas-base-50: #f8f9fc;
  --nylas-base-100: #eaecf5;
  --nylas-base-200: #d5d9eb;
  --nylas-base-300: #b3b8d8;
  --nylas-base-400: #717bbc;
  --nylas-base-500: #4e5ba6;
  --nylas-base-600: #3e4784;
  --nylas-base-700: #263f72;
  --nylas-base-800: #293056;
  --nylas-base-900: #101323;
  --nylas-base-950: #0e101b;
  --nylas-color-blue-100: #e0e6f9;
  --nylas-border-radius: 0.25rem;
  --nylas-border-radius-2x: 0.5rem;
  --nylas-border-radius-3x: 0.75rem;
  --nylas-font-family: "Inter", sans-serif;
  /* Greys */
  --nylas-color-black: #000000;
  --nylas-color-grey-900: #2c2c2c;
  --nylas-color-grey-800: #4b4b4b;
  --nylas-color-grey-700: #6e6e6e;
  --nylas-color-grey-600: #8e8e8e;
  --nylas-color-grey-500: #b3b3b3;
  --nylas-color-grey-400: #cacaca;
  --nylas-color-grey-300: #e1e1e1;
  --nylas-color-grey-200: #eaeaea;
  --nylas-color-grey-100: #f5f5f5;
  --nylas-color-grey-50: #fbfcfe;
  --nylas-color-white: #ffffff;
  /* Reds */
  --nylas-color-red-900: #992222;
  --nylas-color-red-700: #cc4841;
  --nylas-color-red-500: #ff786a;
  --nylas-color-red-300: #ffa79e;
  --nylas-color-red-100: #ffc5bf;
  --nylas-color-red-50: #ffeae8;
  /* Blues */
  --nylas-color-blue-900: #213571;
  --nylas-color-blue-700: #314fa9;
  --nylas-color-blue-500: #4169e1;
  --nylas-color-blue-300: #bdccf9;
  --nylas-color-blue-100: #e0e6f9;
  --nylas-color-blue-50: #f6f8fd;
  /* Yellows */
  --nylas-color-yellow-900: #7c6506;
  --nylas-color-yellow-700: #c29f09;
  --nylas-color-yellow-500: #f7c90b;
  --nylas-color-yellow-300: #f9de70;
  --nylas-color-yellow-100: #fceba9;
  --nylas-color-yellow-50: #fdf4ce;
  /* Greens */
  --nylas-color-green-900: #0e6b60;
  --nylas-color-green-700: #16a392;
  --nylas-color-green-500: #17c3b2;
  --nylas-color-green-300: #74dbd1;
  --nylas-color-green-100: #a2e7e0;
  --nylas-color-green-50: #d1f3f0;
  /* Purples */
  --nylas-color-purple-900: #643554;
  --nylas-color-purple-700: #954f7d;
  --nylas-color-purple-500: #c769a7;
  --nylas-color-purple-300: #dda5ca;
  --nylas-color-purple-100: #e0bdd6;
  --nylas-color-purple-50: #e9dde5;
  /* Skies */
  --nylas-color-sky-900: #20698f;
  --nylas-color-sky-700: #2b8fc2;
  --nylas-color-sky-500: #6dceff;
  --nylas-color-sky-300: #8fdaff;
  --nylas-color-sky-100: #b8e7ff;
  --nylas-color-sky-50: #d9f2ff;
  width: 100%;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.checkbox-container p.error {
  color: var(--nylas-error);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  font-family: var(--nylas-font-family);
  margin: 0;
}

label {
  display: flex;
  align-items: center;
  font-family: var(--nylas-font-family);
  cursor: pointer;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: var(--nylas-base-800);
}
label.readonly {
  cursor: not-allowed;
}
label span.required {
  color: var(--nylas-error);
  padding: 0 0.25rem;
}
label input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  border: 1px solid var(--nylas-base-300);
}
label input[type=checkbox]:focus ~ .checkmark, label input[type=checkbox]:hover ~ .checkmark {
  border-color: var(--nylas-primary);
}
label input[type=checkbox]:checked ~ .checkmark {
  color: var(--nylas-base-0);
  background: var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;
  border: 1px solid var(--nylas-primary);
}
label input[type=checkbox]:disabled {
  cursor: not-allowed;
  background: var(--nylas-base-100);
  border: 1px solid var(--nylas-base-300);
}
label .checkmark {
  border-radius: var(--nylas-border-radius);
  border: 1px solid var(--nylas-base-300);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
label .label {
  margin-left: 32px;
  font-size: 16px;
  font-weight: 400;
  color: var(--nylas-base-800);
  line-height: 24px;
  word-break: break-word;
  overflow-wrap: break-word;
}