section.editor {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

form {
  display: inline-block;
}

form.top-bottom {
  margin: -4px -5px;
}

form.top-bottom label {
  margin-top: 10px;
}

form label {
  display: block;
  position: relative;
}

form label select, form label input[type=text] {
  border: 1px solid #dadce0;
  border-radius: 4px;
  width: 100%;
}

form label.control {
  width: 300px;
  margin: 4px 5px;
}

form label > span {
  display: inline-block;
  margin-right: 5px;
}

form label.control > span {
  display: block;
}

form label .value {
  font-size: 80%;
  color: #666;
}

form select {
  -moz-appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: none;
  color: #202124;
  cursor: pointer;
  display: inline-block;
  font: 500 14px/36px Google Sans,Noto Sans,Noto Sans JP,Noto Sans KR,Noto Naskh Arabic,Noto Sans Thai,Noto Sans Hebrew,Noto Sans Bengali,sans-serif;
  height: 36px;
  line-height: 34px;
  outline: 0;
  padding: 0 27px 0 15px;
  text-align: left;
  text-indent: .01px;
  text-overflow: ellipsis;
  transition: background-color .2s;
  vertical-align: middle;
  white-space: nowrap;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="4" viewBox="0 0 20 4"><path d="M0,0l4,4l4-4H0z" fill="%23212121"/></svg>') #fff no-repeat 100%;
}

form option {
  font-weight: normal;
  display: block;
  white-space: pre;
  min-height: 1.2em;
  padding: 0 2px 1px;
}

form input[type="range"] {
  width: 100%;
}

form label.color input[type="color"] {
  border: 0;
  padding: 0;
  background-color: transparent;
  width: 32px;
  height: 26px;
  position: absolute;
  top: 29px;
  right: 8px;
}

form label.image input[type="text"] {
  padding-right: 42px;
}

form label.image button {
  border: 0;
  border-radius: 100%;
  padding: 0;
  background-color: transparent;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  position: absolute;
  top: 27px;
  right: 6px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-24 -24 48 48" width="24" height="24"><g fill="none" stroke="%23888888" stroke-width="2"><path d="M2,-16 l10,10 v22 h-24 v-32 h12 z"/><path d="M2,-16 v10 h10" /></g></svg>') #fff no-repeat center;
}

#github {
  font-size: 90%;
  display: none;
}

.sample-code {
  border-radius: 2px;
  background-color: #f1f3f4;
  color: #37474f;
  padding: 24px;
  font: 14px/20px Roboto Mono, monospace;
}

.demo {
  margin-top: 20px;
  margin-bottom: 30px;
  min-height: 40px;
}

.save {
  min-height: 76px;
}

.preview {
  margin-top: 10px;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  color: #000;
}

.preview > p {
  margin-bottom: 0;
}

.preview .pass {
  width: 400px;
  min-height: 200px;
  border-radius: 10px;
  background-color: #1c4ea6;
  overflow: hidden;
}

.preview.dark .pass {
  color: #fff;
}

.preview .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 10px 0;
}

.preview .android .header {
  flex-direction: row;
  padding: 18px 15px 15px;
  border-bottom: 1px solid #00000022;
}

.preview.dark .android .header {
  border-bottom: 1px solid #ffffff22;
}

.preview .cardHeader {
  text-align: center;
  font-size: 23px;
  padding-bottom: 11px;
}

.preview .android .cardHeader {
  text-align: left;
}

.preview .subHeader {
  text-align: center;
  font-size: 16px;
}

.preview .android .subHeader {
  text-align: left;
}


.preview img[src=""] {
  display: none;
}

.preview .logo {
  border-radius: 100%;
  background-color: #fff;
  width: 64px;
  height: 64px;
  overflow: hidden;
}

.preview .android .logo {
  width: 28px;
  height: 28px;
}

.preview .cardTitle {
  font-size: 14px;
  margin-top: 4px;
}

.preview .android .cardTitle {
  margin-top: 2px;
  margin-left: 15px;
}

.preview .body {
  padding: 15px;
}

.preview .row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 12px 0;
}

.preview .row .start-item, .preview .row .end-item,
.preview .row .mid-item {
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 85px;
}

.preview .row .start-item {
  align-items: flex-start;
}

.preview .row .end-item {
  align-items: flex-end;
}

.preview .row .mid-item {
  align-items: center;
}

.preview .separator {
  margin: 0 24px;
  border-top: 1px solid rgba(0,0,0,.12);
}

.preview .passLabel{
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 11px;
  padding-bottom: 5px;
  min-height: 11px;
}

.preview .android .passLabel{
  text-transform: capitalize;
}

.preview .passLabelValue{
  line-height: 20px;
  font-size: 1.125rem;
}

.preview .barcode[data-type] {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
}

.preview .barcode[data-type=""] {
  display: none;
}

.preview .pass .row1Left[innerHTML=""],
.preview .pass .row1LeftLabel[innerHTML=""],
.preview .pass .row1Mid[innerHTML=""],
.preview .pass .row1MidLabel[innerHTML=""],
.preview .pass .row1Right[innerHTML=""],
.preview .pass .row1RightLabel[innerHTML=""],
.preview .pass .row2Left[innerHTML=""],
.preview .pass .row2LeftLabel[innerHTML=""],
.preview .pass .row2Mid[innerHTML=""],
.preview .pass .row2MidLabel[innerHTML=""],
.preview .pass .row2Right[innerHTML=""],
.preview .pass .row2RightLabel[innerHTML=""],
.preview .pass .row3Left[innerHTML=""],
.preview .pass .row3LeftLabel[innerHTML=""],
.preview .pass .row3Mid[innerHTML=""],
.preview .pass .row3MidLabel[innerHTML=""],
.preview .pass .row3Right[innerHTML=""],
.preview .pass .row3RightLabel[innerHTML=""] {
  display: none;
}

.preview .pass .row1Left:not([innerHTML=""]),
.preview .pass .row1LeftLabel:not([innerHTML=""]),
.preview .pass .row1Mid:not([innerHTML=""]),
.preview .pass .row1MidLabel:not([innerHTML=""]),
.preview .pass .row1Right:not([innerHTML=""]),
.preview .pass .row1RightLabel:not([innerHTML=""]),
.preview .pass .row2Left:not([innerHTML=""]),
.preview .pass .row2LeftLabel:not([innerHTML=""]),
.preview .pass .row2Mid:not([innerHTML=""]),
.preview .pass .row2MidLabel:not([innerHTML=""]),
.preview .pass .row2Right:not([innerHTML=""]),
.preview .pass .row2RightLabel:not([innerHTML=""]),
.preview .pass .row3Left:not([innerHTML=""]),
.preview .pass .row3LeftLabel:not([innerHTML=""]),
.preview .pass .row3Mid:not([innerHTML=""]),
.preview .pass .row3MidLabel:not([innerHTML=""]),
.preview .pass .row3Right:not([innerHTML=""]),
.preview .pass .row3RightLabel:not([innerHTML=""]) {
  display: flex;
}


.preview .barcode .barcode-wrapper {
  background-color: #fff;
  border-radius: 4px;
}

.preview .barcode img {
  display: none;
  margin: 16px;
}

.preview .barcode[data-type="AZTEC"] img.barcode-type-aztec {
  display: block;
  width: 150px;
  height: 150px;
}

.preview .barcode[data-type="CODABAR"] img.barcode-type-codabar {
  display: block;
  height: 100px;
}

.preview .barcode[data-type="CODE_39"] img.barcode-type-code39 {
  display: block;
  height: 100px;
}

.preview .barcode[data-type="CODE_128"] img.barcode-type-code128 {
  display: block;
  height: 100px;
}

.preview .barcode[data-type="DATA_MATRIX"] img.barcode-type-datamatrix {
  display: block;
  width: 150px;
  height: 150px;
}

.preview .barcode[data-type="EAN_8"] img.barcode-type-ean8 {
  display: block;
  height: 100px;
}

.preview .barcode[data-type="EAN_13"] img.barcode-type-ean13 {
  display: block;
  height: 100px;
}

.preview .barcode[data-type="ITF_14"] img.barcode-type-itf14 {
  display: block;
  height: 100px;
}

.preview .barcode[data-type="PDF_417"] img.barcode-type-pdf417 {
  display: block;
  width: 314px;
}

.preview .barcode[data-type="QR_CODE"] img.barcode-type-qrcode {
  display: block;
  width: 150px;
  height: 150px;
}

.preview .barcode[data-type="UPC_A"] img.barcode-type-upca {
  display: block;
  height: 100px;
}

.preview .barcode .barcode-value {
  margin-top: 8px;
}

.preview .android .heroImage {
  margin: 12px -15px -22px;
}

.preview .web .heroImage {
  margin: 12px -15px 0;
}

.preview .heroImage img {
  width: 100%;
}

.code-preview {
  border-radius: 2px;
  background-color: #f1f3f4;
  color: #37474f;
  padding: 24px;
  font: 14px/20px Roboto Mono, monospace;
}

.preview .issuer-name,
.preview .airline-name {
  font-size: 14px;
  margin-top: 4px;
}

.preview .android .issuer-name,
.preview .android .airline-name  {
  margin-top: 2px;
  margin-left: 15px;
}


.preview .android .flightNumber {
  align-items: flex-end;
  flex-direction: column;
  display: inline-flex;
  flex: auto;
}

.preview .body {
  padding: 15px;
}

.preview .balance,
.preview .program-name,
.preview .title,
.preview .eventName {
  text-align: center;
  font-size: 20px;
}

.preview .android .balance,
.preview .android .program-name,
.preview .android .title,
.preview .android .eventName {
  text-align: left;
}

.preview .eventVenue {
  text-align: center;
}

.preview .android .eventVenue {
  text-align: left;
}

.preview .origin,
.preview .dest {
  font-size: 30px;
  line-height: 36px;
  text-transform: uppercase;
}

.preview .plane,
.preview .arrow {
  font-family: 'Material Icons';
  font-size: 32px;
  padding: 8px;
  display: inline-flex;
}

.preview .plane {
  transform: rotate(90deg);
}

.preview .android .plane,
.preview .android .arrow{
  font-size:24px;
}

.preview .loyalty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
}

.preview .android .loyalty {
  align-items: flex-start;
}

.preview .loyalty[data-type=""] {
  display: none;
}

.preview .loyalty-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
}

.preview .loyalty-value {
  font-size: 16px;
}