body {
  font-family: 'Source Sans Pro', Helvetica;
  color: #454545;
  background-color: #fff;
}

#card {
  background-color: rgb(245, 246, 247);
  padding: 15px;
  border-radius: 8px;
  height: 16px;
  margin-bottom: 10px;
}
#card.StripeField--focus {
  background-color: white;
}
#card.StripeField--invalid {
  background-color: rgba(189, 55, 55, 0.1);
}

.card + .errors li {
  margin-top: 0;
}

.explanation {
  float: right;
  color: #aaa;
  padding-left: 40px;
  margin-bottom: 30px;
  letter-spacing: 1px;
  line-height: 1.5;
  font-size: 12px;
  font-style: italic;
  box-sizing: border-box;
  -webkit-transition: color 300 ease-in-out;
}

.explanation:hover {
  color: #454545;
}

#preview, h1, button {
  /*
  -webkit-transition: background-color 200 ease-in-out;
  -moz-transition: background-color 200 ease-in-out;
  -ms-transition: background-color 200 ease-in-out;
  -o-transition: background-color 200 ease-in-out;
  transition: background-color 200 ease-in-out;
  */
}

.done #preview code:hover,
#preview code {
  font-family: 'BLOKKNeue-Regular';
  letter-spacing: -3px;
  word-spacing: -10px;
  font-size: 18px;
}

.done #preview {
  position: absolute;
  right: 0;
  -moz-user-select: none; 
  -khtml-user-select: none; 
  -webkit-user-select: none; 
  -o-user-select: none; 
}

.done #preview code .hljs-title,
.done #preview code .hljs-keyword,
.done #preview code .hljs-string {
  font-weight: normal !important;
}

#preview code:not(:hover) .hljs-title, #preview code:not(:hover) .hljs-keyword, #preview code:not(:hover) .hljs-string {
  font-weight: normal;
}


#preview.textMode code {
  font-family: 'Source Code Pro', monospace !important;
  letter-spacing: 0.5px !important;
  word-spacing: 0px !important;
  font-size: 14px !important;
}
*/

#preview pre {
  margin-top: 10px;
}

.designer {
  border: 40px solid rgba(0,0,0,0.05);
  border-width: 40px 0 0 0;
  -webkit-transition: border-width 500 ease-in-out, min-height 400 ease, height 400 ease;
}

.designer.done {
  min-height: 240px;
  height: auto;
  border-width: 0 0 40px 0;
}

.designer.hljs, .designer code.hljs {
  padding: 0;
}

.designer, .editor {
  min-height: 50%;
}

.table {
  min-height: 50%;
}

.col

/** TODO: transition compats. */
.row {
  -webkit-transition: all 500 ease-in-out;
}

.row.collapsed {
  /*
  margin-top: -50%;
  */
  opacity: 0;
  display: block;
  height: 0px;
  min-height: 0px;
  overflow: hidden;
}

.designer .sidebar {
  position: relative;
}

pre {
  overflow: hidden;
}

.explanation, .design-warnings, #step1-button, h1, #preview, #source {
  width: 100%;
  max-width: 700px;
  float: right;
}


.editor {

}

.clear {
  clear: both;
}

.editor .sidebar {
  background: #fff;
}

.source {
  clear: both;
}
#source {
  background-color: transparent;
  padding: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
  resize: none;
  border: 0;
}

#source:focus {
  outline: none;
}

code, #source {
  font-size: 14px;
  line-height: 30px;
  font-family: 'Source Code Pro', monospace;
  min-height: 200px;
}

#source {
}

pre {
  margin: 0;
}

#preview code * {
  -webkit-transition: color 200 ease-in-out;
}

#preview {
  -webkit-transition: opacity 500 ease-in-out;
  opacity: 1;
  padding: 20px 0 40px 0;
  box-sizing: border-box;
}

.done #preview {
  opacity: 0.1;
}

.done .table {
  overflow: hidden;
  min-height: 0;
}

#styleswitcher {
  font-style: italic;
  width: 100%;

  position: absolute;
  top: 0px;
  bottom: 0px;
  right: 0px;
  left: 0px;

  overflow-y: scroll;
  overflow-x: hidden;
  -moz-user-select: none; 
  -khtml-user-select: none; 
  -webkit-user-select: none; 
  -o-user-select: none; 
}

#styleswitcher ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  /*border-left: 1px solid rgba(0,0,0,0.1);*/

  cursor: pointer;
}

#styleswitcher li {
  box-sizing: border-box;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 400;
}

#styleswitcher li:first-of-type {
  padding-top: 20px;
}
#styleswitcher li:last-of-type {
  padding-bottom: 20px;
}

#styleswitcher li.current {
  font-weight: 700;
}

.step2 {
  width: 220px;
  -webkit-transition: all 200 ease-in-out;
}

.step2 h1 {
  margin-bottom: 20px;
}

.step2 h1 .light {
  color: inherit;
}

.step2.permalink {
  font-family: 'Source Code Pro', monospace;
  font-size: 14px;
  margin-left: 40px;
  resize: none;
  background: rgba(0,0,0,0.1);
  border: none;
  padding: 15px 20px;

  box-sizing: border-box;
  margin-bottom: 40px;
}

.permalink:focus {
  outline: none;
}

button.silent {

  background: none;
  border: none;
  outline: none;
  font-family: 'Source Code Pro', monospace;
  display: block;
  padding: 0 20px;
  margin: 10px 20px;
}

#styleswitcher li, button.silent {
  -webkit-transition: opacity 200 ease-in-out;
}

#styleswitcher li:hover, button.silent:hover {
  opacity: 0.8
}

h1 {
  float: right;
}

h1#top {
  padding-bottom: 5px;
}

h1, h2 {
  font-family: 'Source Code Pro';
  padding: 14px 20px;
  box-sizing: border-box;
  font-size: 16px;
  margin: 50px 0 0;

  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */
}

.light {
  color: #ccc;
}


fieldset {
  padding: 0;
  margin: 0;
  border: none;
}

.post-quote, .post-payment, .form-wrapper {
  width: 100%;
  max-width: 500px;
  margin-top: 90px;
}

.post-quote, .post-payment {
  margin-top: 30px;
}


@media (max-width: 768px) {
  .post-quote, .post-payment, .form-wrapper {
    margin: 0 auto;
  }
}

.coupon {
  margin-top: 40px;
}

.coupon input {
  text-transform: uppercase;
}

.coupon input, .address input, .card input {
  box-sizing: border-box;
  border: 0;
  padding: 15px 18px;
  margin: 0;
  margin-bottom: 10px;
  display: inline-block;
  width: 100%;
  background: #f5f6f7;
  border-radius: 8px;

  -webkit-transition: background-color 300 ease-in-out;
}

.coupon label, .address label, .card label {
  font-family: 'Source Code Pro', monospace;
  text-transform: lowercase;
  font-size: 12px;
  margin: 10px 0 5px 0;
  display: inline-block;
}

.address label .note, .coupon label .note {
  padding: 3px 5px;
  display: inline-block;
  margin: 0 0 0 5px;
  color: rgba(0, 140, 221, 1);
  text-transform: none;
}

.coupon input:focus, .address input:focus, .card input:focus {
  background: #fefefe;
  outline: none;
  opacity: 1;
}

.type, .size, .quantity {
  margin: 10px 30px;
}

.quantity input {
  padding: 15px;
  border-radius: 8px;
  outline: none;
  border: 0;
  width: 70px;
  text-align: center;
  font-weight: 600;
  background-color: #f5f6f7;
  -webkit-transition: background-color 200 ease-in-out;
}

.quantity input:focus {
  color: #fff;
  background-color: rgba(0, 140, 221, 0.6);
  border-color: rgba(0,140,221,0.9);
}

.quantity label {
  margin-left: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #454545;
}

.type input, .size input {
  opacity: 0;
  margin-right: -15px;
}

.type label, .size label {
  display: inline-block;
  padding: 15px;
  width: 60px;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  background-color: #f5f6f7;

  -webkit-transition: background-color 200 ease-in-out;
}

.type label {
  width: 110px;
}


.type input + label:hover, .size input + label:hover,
.type input:focus + label, .size input:focus + label {
  background: #f3f3f3;
}

.type input:checked + label, .size input:checked + label {
  background-color:  rgba(0, 140, 221, 0.6);
  color: #fff;
  font-weight: 700;
}



fieldset:disabled label {
  cursor: default;
}

fieldset:disabled input {
  color: rgba(0, 140, 221, 0.8);
}

fieldset:disabled input:checked + label {
  background-color: rgba(0, 140, 221, 0.5);
}
fieldset:disabled input + label:hover {
  border-color: transparent;
}

.shirt-selection {
  padding: 15px 0;
}

/*
.shirt-selection {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.shirt-selection.index-0 {
  border-top: none;
}
*/

.shirt-selection .number {
  margin-right: 10px;
  font-weight: 600;
  font-size: 24px;
  padding-top: 10px;
  float: left;
}

.shirt-selection button, .add-more {
  font-family: "Source Code Pro", monospaec;
  font-size: 12px;
  border: none;
  outline: none;
  background-color: transparent;
  color: rgba(189, 55, 55, 0.9);
  text-transform: lowercase;
  margin-left: 30px;
}

.post-quote button.payment-method-selection {
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 140, 221, 1);
}

.post-quote button.payment-method-selection:hover {
  color: #454545;
}

.payment-method-selection svg {
  margin-bottom: -4px;
}

.add-more {
  color: rgba(0, 140, 221, 1);
  margin-top: -15px;
}

.shirt-selection button:hover, .add-more:hover {
  color: #454545;
}


.clearfix {
  clear: both;
}


#source {
  -webkit-transition: border-width 400 ease-in-out;
}
#source.ng-invalid-required {
  border: 5px solid #F1D6D6;
  border-width: 5px 0;
}

.editor button, .post-quote button, .post-payment button, #finish, #step1-button {
  background: transparent;
  font-family: "Source Code Pro", monospace;
  padding: 30px 0;
  float: right;
  border: none;
  font-weight: 600;
  outline: none;
  text-align: left;
  -webkit-transition: padding 400 ease-in-out;
}

#step1-button {
  padding-bottom: 10px;
}

#step1-button:hover {
  padding-left: 10px;
}

.editor button, .post-quote button, .post-payment button, #finish {
  text-transform: lowercase;
  color: #454545;
  float: left;
  padding-left: 30px;
}

.editor button:hover, .post-quote button:hover, .post-payment button:hover, #finish:hover {
  padding-left: 40px;
}

.post-quote button:disabled, #finish:disabled {
  opacity: 0.3;
  cursor: default;
}

.post-quote button:disabled:hover, #finish:disabled:hover {
  padding-left: 30px;
}

.post-quote button, .post-payment button {
  padding-top: 0;
}

.editor button {
  font-family: 'Source Sans Pro';
  font-size: 16px;
  float: right;
  color: #999;
  font-weight: 400;
  padding-left: 40px;
  letter-spacing: 1px;
  line-height: 1.5;
  font-style: italic;
  box-sizing: border-box;
  -webkit-transition: color 300 ease-in-out;
  text-transform: none;
}

.editor button:hover {
  color: #454545;
}

p.light {
  font-size: 12px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  background: transparent;
}

#proof, #proof-shirt, #proof-canvas {
  width: 420px;
  height: 420px;
}

#proof {
  height: 500px;
  padding: 10px;
  border-radius: 5px;
  position: absolute;
  right: -95px;
  top: -14px;
}

#proof .caption {
  font-size: 12px;
  color: #666;
  text-align: justify;
  position: absolute;
  bottom: 0px;
  right: 110px;
  left: 110px;
}

a, a:visited {
  font-weight: 600;
  color: rgba(0, 140, 221, 1);
  text-decoration: none;
}
a:hover {
  color: #454545;
}

#proof-canvas canvas {
  width: 100px;
  margin-top: 100px;
}

#proof-canvas, #proof-shirt {
  position: absolute;
}

#proof-canvas {
  text-align: center;
}

@media (max-width: 1100px) {
  .explanation, .design-warnings, #step1-button, h1, #preview, #source {
    max-width: 500px;
  }
}

h2 {
  text-align: center;
}

h2 .note {
  font-size: 12px;
  padding: 3px 5px;
  display: inline-block;
  border-radius: 5px;
  text-transform: uppercase;
  margin-top: 10px;
}

h2 .note span {
  font-weight: 400;
}

.show-switcher {
  background: rgba(0,0,0,0.1);
  border: none;
  outline: none;
  margin-left: -65px;
  padding-right: 20px;
  font-weight: 600;
  float: left;
  display: none;
  text-transform: uppercase;
  font-size: 12px;
}

.show-switcher:hover {
  background-color: rgba(0,0,0,0.3);
}

.warnings, .errors, .design-warnings {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.errors li {
  line-height: 1.5;
  color: #fff;
  margin-top: 50px;
  padding: 12px 15px;
  border-radius: 8px;
  background-color: rgba(189, 55, 55, 0.7);
}

.errors a {
  color: rgba(189, 55, 55, 1);
}

.errors a:hover {
  color: #454545;
}

.lazy-michelle, .warnings li {
  margin-top: 30px;
  padding: 12px 15px;
  border-radius: 8px;
  background-color: rgba(0, 140, 221, 0.6);
  color: #fff;
}

.lazy-michelle a {
  cursor: pointer;
}

.quote .lazy-michelle a {
  color: #454545;
}
.quote .lazy-michelle a:hover {
  color: #000;
}

.lazy-michelle {
  margin-bottom: 15px;
}

.terms {
  text-align: justify;
  font-size: 12px;
  padding: 0 15px;
  margin-bottom: 15px;
}

.errors code {
  margin: 0;
  padding: 0;
  background-color: rgba(0,0,0,0.1);
}

.design-warnings {
  padding-bottom: 30px;
}

.design-warnings li {
  font-size: 12px;
  clear: both;
}

.design-warnings .note {
  font-weight: 600;
  display: inline-block;
  padding: 5px 8px;
  margin: -6px 8px 10px 0;
  border-radius: 5px;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.1);
  font-family: 'Source Code Pro', monospace;
  float: left;
}

.errors {

}

.errors li {

}

@media (max-width: 768px) {
  .explanation, .design-warnings, #step1-button, h1, #preview, #source {
    max-width: 100%;
  }

  h2 {
    text-align: left;
  }

  #proof {
    position: relative;
    left: 0;
    top: 20px;
    margin: 0 auto;
  }

  #proof-shirt, #proof-canvas, #proof {
    width: 294px;
    height: 294px;
  }

  #proof-canvas canvas {
    margin-top: 70px;
  }

  #proof .caption {
    display: none;
  }

  .form-wrapper form {
    margin-top: -30px;
  }

  #styleswitcher {
    width: 250px;
    margin-left: 20px;
    overflow: visible;
  }

  #styleswitcher, #styleswitcher .hljs-keyword {
    color: #fff !important;
  }

  #styleswitcher.show {
    margin-left: -220px;
    background-color: rgba(0,0,0,0.8);
  }

  #styleswitcher ul {
    height: 100%;
    overflow: scroll;
  }

  .show-switcher {
    display: inline-block;
  }

  .table {
    overflow: hidden;
  }

  /* Still not exact but meh. */
  #preview pre {
    max-width: 100%;
    white-space: pre-wrap;
  }

  #preview code:hover {
    font-family: 'BLOKKNeue-Regular';
    letter-spacing: -3px;
    word-spacing: -10px;
    font-size: 18px;
  }

  #preview code .hljs-title,
  #preview code .hljs-keyword,
  #preview code .hljs-string {
    font-weight: normal !important;
  }
}
