/* CSS for the DNA Lounge store */

/****************************************************************************
 All colors go here, to keep them in one place.
 ****************************************************************************/

.typocheck { color: #F00; }
.dnalounge .highlight_row { background: #020; }


/****************************************************************************
 Other classes
 ****************************************************************************/

.cart          { border: 1px solid; padding: 1em; }
.cart table    { margin: auto; }
.cart input, .cart select  { font-size: 16px; }
.cart input.discount { font-size: inherit; }

.cart select {
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.25em 0.5em;
  background: #FFF;
}

.cartqty       { width: 3.5em; text-align: left; vertical-align: top; }
.cartqty input { width: 2.4em; margin-right: 0.7em; }
.cartqty input.donation { width: 3.5em; }
.cartqtyfinal  { font-size: larger; font-weight: bold; }
.cartimg       { width: 8em; text-align: left; vertical-align: top;
                 padding-bottom: 2em;  }
.cartimg img   { width: 7em; height: auto; border: 0; }
.cartdesc      { text-align: left; vertical-align: top; 
                 padding: 0 1em 2em 0; }
.cartdesc b    { display: block; font-size: larger; padding-bottom: 0.5em; }
.cartdescsub   { margin-top: 0.25em; }
.cartsum       { width: 4em; text-align: right; vertical-align: top; }

.conf          { border: 1px solid; padding: 1em; margin-bottom: 1em; }
.confimg       { text-align: left; vertical-align: middle; }
.confimg img   { width: 7em; height: auto; border: 0; }
.confkey       { text-align: left; vertical-align: top; font-weight: bold;
                 padding: 0 1em; white-space: nowrap; }
.confval       { text-align: left;  vertical-align: top; }

.receipt       { border: 1px solid; padding: 1em; margin-bottom: 1em; }
.receipt table { margin: auto; }
.receipt .cartqty { width: 2.5em; text-align: center; }
.receipt .cartdesc { padding: 0; }
.receipt .cartdesc b { font-size: 100%; }

.typocheck     { font-weight: bold; font-style: italic;
		 white-space: normal; width: 11em; padding-top: 0.2em; }

.ticket        { width: 100%; height: auto;
                 max-width: 5.5in; min-width: 300px;
                 display: block; margin: 0.5em 0; }

/* Empty checkboxes on the will-call page. */
.check { display: inline-block; border: 1px solid; position: relative;
          width: 0.8em; height: 0.8em; margin: 2px; }
.check.unchecked { background: #FFF; border-color: #000; }
.check.checked:before { content: '\D7';
  position: absolute; top: -0.2em; left: 0.1em; }

.check.checked, .check.unchecked { cursor: pointer; }
.flash { text-align: center; }

/* checkout page */

.checkout .flash {
  display: inline-block;
  margin: 0 auto;
  max-width: 36em;
}
.checkout .flash .err {
  margin: 0.25em auto;
  text-align: left;
}
.checkout .flash .err:first-child {
   font-size: larger;
   border: 1px solid;
   padding: 0.5em 1em;
   max-width: 20em;
}

.checkout .indent { margin: 0 2em; text-align: left; }

.checkout .floater {
  display: inline-block;
  margin: 0.5em;
  vertical-align: top;
  text-align: left;
}

.checkout .captioned {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  font-size: smaller;
}

.floatblurb {
  max-width: 21em;
  padding: 0.7em;
  margin: 0;
  font-size: smaller;
  display: inline-block;
  text-align: left;
}

.checkout input[type=submit] { font-size: larger; }

.checkout input[type=submit].applePay {
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: plain;
  -apple-pay-button-style: white;
}

.checkout input.cc_num   { width: 14em;   }
.checkout input.cvv2     { width: 6em;    }
.checkout select.title   { width: 21em;   }
.checkout input.name     { width: 11em;   }
.checkout input.address  { width: 23em;   }
.checkout input.city     { width: 23em;   }
.checkout input.state    { width: 14.5em; }
.checkout input.zip      { width: 7.5em;  }
.checkout select.country { width: 19em;   }
.checkout input.phone    { width: 12em;   }
.checkout input.email    { width: 12em;   }

/* Hide the up/down arrows on number fields, since increment/decrement
   don't make any sense on a credit card or security code. */
.checkout input[type=number] { -moz-appearance: textfield; }
.checkout input[type=number]::-webkit-inner-spin-button, 
.checkout input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}


.err_flag { display: inline-block; visibility: hidden;
            width: 0; height: 0; vertical-align: top;
            position: relative; left: 0; bottom: 4px; font-size: 14pt; }
.err_flag:before { content: '\D7'; }
.err_flag_left { left: -0.55em; }

.checkout #form_err { font-size: larger; margin: 1em 0; }

#share_dialog_shield {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 1;
  background: #000;
  opacity: 0.3;
}

#share_dialog {
  display: none;
  position: fixed;
  top: 14em;
  left: 50%;
  right: 50%;
  margin-left: -16em;
  width: 34em;
  padding: 2em;
  box-sizing: border-box;
  text-align: center;
  z-index: 2;
  color: #000;
  background: #FFF;
  border: 4px solid #444;
  border-radius: 1em;
  box-shadow: 8px 8px 5px #000;
  font-size: larger;
}

#share_dialog .notice {
  color: #000;
  display: block;
  margin-bottom: 1em;
  text-shadow: none;
}

#share_dialog nobr {
  display: inline-block;
  font-size: larger;
  margin: 0 0.5em;
}

#share_dialog a { color: #00E !important; }
#share_dialog a:hover { color: #00E !important; }
#share_dialog a:active { color: #F00 !important; }
#share_dialog a { z-index: 1; }

#share_dialog .share_close {
  position: absolute;
  top: 0; right: 0;
  display: block;
  font-size: 24pt;
  width: 1em; height: 1em;
  cursor: pointer;
}

@media screen and (max-width: 40em) {
  #share_dialog {
    margin-left: 0;
    width: auto;
    left: 2em;
    right: 2em;
  }
}


/* Mostly duplicated in calendar.css */

.checkout .share { 
  width: 3em; height: 3em; border: 0;
  margin-bottom: 0; margin-right: 0.2em;
  vertical-align: middle;
}

.checkout img.share {
  transition-duration: 0.25s;
  transition-property: transform;
}
.checkout img:hover.share {
  transform: scale(1.1);
}


/* checkout.php and account.php */
.acctbox { border: 1px solid; }
.acctbox > .gwbox { border-width: 0 0 1px 0; }
.acctbox form { padding: 0 1em 1em 1em; }
.forgot { font-style: italic; font-size: smaller; display: block; }

#login_password_err, #login_password2_err,
#signup_password_err, #signup_password2_err { white-space: nowrap; }
#email_err, #edit_email_err, #forgot_email_err { display: block; }
#edit_email_err { width: auto; }

.pass_help {
  font-weight: normal; font-style: italic;
  max-width: 20em; white-space: normal;
  font-size: smaller;
}

.checkout .pass_help { font-size: smaller; max-width: 18em; }

#savechanges, #reverify { font-size: larger; }

.bottom { position: relative; }
#logoutform { position: absolute; top: 0.3em; right: 0.2em; }

@media screen and (max-device-width: 736px) {
  .pass_warn { display: block; }
  #logoutform input { font-size: 9pt; }
}


@media screen and (max-width: 480px) {
  .checkout .indent { margin: 0 4px; }

  .cart          { padding: 0.7em 0.2em; border-color: #060; }
  .cartqty       { width: 1em; }
  .cartqty input { font-size: 12pt; width: 1em; margin-right: 0.2em; }
  .cartimg       { width: 4.9em; padding-bottom: 1em; padding-left: 0.25em; }
  .cartdesc      { padding-bottom: 1em; padding-right: 2px; }
  .cartdesc b    { font-size: 100%; padding-bottom: 0; }
  .cartdescsub   { font-size: smaller; }
  .cartimg img   { width: 4.4em; }
  .cartsum       { width: 2em; padding-right: 2px; }
  .cartqty       { width: 1em; }
  .cartqty input.donation { width: 2.2em; position: absolute; } /* overflow */

  .conf          { padding: 0.7em 0.2em; }
  .confkey       { padding: 0 0.5em 0 0.2em; }
  .confimg img   { width: 5em; }

  .receipt       { padding: 0.7em 0.2em; }
  .receipt .cartsum { padding-left: 0.5em; }
  .receipt .cartdesc { padding-bottom: 0.5em; }

  .checkout .floater { margin: 0.5em 0; }

  .checkout select.cc_type { width: 7.3em;  }
  .checkout input.cc_num   { width: 10.7em  }
  .checkout select.month   { width: 7em;    }
  .checkout select.year    { width: 7em;    }
  .checkout input.cvv2     { width: 3em;    }
  .checkout select.title   { width: 17.5em; }
  .checkout input.name     { width: 8.4em;  }
  .checkout input.address  { width: 18.2em; }
  .checkout input.city     { width: 18.2em; }
  .checkout input.state    { width: 11.8em; }
  .checkout input.zip      { width: 5em;    }
  .checkout select.country { width: 16em;   }
  .checkout input.phone    { width: 6em;    }
  .checkout input.email    { width: 11em;   }
  .typocheck               { width: 6em;    }

  #share_dialog { top: 4em; text-align: left; }

  .floatblurb { font-size: inherit; }
  .pass_help  { font-size: inherit; }

}

@media screen and (orientation: landscape) {
  #share_dialog {
    top: 2em;
  }
}

@media print {
  /* When printing tickets/receipts, shrink the font to save paper. */
  body, td  { font-size:8pt; }
  .page     { max-width: 7.8in; }

  .flash { display: none !important; }
}

