.payment {
  max-width: 35rem;
  margin: 0 auto;
}
.payment__tracklink a {
  color: rgb(45, 48, 71);
  text-decoration: underline;
}
.payment-balance-wrap.hidden {
  display: none;
}
.payment-card-wrap.no-credit-card .payment-card {
  display: none;
}
.payment-card-wrap:not(.no-credit-card) .payment-wrapper__text {
  display: none;
}
.payment__add-new-card {
  display: block;
  font-weight: bold;
  margin-top: 15px;
  color: grey;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.payment__add-new-card:hover {
  color: var(--secondary);
}
.payment__add-new-card:hover svg path {
  fill: var(--secondary);
}
.payment__add-new-card b {
  text-decoration: underline;
}
.payment__add-new-card svg {
  width: 18px;
}
.payment:not(:first-child) {
  margin-top: 4.6875rem;
}
.payment__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 1.125rem;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.payment__head > :not(:last-child) {
  margin-right: 0.9375rem;
}
.payment__status {
  font-size: max(1.125rem, 14px);
  line-height: normal;
  font-weight: 700;
  color: var(--error);
}
.payment-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 1rem;
  border: 2px solid;
}
.payment-card:not(:last-child) {
  margin-bottom: 1.25rem;
}
.payment-card__logo {
  height: 1.875rem;
  margin-right: 1.25rem;
}
.payment-card__logo > img {
  width: auto;
  height: 40px;
  -webkit-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
}
.payment-card__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}
.payment-card__list > *:not(:first-child) {
  margin-left: 1.25rem;
}
.payment-card__title {
  text-transform: uppercase;
  color: #00A7CE;
  margin-bottom: 0.375rem;
}
.payment-card__block {
  font-size: 12px;
  line-height: normal;
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
}
.payment-card__block.payment-card__link {
  margin-right: 0;
}
.payment-card__block a {
  color: #989898;
  text-decoration: underline;
  -webkit-transition: color var(--hover-transition);
  transition: color var(--hover-transition);
}
@media (min-width: 992px) {
  .payment-card__block a:hover {
    color: var(--secondary);
  }
}
.payment-card__link {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
}
.payment-wrapper {
  width: 100%;
  max-width: 35rem;
}
.payment-wrapper .shipped_to {
  font-size: 14px;
  line-height: 20px;
}
.payment-wrapper .shipped_to span {
  display: block;
  text-transform: uppercase;
}
.payment-wrapper .payment-card:not(:first-child) {
  margin-top: 3rem;
}
.payment-wrapper__actions {
  padding-top: 70px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
}
.payment-wrapper__actions .btn {
  position: relative;
  text-transform: uppercase;
}
.payment-wrapper__actions .btn.js-toggle-refund {
  background: #efe9de;
  color: #000;
  border-color: var(--error);
}
.payment-wrapper__actions .btn.js-toggle-refund:hover {
  background: var(--error);
  color: var(--white);
  border-color: var(--black);
}
.payment-wrapper__actions .btn.is-loading {
  pointer-events: none;
}
.payment-wrapper__actions .btn.is-loading::before, .payment-wrapper__actions .btn.is-loading::after {
  content: "";
  position: absolute;
  top: -7px;
  left: -7px;
  right: -7px;
  bottom: -7px;
  border: 1px solid rgba(0, 0, 0, 0.4509803922);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-animation: clippath 3s infinite linear;
  animation: clippath 3s infinite linear;
  border-radius: 2.5rem;
}
.payment-wrapper__actions .btn.is-loading::after {
  -webkit-animation: clippath 3s infinite -1.5s linear;
  animation: clippath 3s infinite -1.5s linear;
}
.payment-wrapper:not(:first-child) {
  margin-top: 2rem;
}
.payment-wrapper__title {
  margin-bottom: 1rem;
}
.payment-wrapper__title:not(:first-child) {
  margin-top: 3rem;
}
.payment-wrapper__text {
  font-size: 12px;
  line-height: 15px;
}
.payment-wrapper__list {
  line-height: max(1.5rem, 12px);
  margin-top: 1rem;
  color: #2D3047;
  max-width: 22.8125rem;
  width: 100%;
}
.payment-wrapper__list > * {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.payment-wrapper__list > *:not(:last-child) {
  margin-bottom: 0.625rem;
}
.payment-wrapper__list > * > * {
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}
.payment-wrapper__list > * > *:first-child {
  font-weight: 700;
}
.payment-wrapper__list > * > *:last-child {
  text-align: right;
}
.payment-wrapper__list.past-payment-info {
  max-width: none;
  padding-right: 100px;
}
.payment-history {
  margin-top: 2rem;
}
.payment-history a:not(.btn) {
  font-size: 12px;
  color: #808080;
  font-weight: bold;
  text-decoration: underline;
  -webkit-transition: color var(--hover-transition);
  transition: color var(--hover-transition);
}
@media (min-width: 992px) {
  .payment-history a:not(.btn):hover {
    color: var(--secondary);
  }
}
.payment-history__line-items {
  display: block !important;
}
.payment-history__line-item {
  font-weight: normal;
  font-size: 14px;
  padding-bottom: 16px;
  line-height: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.payment-history__line-item i {
  font-style: normal;
  max-width: 265px;
  display: inline-block;
}
.payment-history__line-item b {
  font-weight: normal;
  margin-left: auto;
}
.payment-history__head {
  background: #F7F7F7;
  padding: 1rem;
}
.payment-history__list {
  color: #2D3047;
}
.payment-history__list .btn {
  background: #EFE9DE;
  color: #000;
  position: absolute;
  right: 0;
  bottom: 0.9375rem;
}
.payment-history__list .btn.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.payment-history__list:not(:last-child) {
  margin-bottom: 2rem;
}
.payment-history__list > * {
  position: relative;
  margin-top: 1rem;
  padding: 0.875rem 1rem 1.5625rem;
  border-bottom: 1px solid #DEE2E6;
}
.payment-history__list--small > * {
  padding: 0.625rem 1rem;
}
.payment-history__list--small > *:not(:first-child) {
  margin-top: 0;
}
.payment-history__date {
  font-size: 14px;
  line-height: 21px;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: block;
  text-transform: uppercase;
}
.payment-history__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  font-size: 14px;
  line-height: 21px;
}
.payment-history__row:not(:last-child) {
  margin-bottom: 0.625rem;
}
.payment-history__title {
  font-size: max(1rem, 12px);
  line-height: max(1.1875rem, 12px);
  font-weight: 600;
  margin-bottom: 0.3125rem;
}
.payment-history__price {
  font-size: max(1rem, 12px);
  font-weight: 500;
}
.payment-history__btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.payment-history__past-due {
  color: #FC3765;
  font-weight: 700;
  text-transform: uppercase;
  display: none;
}
.payment-history__total {
  font-size: max(0.875rem, 12px);
  line-height: max(1.3125rem, 12px);
  max-width: 13.75rem;
  margin-left: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.payment-history__total:not(:last-child) {
  margin-bottom: 0.625rem;
}
.payment-history__total > *:first-child {
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}
.payment-history__total > *:last-child {
  text-align: right;
  font-weight: 500;
  padding-left: 0.625rem;
  font-size: max(1rem, 12px);
  line-height: max(1.25rem, 12px);
}
@media (max-width: 768px) {
  .payment__head {
    margin-bottom: 20px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .payment__head > :not(:last-child) {
    margin-right: 0;
    margin-bottom: 12px;
  }
  .payment__status {
    font-size: 16px;
  }
  .payment-card {
    padding: 32px 15px;
    position: relative;
  }
  .payment-card__link {
    position: absolute;
    right: 16px;
    bottom: 8px;
  }
  .payment-card__logo {
    margin-right: 25px;
  }
  .payment-wrapper .payment-card:not(:first-child) {
    margin-top: 16px;
  }
  .payment-wrapper:not(:first-child) {
    margin-top: 28px;
  }
  .payment-wrapper__title:not(:first-child) {
    margin-top: 32px;
  }
  .payment-history {
    margin-top: 0;
  }
  .payment-history__list > * {
    margin-top: 7px;
  }
  .payment-history__btn .btn.btn--small {
    padding: 8px 35px !important;
    font-size: 14px !important;
  }
}

body.has_past_due .payment-history__past-due {
  display: block;
}

@-webkit-keyframes clippath {
  0%, 100% {
    clip-path: inset(0 0 98% 0);
  }
  25% {
    clip-path: inset(0 98% 0 0);
  }
  50% {
    clip-path: inset(98% 0 0 0);
  }
  75% {
    clip-path: inset(0 0 0 98%);
  }
}

@keyframes clippath {
  0%, 100% {
    clip-path: inset(0 0 98% 0);
  }
  25% {
    clip-path: inset(0 98% 0 0);
  }
  50% {
    clip-path: inset(98% 0 0 0);
  }
  75% {
    clip-path: inset(0 0 0 98%);
  }
}