/* Comic Neue gives the saved QRIS card a softer, playful handwritten feel.
   Both weights are bundled locally so PNG downloads do not depend on a font CDN. */
@font-face {
  font-family: 'Comic Neue';
  src: url('../assets/fonts/ComicNeue-Regular.otf?v=neyyi-v41') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: 'Comic Neue';
  src: url('../assets/fonts/ComicNeue-Bold.otf?v=neyyi-v41') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

/* A local font keeps the saved card, including the store's symbols, consistent. */
@font-face {
  font-family: 'Neyyi Card';
  src: url('../assets/fonts/neyyi-card-regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Neyyi Card';
  src: url('../assets/fonts/neyyi-card-bold.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Neyyi Card';
  src: url('../assets/fonts/neyyi-card-arabic.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+06F6;
}
@font-face {
  font-family: 'Neyyi Card';
  src: url('../assets/fonts/neyyi-card-bengali.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+09CE;
}

/* Override both the original mobile cap and the desktop customer stylesheet. */
.customer-responsive .qris-card {
  padding: clamp(12px, 3.8vw, 22px);
}
.customer-responsive .qris-image-wrapper {
  width: 100%;
  max-width: 520px;
  min-height: 0;
  padding: 4px;
  margin-inline: auto;
  border-radius: 16px;
  background: #fff;
}
.customer-responsive .qris-image-wrapper .qris-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.customer-responsive .qris-placeholder {
  min-height: 280px;
  aspect-ratio: 1;
}
.customer-responsive .qris-download-button {
  min-height: 50px;
  margin-top: 16px;
  border-color: #d9477b;
  border-radius: 14px;
  background: #d9477b;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(203, 67, 116, .12);
}
.customer-responsive .qris-download-button:hover {
  background: #c9386c;
}
.customer-responsive .qris-download-button svg {
  width: 19px;
  height: 19px;
}
.qris-download-note {
  margin: 9px 0 0;
  color: #937380;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.qris-download-note[hidden] {
  display: none;
}


/* Clean customer-facing payment copy and invoice reminder placement. */
.customer-responsive .payment-extra-info {
  margin-top: 0;
  margin-bottom: 14px;
}
.customer-responsive .qris-title {
  margin-bottom: 12px;
}


/* V57 QRIS enlargement: use nearly the full payment-card width on phones. */
@media (max-width: 599px) {
  .customer-responsive .payment-page > .qris-card {
    width: calc(100% + 28px);
    margin-inline: -14px;
    padding: 14px 10px;
    border-radius: 14px;
  }

  .customer-responsive .qris-image-wrapper {
    width: 100%;
    max-width: 620px;
    min-height: 0;
    padding: 0;
    margin-inline: auto;
    border-radius: 12px;
  }

  .customer-responsive .qris-image-wrapper .qris-image {
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    object-fit: contain;
  }
}

/* Keep the larger QR easy to scan on wider payment layouts too. */
@media (min-width: 600px) {
  .customer-responsive .qris-image-wrapper {
    max-width: 620px;
    padding: 2px;
  }
}
