.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 60px;
    text-align: center;
    border-radius: 3px;

    /* 定位 */
    position: absolute;
    z-index: 1;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltip_date {
    position: relative;
    display: inline-block;
}
.tooltip_date .tooltip_dateimg {
    visibility: hidden;
    width: 70px;
    text-align: center;
    border-radius: 3px;

    /* 定位 */
    position: absolute;
    z-index: 1;
}
.tooltip_date:hover .tooltip_dateimg {
    visibility: visible;
}

@font-face {
  font-family: 'icons';
  src: url("fonts/icomoon.woff") format('woff'), url("fonts/icomoon.ttf") format('truetype'), url("fonts/icomoon.otf") format('opentype'), url("fonts/icomoon.eot") format('embedded-opentype');
}
.month {
    width: 50%;
    float: left;
}
.year {
    width: 45%;
    float: right;
    margin-right: 5px;
}
.cvv {
    width: 40%;
  float: left;
}
.cvv-details {
    float: right;
    width: 50%;
    font-size: small;
    margin-top: 25px;
}
img.cvv-img {
    float: left;
}
.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  zoom: 1;
}
.card-line {
    display: flex;
}
.card-bounding{
  width: auto;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  top:50%;
  padding: 5px;
  border: 0px solid #3e73ea;
  border-radius: 6px;
  font-family: 'Roboto';
}

.card-bounding aside{
  font-size:15px;
  padding-bottom: 2px;
}
.card-container {
  width: 100%;
  padding-left: 50px;
  padding-right: 40px;
  position: relative;
  box-sizing: border-box;
  border: 1px solid #ccc;
  margin: 0 auto 5px auto;
}
.card-container input {
  width: 100%;
  letter-spacing: 1px;
  padding: 3px;
  border: 0;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 1px;
}
.card-type {
  width: 40px;
  height: 28px;
  background: url("https://s2.loli.net/2022/08/29/mpar5YbeOMhLCJW.png");
  background-position: 0 -145px;
  background-repeat: no-repeat;
  position: absolute;
  top: 0px;
  left: 4px;
}
.card-type.mastercard {
  background-position: 0 0;
}
.card-type.visa {
  background-position: 0 -57.5px;
}
.card-type.amex {
  background-position: 0 -28.5px;
}
.card-type.discover {
  background-position: 0 -87px;
}
.card-type.jcb {
  background-position: 0 -118px;
}
.card-valid {
  position: absolute;
  top: -5px;
    right: 3px;
    line-height: 40px;
    font-size: 35px;
  font-family: 'icons';
  color: #ccc;
}
.card-valid.active {
  color: #42ca7c;
}
.card-details {
  width: 60%;
  text-align: left;
  margin-bottom: 5px;
  transition: 300ms ease;
}
.card-details input {
  box-sizing: border-box;
  width: 100%;
}
.card-details input.error {
  border: 1px solid #c2313c;
  box-shadow: 0 4px 8px 0 rgba(238,76,87,0.3);
  outline: none;
}
.card-details .expiration {
  width: 50%;
  float: left;
  padding-right: 5%;
}
.card-details .cvv {
  width: 45%;
  float: left;
}
