/*
 * PAYANTARA_GLOBAL_TYPOGRAPHY_V3232
 * Global responsive type scale for public, auth, client, owner, checkout,
 * documentation, and blog surfaces.
 */
:root {
  --pf-type-font: "Poppins", Inter, ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pf-type-body: clamp(.875rem, .16vw + .84rem, .94rem);
  --pf-type-small: clamp(.72rem, .08vw + .70rem, .78rem);
  --pf-type-label: clamp(.69rem, .07vw + .67rem, .75rem);
  --pf-type-h1: clamp(1.65rem, 1.55vw + 1.05rem, 2.55rem);
  --pf-type-h2: clamp(1.28rem, .75vw + 1rem, 1.72rem);
  --pf-type-h3: clamp(1.05rem, .38vw + .91rem, 1.28rem);
  --pf-type-h4: clamp(.96rem, .20vw + .89rem, 1.08rem);
  --pf-type-hero: clamp(2.25rem, 3.7vw + .9rem, 4rem);
  --pf-type-hero-compact: clamp(2rem, 2.7vw + 1rem, 3.25rem);
  --pf-type-leading: 1.58;
  --pf-type-heading-leading: 1.14;
}

html {
  font-size: clamp(14px, .14vw + 13.4px, 15px) !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  font-family: var(--pf-type-font) !important;
}

body {
  font-size: var(--pf-type-body) !important;
  line-height: var(--pf-type-leading);
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font-size: .88rem !important;
  line-height: 1.42;
}

small,
.small,
.form-text,
.text-muted,
.muted {
  font-size: var(--pf-type-small);
}

label,
.form-label {
  font-size: .82rem;
}

h1,
.h1 {
  font-size: var(--pf-type-h1);
  line-height: var(--pf-type-heading-leading);
  letter-spacing: -.035em;
}

h2,
.h2 {
  font-size: var(--pf-type-h2);
  line-height: 1.2;
  letter-spacing: -.025em;
}

h3,
.h3 {
  font-size: var(--pf-type-h3);
  line-height: 1.25;
  letter-spacing: -.015em;
}

h4,
.h4 {
  font-size: var(--pf-type-h4);
  line-height: 1.3;
}

p,
li,
td,
th,
label,
input,
select,
textarea,
button,
a {
  text-wrap: pretty;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
  font-size: clamp(.76rem, .08vw + .74rem, .84rem) !important;
}

/* Public site: keep marketing hierarchy without oversized headings. */
body.public-body {
  font-size: clamp(.88rem, .14vw + .84rem, .95rem) !important;
}

body.public-body .topnav,
body.public-body .nav-links,
body.public-body .footer,
body.public-body .footer-links {
  font-size: clamp(.76rem, .11vw + .73rem, .84rem);
}

body.public-body .hero h1,
body.public-body .hero .hero-copy h1 {
  max-width: 800px !important;
  font-size: var(--pf-type-hero) !important;
  line-height: 1.07 !important;
  letter-spacing: -.042em !important;
}

body.public-body .hero p,
body.public-body .hero .hero-copy p {
  font-size: clamp(.91rem, .22vw + .84rem, 1.03rem) !important;
  line-height: 1.68 !important;
}

body.public-body .pc-hero h1,
body.public-body .pb-hero h1 {
  font-size: var(--pf-type-hero-compact) !important;
  line-height: 1.05 !important;
  letter-spacing: -.045em !important;
}

body.public-body .pc-hero p,
body.public-body .pb-hero p {
  font-size: clamp(.9rem, .18vw + .85rem, 1rem) !important;
  line-height: 1.66 !important;
}

body.public-body .pc-head h2,
body.public-body .pb-section-head h2 {
  font-size: clamp(1.55rem, 1.65vw + .95rem, 2.35rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
}

body.public-body .pc-card h3,
body.public-body .pb-card h3 {
  font-size: clamp(1.02rem, .28vw + .94rem, 1.18rem) !important;
}

body.public-body .pc-info-head h2,
body.public-body .pc-cta h2,
body.public-body .pb-settlement-copy h2,
body.public-body .pb-cta h2 {
  font-size: clamp(1.18rem, .56vw + 1rem, 1.52rem) !important;
}

/* Documentation. */
body.public-body .pd-shell {
  font-size: .91rem;
}

body.public-body .pd-hero h1 {
  font-size: clamp(1.9rem, 2.1vw + 1rem, 2.75rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
}

body.public-body .pd-section h2 {
  font-size: clamp(1.18rem, .45vw + 1.02rem, 1.42rem) !important;
}

body.public-body .pd-section h3 {
  font-size: clamp(.98rem, .28vw + .89rem, 1.14rem) !important;
}

body.public-body .pd-nav a {
  font-size: .82rem !important;
}

body.public-body .pd-code pre,
body.public-body .pd-code pre code {
  font-size: clamp(.75rem, .12vw + .72rem, .82rem) !important;
  line-height: 1.65 !important;
}

/* Authentication. */
body.auth-body {
  font-size: clamp(.86rem, .12vw + .83rem, .93rem) !important;
}

body.auth-body .auth-shell h1 {
  font-size: clamp(1.35rem, .8vw + 1.05rem, 1.72rem) !important;
  line-height: 1.18 !important;
}

body.auth-body .auth-shell h2 {
  font-size: clamp(1.12rem, .42vw + .97rem, 1.32rem) !important;
}

body.auth-body .auth-shell p {
  font-size: .88rem;
  line-height: 1.58;
}

/* Client and owner dashboard. */
body.dashboard-body {
  font-size: clamp(.82rem, .10vw + .80rem, .89rem) !important;
  line-height: 1.5 !important;
}

body.dashboard-body .dash-content {
  font-size: inherit !important;
}

body.dashboard-body .topbar h1,
body.dashboard-body .page-headline h1,
body.dashboard-body .page-headline h2,
body.dashboard-body .owner-console-hero h1,
body.dashboard-body .owner-console-hero h2 {
  font-size: clamp(1.16rem, .48vw + 1rem, 1.42rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
}

body.dashboard-body .panel-head h2,
body.dashboard-body .panel > h2,
body.dashboard-body .card h2,
body.dashboard-body .card-head h2,
body.dashboard-body .chart-title h2,
body.dashboard-body .section-head h2,
body.dashboard-body .withdrawal-card-head h2,
body.dashboard-body .qris-form-card .card-head h2,
body.dashboard-body .support-settings-head h2 {
  font-size: clamp(.96rem, .22vw + .9rem, 1.08rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -.012em !important;
}

body.dashboard-body .panel h3,
body.dashboard-body .card h3,
body.dashboard-body .section-head h3 {
  font-size: clamp(.9rem, .18vw + .85rem, 1rem) !important;
}

body.dashboard-body .page-headline p,
body.dashboard-body .panel-head p,
body.dashboard-body .card-head p,
body.dashboard-body .chart-title p {
  font-size: clamp(.75rem, .08vw + .73rem, .81rem) !important;
  line-height: 1.5 !important;
}

body.dashboard-body .sidebar,
body.dashboard-body .pf-side,
body.dashboard-body .side-submenu,
body.dashboard-body .topbar,
body.dashboard-body table,
body.dashboard-body .table-wrap {
  font-size: clamp(.73rem, .08vw + .71rem, .8rem);
}

body.dashboard-body .stat-card strong,
body.dashboard-body .client-kpi-card strong,
body.dashboard-body .withdrawal-kpi strong {
  font-size: clamp(.98rem, .35vw + .88rem, 1.18rem) !important;
}

body.dashboard-body .modal-title {
  font-size: clamp(.96rem, .25vw + .89rem, 1.1rem) !important;
}

body.dashboard-body .modal-body,
body.dashboard-body .modal-footer,
body.dashboard-body .modal-header {
  font-size: .84rem;
}

/* Preserve professional writing comfort inside the blog editor. */
body.dashboard-body .pf-blog-editor .be-content,
body.dashboard-body .pf-blog-editor .be-preview {
  font-size: 1rem !important;
  line-height: 1.78 !important;
}

body.dashboard-body .pf-blog-editor .be-toolbar button {
  font-size: .76rem !important;
}

/* Checkout / blank layout. */
body.checkout-body {
  font-size: clamp(.86rem, .12vw + .83rem, .93rem) !important;
}

body.checkout-body h1 {
  font-size: clamp(1.35rem, .75vw + 1.08rem, 1.7rem) !important;
}

/* Blog frontend. */
body:not(.public-body):not(.auth-body):not(.dashboard-body):not(.checkout-body)
  .blog-shell,
.blog-header,
.blog-searchbar,
.blog-main,
.blog-footer {
  font-size: clamp(.86rem, .12vw + .83rem, .93rem);
}

.blog-hero h1 {
  font-size: clamp(2.1rem, 3.1vw + 1rem, 3.75rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.042em !important;
}

.blog-section-heading h2,
.blog-feature-card__content h2 {
  font-size: clamp(1.5rem, 1.35vw + 1rem, 2.2rem) !important;
  line-height: 1.16 !important;
  letter-spacing: -.03em !important;
}

.blog-card h3 {
  font-size: clamp(.98rem, .26vw + .91rem, 1.12rem) !important;
  line-height: 1.35 !important;
}

.blog-article-hero h1 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3.35rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -.04em !important;
}

.blog-article-content h2,
.blog-prose h2 {
  font-size: clamp(1.35rem, .9vw + 1rem, 1.8rem) !important;
  line-height: 1.22 !important;
}

.blog-article-content h3,
.blog-prose h3 {
  font-size: clamp(1.08rem, .48vw + .92rem, 1.34rem) !important;
  line-height: 1.3 !important;
}

.blog-article-content,
.blog-prose {
  font-size: clamp(.91rem, .14vw + .87rem, 1rem) !important;
  line-height: 1.78 !important;
}

/* Keep long content and controls from visually filling narrow screens. */
@media (max-width: 900px) {
  :root {
    --pf-type-hero: clamp(2.1rem, 6.2vw, 3.15rem);
    --pf-type-hero-compact: clamp(1.9rem, 5.4vw, 2.75rem);
  }

  body.public-body .pd-hero {
    padding: 1.45rem !important;
  }

  body.dashboard-body .dash-content {
    padding-inline: clamp(.72rem, 2.5vw, 1rem) !important;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 14px !important;
  }

  :root {
    --pf-type-body: .88rem;
    --pf-type-h1: clamp(1.45rem, 6.5vw, 1.85rem);
    --pf-type-h2: clamp(1.18rem, 4.8vw, 1.45rem);
    --pf-type-h3: clamp(1rem, 3.5vw, 1.15rem);
    --pf-type-hero: clamp(2rem, 9vw, 2.55rem);
    --pf-type-hero-compact: clamp(1.82rem, 8vw, 2.35rem);
  }

  body.public-body .hero h1,
  body.public-body .hero .hero-copy h1,
  body.public-body .pc-hero h1,
  body.public-body .pb-hero h1 {
    max-width: 100% !important;
    line-height: 1.1 !important;
    letter-spacing: -.03em !important;
  }

  body.public-body .hero p,
  body.public-body .pc-hero p,
  body.public-body .pb-hero p {
    font-size: .9rem !important;
    line-height: 1.62 !important;
  }

  body.public-body .pd-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.05rem) !important;
  }

  body.dashboard-body .topbar h1,
  body.dashboard-body .page-headline h1,
  body.dashboard-body .page-headline h2,
  body.dashboard-body .owner-console-hero h1,
  body.dashboard-body .owner-console-hero h2 {
    font-size: 1.18rem !important;
  }

  body.dashboard-body .btn,
  body.dashboard-body button {
    font-size: .74rem !important;
  }

  body.dashboard-body table,
  body.dashboard-body .table-wrap {
    font-size: .73rem !important;
  }

  .blog-hero h1,
  .blog-article-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem) !important;
  }

  .blog-section-heading h2,
  .blog-feature-card__content h2 {
    font-size: clamp(1.35rem, 5.7vw, 1.75rem) !important;
  }
}

/*
 * PAYANTARA_BRANDED_LOADING_CSS_V3232
 * Shared, accessible loading indicator.
 */
.pf-payantara-progress {
  position: fixed;
  z-index: 2147483001;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.pf-payantara-progress::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background:
    linear-gradient(
      90deg,
      #e37434 0%,
      #f7b267 48%,
      #2563eb 100%
    );
  box-shadow: 0 0 18px rgba(227, 116, 52, .42);
  transform: translateX(-110%);
}

html.pf-loading-active .pf-payantara-progress {
  opacity: 1;
  transform: translateY(0);
}

html.pf-loading-active .pf-payantara-progress::before {
  animation: pfPayantaraProgress 1.25s cubic-bezier(.4, 0, .2, 1) infinite;
}

.pf-payantara-loader {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(227, 116, 52, .12),
      transparent 34%
    ),
    rgba(248, 250, 252, .88);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

html.pf-loading-overlay .pf-payantara-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pf-payantara-loader__card {
  width: min(330px, calc(100vw - 36px));
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 25px 24px 22px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 24px 80px rgba(15, 23, 42, .16),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  color: #0f172a;
  text-align: center;
}

.pf-payantara-loader__visual {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
}

.pf-payantara-loader__mark {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #f09a58, #e37434 58%, #c95f23);
  box-shadow:
    0 13px 28px rgba(227, 116, 52, .3),
    inset 0 1px 0 rgba(255, 255, 255, .42);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.06em;
}

.pf-payantara-loader__mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 13px;
}

.pf-payantara-loader__orbit {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 50%;
  animation: pfPayantaraOrbit 1.55s linear infinite;
}

.pf-payantara-loader__orbit::before,
.pf-payantara-loader__orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .16);
}

.pf-payantara-loader__orbit::before {
  top: 3px;
  left: 10px;
  background: #2563eb;
}

.pf-payantara-loader__orbit::after {
  right: 4px;
  bottom: 12px;
  background: #e37434;
}

.pf-payantara-loader__copy {
  display: grid;
  gap: 5px;
}

.pf-payantara-loader__title {
  margin: 0;
  font-size: .98rem !important;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.pf-payantara-loader__message {
  margin: 0;
  color: #64748b;
  font-size: .76rem !important;
  line-height: 1.5;
}

.pf-payantara-loader__pulse {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 8px;
}

.pf-payantara-loader__pulse span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  animation: pfPayantaraPulse 1.15s ease-in-out infinite;
}

.pf-payantara-loader__pulse span:nth-child(2) {
  animation-delay: .13s;
  background: #e37434;
}

.pf-payantara-loader__pulse span:nth-child(3) {
  animation-delay: .26s;
  background: #2563eb;
}

.pf-button-loading {
  position: relative !important;
  cursor: wait !important;
  opacity: .86;
}

.pf-button-loading .pf-button-loading__spinner {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pfPayantaraSpin .72s linear infinite;
}

@keyframes pfPayantaraSpin {
  to { transform: rotate(360deg); }
}

@keyframes pfPayantaraOrbit {
  to { transform: rotate(360deg); }
}

@keyframes pfPayantaraProgress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(115%); }
  100% { transform: translateX(255%); }
}

@keyframes pfPayantaraPulse {
  0%, 100% {
    opacity: .35;
    transform: translateY(0) scale(.88);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) scale(1);
  }
}

@media (max-width: 640px) {
  .pf-payantara-loader {
    padding: 16px;
  }

  .pf-payantara-loader__card {
    width: min(300px, calc(100vw - 28px));
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  .pf-payantara-loader__visual {
    width: 74px;
    height: 74px;
  }

  .pf-payantara-loader__mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-payantara-progress,
  .pf-payantara-loader,
  .pf-payantara-loader__orbit,
  .pf-payantara-loader__pulse span,
  .pf-button-loading .pf-button-loading__spinner {
    animation: none !important;
    transition: none !important;
  }

  html.pf-loading-active .pf-payantara-progress::before {
    width: 100%;
    transform: none;
  }

  .pf-payantara-loader__orbit {
    border-style: dashed;
  }
}
