/* Self-service card purchase store. */
.card-shop-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    #fff;
  box-shadow: 0 16px 40px rgba(20, 49, 82, 0.065);
}

.card-shop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5ecf3;
}

.card-shop-head > div {
  min-width: 0;
}

.card-shop-head > div > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16324d;
  font-size: 14px;
  font-weight: 900;
}

.card-shop-head > div > span svg {
  color: #168b84;
}

.card-shop-head p {
  margin-top: 4px;
  color: #71859a;
  font-size: 10.5px;
}

.card-shop-secure {
  min-height: 28px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #cde7e3;
  border-radius: 999px;
  color: #0d7f78;
  background: #f0faf8;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.card-shop-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.card-shop-plan {
  position: relative;
  min-width: 0;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 13px 12px;
  overflow: hidden;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  color: #17324d;
  background: #fff;
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.card-shop-plan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #168b84, #8dc5ff);
}

.card-shop-plan:nth-child(2)::before {
  background: linear-gradient(90deg, #2f73d9, #8dc5ff);
}

.card-shop-plan:nth-child(3)::before {
  background: linear-gradient(90deg, #c08a35, #e7c77d);
}

.card-shop-plan:nth-child(4)::before {
  background: linear-gradient(90deg, #6d5bd0, #b7a7ff);
}

.card-shop-plan:hover {
  border-color: #a9c9e3;
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(20, 49, 82, 0.09);
}

.card-shop-plan-name {
  color: #6c8195;
  font-size: 10px;
  font-weight: 850;
}

.card-shop-plan strong {
  margin-top: 7px;
  color: #17324d;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.card-shop-plan small {
  margin-top: 6px;
  color: #71859a;
  font-size: 10px;
}

.card-shop-plan em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 0 9px;
  border-radius: 8px;
  color: #0d5d86;
  background: #edf7ff;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 850;
}

.card-shop-orders {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5ecf3;
}

.card-shop-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.card-shop-orders-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #38526b;
  font-size: 11px;
  font-weight: 850;
}

.card-shop-orders-head svg {
  color: #168b84;
}

.card-shop-orders-head small {
  color: #8aa0b3;
  font-size: 9.5px;
}

.card-shop-order-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 72px auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f5;
}

.card-shop-order-row:last-child {
  border-bottom: 0;
}

.card-shop-order-plan {
  min-width: 0;
}

.card-shop-order-plan b,
.card-shop-order-plan small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-shop-order-plan b {
  color: #263f58;
  font-size: 11px;
}

.card-shop-order-plan small {
  margin-top: 2px;
  color: #8aa0b3;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 8.5px;
}

.card-shop-order-amount {
  color: #263f58;
  font-size: 11px;
  font-weight: 850;
}

.card-shop-order-row em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.card-shop-order-row em.is-paid {
  color: #087f61;
  background: #e9f8f3;
}

.card-shop-order-row em.is-pending {
  color: #9a5b16;
  background: #fff5e6;
}

.card-shop-order-row em.is-closed {
  color: #667085;
  background: #f1f4f7;
}

.card-shop-payment {
  display: grid;
  gap: 12px;
}

.card-shop-payment-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #e1e9f1;
  border-radius: 10px;
  background: #f8fafc;
}

.card-shop-payment-order span {
  min-width: 0;
}

.card-shop-payment-order b,
.card-shop-payment-order small {
  display: block;
}

.card-shop-payment-order b {
  color: #17324d;
  font-size: 13px;
  font-weight: 900;
}

.card-shop-payment-order small {
  margin-top: 3px;
  color: #8294a7;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 8.5px;
}

.card-shop-payment-order strong {
  color: #c66b16;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.card-shop-qr {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 49, 82, 0.09);
}

.card-shop-qr img,
.card-shop-qr canvas {
  max-width: 100%;
  max-height: 100%;
}

.card-shop-qr-success {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bde4d8;
  border-radius: 50%;
  color: #118467;
  background: #eaf9f4;
}

.card-shop-payment-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 850;
}

.card-shop-payment-status.is-pending {
  color: #9a5b16;
  background: #fff7e8;
}

.card-shop-payment-status.is-paid {
  color: #087f61;
  background: #eaf9f4;
}

.card-shop-payment-status.is-closed {
  color: #b42318;
  background: #fff1ef;
}

.card-shop-card-code {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #bde4d8;
  border-radius: 10px;
  background: #f3fbf8;
}

.card-shop-card-code > span {
  color: #087f61;
  font-size: 10px;
  font-weight: 850;
}

.card-shop-card-code code {
  padding: 9px 10px;
  border: 1px solid #d4e9e2;
  border-radius: 8px;
  color: #17324d;
  background: #fff;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: center;
  word-break: break-all;
}

.card-shop-card-code .btn {
  justify-self: center;
}

.card-shop-payment-tip {
  color: #7a8fa3;
  font-size: 9.5px;
  line-height: 1.55;
  text-align: center;
}

.card-shop-empty,
.card-shop-error {
  margin-top: 14px;
  padding: 22px 14px;
  border: 1px dashed #cbd9e6;
  border-radius: 10px;
  color: #71859a;
  background: #f9fbfd;
  font-size: 11px;
  text-align: center;
}

.card-shop-error {
  border-color: #f2c7c4;
  color: #b42318;
  background: #fff5f4;
}

@media (max-width: 720px) {
  .card-shop-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-shop-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .card-shop-order-amount,
  .card-shop-order-row em {
    justify-self: end;
  }

  .card-shop-order-row .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .card-shop-panel {
    padding: 16px;
  }

  .card-shop-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-shop-plan {
    min-height: 122px;
    padding: 13px 11px 11px;
  }

  .card-shop-plan strong {
    font-size: 22px;
  }

  .card-shop-qr {
    width: 206px;
    height: 206px;
  }
}
