* {
  margin: 0;
  padding: 0
}

html {
  font-family: PingFangSC-Regular;
  color: #333333;
}

body {
  background: #F5F5F5;
}

ul {
  list-style: none;
}

a,
a:hover {
  text-decoration: none;
}

.top-bg,
.mob-top-bg {
  width: 100%;
  height: 320px;
  background: #2C333E;
  position: absolute;
  z-index: 0;pointer-events: none;
}

.payment-container {
  width: 800px;
  margin: 0 auto;
}

.top-header,
.mob-top-header {
  width: 100%;
  height: 50px;
  padding: 36px 0 20px;
  display: flex;
  text-align: center;
}

.user-info,
.mob-user-info {
  display: flex;
}

.left-user-head {
  width: 40px;
  margin: 5px 12px 5px 0;
}

.left-user-head img,
.mob-left-user-head img {
  width: 100%;
}

.not-vip,
.is-vip,
.mob-not-vip,
.mob-is-vip {
  font-size: 13px;
  line-height: 50px;
  color: #FFFFFF;
}

.not-vip img,
.is-vip img,
.mob-not-vip img,
.mob-is-vip img {
  vertical-align: text-bottom;
  margin-left: 6px;
  width: 18px;
}

.login-btn,
.mob-login-btn {
  width: 62px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #FFC047;
  text-align: center;
  line-height: 20px;
  font-size: 13px;
  color: #FFC047;
  cursor: pointer;
}

.login-text,
.mob-login-text {
  display: block;
  font-size: 12px;
  color: #FFFFFF;
  margin-top: 5px;
  margin-left: 2px;
}

.top-head-title,
.mob-top-head-title {
  width: 100%;
  height: 50px;
  font-size: 32px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  color: #FFD27A;
  line-height: 50px;
  letter-spacing: 3px;
}

.top-head-vip-time,
.mob-top-head-vip-time {
  width: 100%;
  height: 50px;
  font-size: 20px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  color: #FFD27A;
  line-height: 50px;
}

.top-desc-img {
  width: 100%;
  height: 120px;
  background: rgba(255, 255, 255, .1);
  border-radius: 4px;
  display: flex;
  justify-content: space-around;
}

.desc-img-item {
  width: 140px;
  height: 120px;
  text-align: center;
}

.desc-img-item img {
  height: 48px;
  margin-top: 24px;
}

.desc-img-item div {
  font-size: 14px;
  color: #FFFFFF;
  margin-top: 7px;
}

.goods-list {
  width: 100%;
  height: 124px;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
}

.goods-item {
  width: 254px;
  height: 122px;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid #DEDEDE;
  text-align: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.goods-item-selected {
  background: #FFF7EF;
  box-shadow: 0 3px 8px 0 #FFAD11;
  border: 2px solid #FFAD11;
}

.goods-name {
  font-size: 14px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  color: #333333;
  line-height: 20px;
  margin-top: 12px;
}

.goods-price {
  height: 45px;
  font-size: 32px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  color: #FF8400;
  line-height: 45px;
  margin-top: 5px;
}

.goods-price-total {
  line-height: 20px;
  color: #666;
  font-size: 14px;
  margin-top: 7px;
}

.currency {
  font-size: 12px;
  font-weight: 400;
  color: #FF8400;
}

.gifts {
  height: 20px;
  position: absolute;
  top: -10px;
  left: 0;
}

.gifts img {
  height: 20px;
  position: relative;
  right: 0;
}

.goods-arrow {
  width: 0;
  border: 7px solid transparent;
  border-bottom: 7px solid #FFAD11;
  position: absolute;
  left: 50%;
  bottom: -16px;
  margin-left: -4px;
  display: none;
}

.goods-arrow div {
  width: 0;
  border: 5px solid transparent;
  border-bottom: 5px solid #FFFFFF;
  position: relative;
  left: -5px;
  top: 8px;
}

.goods-desc {
  height: 38px;
  background: #FFFFFF;
  border: 2px solid #FFAD11;
  border-radius: 4px;
  line-height: 38px;
  margin-top: 14px;
  display: none;
}

.goods-desc img {
  display: block;
  margin: 11px 12px;
  width: 16px;
}

.goods-desc span {
  font-size: 14px;
  color: #666666;
}

.discount-title {
  height: 39px;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid #E3E3E3;
  margin-top: 20px;
  line-height: 39px;
  justify-content: space-between;
  cursor: pointer;
  display: flex;
}

.discount-title-open {
  border: 1px solid transparent;
}

.discount-left img {
  display: block;
  width: 14px;
  margin: 13px 7px 12px 15px;
}

.discount-left,
.discount-right {
  display: flex;
  width: 50%;
  z-index: 4;
}

.discount-right {
  justify-content: flex-end;
}

.discount-left span {
  font-size: 14px;
  color: #444444;
}

.discount-right img {
  display: block;
  width: 12px;
  height: 12px;
  margin: 14px 10px 13px 11px;
}

.discount-right span {
  font-size: 13px;
  color: #333333;
}

.discount-container {
  position: relative;
  display: none;
}

.discount-list {
  padding-top: 40px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 4px 0 rgba(200, 200, 200, 0.5);
  border-radius: 4px;
  border: 1px solid #DEDEDE;
  box-sizing: border-box;
  z-index: 1000;
  display: none;
}

.discount-item {
  height: 41px;
  line-height: 41px;
  background: #FFFFFF;
  text-indent: 37px;
  font-size: 14px;
  color: #444444;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.discount-item:hover {
  background: #F5F5F5;
}

.discount-item-selected {
  background: #F5F5F5;
}

.discount-item:last-of-type {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.selected-mark {
  position: absolute;
  width: 12px;
  top: 12px;
  right: 10px;
}

.payment-type {
  height: 322px;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid #DEDEDE;
  margin: 20px 0 60px;
}

.payment-type-title {
  height: 36px;
  line-height: 36px;
  display: flex;
}

.payment-title-item {
  width: 100%;
  background: #EAEAEA;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.payment-title-selected {
  background: #FFFFFF;
}

.payment-title-item:nth-of-type(1) {
  border-top-left-radius: 3px;
}

.payment-title-item:nth-of-type(3) {
  border-top-right-radius: 3px;
}

.payment-title-item img {
  height: 20px;
  vertical-align: text-bottom;
}

.payment-title-item span {
  font-size: 14px;
}

.payment-type-content {
  height: 212px;
  overflow: hidden;
}

.payment-type-item {
  height: 211px;
  display: flex;
  border-bottom: 1px solid #DEDEDE;
  overflow: hidden;
}

.card .payment-title-item,
.paypal .payment-title-item {
  height: 211px;
  display: flex;
  border-bottom: 1px solid #E4E3E5;
}

.paypal .payment-title-item {
  display: block;
}

.pay-scan-btn,
.pay-scan-btn--loading {
  width: 185px;
  margin: 34px 64px 17px 196px;
}

.btn-wx,
.btn-zfb {
  width: 183px;
  height: 66px;
  border: 1px solid #DEDEDE;
  line-height: 66px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.pay-btn-checked {
  border: 1px solid #FF8400;
}

.btn-zfb {
  margin-top: 24px;
}

.btn-wx img,
.btn-zfb img {
  width: 32px;
  margin: 17px 25px 0 40px;
  display: inline-block;
  vertical-align: top;
}

.btn-wx img {
  margin-right: 30px;
}

.btn-wx span,
.btn-zfb span {
  font-size: 16px;
}

.pay-scan-code {
  width: 130px;
  height: 130px;
  background: url("/images/act/payment/code-bg.png") no-repeat;
  background-size: cover;
  background-position: center center;
  margin: 34px auto 11px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

.over-loading {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .633);
  overflow: hidden;
}

.pay-scan-code-loading {
  background: url("/");
}

.over-default {
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, .633);
  overflow: hidden;
}

.over-default img {
  display: block;
  height: 40px;
  margin: 39px auto 17px;
}

.over-default span {
  font-size: 17px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  color: #FFFFFF;
}

.qr-code-img {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4e3e5;
  border-radius: 4px;
}

.pay-scan-notice {
  height: 20px;
  font-size: 14px;
  color: #666;
}

.card-img-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 200px;
  padding: 0 40px 0 30px;
  margin: 35px 0 46px;
  border-right: 1px solid #E4E3E5;
  box-sizing: border-box;
}

.card-img-group img {
  width: 50px;
  height: 50px;
}

.card-form-group {
  margin-top: 32px;
}

.form-item,
.mob-form-item {
  margin-bottom: 15px;
  font-size: 0;
}

.input-label {
  display: inline-block;
  width: 120px;
  height: 36px;
  line-height: 36px;
  text-align: right;
  font-size: 13px;
  margin-right: 16px;
}

.stripe-submitting {
  cursor: not-allowed !important;
  opacity: .5;
}

.payment-input {
  width: 288px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid #E4E3E5;
}

.time-select {
  width: 125px;
  height: 36px;
  border-radius: 5px;
  border: 1px solid #E4E4E4;
}

.time-hr {
  display: inline-block;
  width: 40px;
  text-align: center;
  font-size: 13px;
}

.paypal-btn {
  width: 268px;
  height: 139px;
  margin: 42px auto 0;
  border: 1px solid #FF8400;
  text-align: center;
  position: relative;
}

.paypal-btn img {
  width: 200px;
  margin-top: 46px;
}

.checked-mark {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0;
  right: 0;
  background: url("/images/act/payment/check.png") no-repeat;
  background-size: 100%;
}

/*
    *payment-type-footer
*/
.payment-type-footer {
  height: 76px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.footer-right {
  display: flex;
}

.payment-type-price {
  margin-right: 26px;
  text-align: right;
}

.total-price,
.price-detail,
.about-rmb {
  font-size: 13px;
  color: #999999;
  margin-top: 4px;
}

.price-detail {
  margin-top: 10px;
  margin-left: 12px;
}

.price-detail,
.about-rmb {
  display: none;
}

.price-detail span,
.about-rmb span {
  color: #666666;
}

.about-rmb {
  margin-top: 10px;
}

.finally-price {
  font-size: 28px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  color: #FF8400;
  line-height: 40px;
}

.pay-sure-btn {
  width: 160px;
  height: 75px;
  background: #FF8400;
  border-bottom-right-radius: 3px;
  text-align: center;
  line-height: 76px;
  color: #FFFFFF;
  font-size: 18px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  display: none;
}

#paypal-sure {
  padding-top: 15px;
  background: transparent;
}

.rotate-180 {
  transform: rotate(180deg);
  -webkit-tranform: rotate(180deg);
}

.width-60 {
  width: 60px !important;
  height: 60px !important;
  margin: 35px !important;
}

.width-60>div:before {
  background-color: #FFFFFF !important;
}

/*支付成功*/
.payment-success {
  height: 288px;
  text-align: center;
  overflow: hidden;
  display: none;
}

.payment-success img {
  display: block;
  width: 60px;
  margin: 82px auto 0;
}

.success-title {
  font-size: 16px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  color: #333333;
  line-height: 22px;
  margin-top: 20px;
}

.success-info {
  font-size: 14px;
  color: #666666;
  line-height: 20px;
  margin-top: 8px;
}

.i-know-btn {
  width: 185px;
  height: 34px;
  background: #FE9018;
  border-radius: 4px;
  margin: 20px auto;
  font-size: 13px;
  font-family: PingFangSC-Regular;
  font-weight: 400;
  text-align: center;
  color: #fff;
  line-height: 34px;
  cursor: pointer;
}

.top-bar {
  width: 950px;
  height: 101px;
  margin: 0 auto;
  display: flex;
}

.top-bar>a {
  display: block;
  width: 50px;
  margin-top: 25px;
  margin-right: 50px;
}

.top-bar>a img {
  width: 100%;
}

.top-bar>div ul {
  display: flex;
  height: 100%;
  line-height: 100px;
}

.top-bar>div li {
  width: 150px;
  text-align: center;
}

.top-bar>div li a {
  font-size: .92857rem;
  color: #555;
  font-weight: 600;
  text-decoration: none;
}

/*mobile样式*/
.mob-top-bg {
  height: 175px;
}

.mob-payment-container {
  width: 100%;
}

.mob-top-header {
  height: auto;
  display: block;
  padding: 12px 0 23px;
}

.mob-user-info {
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

.mob-left-user-head {
  width: 22px;
  font-size: 0;
  margin: 0 12px 0 0;
}

.mob-login-btn-group {
  display: flex;
}

.mob-login-text {
  margin-top: 0;
  margin-left: 8px;
  line-height: 22px;
}

.mob-top-head-title,
.mob-top-head-vip-time {
  height: 30px;
  font-size: 22px;
  margin: 25px auto 0;
  text-align: center;
  line-height: 30px;
}

.mob-top-head-vip-time {
  font-size: 16px;
}

.mob-not-vip,
.mob-is-vip {
  line-height: 22px;
}

.mobile {
  padding-bottom: 48px;
}

.mob-desc-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #fff;
  margin: 0 12px;
  padding: 20px 10px;
  border-radius: 10px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.mob-desc-item {
  width: 33%;
  text-align: center;
  margin-bottom: 16px;
  font-size: 0;
}

.mob-desc-item img {
  width: 48px;
}

.mob-desc-text {
  font-size: 11px;
  color: #666666;
  margin-top: 10px;
}

.mob-goods {
  padding: 0 16px 10px;
  background: #fff;
  overflow: hidden;
}

.mob-goods-header {
  font-size: 15px;
  margin-bottom: 16px;
}

.mob-goods-item {
  min-height: 48px;
  margin-bottom: 10px;
  padding: 20px 8px;
  border: 1px solid #E6E6E6;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.mob-goods-item-selected {
  border: 1px solid #FE9018;
}

.mob-goods-left {
  width: 65%;
}

.mob-goods-name {
  display: flex;
}

.mob-goods-name span {
  width: 90px;
  height: 22px;
  font-size: 16px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  color: #333;
  line-height: 22px;
}

.mob-goods-name img {
  height: 22px;
}

.mob-goods-desc {
  margin-top: 10px;
  font-size: 11px;
  color: #999;
}

.mob-goods-price {
  width: 35%;
  text-align: right;
  font-size: 20px;
  color: #FE9018;
}

.mob-discount {
  height: 64px;
  margin: 0 12px 40px;
  padding: 0 12px;
  background: #fff;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mob-discount-title {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.mob-choose-text {
  font-size: 15px;
  color: #a2a2a2;
  display: flex;
  align-items: center;
}

.mob-choose-text::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 4px;
  display: block;
  background: url("/images/act/vip-mobile/arrow@2x.png") no-repeat;
  background-size: contain;
}

.mob-price-footer {
  width: 100%;
  height: 48px;
  background: #fff;
  position: fixed;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.btn--submit--mobile {
  width: 110px;
  height: 48px;
  background: #FFC68B;
  text-align: center;
  font-size: 16px;
  color: #9D611B;
  line-height: 48px;
  font-weight: 600;
}

.btn--submit--mobile:hover,
.mob-stripe-sure:hover,
.mob-refresh-close:hover,
.mob-finish-pay:hover {
  color: #ffffff;
}

.mob-payment-type-item:hover {
  color: inherit;
}

.mob-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1;
  display: none;
}

.mob-modal {
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  position: fixed;
  top: 50%;
  left: 20px;
  right: 20px;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
}

.mob-payment-type-container {
  padding: 20px 16px;
}

.mob-modal-title {
  height: 22px;
  margin-bottom: 28px;
  text-align: center;
  font-size: 16px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  color: #333;
  line-height: 22px;
  position: relative;
}

.mob-modal-close {
  width: 22px;
  height: 22px;
  background: url("/images/act/vip-mobile/close.png") no-repeat;
  background-size: cover;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
}

.mob-modal-prev {
  width: 22px;
  height: 22px;
  background: url("/images/act/vip-mobile/back@2x.png") no-repeat;
  background-size: cover;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
}

.mob-discount-list {
  max-height: 420px;
  overflow-y: auto;
}

.mob-discount-item {
  height: 52px;
  border-bottom: 1px solid #EAEAEA;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mob-discount-item:last-of-type {
  border-bottom: none;
}

.mob-discount-item::after,
.mob-payment-type-item::after {
  content: '';
  width: 30px;
  height: 30px;
  background: url("/images/act/vip-mobile/check_grey.png") no-repeat;
  background-size: cover;
}

.mob-discount-item-selected::after,
.mob-payment-type-item-selected::after {
  content: '';
  width: 30px;
  height: 30px;
  background: url("/images/act/vip-mobile/checked.png") no-repeat;
  background-size: cover;
}

.mob-payment-type-item {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #555;
}

.mob-payment-type-item>div {
  display: flex;
  align-items: center;
}

.mob-payment-type-item>div img {
  height: 30px;
  margin-right: 12px;
}

.mob-payment-footer {
  height: 48px;
  margin-top: 59px;
  display: flex;
  justify-content: space-between;
}

.mob-payment-sure,
.mob-stripe-sure {
  width: 110px;
  height: 48px;
  background: #FFC68B;
  border-radius: 12px;
  line-height: 48px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #9D611B;
}

.mob-price-detail {
  width: 100%;
  height: 28px;
  padding: 0 12px;
  background: #FFF5EB;
  font-size: 11px;
  color: #FF9C31;
  line-height: 28px;
  position: fixed;
  bottom: 48px;
  display: none;
}

.mob-footer-detail {
  padding-left: 12px;
  line-height: 48px;
  font-size: 24px;
  color: #9D611B;
  font-weight: 600;
}

.mob-price-unit,
.mob-price-unit-finally {
  font-size: 12px;
}

.mob-about-rmb,
.mob-about-rmb-finally {
  font-size: 11px;
  font-weight: 400;
  color: #999;
  display: none;
}

.mob-brokage {
  font-size: 13px;
  color: #999;
}

.mob-payment-price-detail {
  padding-left: 12px;
  font-size: 24px;
  color: #9D611B;
  font-weight: 600;
}

.mob-stripe-icons {
  /* margin: 27px 16px 30px; */
  display: flex;
  justify-content: space-between;
}

.mob-stripe-icons img {
  width: 300px;
  height: 48px;
}

.mob-success-info,
.mob-error-info {
  text-align: center;
}

.mob-success-info:before,
.mob-processing-info:before,
.mob-error-info:before {
  content: '';
  display: block;
  width: 180px;
  height: 128px;
}

.mob-success-info:before {
  margin: 54px auto 26px;
  background: url("/images/act/vip-mobile/success.png") no-repeat;
  background-size: contain;
}

.mob-processing-info:before {
  margin: 0 auto;
  background: url("/images/act/vip-mobile/processing.png") no-repeat;
  background-size: contain;
}

.mob-error-info:before {
  margin: 54px auto 26px;
  background: url("/images/act/vip-mobile/error.png") no-repeat;
  background-size: contain;
}

.mob-success-info h4,
.mob-error-info h4 {
  font-size: 16px;
  font-family: PingFangSC-Medium;
  font-weight: 500;
  color: #333;
  line-height: 22px;
  margin-bottom: 14px;
}

.mob-success-info p,
.mob-error-info p {
  font-size: 14px;
  font-family: PingFangSC-Regular;
  font-weight: 400;
  color: #666;
  margin-bottom: 34px;
}

.mob-processing-title {
  font-size: 14px;
  text-align: center;
  line-height: 20px;
  color: #999;
  margin-bottom: 42px;
}

.mob-processing-text {
  font-size: 14px;
  line-height: 20px;
  color: #333;
  margin-bottom: 8px;
}

.mob-processing-text:nth-of-type(2) {
  margin-bottom: 17px;
}

.mob-refresh-close,
.mob-finish-pay,
.mob-re-pay {
  display: block;
  width: 261px;
  height: 48px;
  margin: 0 auto 31px;
  background: #FFC68B;
  border: 1px solid #FFC68B;
  border-radius: 12px;
  font-size: 16px;
  line-height: 48px;
  font-weight: 600;
  color: #9D611B;
  text-align: center;
}

.mob-finish-pay {
  margin-bottom: 16px;
}

.mob-re-pay {
  background: #ffffff;
  color: #9D611B;
  margin-bottom: 0;
}

/*加载动画*/
.loading-box {
  width: 200px;
  height: 200px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -100px;
  padding: 1em;
  line-height: 140px;
  font-size: 30px;
  text-align: center;
  box-sizing: border-box;
  font-family: sans-serif;
  color: rgba(255, 255, 255, 0.8);
  z-index: 2;
  -webkit-transition: .3s color, .3s border, .3s transform, .3s opacity;
  transition: .3s color, .3s border, .3s transform, .3s opacity;
  display: none;
}

.loader:before,
.loader:after,
.loader {
  display: inline-block;
  width: 1em;
  height: 1em;
  color: inherit;
  vertical-align: middle;
  pointer-events: none;
  border-radius: 50%;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: loader 1.8s infinite ease-in-out;
  animation: loader 1.8s infinite ease-in-out;
}

.loader {
  color: currentcolor;
  position: relative;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
  top: -1em;
}

.loader:before {
  right: 100%;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.loader:after {
  left: 100%;
}

.loader:before,
.loader:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  width: inherit;
  height: inherit;
}

@-webkit-keyframes loader {

  0%,
  80%,
  100% {
    box-shadow: 0 1em 0 -1em;
  }

  40% {
    box-shadow: 0 1em 0 -.2em;
  }
}

@keyframes loader {

  0%,
  80%,
  100% {
    box-shadow: 0 1em 0 -1em;
  }

  40% {
    box-shadow: 0 1em 0 -.2em;
  }
}
