﻿/*@import url("https://fonts.googleapis.com/css?family=Droid+Sans+Mono|Source+Sans+Pro");*/
html {
  box-sizing: border-box;
}

*, *::after, *::before {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
  width: 100%;
}

html {
  font-size: 1em;
}
@media (max-width: 30em) {
  html {
    font-size: 1.125em;
  }
}

body {
  /*background-image: url("http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/grey_wash_wall.png");*/
  font-family: 'Source Sans Pro', sans-serif;
  /*margin-top: 4rem;*/
  position: relative;
}

.checkout {
    margin-top: 20px;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
  background-color: #ECECEE;
  border-radius: .25rem;
  box-shadow: 0 0 8em #373D46;
  min-width: 20rem;
}
.checkout::after {
  clear: both;
  content: "";
  display: block;
}
.checkout__inner {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  bottom: 2em;
  position: relative;
}
.checkout__inner::after {
  clear: both;
  content: "";
  display: block;
}

.card {
  border-radius: 1rem;
  color: #ECECEE;
  font-family: 'Droid Sans Mono', monospace;
  height: 12.611rem;
  margin-bottom: 1rem;
  position: relative;
  text-transform: uppercase;
  width: 20rem;
}
.card__front {
  height: 50%;
  padding: .5rem 1.5rem 0;
  position: relative;
  top: 50%;
}
.card__front:before, .card__front:after {
  content: "";
  bottom: 2rem;
  color: #9EA1A7;
  font-size: .7rem;
  position: absolute;
}
.card__front:before {
  content: "Titular";
}
.card__front:after {
  content: "Vencimiento";
  right: 1.5rem;
}
.card__logo {
  /*background-image: url("https://s32.postimg.org/9g0hrlhyt/visa_logo.png");*/
  background-image: url("/Images/card_visa2.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 4.75rem; /*2.75rem;*/
  position: absolute;
  width: 6rem; /*4rem;*/
  z-index: 3;
}
.card__logo.top-right {
  top: -6rem;
  right: 1rem;
}
.card__logo.bottom-right {
  bottom: .75rem;
  right: 1rem;
}
.card__chip {
  /*background: url("http://s32.postimg.org/bs9qd2q05/card_chip.png") no-repeat center center;*/
  background: url("/Images/card_chip.png") no-repeat center center;
  background-size: cover;
  height: 3rem;
  left: 1.4rem;
  position: absolute;
  top: -3rem;
  width: 3rem;
}
.card__number {
  font-size: 1.325rem;
  left: 1.5rem;
  letter-spacing: .1rem;
  position: absolute;
}
.card__holder-name {
  bottom: 1rem;
  display: inline-block;
  float: left;
  font-size: .8rem;
  left: 1.5rem;
  max-width: 14rem;
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__exp {
  bottom: 1rem;
  display: inline-block;
  float: right;
  font-size: .8rem;
  position: absolute;
  right: 1.5rem;
}
.card__strip {
  background-color: #222;
  height: 2rem;
  margin-top: 1.5rem;
  width: 100%;
}
.card__ccv {
  background-color: #fff;
  border-radius: .25rem;
  color: #373D46;
  font-size: .75rem;
  font-style: italic;
  font-weight: 600;
  height: 1.5rem;
  line-height: 1.5rem;
  margin: 1.5rem auto 0;
  max-width: 17rem;
  padding-right: .5rem;
  position: relative;
  text-align: right;
}
.card__ccv:before {
  content: "CCV";
  color: #ECECEE;
  font-size: .5rem;
  font-style: normal;
  font-weight: 400;
  position: absolute;
  right: .5rem;
  top: -1.25rem;
}

.flip {
  -webkit-transition: 250ms ease;
  transition: 250ms ease;
  border-radius: 1rem;
  height: 100%;
  position: absolute;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  width: 100%;
}
.flip__front, .flip__back {
  -webkit-transition: 250ms ease;
  transition: 250ms ease;
  background-color: #373D46;
  border-radius: 1rem;
  left: 0;
  height: 100%;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
  visibility: hidden;
  z-index: 1;
}
.flip__front.shown, .flip__back.shown {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.flip__back {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.form {
  padding: 0 1rem;
}
.form > * + * {
  /*margin-top: 1rem;*/
}
.form__label {
  display: block;
  font-size: .75rem;
  margin-bottom: .25rem;
  max-width: 17rem;
  text-transform: uppercase;
}
.form__input, .form__select, .form__btn {
  background-color: transparent;
  border: 1px solid rgba(158, 161, 167, 0.5);
  border-radius: .25rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  height: 2rem;
  line-height: normal;
  outline: none;
  margin: 0;
  padding: .25rem;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}
.form__input:active, .form__input:hover, .form__input:focus, .form__select:active, .form__select:hover, .form__select:focus, .form__btn:active, .form__btn:hover, .form__btn:focus {
  outline: none;
}
.form__input.small, .form__select.small {
  float: left;
  display: block;
  margin-right: 2.35765%;
  width: 23.23176%;
}
.form__input.small:last-child, .form__select.small:last-child {
  margin-right: 0;
}
.form__input.large, .form__select.large {
  width: 100%;
}
.form__btn.submit {
  width: 100%;
  background-color: #0659f4;
  box-shadow: 0 2px 4px #9EA1A7;
  color: #ECECEE;
  cursor: pointer;
  height: auto;
  margin-top: 1rem;
  padding: 1rem;
  position: relative;
  text-transform: uppercase;
}
.form__btn i {
  position: relative;
  top: .05rem;
  margin-left: .5rem;
}
