.payment-bg-1 {
  background: linear-gradient(148.66deg, #fc00ff -21.45%, #21d4fd 100%);
}

.payment-bg-2 {
  background-image: url("https://bb-developer-v1.web.app/_nuxt/img/payment-card-bg-2.8f32252.svg");
}

.ac-payment-card-wrapper {
  display: flex;
  flex-wrap: wrap;

  .ac-payment-card {
    margin-right: 15px;
    margin-bottom: 15px;

    &:last-child {
      margin-right: 0;
    }
  }
}

.ac-payment-card {
  --card-width: 307px;
  width: var(--card-width);
  height: calc(var(--card-width) * 0.6);
  background-size: cover;
  background-position: center;
  background-color: #2a9de0;
  padding: 20px;
  border-radius: 14px;
  display: block;

  &.add-card {
    background-color: transparent;
    box-shadow: none;
    border: 2px dashed $color-border;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  &.is-active {
    position: relative;
    z-index: 1;
    box-shadow: $ac-shadow-2;

    &::after,
    &:before {
      position: absolute;
      content: "";
      left: 5px;
      top: 5px;
      width: 14px;
      height: 14px;
      background-color: $white-100;
      border: 1px solid $ac-primary;
      z-index: 1;
      border-radius: 50%;
    }

    &::before {
      width: 6px;
      height: 6px;
      background-color: $ac-primary;
      border: none;
      left: 9px;
      top: 9px;
      z-index: 2;
    }
  }

  .expired-notice {
    position: relative;
    z-index: 1;
    width: 106px;
    height: 25px;
    transform: rotate(-45deg);
    margin-left: -45px;
    margin-top: -7px;

    &:after {
      position: absolute;
      content: "";
      width: 100%;
      height: 100%;
      // background-image: url("~@appscode/design-system-images/payment-card/expire-msg-bg.svg");
      top: 0;
      left: 0;
      z-index: -1;
    }

    &.is-expired {
      color: $danger;
    }

    p {
      font-size: 12px;
      color: $white-100;
      text-align: center;
      padding: 3px 0px;
    }
  }

  .default-status {
    color: $white-100;

    i.fa {
      padding-right: 6px;
    }
  }

  .p-card-expiry {
    p {
      font-size: 12px;
      color: #ededed;

      span {
        display: block;
        font-size: 1rem;
      }
    }
  }

  .payment-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .payment-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .card-left {
        display: flex;

        .user-name {
          font-size: 1rem;
          font-weight: 500;
          color: $white-100;
          margin-right: 10px;
        }
      }

      .card-right {
        min-height: 27px;

        .ac-options {
          .option-dots {
            span {
              background-color: $white-100;
            }
          }

          .options-items {
            min-width: 160px;

            li {
              a {
                color: $color-heading;

                &:hover {
                  background-color: $ac-primary;
                  color: $color-heading;
                }
              }
            }
          }
        }
      }
    }

    .payment-card-body {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .p-card-number {
        &.is-star {
          letter-spacing: 3px;
        }
      }

      p {
        font-size: 22px;
        font-weight: 600;
        color: $white-100;
      }

      span {
        width: 7px;
        height: 7px;
        background-color: $white-100;
        display: inline-block;
        margin: 2px;
        border-radius: 50%;
      }
    }

    .payment-card-footer {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;

      p.user-name {
        font-size: 1rem;
        color: $white-100;
        margin-top: 10px;
      }

      .p-card-logo {
        width: 40px;
      }
    }
  }
}

// dark theme start
.is-dark-theme {
  .ac-payment-card,
  .ac-single-card,
  .option-dots {
    --ac-white: var(--ac-white-text);
  }
}
// dark theme end
/****************************************
Responsive Classes
*****************************************/
// Extra small devices (portrait phones, less than 576px)
@media (max-width: 575.98px) {
}

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) and (max-width: 767.98px) {
}

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) and (max-width: 991.98px) {
}

// Large devices (desktops, 992px and up)
@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) and (max-width: 1550.98px) {
}

@media (min-width: 1551px) and (max-width: 1799.98px) {
}
