#foundationModal .modal-card:has(.foundation-qris-payment) {
  width: min(100%, 620px);
}

.foundation-qris-payment {
  text-align: center;
}

.foundation-qris-head {
  margin: -23px -23px 16px;
  padding: 22px 56px 18px 23px;
  border-radius: 22px 22px 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, #fde68a66, transparent 38%),
    linear-gradient(125deg, #064e3b, #059669 66%, #10b981);
}

.foundation-qris-head span {
  color: #d1fae5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}

.foundation-qris-head h2 {
  margin: 5px 0 3px !important;
}

.foundation-qris-head p {
  margin: 0;
  color: #ecfdf5 !important;
}

.foundation-qris-payment .qris-wrap {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}

.foundation-qris-payment .qris-wrap img {
  display: block;
  width: 100%;
  max-height: 410px;
  object-fit: contain;
  border-radius: 13px;
}

.foundation-qris-payment .payment-total {
  margin-bottom: 12px;
  padding: 13px;
  border-radius: 15px;
  color: #065f46;
  background: #ecfdf5;
}

.foundation-qris-payment .payment-total small,
.foundation-qris-payment .payment-total b {
  display: block;
}

.foundation-qris-payment .payment-total b {
  margin-top: 4px;
  font-size: 25px;
}

.foundation-qris-payment ol {
  text-align: left;
  color: #64748b;
  font-size: 11px;
  line-height: 1.7;
}

.foundation-qris-payment .whatsapp-button {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 13px;
  color: #fff;
  background: #25d366;
  font-weight: 900;
  cursor: pointer;
}

.foundation-qris-payment .whatsapp-button:disabled {
  opacity: .65;
  cursor: wait;
}

@media (max-width: 600px) {
  .foundation-qris-head {
    margin: -21px -16px 14px;
    padding: 19px 50px 16px 16px;
  }

  .foundation-qris-payment .qris-wrap img {
    max-height: 46dvh;
  }
}
