/*The css files are only used for browser (html) channel. For app_html, the css styles are embedded in html files. */

.hide {
  display: none;
}

.hidden {
  position: absolute;
  top: -100px; /* take out hidden fields of layout flow */
  width: 0;
  height: 0;
  opacity: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /*check ie9*/
}

body {
  background-color: #fff;
  font-size: .8rem;
  margin: 0;
  padding: 0;
  min-width: 230px;
}

a {
  text-decoration: none;
  cursor: pointer;
}

a:hover, a:focus, a:active {
  text-decoration: underline;
}

.main,
.language-switch {
  padding: 0 4vh;
}

/* header */
.logo {
  width: 50%;
  display: inline-block;
  vertical-align: middle;
  padding: 4vh 4vh 3vh;
}

.logo img {
  height: 100%;
  max-height: 48px;
  max-width: 100%;
}

.logo-right {
  text-align: right;
}

/* content */

.language-switch {
  text-align: right;
  font-size: .7rem;
  line-height: 1.3;
}

.language-switch label {
  margin-right: 1rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: .5rem;
}

h1 sup {
  font-size: .7rem; /*check ie9*/
  font-weight: 400;
}

p, ol {
  margin-bottom: .3rem;
}

ol {
  margin-left: 2rem;
}

.data-wrapper {
  margin-bottom: .3rem;
  font-size: .7rem;
  line-height: 1.3;
}

.code-wrapper + .code-wrapper {
  margin-top: .25rem;
}

dd, dt {
  display: inline-block;
}

dt {
  width: 50%;
  text-align: right;
  padding-right: 1rem;
  word-break: break-word;
}

dd {
  width: 50%;
  text-align: left;
  font-weight: 600;
}

.helptext {
  text-align: center;
  margin: .25rem 0;
}

input[type="text"],
input[type="password"],
select {
  font-weight: 600;
  padding: .5rem 1rem;
  line-height: 1;
  max-width: 100%;
  text-align: center;
  width: 8rem;
  margin-bottom: .25rem;
  font-size: .7rem;
}

input[type="text"]:focus,
input[type="text"]:active,
input[type="password"]:focus,
input[type="password"]:active,
select:focus,
select:active {
  outline: none;
}

select {
  padding-right: 1.6rem;
  text-align: left;
  line-height: 1.2;
  background: #fff no-repeat center right 0.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
}

select::-ms-expand {
  display: none;
}

.language-switch select {
  width: 8rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

[placeholder]{
  text-overflow: ellipsis;
  overflow: hidden;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #999;
  text-overflow: ellipsis;
  overflow: hidden;
  opacity: .8;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #999;
  text-overflow: ellipsis;
  overflow: hidden;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #999;
  text-overflow: ellipsis;
  overflow: hidden;
}
:-moz-placeholder { /* Firefox 18- */
  color: #999;
  text-overflow: ellipsis;
  overflow: hidden;
}

.processing-fullpage {
  background-color: rgba(255,255,255,.75);
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 999;
}

.processing-fullpage .spinner {
  background: 0 center no-repeat;
  background-size: contain;
  width: 3rem;
  height: 3rem;
  position: absolute;
  margin-left: -1.5rem;
  margin-top: -1.5rem;
  top: 50%;
  left: 50%;
}

.processing {
  padding: .5rem .25rem .5rem 1.75rem;
  font-size: .7rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: .5rem;
  position: relative;
}

.processing.error {
  margin: .5rem 0;
  padding: 1rem 2.2rem;
  font-size: .8rem;
  line-height: 1.5;
}

.processing p {
  margin-bottom: 0;
}

.processing::before {
  background-size: contain;
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin-right: .5rem;
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  margin-top: -.75rem;
  top: 50%;
  left: .5rem;
}

.data-wrapper .processing.error {
  padding: .5rem .25rem .5rem 1.75rem;
  margin: .25rem 0;
  line-height: 1.2;
  font-size: .7rem;
}

.data-wrapper .processing.error::before {
  background-size: contain;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: -.6rem;
}


/* footer */
footer {
  font-size: .7rem;
  padding: .5rem 4vh 0;
  text-align: center;
}

hr {
  border: 0;
  margin-bottom: .6rem;
  margin-top: .6rem;
}

footer a {
  vertical-align: middle;
  font-size: .6rem;
}

footer hr {
  margin-top: -.5rem;
}

footer .btn {
  margin-bottom: .5rem;
}

.btn {
  cursor: pointer;
  padding: .5rem 2rem;
  font-weight: 600;
  font-size: .6rem;
  line-height: 1;
  letter-spacing: .05rem;
  margin-right: .5rem;
}

.btn[disabled] {
  opacity: .5;
  pointer-events: none;
}

.code-wrapper.code-whitelist {
  margin-top: .5rem;
}

input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

input[type="checkbox"]+label{
  display: inline-block;
  position: relative;
  padding-left: 1.5rem;
  font-weight: 400;
}

input[type="checkbox"]+label::before,
input[type="checkbox"]+label::after{
  content: '';
  display: inline-block;
  border-radius: 2px;
  position: absolute;
  top: -2px;
  left: 0;
}

input[type="checkbox"]+label::before{
  width: 16px;
  height: 16px;
}

input[type="checkbox"]+label::after{
  /* with checkmark */
  height: 4px;
  width: 8px;
  top: -2px;
  left: 3px;
  -webkit-transform: translateY(4px) rotate(-45deg);
  transform: translateY(4px) rotate(-45deg);
  visibility: hidden;
}

input[type="checkbox"]:checked+label::after{
  visibility: visible;
}

/* IE9+ */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  img[src*=".svg"] {
    width: 100%;
  }
}

/* 390x400 */
@media (max-width: 399px) {
  body {
    font-size: .6rem;
  }

  p, ol {
    margin-bottom: .25rem;
  }

  h1 {
    font-size: 1.1rem;
    font-weight: 600;
  }

  .data-wrapper,
  input[type="text"],
  input[type="password"],
  select,
  .processing,
  .data-wrapper .processing.error {
    font-size: .6rem;
  }

  .processing.error {
    font-size: .7rem;
  }

  .btn {
    padding: .5rem 1rem;
  }

  .data-wrapper .btn {
    padding: .5rem;
  }

  dl {
    line-height: 1.3;
  }

  dt {
    width: 40%;
    padding-right: .25rem;
  }

  dd {
    width: 60%;
    padding-left: .25rem;
  }

  .processing {
    margin: .25rem 0;
  }

  input[type="text"],
  input[type="password"]{
    width: 6rem;
  }
}

/* 250x400 */
@media (max-width: 299px) {
  body {
    font-size: .7rem;
  }

  .main,
  .language-switch {
    padding: 0 .5rem;
  }

  .logo {
    padding: .5rem;
  }

  h1 {
    font-size: .8rem;
    margin-bottom: .3rem;
  }

  p, ol, dl {
    margin-bottom: .25rem;
  }

  body.shrinked ol {
    margin-left: 1rem;
  }

  dt {
    text-align: left;
  }

  dt label {
    display: block;
    text-align: right;
  }

  footer {
    padding: .5rem .5rem 0;
  }

  hr {
    margin-top: .3rem;
    margin-bottom: .3rem;
  }
}


/* shrinked version */
body.shrinked,
body.shrinked .data-wrapper,
body.shrinked input[type="text"],
body.shrinked input[type="password"],
body.shrinked select {
  font-size: .6rem;
}

body.shrinked h1 {
  font-size: .8rem;
  font-weight: 600;
  margin: .25rem 0;
}

body.shrinked p {
  margin-bottom: 0;
}

body.shrinked ol {
  margin-top: .25rem;
  margin-bottom: 0;
}

body.shrinked .processing {
  font-size: .6rem;
  margin-bottom: .25rem;
}

body.shrinked footer {
  padding: .25rem 4vh 0;
}

body.shrinked footer hr {
  margin-top: -.25rem;
  margin-bottom: .25rem;
}

body.shrinked footer .btn {
  margin-bottom: .25rem;
}

@media screen and (max-device-width: 480px) {
  body

  { -webkit-text-size-adjust: none; }
}

.qr-wrapper {
  text-align: center;
}

.qr-wrapper img {
  min-width: 325px;
  max-width: 325px;
  margin: 0 auto;
  clip-path: inset(35px 35px 35px 35px);
}

/* Redesign v. 2.3 */

.main-redesign h1 {
  color: #212121;
  margin-bottom: 0.5rem;
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
}

.main-redesign .data-wrapper ul {
  margin:0 0 0.5rem 0; /* 8px */
  list-style: none;
}

.main-redesign .data-wrapper li {
  color:#414141;
  padding-left: 0;
  font-weight: 400;
  font-size: 0.8125rem; /* 13px */
  margin-bottom: 2px;
}

.main-redesign .data-wrapper li.purchase-amount {
  font-weight: 600;
  font-size: 0.9375rem; /* 15px */
  color: #212121;
}

.main-redesign .data-wrapper p {
  color:#414141;
  font-size: 0.8125rem; /* 13px */
}

.main-redesign .code-wrapper.code-whitelist dd {
  width: 100%;
}

.main-redesign .code-wrapper.code-whitelist dt {
  display: none;
}

.main-redesign p, .main-redesign ol, .main-redesign dl {
  margin-bottom: 0.5rem; /* 8px */
}

.main-redesign a,
.footer-redesign a {
  color: #356FD3;
}

/* Form Elements */

/* Input */

.main-redesign input,
.main-redesign select,
.footer-redesign button {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  letter-spacing: .03rem;
}

.main-redesign label {
  display: block;
  color: #212121;
  font-size: .625rem; /* 10px */
  font-weight: 600;
  margin-bottom: .25rem; /* 4px */
}

.main-redesign input,
.main-redesign input[type="text"],
.main-redesign input[type="password"],
.main-redesign select {
  display: block;
  width: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #828282;
  background-color: #F2F2F2;
  outline: 2px solid #0000;
  outline-offset: -2px;
  text-align: left;
  margin-bottom: .5rem; /* 8px */
  font-size: .75rem; /* 12px */
  font-weight: 400;
}

.main-redesign input[type="text"]:focus,
.main-redesign input[type="text"]:active,
.main-redesign input[type="password"]:focus,
.main-redesign input[type="password"]:active,
.main-redesign select:focus,
.main-redesign select:active {
  outline: 2px solid #0E2563;
  outline-offset: -2px;
  border: none;
  border-bottom: 1px solid #828282;
}

.main-redesign input[type="text"].validation-error,
.main-redesign input[type="password"].validation-error {
  outline: 2px solid #BF303C;
  outline-offset: -2px;
  border: none;
  border-bottom: 1px solid #BF303C;
}

.main-redesign.language-switch label {
  display: inline-block;
}

.main-redesign.language-switch select {
  width: 8rem; /* 128px */
  display: inline-block;
}

.footer-redesign .btn {
  display: block;
  width: 100%;
  border-radius: 0;
  border: 1px solid #356FD3;
  letter-spacing: initial;
  font-size: .75rem; /* 12px */
}

.footer-redesign .btn:hover {
  border: 1px solid #356FD3;
}

.footer-redesign .btn:focus {
  outline: 2px solid #0E2563;
  outline-offset: -2px;
}

.footer-redesign .btn-primary{
  color: #FFFFFF;
  background-color: #356FD3;
}

.footer-redesign .btn-primary:hover {
  background-color: #2A57B0;
}

.footer-redesign .btn-secondary {
  color: #356FD3;
}

.footer-redesign .btn-secondary:hover {
  background-color: #F0F8FF;
}

.footer-redesign .btn-secondary:active {
  background-color: #bcd8fa;
  border-color: #1a3b8a;
  color: #1a3b8a;
}

.footer-redesign .btn-link {
  background-color: #FFFFFF;
  border-color: transparent;
  text-decoration: underline;
  color: #356FD3;
}

.footer-redesign .btn-link:hover {
  background-color: #F0F8FF;
  border-color: transparent;
}

.footer-redesign .btn-link:active {
  background-color: #bcd8fa;
  color: #1a3b8a;
}

.main-redesign input[type="checkbox"]+label {
  font-size: 0.6875rem; /* 11px */
}

.main-redesign input[type="checkbox"]+label::before {
  border: 1px solid #4B4B4B;
  border-radius: 0;
}

.main-redesign input[type="checkbox"]:checked+label::before {
  background-color: #356FD3;
  border-color: #356FD3;
}

.main-redesign input[type="checkbox"]:checked+label::after {
  border-color: #FFFFFF;
}

.main-redesign input[type="checkbox"]:not(:disabled):focus+label::before,
.main-redesign input[type="checkbox"]:not(:disabled):active+label::before {
  outline: 2px solid #0E2563;
  outline-offset: -2px;
}

.main-redesign input[type="checkbox"]+label::after {
  border-left: 2px solid #0e98e7;
  border-bottom: 2px solid #0e98e7;
}

.main-redesign input[type="checkbox"]+label::after {
  top: -1px;
  left: 4px;
}

/* window sizes up to 699px (05 - 600x400) */
@media (max-width: 699px) {
  .main-redesign h1 {
    font-size: 0.875rem; /* 14px */
  }

  .main-redesign .data-wrapper li {
    font-size: 0.6875rem; /* 11px */
    margin-bottom: 0;
  }

  .main-redesign .data-wrapper li.purchase-amount {
    font-size: 0.825rem; /* 13px */
  }

  .main-redesign .data-wrapper p {
    color: #414141;
    font-size: 0.6875rem; /* 11px */
  }
}

/* Accordion */

.accordion {
  width: 100%;
  border-top: 1px solid #E3E3E3;
}

.accordion input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  z-index: -1;
  left: -99999px;
}

.accordion input[type="checkbox"]+label {
  position: relative;
  display: block;
  padding: .5rem .5rem .5rem 1.7rem;
  text-align: left;
  margin-bottom: 0;
  cursor: pointer;
}

.accordion input[type="checkbox"]+label:hover {
  background: #F5F5F5;
}

.accordion input[type="checkbox"]:focus + label {
  outline: 2px solid #0E2563;
  outline-offset: -2px;
  border-radius: 0;
}

.accordion .accordion-content {
  max-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.accordion input[type='checkbox']:checked ~ .accordion-content {
  max-height: inherit;
  padding: .5rem .3rem .5rem 1.7rem;
  text-align: left;
}

/* Icon */
.accordion input[type='checkbox'] + label::after {
  content: '';
  display: block;
  position: absolute;
  right: auto;
  top: 0.75rem;
  bottom: auto;
  left: .5rem;
  width: auto;
  height: auto;
  visibility: visible;
  padding: 0;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  border: solid #333333;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transition: all .11s cubic-bezier(.2,0,.38,.9);
}

.accordion input[type='checkbox'] + label::before {
  display: none;
}

.accordion input[type='checkbox'] + label::after {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.accordion input[type='checkbox']:checked + label::after {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}