.credit-widget {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin: 12px auto 0;
  padding: 10px;
  max-width: 1180px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}

.credit-widget.compact {
  width: min(560px, 100%);
  max-width: none;
  margin: 0;
  padding: 6px;
  grid-template-columns: minmax(130px, 1fr) auto auto auto;
  box-shadow: none;
}

.credit-widget input {
  min-height: 36px;
}

.credit-widget button {
  min-height: 36px;
  white-space: nowrap;
}

.credit-widget strong {
  color: #175cd3;
}

.credit-widget small {
  color: #667085;
}

.usage-note,
.tailor-credit-note {
  padding: 12px 14px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  color: #344054;
  background: #f8fafc;
  font-weight: 800;
  line-height: 1.5;
}

.credit-help-modal[hidden] {
  display: none !important;
}

.credit-help-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.credit-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .46);
}

.credit-help-card {
  position: relative;
  width: min(380px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}

.credit-help-card strong {
  font-size: 20px;
  color: #101828;
}

.credit-help-card p {
  margin: 0;
  color: #344054;
  line-height: 1.65;
}

.credit-help-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
}

.credit-help-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  padding: 0;
}

@media (max-width: 760px) {
  .credit-widget,
  .credit-widget.compact {
    grid-template-columns: 1fr;
  }
}


.credit-help-card .qr-fallback {
  padding: 14px;
  border: 1px dashed #bfdbfe;
  border-radius: 10px;
  color: #344054;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.65;
}
